Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24e579c8 authored by Govindarajulu Varadarajan's avatar Govindarajulu Varadarajan Committed by David S. Miller
Browse files

bnx2x: fix napi poll return value for repoll



With the commit d75b1ade ("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: default avatarGovindarajulu Varadarajan <_govind@gmx.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bf693f7b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3175,7 +3175,7 @@ static 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]))