Date: Thu, 18 Apr 2024 14:59:54 GMT From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: a01c7081fef6 - main - vtnet: use CURVNET_SET() instead of CURVNET_SET_QUIET() Message-ID: <202404181459.43IExsf5077813@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202404181459.43IExsf5077813>