linux/drivers/net/ethernet/intel
Alexander Duyck f800326dca ixgbe: Replace standard receive path with a page based receive
This patch replaces the existing Rx hot-path in the ixgbe driver with a new
implementation that is based on performing a double buffered receive.  The
ixgbe driver already had something similar in place for its' packet split
path, however in that case we were still receiving the header for the
packet into the sk_buff.  The big change here is the entire receive path
will receive into pages only, and then pull the header out of the page and
copy it into the sk_buff data.  There are several motivations behind this
approach.

First, this allows us to avoid several cache misses as we were taking a
set of cache misses for allocating the sk_buff and then another set for
receiving data into the sk_buff.  We are able to avoid these misses on
receive now as we allocate the sk_buff when data is available.

Second we are able to see a considerable performance gain when an IOMMU is
enabled because we are no longer unmapping every buffer on receive.
Instead we can delay the unmap until we are unable to use the page, and
instead we can simply call sync_single_range on the half of the page that
contains new data.

Finally we are able to drop a considerable amount of code from the driver
as we no longer have to support 2 different receive modes, packet split and
one buffer.  This allows us to optimize the Rx path further since less
branching is required.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2012-03-17 01:04:27 -07:00
..
e1000 v2 e1000: Neaten e1000_dump function 2012-02-24 02:03:43 -08:00
e1000e e1000e: use msleep instead of mdelay 2012-02-29 23:14:19 -08:00
igb igb: Support RX-ALL feature flag. 2012-03-17 01:02:26 -07:00
igbvf igbvf: reset netdevice addr_assign_type if changed 2012-02-17 15:58:06 -05:00
ixgb ixgb: Remove unnecessary defines, use pr_debug 2012-03-14 00:26:42 -07:00
ixgbe ixgbe: Replace standard receive path with a page based receive 2012-03-17 01:04:27 -07:00
ixgbevf ixgbevf: print MAC via printk format specifier 2012-02-24 15:40:59 -05:00
e100.c e100: Show short v/s long rx length errors in ethtool stats. 2012-03-02 18:09:27 -08:00
Kconfig i825xx:xscale:8390:freescale: Fix Kconfig dependancies 2011-11-04 17:41:20 -04:00
Makefile