mlxsw: reg: Add Switch Port VLAN Classification Register
authorAmit Cohen <amcohen@nvidia.com>
Sun, 29 Nov 2020 12:53:59 +0000 (14:53 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Dec 2020 23:21:12 +0000 (15:21 -0800)
commit7e9a6620d5c3a9ac048d2cb5d1d116385ef31877
treeb1c7aa13b2e23ae87e344f91986c6ccdcf238f31
parentac6e918554add29d004a08bd5c1102524287403c
mlxsw: reg: Add Switch Port VLAN Classification Register

SPVC configures the port to identify packets as untagged / single tagged /
double tagged packets based on the packet EtherTypes.

It will be used to classify 802.1q packets as untagged and 802.1ad packets
as tagged when received by ports member in a 802.1ad bridge.

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/reg.h