]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Merge branch 'e-switch-vport-sharing-delegation'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 2 Sep 2025 13:18:18 +0000 (15:18 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 2 Sep 2025 13:18:19 +0000 (15:18 +0200)
commitcd8a4cfa6bb43a441901e82f5c222dddc75a18a3
treebb9a429b9991ab559cad32dec4c605a09ccc8c85
parent48195dd18f0eb10879960196925f914ca2600806
parent0c2a02f3c066d4b50ebb66178843df83f33e4f1b
Merge branch 'e-switch-vport-sharing-delegation'

Saeed Mahameed says:

====================
E-Switch vport sharing & delegation

An mlx5 E-Switch FDB table can manage vports belonging to other sibling
physical functions, such as ECPF (ARM embedded cores) and Host PF (x86).
This enables a single source of truth for SDN software to manage network
pipelines from one host. While such functionality already exists in mlx5,
it is currently limited by static vport allocation,
meaning the number of vports shared between multi-host functions
must be known pre-boot.

This patchset enables delegated/external vports to be discovered
dynamically when switchdev mode is enabled, leveraging new firmware
capabilities for dynamic vport creation.

Adjacent functions that delegate their SR-IOV VFs to sibling PFs, can be
dynamically discovered on the sibling PF's switchdev mode enabling,
after sriov was enabled on the originating PF, allowing for more
flexible and scalable management in multi-host and ECPF-to-host
scenarios.

The patchset consists of the following changes:

- Refactoring of ACL root namespace handling: The storage of vport ACL root
  namespaces is converted from a linear array to an xarray, allowing dynamic
  creation of ACLs per individual vport.
- Improvements for vhca_id to vport mapping.
- Dynamic querying and creation of delegated functions/vports.
====================

Link: https://patch.msgid.link/20250829223722.900629-1-saeed@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>