]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iflib: netmap: don't increment ifl_cidx on the wrong free list
authorVincenzo Maffione <vmaffione@FreeBSD.org>
Thu, 6 Aug 2020 21:32:25 +0000 (21:32 +0000)
committerVincenzo Maffione <vmaffione@FreeBSD.org>
Thu, 6 Aug 2020 21:32:25 +0000 (21:32 +0000)
commitee07345d20fca4196592d9ce11394de87ef2b67c
treeb07ed3ee03e013683021f1c40982f08cb31da193
parent7e6223b23f67a1d0e0cf47942f2117648bfb9f14
iflib: netmap: don't increment ifl_cidx on the wrong free list

Netmap only uses free list 0 to keep it consistent with its
one-to-one mapping between each netmap ring and a device RX
(or TX) queue.
However, the current iflib_netmap_rxsync() routine was
mistakenly updating the ifl_cidx field of both free lists.

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