]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: combine ixgbe_add_rx_frag and ixgbe_can_reuse_page
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 20 Jul 2012 08:08:18 +0000 (08:08 +0000)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Thu, 16 Aug 2012 22:44:25 +0000 (15:44 -0700)
commit52c81dd6b65f66f84eba7b3f42be140dc5c0a4d7
tree42194614fcaf6384d46f88795c086fd842181c2c
parent6277b6392e200d2471250880d705ac05efb67ac9
ixgbe: combine ixgbe_add_rx_frag and ixgbe_can_reuse_page

This patch combines ixgbe_add_rx_frag and ixgbe_can_reuse_page into a
single function. The main motivation behind this is to make better use of
the values so that we don't have to load them from memory and into
registers twice.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c