]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Merge all FCoE percpu values into a single structure
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 5 May 2012 17:14:28 +0000 (17:14 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 20 Jul 2012 01:18:01 +0000 (18:18 -0700)
commitf5af2bcf3ce9561a38c921d50a500a2cbd8cf231
treed61088d6578df3d61e85c96cfc60174ea66b2814
parentbfb9e7b25e7b2d41c28b34dd96332ebf0d379436
ixgbe: Merge all FCoE percpu values into a single structure

This change merges the 2 statistics values for noddp and noddp_ext_buff
and the dma_pool into a single structure that can be allocated per CPU.

The advantages to this are several fold.  First we only need to do one
alloc_percpu call now instead of 3, so that means less overhead for
handling memory allocation failures.  Secondly in the case of
ixgbe_fcoe_ddp_setup we only need to call get_cpu once which makes things a
bit cleaner since we can drop a put_cpu() from the exception path.

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