vxlan: Add vxlan_fdb_clear_offload()
authorPetr Machata <petrm@mellanox.com>
Fri, 7 Dec 2018 19:55:06 +0000 (19:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Dec 2018 20:59:08 +0000 (12:59 -0800)
commite5ff4b1952893fb75aa75067fce31c8567341ed7
treea07859a0b365af97fb147a696fbc5c577f0f6041
parent4f89f5b5353cae2e056713e823819f24cad92bc3
vxlan: Add vxlan_fdb_clear_offload()

When a driver unoffloads all FDB entries en bloc, it's inefficient to
send the switchdev notification one by one. Add a helper that walks the
FDB table, unsetting the offload flag on RDST with a given VNI.

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/vxlan.h