On Thu, Sep 11, 2025 at 09:31:06AM +0300, Tariq Toukan wrote: > From: Shay Drory <shayd@xxxxxxxxxx> > > Extend the devcom framework to support namespace-aware components. > > The existing devcom matching logic was based solely on numeric keys, > limiting its use to the global (init_net) scope or requiring clients > to ignore namespaces altogether, both of which are incorrect in > multi-namespace environments. > > This patch introduces namespace support by allowing devcom clients to > provide a namespace match attribute. The devcom pairing mechanism is > updated to compare the namespace, enabling proper isolation and > interaction of components across different net namespaces. > > With this change, components that require namespace aware pairing, > such as SD groups or LAG, can now work correctly in multi-namespace > scenarios. In particular, this opens the way to support hardware LAG > within a net namespace. > > Signed-off-by: Shay Drory <shayd@xxxxxxxxxx> > Reviewed-by: Mark Bloch <mbloch@xxxxxxxxxx> > Reviewed-by: Parav Pandit <parav@xxxxxxxxxx> > Signed-off-by: Tariq Toukan <tariqt@xxxxxxxxxx> I've reviewed this with the assumptions that; mlx5_core_net() returns the devlink net namespace, and; that the devlink net namespace is fixed. With those assumptions, this looks good to me. Reviewed-by: Simon Horman <horms@xxxxxxxxxx>