HomeFreeBSD

netmap: if_vtnet: avoid netmap ring wraparound

Description

netmap: if_vtnet: avoid netmap ring wraparound

netmap assumes the one "slot" is left unused to distinguish
the empty ring and full ring conditions. This assumption was
violated by vtnet_netmap_rxq_populate().

MFC after: 1 week

Details

Provenance
vmaffioneAuthored on
Parents
rS361697: netmap: if_vtnet: replace vtnet_free_used()
Branches
Unknown
Tags
Unknown