From nobody Fri Jul 31 11:36:48 2026 X-Original-To: dev-commits-src-main@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 4hBPDK195xz6mb2t for ; Fri, 31 Jul 2026 11:36:49 +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 4hBPDK0g3Yz3DF3 for ; Fri, 31 Jul 2026 11:36:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785497809; 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=TVmrqG8t674HX7t4LpqRQFpCHTgcMLxF1WwjnLUz1lZ75Grba9XnrvecYSV4ESAZK+T4F+ TSp5NNDqoCpW6hCJRZ3qr6BWOUp0HUEbnlLORNtfVb87IuBV7GwvVGzcyZ9/1ZwaBVzyWR b6GSPPr02QyIaLKG6sWZIintU/wVBFhJE4DfI/py5l8mP4L67j5+zI6B0D+oKyL4fd898e L0lTX3NoKyKGk56gwknxvQ0LytTUkGETB4MxyryHkvraTcn+EgkQ+UPiLivCN9PSUsCbro pUzOtBRBsNjJaM5WHWzimsLq5k/gRXbvYDqoT/mVleCLsh6lAUDXreJKwhdS6g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785497809; a=rsa-sha256; cv=none; b=wxBeDSQ3qiuBpLeVt0z63Ys2ycDb3odt296j5OUlrph0glxZTeI7knkeoL4qTHUYGoMuWA Uo3MWBt+2oCSg9MCZw5Q6SGPfXUtk1epOnIRgKxwh8Em1tBUeE+qJJTS4Nvj6mvdib3LSm sSfneuohuH/rrS0aUwiPphLdkMU5DjsUdb0pBTaAx5aO6hwNgv19nsTQskpNzRKakq15di 8ppKVtVq6tcONRRkHKtf6vbzsoNLC0dHfD7acf/mEHW6jmTYS8QUlJY2QkmnMNqnYiSSt+ UkA/yhT0l33TZaKxPiFGq7Dnm3WtH7J6PTez8kF3wmihTRiEGklTEdjTNHeR8A== 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=1785497809; 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=E9qC4TAfG0D/9YbNCO+DRdlFpXdeiiDePfj3i4/+y9RB2e/6xQKBezJwGuBD3dLFEwzQrv gElHjgzrm4jSKw63TSuMETO/CQdBye5/inRWSvBa7jgDQeia1TgmMNmFA4H7Iv75c41FzP kCI+6m9eB17EbeUkYNf0iFcgUZVNo3fNgwCMcH1MbWkshma9TzgrlF2ftF6X24bi6SrdiY XjWIREMFzZF7POnTvSgD8FKzYlto1PZoRmzdzbPzdXbYOdc3VJX26v0OHwvCPB28+6ZiKl 79wKHU6E58ovMSbmdapdbgLhaa2H4cbgDoBfI7Fi5WrVpHK3j6XEBtQckShYrQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hBPDJ6ZzQzxkG for ; Fri, 31 Jul 2026 11:36:48 +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 the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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]);