vtnet: use CURVNET_SET() instead of CURVNET_SET_QUIET()

We don't expect the VNET context to be set for virtqueue neither
for taskqueue handlers.

Suggested by:	zec
Fixes:		3f2b960775
This commit is contained in:
Gleb Smirnoff 2024-04-18 07:58:00 -07:00
parent e991acd5d0
commit a01c7081fe

View file

@ -2086,7 +2086,7 @@ vtnet_rxq_eof(struct vtnet_rxq *rxq)
VTNET_RXQ_LOCK_ASSERT(rxq);
CURVNET_SET_QUIET(if_getvnet(ifp));
CURVNET_SET(if_getvnet(ifp));
while (count-- > 0) {
struct mbuf *m;
uint32_t len, nbufs, adjsz;