From: David Ahern Date: Fri, 10 Jun 2022 15:02:29 +0000 (-0600) Subject: Merge branch 'bridge-fdb-flush' into next X-Git-Tag: v6.0.0~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f84e3f8cced9;p=thirdparty%2Fiproute2.git Merge branch 'bridge-fdb-flush' into next Nikolay Aleksandrov says: ==================== Hi, This set adds support for the new bulk delete flag to allow fdb flushing for specific entries which are matched based on the supplied options. The new bridge fdb subcommand is "flush", and as can be seen from the commits it allows to delete entries based on many different criteria: - matching vlan - matching port - matching all sorts of flags (combinations are allowed) There are also examples for each option in the respective commit messages. Examples: $ bridge fdb flush dev swp2 master vlan 100 dynamic [ delete all dynamic entries with port swp2 and vlan 100 ] $ bridge fdb flush dev br0 vlan 1 static [ delete all static entries in br0's fdb table ] $ bridge fdb flush dev swp2 master extern_learn nosticky [ delete all entries with port swp2 which have extern_learn set and don't have the sticky flag set ] $ bridge fdb flush dev br0 brport br0 vlan 100 permanent [ delete all entries pointing to the bridge itself with vlan 100 ] $ bridge fdb flush dev swp2 master nostatic nooffloaded [ delete all entries with port swp2 which are not static and not offloaded ] If keyword is specified and after that nokeyword is specified obviously the nokeyword would override keyword. ==================== Signed-off-by: David Ahern --- f84e3f8cced949e7d81cba1e67e1a6d3ec92d317