From nobody Fri Jul 31 11:36:48 2026 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 4hBPDQ3nQwz6mb0S for ; Fri, 31 Jul 2026 11:36: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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hBPDQ0XKnz3DCP for ; Fri, 31 Jul 2026 11:36:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785497814; 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=5zByKqzi8hr3kcp4M4MMq9Hza/Y0jgZh87kuzLLd8Jo=; b=jZnP6sQ93vcGUJLEak0Utd0LgUm1j0m1SA+cWEXq4Nq68nXUBcQe3HyUb+hGinIzeZ8CTY qkpdtA8JUm5d2fcmubVRlaAmXgwZehpaFChltmDUXWsRWCnWq40iOh16IRFAU/D+kMxepL 0aAHKF2Pl4v+Qt2I9e14kr8N2DPpBZmdCS98u//cgf5tAHmyvoe+aQSBiEHwtBqJDqDNqt 4D78+aoCR5wu8WVn2eZkp3rbULo3EDaJ2HqrThmoanrE3cSyZ3iiC/Utx4cbpoEu1m1ata qJDF+Et3wDAecRLNY2lxSME0JIOuA4zSqLW+6eigMjVVG3xYagkyhVeYrS2TCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785497814; a=rsa-sha256; cv=none; b=PNESDDqBz2nOg+N24bt9XUVMhEsz7giRssdnERd86cogRVU2niFW41GFqnsAJ7pvikPctr 6qRYQ7xGXZuD76w+Dl0MQIMscbqKL5hxYtLk/N20AypK8BDxMNUM3cEiCrX5G98hJMyNAl bb5k3ar4rr/iGf1likf5FnAxndpCI3ucnq7U2yqr44yfPvIKCW5QDU2kGaSxMnaEJrao8V fNLlSu5dRJWAZV39HZoT0vDnqMWssSDLLtJzxoSwWmGCuoNZnH9cyDb2HuJFtwFp++JGOW dR8bYNlPUKBtfl4n23mMG/ZWx9wz3H2AjPNN8lHfVAsbAwrqxdNJAWflJbgg9A== 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=1785497814; 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=5zByKqzi8hr3kcp4M4MMq9Hza/Y0jgZh87kuzLLd8Jo=; b=BNh9fzHyQEOpFJQH8Sxk9bGhlxDkwvaf7mxwMeyJL9FCzHFH3ZRwifnW5JNLFz6iqOMjGV tQNit7DG4f5cMS8ec2XELPO3oa6MRkzZ6+50vteaBfd+tZZRAThEtzpECPCjo4zjjm35eF fkAGWhffZGIZtmKZx9kq3lawSw5zZkPGgSraYmVPfoQLYs3766okeR7FXoXuDdDOWr0Tnf s453kEfS+yGQRy4a9kzGbcV1q+FETel/I07qyISODskzN9wGZl5dbuGvvw09mnt4L/DxPq J95f0uP7ARAeY4oeROKYzkMF73Uxlh6EigG0BZ/TdGgOvYN5UvmEgxHoMHXcUw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hBPDP6b49zxkH for ; Fri, 31 Jul 2026 11:36:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3efea by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 31 Jul 2026 11:36:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 8d1d32942b81 - main - ixgbe: check negotiated API for VF queue query 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8d1d32942b810d613be45ea78939872711803c3b Auto-Submitted: auto-generated Date: Fri, 31 Jul 2026 11:36:48 +0000 Message-Id: <6a6c88d0.3efea.13eadd33@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=8d1d32942b810d613be45ea78939872711803c3b commit 8d1d32942b810d613be45ea78939872711803c3b Author: Kevin Bowling AuthorDate: 2026-07-28 11:20:08 +0000 Commit: Kevin Bowling CommitDate: 2026-07-31 11:36:16 +0000 ixgbe: check negotiated API for VF queue query The GET_QUEUES handler switches on msg[0], which contains the mailbox command rather than the negotiated API version. It therefore cannot reject API 1.0 or an unnegotiated VF as intended. Switch on the API version stored for the VF. MFC after: 1 week --- sys/dev/ixgbe/if_sriov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ixgbe/if_sriov.c b/sys/dev/ixgbe/if_sriov.c index 8230464bd9bc..c822303a4067 100644 --- a/sys/dev/ixgbe/if_sriov.c +++ b/sys/dev/ixgbe/if_sriov.c @@ -553,7 +553,7 @@ ixgbe_vf_get_queues(struct ixgbe_softc *sc, struct ixgbe_vf *vf, hw = &sc->hw; /* GET_QUEUES is not supported on pre-1.1 APIs. */ - switch (msg[0]) { + switch (vf->api_ver) { case IXGBE_API_VER_1_0: case IXGBE_API_VER_UNKNOWN: ixgbe_send_vf_failure(sc, vf, msg[0]);