mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
bridge: Add SWITCHDEV_FDB_FLUSH_TO_BRIDGE notifier
so the switchdev can notifiy the bridge to flush non-permanent fdb entries for this port. This is useful whenever the hardware fdb of the switchdev is reset, but the netdev and the bridgeport are not deleted. Note that this has the same effect as the IFLA_BRPORT_FLUSH attribute. CC: Jiri Pirko <jiri@resnulli.us> CC: Ivan Vecera <ivecera@redhat.com> CC: Roopa Prabhu <roopa@nvidia.com> CC: Nikolay Aleksandrov <nikolay@nvidia.com> Signed-off-by: Alexandra Winter <wintera@linux.ibm.com> Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com> Acked-by: Ivan Vecera <ivecera@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
10a6cfc0fc
commit
d05e8e68b0
2 changed files with 6 additions and 0 deletions
|
@ -203,6 +203,7 @@ enum switchdev_notifier_type {
|
|||
SWITCHDEV_FDB_ADD_TO_DEVICE,
|
||||
SWITCHDEV_FDB_DEL_TO_DEVICE,
|
||||
SWITCHDEV_FDB_OFFLOADED,
|
||||
SWITCHDEV_FDB_FLUSH_TO_BRIDGE,
|
||||
|
||||
SWITCHDEV_PORT_OBJ_ADD, /* Blocking. */
|
||||
SWITCHDEV_PORT_OBJ_DEL, /* Blocking. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue