diff options
| author | 2019-07-25 01:55:29 -0700 | |
|---|---|---|
| committer | 2019-08-20 12:28:35 -0700 | |
| commit | 9118fcd5255f6d3891c90e01edd98dfc402ac663 (patch) | |
| tree | bffa8b120a19fd74d09f37fef427fd17a312dd42 /drivers/net/ethernet/intel/ice/ice_dcb_lib.c | |
| parent | ice: Use the software based tail when checking for hung Tx ring (diff) | |
| download | linux-dev-9118fcd5255f6d3891c90e01edd98dfc402ac663.tar.xz linux-dev-9118fcd5255f6d3891c90e01edd98dfc402ac663.zip | |
ice: Assume that more than one Rx queue is rare in ice_napi_poll
Currently we divide budget by the number of Rx queues per Rx ring
container in ice_napi_poll even if there is only 1. This is an
unnecessary divide for the normal case of 1 Rx ring per Rx ring
container. Fix this by using an unlikely() call in the case where we
actually need to divide.
Also, we will always set budget_per_ring even if there are no Rx rings
in the Rx ring container so we don't need to initialize it to 0.
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_dcb_lib.c')
0 files changed, 0 insertions, 0 deletions
