From nobody Thu Apr 18 14:59:54 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VL1CZ2qVdz5H1xk; Thu, 18 Apr 2024 14:59:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VL1CZ2Cccz4fKx; Thu, 18 Apr 2024 14:59:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713452394; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yHonQKysV7c25r5OVGhUtDi/6VnSQsdpG7dTk01bLRc=; b=NBb7du+QPXnzvrw25DuQCc044P13awFaReEutPZWYlsCe+P3jOHOkM0qDbOP5kAA0120qD 7FlqAFu4JS80LLgcYLI/N2POiS8HxG1nARh2pMatrCisO2tWI3MVSYRbf0GywDfDQglFKc /IJ6IpoUa9N0V4gB7GC4DTW95j/1rU11u3GTTNiV7PmmkqfTc9SJDvnAUSvfrGCP029W38 o92/p561/yBI0XaDg6txczelbdl7TAptVZxjw+e+S3KqkNqnGiBLTJdNRt9DfwttZskbGf 1rUSpWCusAm2wau4hramoKyugW6VnCHI+xGuVILtTkN/aUoYMbYHh6fINn0hYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713452394; a=rsa-sha256; cv=none; b=F985Ztnhzwxk7ujWhbC6gN+G/v+1edjnLTjEklZ9pXi9M8F64UodIVcicXVhsskAYqw49b dFxAA/i4EOpxFMyNvYot9AbD+dscHJNtHpAYWm5FXSARrqgyT+ROV0k2BPg/8IuhGtKlbW UwpgpnfkYYSddeJniXS9hXpLMNLm+EoMvlde7D68e4z+d8XD1uyBqG2AnoprIcw6SjEPoB zASwP+kGqCMXSBUqZuWleYeElyU6xHig0wMQsx6y5Pptk0Dj4IqJe66tFEKHLfi8I0FG9g 4LMScmFjWQavofPWnh1gm5FktcPuRxh+Tc3KjdMeI38LeDaodKVZYpe2TJsdmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713452394; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yHonQKysV7c25r5OVGhUtDi/6VnSQsdpG7dTk01bLRc=; b=XvCqBm8EVph90NQKOs/0XPCX04LbYGslR8P9PX2M2J9V4A+CIns/qaEQikL14CPpsAqfwj Ab9VcpjKc3jsBQSZuAS9OlIKiFeGKnJmQzxoaQcQo70wuoSW6UTiaVz6XmlwVn2o+5EpT5 wVETG9oWcn5SqR3UI83XKkAn6hqvH3rSzhyaecy68cccQKvX5hv4xcCo+2HawGVIOmqcVz pXbvY0klilzDPcpovWa7M6il+IX4ymli29kb3w1kmICzTdVb11tiqVX4YOSX+ZfTzuVutx sH/H3gvRfSJOv315UMOjxgJb0Q1MWtMm4QGs0X/5DuAOUHKSlF/W9L2UlG/13w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VL1CZ1pyHzDp4; Thu, 18 Apr 2024 14:59:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43IExsdT077816; Thu, 18 Apr 2024 14:59:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43IExsf5077813; Thu, 18 Apr 2024 14:59:54 GMT (envelope-from git) Date: Thu, 18 Apr 2024 14:59:54 GMT Message-Id: <202404181459.43IExsf5077813@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: a01c7081fef6 - main - vtnet: use CURVNET_SET() instead of CURVNET_SET_QUIET() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a01c7081fef671bd59e9a597883e4c1cd1f16ad5 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=a01c7081fef671bd59e9a597883e4c1cd1f16ad5 commit a01c7081fef671bd59e9a597883e4c1cd1f16ad5 Author: Gleb Smirnoff AuthorDate: 2024-04-18 14:58:00 +0000 Commit: Gleb Smirnoff 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;