]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: Add br_fdb_clear_offload()
authorPetr Machata <petrm@mellanox.com>
Fri, 7 Dec 2018 19:55:07 +0000 (19:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Dec 2018 20:59:08 +0000 (12:59 -0800)
commita6ce836fd4de8b2ae84373cb21892fb4b6245579
treefca00c929de803dcf1e8762ebda6bab60860a4c3
parent256d559da5b2a2b8cfccb6d0c78d2b60e313b492
bridge: Add br_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 unsets the
offload flag on FDB entries on a given bridge port and VLAN.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_bridge.h
net/bridge/br_fdb.c