ixgbe: Make better use of memory allocations in one-buffer mode w/ RSC
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 26 Aug 2011 09:52:38 +0000 (09:52 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 17 Sep 2011 02:00:11 +0000 (19:00 -0700)
commit919e78a6b890bdcce8ca0fa699bd361c6f24dc94
tree8ec96b23d737bf36329b855a0f933840eed60aac
parent398fe4a916be0eea64572f2a7982e0aa564ef821
ixgbe: Make better use of memory allocations in one-buffer mode w/ RSC

This patch improves the memory utilization with RSC when in one-buffer
mode.  This is accomplished by making the default buffer sizes match up
with the standard memory allocation sizes minus 1K for shared info and
padding overhead.  By doing this CPU utilization when doing large receives
can be reduced by as much as 8%.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c