]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: call SWITCHDEV_FDB_OFFLOADED for the orig_dev
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 23 Feb 2022 14:00:52 +0000 (16:00 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Feb 2022 05:31:43 +0000 (21:31 -0800)
commit89ba13a7309893ae3103ec541b9eca3f0c322523
tree6f831752f07bbb8b2adc6b314b18a51f915e9b90
parentadda64a294198c0b2ed0185c98d2ba560fcee6e6
net: dsa: call SWITCHDEV_FDB_OFFLOADED for the orig_dev

When switchdev_handle_fdb_event_to_device() replicates a FDB event
emitted for the bridge or for a LAG port and DSA offloads that, we
should notify back to switchdev that the FDB entry on the original
device is what was offloaded, not on the DSA slave devices that the
event is replicated on.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/dsa_priv.h
net/dsa/slave.c