net/sfc/base: ensure EvQ poll stops when abort is requested
authorMark Spender <mspender@solarflare.com>
Thu, 7 Feb 2019 16:29:08 +0000 (16:29 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Feb 2019 10:32:42 +0000 (11:32 +0100)
commit4b4b84caf9b42fd91a0664367b7ef75380f8f228
treee732f305b6851c2891ba5c036b598b99b16aab42
parentfc3c5bbd05f6732b29cbec16ed089cf6b9c9c46c
net/sfc/base: ensure EvQ poll stops when abort is requested

If an event handler requested an abort, only the inner loop was
guaranteed to be broken out of - the outer loop could continue
if total == batch.

Fix this by poisoning batch to ensure it is different to total.

Signed-off-by: Mark Spender <mspender@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/efx_ev.c