mlxsw: spectrum_switchdev: Create common function for joining VxLAN to VLAN-aware...
authorAmit Cohen <amcohen@nvidia.com>
Tue, 8 Dec 2020 09:22:44 +0000 (11:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Dec 2020 23:45:56 +0000 (15:45 -0800)
commite2c777d7e3ef506b80fc9c3ac2045780d0959ec6
treef9e194c709e1676d9b5bbbb24566176b762d058b
parent598874c8e9409b25377b9d07ee8124f6bbab4d86
mlxsw: spectrum_switchdev: Create common function for joining VxLAN to VLAN-aware bridge

The code in mlxsw_sp_bridge_8021q_vxlan_join() can be used also for
802.1ad bridge.

Move the code to function called mlxsw_sp_bridge_vlan_aware_vxlan_join()
and call it from mlxsw_sp_bridge_8021q_vxlan_join() to enable code
reuse.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c