]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dpaa2-switch: unify the FDB update logic in dpaa2_switch_port_set_fdb()
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 10 Jun 2026 15:09:12 +0000 (18:09 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sun, 14 Jun 2026 00:50:51 +0000 (17:50 -0700)
commit7aae797a003ebb7a020eb0b5eda1b2b6355e4f7b
treee540d223d44b4671151e11ef9d044d4e9c970404
parent2230a2e62251ddd8b0c02a2ebf27080fd8e730be
dpaa2-switch: unify the FDB update logic in dpaa2_switch_port_set_fdb()

For both the join and leave paths, the logic goes through the following
steps: determines which FDB should be used on a port after the current
changeupper change, populate the private port structures with the new
FDB and, if necessary, make as not used the old FDB.
Instead of having two distinct paths inside the
dpaa2_switch_port_set_fdb() for linking=true and linking=false, unify
them. This will hopefully help in making this function easier to read.

No behavior changes are expected.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://patch.msgid.link/20260610150912.1788482-6-ioana.ciornei@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c