]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ixgbe: cleanup ixgbe_alloc_rx_buffers
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 17 Nov 2010 03:26:48 +0000 (19:26 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 17 Nov 2010 03:26:48 +0000 (19:26 -0800)
commitd5f398ed73522b9f76861af6553775c5851de0d0
tree63bc695c221d15332c4ff9ec69f2a6e66c903563
parent8ad494b0e59950e2b4e587c32cb67a2452795ea0
ixgbe: cleanup ixgbe_alloc_rx_buffers

This change re-orders alloc_rx_buffers to make better use of the packet
split enabled flag.  The new setup should require less branching in the
code since now we are down to fewer if statements since we either are
handling packet split or aren't.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe.h
drivers/net/ixgbe/ixgbe_main.c