]> git.baikalelectronics.ru Git - kernel.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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 19 Feb 2016 07:23:51 +0000 (23:23 -0800)
commit0155c49bc7b16a15390af2e4df03ad70abf68f9b
tree3f180a3231eb821f5f5c302548446e185ee38200
parent5bbef8a85ab474c4ceb1c759a611ed4161f27f1d
i40e/i40evf: Break up xmit_descriptor_count from maybe_stop_tx

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>
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