]> git.ipfire.org Git - people/ms/linux.git/commitdiff
bnx2x: fix napi poll return value for repoll
authorGovindarajulu Varadarajan <_govind@gmx.com>
Sun, 25 Jan 2015 10:39:23 +0000 (16:09 +0530)
committerJiri Slaby <jslaby@suse.cz>
Tue, 10 Feb 2015 10:16:50 +0000 (11:16 +0100)
[ Upstream commit 24e579c8898aa641ede3149234906982290934e5 ]

With the commit d75b1ade567ffab ("net: less interrupt masking in NAPI") napi
repoll is done only when work_done == budget. When in busy_poll is we return 0
in napi_poll. We should return budget.

Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c

index c3ba4bf2036377460a7c18035fecfdf98a232bde..d643c18b0f15718482665537f009288f74b0b0e8 100644 (file)
@@ -3087,7 +3087,7 @@ int bnx2x_poll(struct napi_struct *napi, int budget)
                }
 #endif
                if (!bnx2x_fp_lock_napi(fp))
-                       return work_done;
+                       return budget;
 
                for_each_cos_in_tx_queue(fp, cos)
                        if (bnx2x_tx_queue_has_work(fp->txdata_ptr[cos]))