]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: LAG, prepare for SD device integration
authorShay Drory <shayd@nvidia.com>
Sun, 31 May 2026 11:39:45 +0000 (14:39 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Jun 2026 00:42:20 +0000 (17:42 -0700)
commit14a47f55c8def9d677a4307bdce88b40255e8505
tree4470429e8538bc53c98766d1cde7f44d9cbf1d4a
parent2ca494dad9676301ecde1c9e214bfbf83d4c6326
net/mlx5: LAG, prepare for SD device integration

Socket Direct (SD) secondaries devices will participate in LAG, even
though they are silent. SD secondary devices share the same physical
port as their primary but are separate PCI functions that need to be
tracked alongside regular LAG ports.

Extend lag_func with a group_id field to identify SD group membership
and introduce a unified iterator that can filter by group. Add APIs
for registering SD secondary devices in an existing LAG.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260531113954.395443-6-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h