]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: Minor refactor of RSC
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 31 Jan 2012 02:59:23 +0000 (02:59 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:48:08 +0000 (22:48 +0800)
commit5cffa0c9a6c5d15b02bfc36a5a98133982efd23b
tree3a9d0bc87b2dff118bd0aff9a75961d88522c7a5
parent4f1d6823443b0c0c146a6efd2de476354fc339b5
ixgbe: Minor refactor of RSC

This change addresses several issue.

First I had left the use of the next and prev skb pointers floating around
in the code and they were overdue to be pulled since I had rewritten the
RSC code in the out-of-tree driver some time ago to address issues brought
up by David Miller in regards to this.

I am also now defaulting to always leaving the first buffer unmapped on any
packet and then unmapping it after we read the EOP descriptor.  This allows
a simplification of the path with less branching.

Instead of counting packets received the code was changed some time ago to
track the number of buffers received.  This leads to inaccurate counting
when you compare numbers of packets received by the hardware versus what is
tracked by the software.  To correct this I am revising things so that the
append_cnt value for RSC accurately tracks the number of frames received.

(cherry picked from commit 4c1975d77b73feed7161999aab4cc64c1ae7155c)
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe.h
drivers/net/ixgbe/ixgbe_main.c