]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Configure egress FID classification after routing
authorAmit Cohen <amcohen@nvidia.com>
Mon, 4 Jul 2022 06:11:32 +0000 (09:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jul 2022 08:56:57 +0000 (09:56 +0100)
commitc5eba032160fb6fc872fddfccaae9bcefc975776
tree99e12522539a8296fe9ddf79fad5d4e9162a211d
parentf799eeb8cb0a01108ff0023620606e3772bcaf5f
mlxsw: Configure egress FID classification after routing

After routing, a packet needs to perform an L2 lookup using the DMAC it got
from the routing and a FID. In unified bridge model, the egress FID
configuration needs to be performed by software.

It is configured by RITR for both sub-port RIFs and FID RIFs. Currently
FID RIFs already configure eFID. Add eFID configuration for sub-port RIFs.

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