• Petr Machata's avatar
    vxlan: Add hardware FDB learning · 5728ae0d
    Petr Machata authored
    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: default avatarPetr Machata <petrm@mellanox.com>
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    5728ae0d
switchdev.h 6.73 KB