HomeFreeBSD

MFC r361696

Description

MFC r361696

netmap: vtnet: fix RX virtqueue initialization bug

The vtnet_netmap_rxq_populate() function erroneously assumed
that kring->nr_hwcur = 0, i.e. the kring was in the initial
state. However, this is not always the case: for example,
when a vtnet reinit is triggered by some changes in the
interface flags or capenable.
This patch changes the behaviour of vtnet_netmap_kring_refill()
so that it always starts publishing the netmap buffers starting
from the current value of kring->nr_hwcur.

Details

Provenance
vmaffioneAuthored on
Parents
rS362017: Read commands from stdin when -f - is passed to sed(1)
Branches
Unknown
Tags
Unknown