]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbevf: Fix handling of NAPI budget when multiple queues are enabled per vector
authorWilliam Dauchy <william@gandi.net>
Fri, 30 Oct 2015 17:16:30 +0000 (18:16 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:40:35 +0000 (16:40 -0700)
Orabug: 23177316

This is the same patch as for ixgbe but applied differently according to
busy polling.  See commit 5d6002b7b822c74 ("ixgbe: Fix handling of NAPI
budget when multiple queues are enabled per vector")

Signed-off-by: William Dauchy <william@gandi.net>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit d0f71afffa1c3d5a36a4a278f1dbbd2643176dc3)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

index bff5031611fe24fdc16d2223a3b6a45fee0fab10..f78384ff030c92999bdc1525e0f4658970c68678 100644 (file)
@@ -1016,6 +1016,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;