mlxsw: spectrum_router: Join RIFs of LAG upper VLANs
authorPetr Machata <petrm@nvidia.com>
Wed, 19 Jul 2023 11:01:26 +0000 (13:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Jul 2023 07:54:05 +0000 (08:54 +0100)
commitef59713c26b1c2a9b0b3a8c481b23335ce6d7183
tree7bb04cf6075057309131fe4c861808582947effd
parentec4643ca3d98c4a7a421f11b76c8a46223a1aa19
mlxsw: spectrum_router: Join RIFs of LAG upper VLANs

In the following patches, the requirement that ports be only enslaved to
masters without uppers, is going to be relaxed. It will therefore be
necessary to join not only RIF for the immediate LAG, as is currently the
case, but also RIFs for VLAN netdevices upper to the LAG.

In this patch, extend mlxsw_sp_netdevice_router_join_lag() to walk the
uppers of a LAG being joined, and also join any VLAN ones.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c