git: a01c7081fef6 - main - vtnet: use CURVNET_SET() instead of CURVNET_SET_QUIET()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 18 Apr 2024 14:59:54 UTC
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=a01c7081fef671bd59e9a597883e4c1cd1f16ad5 commit a01c7081fef671bd59e9a597883e4c1cd1f16ad5 Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2024-04-18 14:58:00 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2024-04-18 14:58:00 +0000 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: 3f2b9607756d0f92ca29c844db0718b313a06634 --- sys/dev/virtio/network/if_vtnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c index 5b854ad6cbb7..9c14e688f364 100644 --- a/sys/dev/virtio/network/if_vtnet.c +++ b/sys/dev/virtio/network/if_vtnet.c @@ -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;