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 Jun 1 2020, 4:14 PM
Parents
rG36f2d67026d5: netmap: if_vtnet: replace vtnet_free_used()
Branches
Unknown
Tags
Unknown

Event Timeline