diff options
| author | Petr Machata <[email protected]> | 2018-10-17 08:53:22 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-10-18 00:45:08 +0000 |
| commit | 9a99735317866e821c75f957fc85c63d049d330c (patch) | |
| tree | fff45955da03997f6e2eddaec8811e4bad5aeb09 /net/unix/af_unix.c | |
| parent | net: Add netif_is_vxlan() (diff) | |
| download | kernel-9a99735317866e821c75f957fc85c63d049d330c.tar.gz kernel-9a99735317866e821c75f957fc85c63d049d330c.zip | |
vxlan: Add switchdev notifications
When offloading VXLAN devices, drivers need to know about events in
VXLAN FDB database. Since VXLAN models a bridge, it is natural to
distribute the VXLAN FDB notifications using the pre-existing switchdev
notification mechanism.
To that end, introduce two new notification types:
SWITCHDEV_VXLAN_FDB_ADD_TO_DEVICE and SWITCHDEV_VXLAN_FDB_DEL_TO_DEVICE.
Introduce a new function, vxlan_fdb_switchdev_call_notifiers() to send
the new notifier types, and a struct switchdev_notifier_vxlan_fdb_info
to communicate the details of the FDB entry under consideration.
Invoke the new function from vxlan_fdb_notify().
Signed-off-by: Petr Machata <[email protected]>
Signed-off-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
