HomeFreeBSD

MFC r361758

Description

MFC r361758

netmap: vtnet: add vtnrx_nm_refill index to receive queues

The new index tracks the next netmap slot that is going
to be enqueued into the virtqueue. The index is necessary
to prevent the receive VQ and the netmap rx ring from going
out of sync, considering that we never enqueue N slots, but
at most N-1. This change fixes a bug that causes the VQ
and the netmap ring to go out of sync after N-1 packets
have been received.

Details

Provenance
vmaffioneAuthored on
Parents
rS362023: MFC r361746
Branches
Unknown
Tags
Unknown