]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Do not configure VID for sub-port RIFs
authorAmit Cohen <amcohen@nvidia.com>
Mon, 4 Jul 2022 06:11:31 +0000 (09:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jul 2022 08:56:57 +0000 (09:56 +0100)
commitf799eeb8cb0a01108ff0023620606e3772bcaf5f
tree70a73d38d4ee08e2f5882980c88cffab420fceef
parentdc28c607282a42f8c23db5552944d6858f1bcd4e
mlxsw: spectrum_router: Do not configure VID for sub-port RIFs

The field 'vid' in RITR is reserved when unified bridge model is used
and the RIF's type is sub-port RIF. Instead, ingress VID is configured via
SVFA and egress VID is configured via REIV.

Set 'vid' to zero in RITR register for sub-port RIF when unified bridge
model is used.

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_router.c