diff options
| author | Kevin Bowling <kbowling@FreeBSD.org> | 2026-07-28 11:20:08 +0000 |
|---|---|---|
| committer | Kevin Bowling <kbowling@FreeBSD.org> | 2026-07-31 11:36:16 +0000 |
| commit | 8d1d32942b810d613be45ea78939872711803c3b (patch) | |
| tree | 0a85454553f7a4b074c68e2cfddf08bb3783a80f | |
| parent | 9fc83caf48e710c3f6457cab4bdb5e6c76e8be51 (diff) | |
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
| -rw-r--r-- | sys/dev/ixgbe/if_sriov.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |
