netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ixgbevf: Fix handling of napi budget when multiple queues are enabled per vector
@ 2015-10-30 17:16 William Dauchy
  2015-12-21 21:29 ` [Intel-wired-lan] " Schmitt, Phillip J
  0 siblings, 1 reply; 2+ messages in thread
From: William Dauchy @ 2015-10-30 17:16 UTC (permalink / raw)
  To: davem
  Cc: netdev, jeffrey.t.kirsher, intel-wired-lan, emil.s.tantilov,
	aduyck, William Dauchy

This is the same patch as for ixgbe but applied differently according to
busy polling.
see commit "ixgbe: Fix handling of napi budget when multiple queues are
 enabled per vector"

Signed-off-by: William Dauchy <william@gandi.net>
---
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
index 149a0b4..ff6e21d 100644
--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
@@ -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;
-- 
2.6.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-21 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-30 17:16 [PATCH] ixgbevf: Fix handling of napi budget when multiple queues are enabled per vector William Dauchy
2015-12-21 21:29 ` [Intel-wired-lan] " Schmitt, Phillip J

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).