]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0bbafe9cd373cfb88b53ae267e20b5bdf06e30c3
treea07859a0b365af97fb147a696fbc5c577f0f6041
parent5570e506feb1a9902e7bb50625fab671e3e50e88
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