]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iflib: fix isc_rxd_flush call in netmap_fl_refill()
authorVincenzo Maffione <vmaffione@FreeBSD.org>
Mon, 24 Aug 2020 11:44:20 +0000 (11:44 +0000)
committerVincenzo Maffione <vmaffione@FreeBSD.org>
Mon, 24 Aug 2020 11:44:20 +0000 (11:44 +0000)
commitde5b46107c891eba3c3b0f9f1e7ffd7d277611a7
tree7c2d9c161c2ffd8725f1db1f64529a4760b4f37d
parentebae797c82a74cfbdc6acbb1a6bf977f7369e51b
iflib: fix isc_rxd_flush call in netmap_fl_refill()

The semantic of the pidx argument of isc_rxd_flush() is the
last valid index of in the free list, rather than the next
index to be published. However, netmap was still using the
old convention. While there, also refactor the netmap_fl_refill()
to simplify a little bit and add an assertion.

MFC after: 2 weeks
sys/net/iflib.c