]> git.ipfire.org Git - thirdparty/linux.git/commit
dpaa2-switch: cleanup the egress flood of an unused FDB
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 19 Dec 2023 11:59:33 +0000 (13:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Dec 2023 01:18:59 +0000 (01:18 +0000)
commit71150d9447c0f4d46403dca7342d149b626f0bc4
tree23de35a7a421e7bb374fe49a32bdcc454e312b6b
parent6d46a4f10532ce59e88a58199b666cebf6625ec7
dpaa2-switch: cleanup the egress flood of an unused FDB

In case a DPAA2 switch interface joins a bridge, the FDB used on the
port will be changed to the one associated with the bridge. What this
means exactly is that any VLAN installed on the port will need to be
removed and then installed back so that it points to the new FDB.

Once this is done, the previous FDB will become unused (no VLAN to
point to it). Even though no traffic will reach this FDB, it's best to
just cleanup the state of the FDB by zeroing its egress flood domain.

Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c