mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
switchdev: Add fdb.added_by_user to switchdev notifications
The following patch enables sending notifications also for events on FDB entries that weren't added by the user. Give the drivers the information necessary to distinguish between the two origins of FDB entries. To maintain the current behavior, have switchdev-implementing drivers bail out on notifications about non-user-added FDB entries. In case of mlxsw driver, allow a call to mlxsw_sp_span_respin() so that SPAN over bridge catches up with the changed FDB. Signed-off-by: Petr Machata <petrm@mellanox.com> Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Acked-by: Ivan Vecera <ivecera@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0e913f28ba
commit
816a3bed95
5 changed files with 18 additions and 4 deletions
|
@ -155,6 +155,7 @@ struct switchdev_notifier_fdb_info {
|
|||
struct switchdev_notifier_info info; /* must be first */
|
||||
const unsigned char *addr;
|
||||
u16 vid;
|
||||
bool added_by_user;
|
||||
};
|
||||
|
||||
static inline struct net_device *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue