These are fixes for problems that are already there upstream, found
while working on the XLVF series for ice and iavf (more than 16 queue
pairs for a VF) [1]. XLVF builds on top of them, so I'm sending them
for net first.
Patch 1 fixes the queue count passed to the FW when ice moves VF queues
between ports of a bond: only the queues with a valid TEID are filled
in, but the command got the number of all of them. Reported by Sashiko
on XLVF v7.
Patch 2 takes vf->cfg_lock while ice changes the MSI-X vector count of
a VF, which could race with a VF reset started by the PF and oops.
Reported by Petr on XLVF v7, XLVF also extends this path.
Patch 3 makes the devlink dev messages fit any number of nested devlink
instances. ice already nests one for each subfunction in the devlink of
its PF, and XLVF will nest the VF devlinks there too.
Known, not addressed here, as XLVF does not depend on them: the MSI-X
change remaps the vectors of the other inactive VFs without their
vf->cfg_lock, and its fallback to the old vector count, after a failed
VSI rebuild, can fail too.
[1] https://lore.kernel.org/netdev/2026…@intel.com
Przemek Kitszel (3):
ice: move only the valid VF queues on LAG reclaim and reset rebuild
ice: lock VF config while changing its MSI-X vector count
devlink: make room for many nested instances in a dev message
Documentation/netlink/specs/devlink.yaml | 1 +
net/devlink/devl_internal.h | 2 +
net/devlink/netlink_gen.h | 1 +
drivers/net/ethernet/intel/ice/ice_lag.c | 4 +-
drivers/net/ethernet/intel/ice/ice_sriov.c | 7 ++++
net/devlink/core.c | 13 ++++++
net/devlink/dev.c | 48 +++++++++++++++++++---
net/devlink/netlink.c | 14 ++++++-
net/devlink/netlink_gen.c | 1 +
9 files changed, 82 insertions(+), 9 deletions(-)
--
2.51.1