]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
vxlan: Support marking RDSTs as offloaded
authorPetr Machata <petrm@mellanox.com>
Wed, 17 Oct 2018 08:53:26 +0000 (08:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 00:45:08 +0000 (17:45 -0700)
commit0efe11733356273d734cc2c5ab2dc6f5865cbeb6
tree345d52c20bc6b6b8af54ef067838d0749aff4d88
parent1941f1d6453a527ae8df59891da0319646608444
vxlan: Support marking RDSTs as offloaded

Offloaded bridge FDB entries are marked with NTF_OFFLOADED. Implement a
similar mechanism for VXLAN, where a given remote destination can be
marked as offloaded.

To that end, introduce a new event, SWITCHDEV_VXLAN_FDB_OFFLOADED,
through which the marking is communicated to the vxlan driver. To
identify which RDST should be marked as offloaded, an
switchdev_notifier_vxlan_fdb_info is passed to the listeners. The
"offloaded" flag in that object determines whether the offloaded mark
should be set or cleared.

When sending offloaded FDB entries over netlink, mark them with
NTF_OFFLOADED.

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>
drivers/net/vxlan.c
include/net/switchdev.h
include/net/vxlan.h