E-Switch vport sharing & delegation
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest7 patches 1 replyApplied 7/7
- v27 patches 8 repliesSuperseded
- v17 patches 1 replySuperseded
Changes in v3 from the cover letter
- fix error handling, Simon.
- Remove redundant struct field comment, Simon.
- Add Reviewed-by: Simon Horman <[email protected]>
Patches in v3 All 7 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | net/mlx5: FS, Convert vport acls root namespaces to xarraydrivers/ drivers/ | +123 | 0 replies | Applied |
| 2/7 | net/mlx5: E-Switch, Move vport acls root namespaces creation to eswitchdrivers/ drivers/ drivers/ | +72 | 0 replies | Applied |
| 3/7 | net/mlx5: E-Switch, Add support for adjacent functions vports discoverydrivers/ drivers/ drivers/ +2 more | +251 | 1 reply | Applied |
| 4/7 | net/mlx5: E-Switch, Create acls root namespace for adjacent vportsdrivers/ | +8 | 0 replies | Applied |
| 5/7 | net/mlx5: E-Switch, Register representors for adjacent vportsdrivers/ drivers/ drivers/ | +43 | 0 replies | Applied |
| 6/7 | net/mlx5: E-switch, Set representor attributes for adjacent VFsdrivers/ drivers/ drivers/ | +26 | 0 replies | Applied |
| 7/7 | net/mlx5: {DR,HWS}, Use the cached vhca_id for this devicedrivers/ drivers/ | +14 | 0 replies | Applied |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Simon Horman |
|---|---|
| 1/7 | R-b |
| 2/7 | R-b |
| 3/7 | R-b |
| 4/7 | R-b |
| 5/7 | R-b |
| 6/7 | R-b |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next V3 0/7] E-Switch vport sharing & delegation
From: Saeed Mahameed <[email protected]>
v2->v3:
- fix error handling, Simon.
- Remove redundant struct field comment, Simon.
- Add Reviewed-by: Simon Horman <[email protected]>
v1->v2:
- rename goto labels after targets. Jakub.
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.
Adithya Jayachandran (2):
net/mlx5: E-Switch, Add support for adjacent functions vports
discovery
net/mlx5: E-switch, Set representor attributes for adjacent VFs
Saeed Mahameed (5):
net/mlx5: FS, Convert vport acls root namespaces to xarray net/mlx5: E-Switch, Move vport acls root namespaces creation to
eswitch
net/mlx5: E-Switch, Create acls root namespace for adjacent vports net/mlx5: E-Switch, Register representors for adjacent vports net/mlx5: {DR,HWS}, Use the cached vhca_id for this device
.../net/ethernet/mellanox/mlx5/core/Makefile | 2 +- .../mellanox/mlx5/core/esw/adj_vport.c | 209 ++++++++++++++++++ .../mellanox/mlx5/core/esw/devlink_port.c | 11 +- .../net/ethernet/mellanox/mlx5/core/eswitch.c | 131 ++++++++++- .../net/ethernet/mellanox/mlx5/core/eswitch.h | 17 ++ .../mellanox/mlx5/core/eswitch_offloads.c | 37 +++- .../net/ethernet/mellanox/mlx5/core/fs_core.c | 183 ++++++++------- .../net/ethernet/mellanox/mlx5/core/fs_core.h | 18 +- .../mellanox/mlx5/core/steering/hws/cmd.c | 34 +-- .../mellanox/mlx5/core/steering/sws/dr_cmd.c | 34 +-- 10 files changed, 500 insertions(+), 176 deletions(-) create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/esw/adj_vport.c
Signature · 1 line
2.50.1