mlxsw: spectrum: Add mlxsw_sp_port_egress_ethtype_set()
authorAmit Cohen <amcohen@nvidia.com>
Wed, 17 Mar 2021 10:35:25 +0000 (12:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Mar 2021 19:26:28 +0000 (12:26 -0700)
commit114a465d890a4fa2e3c0a49001cd47d3e804bf54
tree1eb5362dba0c2438fa9ec73445f506105f62990e
parentd8f4da73cea7438d95c6d6a54ec0a76dbccac02e
mlxsw: spectrum: Add mlxsw_sp_port_egress_ethtype_set()

A subsequent patch will cause decapsulated packets to have their EtherType
determined by the egress port. Add mlxsw_sp_port_egress_ethtype_set() which
will be called when a port joins an 802.1ad bridge, so that it will set an
802.1ad EtherType on decapsulated packets transmitted through it, instead
of the default 802.1q EtherType.

Signed-off-by: Amit Cohen <amcohen@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.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h