]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e/i40evf: Break up xmit_descriptor_count from maybe_stop_tx
authorAlexander Duyck <aduyck@mirantis.com>
Wed, 17 Feb 2016 19:02:43 +0000 (11:02 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:37:44 +0000 (08:37 -0800)
commit890688ef667c37964fd39e7c7b510a96bfbf1e25
tree3cc63c04230fae3a1bf469614addd50909b1b022
parente9eac820501df3387c72adc4ebce58413f9d1397
i40e/i40evf: Break up xmit_descriptor_count from maybe_stop_tx

Orabug: 22342532

In an upcoming patch I would like to have access to the descriptor count
used for the data portion of the frame.  For this reason I am splitting up
the descriptor count function from the function that stops the ring.

Also in order to try and reduce unnecessary duplication of code I am moving
the slow-path portions of the code out of being inline calls so that we can
just jump to them and process them instead of having to build them into
each function that calls them.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 4ec441df25a686518fb369086e2b34a1cedaa6c9)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_fcoe.c
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40e/i40e_txrx.h
drivers/net/ethernet/intel/i40evf/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.h