]> 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)
commit5b88489524ce35e0c37433bd6d816335578fb9b1
tree42194614fcaf6384d46f88795c086fd842181c2c
parentd91d565c30b0989923bc89d49c8c901cbf594c2b
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