ixgbe: Reject Flow Director with SR-IOV
The iflib Flow Director path does not assign filters using the absolute queue and pool identifiers required by SR-IOV. Reject the combination during preflight validation rather than allowing an unsupported configuration to alter the PF receive path. The loader tunable is fixed before VFs can be created, so validation also prevents the reverse ordering of this combination. (cherry picked from commit c017bceda48c766780ab1d2239b296242fcf9cf2)
This commit is contained in:
parent
b2f13be38b
commit
fcfb56b513
2 changed files with 7 additions and 1 deletions
|
|
@ -29,7 +29,7 @@
|
|||
.\"
|
||||
.\" * Other names and brands may be claimed as the property of others.
|
||||
.\"
|
||||
.Dd August 7, 2026
|
||||
.Dd August 8, 2026
|
||||
.Dt IX 4
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
|
@ -168,6 +168,7 @@ Enable Flow Director.
|
|||
Flow Director directs Ethernet packets to the core where the
|
||||
packet consuming process, application, container,
|
||||
or microservice is running.
|
||||
SR-IOV configuration is rejected when Flow Director is enabled.
|
||||
.It Va hw.ix.enable_rss
|
||||
Enable Receive-Side Scaling (RSS).
|
||||
When RSS is enabled, all of the receive data processing for
|
||||
|
|
|
|||
|
|
@ -1698,6 +1698,11 @@ ixgbe_iov_validate(struct ixgbe_softc *sc, u16 num_vfs)
|
|||
if (sc->vfs != NULL || sc->vf_mac_filters != NULL ||
|
||||
(sc->feat_en & IXGBE_FEATURE_SRIOV))
|
||||
return (EBUSY);
|
||||
if (sc->feat_en & IXGBE_FEATURE_FDIR) {
|
||||
device_printf(sc->dev,
|
||||
"Flow Director is not supported with SR-IOV\n");
|
||||
return (ENOTSUP);
|
||||
}
|
||||
if (sc->intr_type != IFLIB_INTR_MSIX) {
|
||||
device_printf(sc->dev, "SR-IOV requires MSI-X\n");
|
||||
return (ENOTSUP);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue