mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 14:31:46 +00:00
vxlan: Add hardware FDB learning
In order to allow devices to signal learning events to VXLAN, introduce two new switchdev messages: SWITCHDEV_VXLAN_FDB_ADD_TO_BRIDGE and SWITCHDEV_VXLAN_FDB_DEL_TO_BRIDGE. Listen to these notifications in the vxlan driver. The FDB entries learned this way have an NTF_EXT_LEARNED flag, and only entries marked as such can be unlearned by the _DEL_ event. They are also immediately marked as offloaded. This is the same behavior that the bridge driver observes. Signed-off-by: Petr Machata <petrm@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0ec566aacc
commit
5728ae0d17
2 changed files with 74 additions and 1 deletions
|
@ -146,6 +146,8 @@ enum switchdev_notifier_type {
|
|||
SWITCHDEV_FDB_DEL_TO_DEVICE,
|
||||
SWITCHDEV_FDB_OFFLOADED,
|
||||
|
||||
SWITCHDEV_VXLAN_FDB_ADD_TO_BRIDGE,
|
||||
SWITCHDEV_VXLAN_FDB_DEL_TO_BRIDGE,
|
||||
SWITCHDEV_VXLAN_FDB_ADD_TO_DEVICE,
|
||||
SWITCHDEV_VXLAN_FDB_DEL_TO_DEVICE,
|
||||
SWITCHDEV_VXLAN_FDB_OFFLOADED,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue