mlxsw: spectrum: Only treat 802.1q packets as tagged packets
authorAmit Cohen <amcohen@nvidia.com>
Sun, 29 Nov 2020 12:54:01 +0000 (14:54 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Dec 2020 23:21:12 +0000 (15:21 -0800)
commita2ef3ae15834183a43016cff2df3c51ea5bb445f
treeceeb4adbdad5a1cfde9639b10ab420f78b8db465
parent2a5a290d6d941ad51ce78314d5fcd76c1f9184a8
mlxsw: spectrum: Only treat 802.1q packets as tagged packets

By default, the device considers both 802.1ad and 802.1q packets as tagged,
but this is not supported by the driver. It only supports VLAN and bridge
devices that use 802.1q protocol.

Instead, configure the device to only treat 802.1q packets as tagged
packets.

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: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c