]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Save EtherType as part of mlxsw_sp_nve_params
authorAmit Cohen <amcohen@nvidia.com>
Tue, 8 Dec 2020 09:22:45 +0000 (11:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Dec 2020 23:45:56 +0000 (15:45 -0800)
commit079e4b35b31b38ab6f55b63c6701329cf89054f7
tree1434377bae32003819ea93e7e3dd196d965363ae
parent040d4143224103a86e7850c6565130f34b9d879b
mlxsw: Save EtherType as part of mlxsw_sp_nve_params

Add EtherType field to mlxsw_sp_nve_params struct.
Set it when VxLAN device is added to bridge device.

This field is needed to configure which EtherType will be used when
VLAN is pushed at ingress of the tunnel port.

Use ETH_P_8021Q for tunnel port enslaved to 802.1d and 802.1q bridges.

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.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c