HomeFreeBSD

sfxge(4): ensure EvQ poll stops when abort is requested

Description

sfxge(4): ensure EvQ poll stops when abort is requested

If an event handler requested an abort, only the inner loop was
guarenteed 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.

Submitted by: Mark Spender <mspender at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18287

Details

Provenance
arybchikAuthored on
Differential Revision
D18287: sfxge(4): ensure EvQ poll stops when abort is requested
Parents
rS341325: sfxge(4): support Medford2
Branches
Unknown
Tags
Unknown