]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Configure egress VID for unicast FDB entries
authorAmit Cohen <amcohen@nvidia.com>
Mon, 4 Jul 2022 06:11:27 +0000 (09:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jul 2022 08:56:57 +0000 (09:56 +0100)
commit2e2d5a910ca3d940bf7bfa36e5972869915bc93c
treec5e9375d6d34c98268751858e29d63168f40a365
parentfeb38d06fb7c9ef8e38b7fcfe97a1731194a43ea
mlxsw: Configure egress VID for unicast FDB entries

Using unified bridge model, firmware no longer configures the egress VID
"under the hood" and moves this responsibility to software.

For layer 2, this means that software needs to determine the egress VID
for both unicast (i.e., FDB) and multicast (i.e., MDB and flooding) flows.

Unicast FDB records and unicast LAG FDB records have new fields - "set_vid"
and "vid", set them. For records which point to router port, do not set
these fields.

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