HomeFreeBSD

netmap: vtnet: fix race condition in rxsync

Description

netmap: vtnet: fix race condition in rxsync

This change prevents a race that happens when rxsync dequeues
N-1 rx packets (with N being the size of the netmap rx ring).
In this situation, the loop exits without re-enabling the
rx interrupts, thus causing the VQ to stall.

MFC after: 1 week

Details

Provenance
vmaffioneAuthored on
Parents
rS361758: netmap: vtnet: add vtnrx_nm_refill index to receive queues
Branches
Unknown
Tags
Unknown