Commit c97383a6 authored by William Dauchy's avatar William Dauchy Committed by Greg Kroah-Hartman

ixgbevf: Fix handling of NAPI budget when multiple queues are enabled per vector

[ Upstream commit d0f71aff ]

This is the same patch as for ixgbe but applied differently according to
busy polling.  See commit 5d6002b7 ("ixgbe: Fix handling of NAPI
budget when multiple queues are enabled per vector")
Signed-off-by: 's avatarWilliam Dauchy <william@gandi.net>
Tested-by: 's avatarPhil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: 's avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: 's avatarSasha Levin <sashal@kernel.org>
parent 1b6a863f
......@@ -1014,6 +1014,8 @@ static int ixgbevf_poll(struct napi_struct *napi, int budget)
ixgbevf_for_each_ring(ring, q_vector->tx)
clean_complete &= ixgbevf_clean_tx_irq(q_vector, ring);
if (budget <= 0)
return budget;
#ifdef CONFIG_NET_RX_BUSY_POLL
if (!ixgbevf_qv_lock_napi(q_vector))
return budget;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment