]> git.ipfire.org Git - thirdparty/iproute2.git/commit
Merge branch 'bridge-fdb-flush' into next
authorDavid Ahern <dsahern@kernel.org>
Fri, 10 Jun 2022 15:02:29 +0000 (09:02 -0600)
committerDavid Ahern <dsahern@kernel.org>
Fri, 10 Jun 2022 15:02:29 +0000 (09:02 -0600)
commitf84e3f8cced949e7d81cba1e67e1a6d3ec92d317
tree229683c0b9bd605415b704a193ee03af3024b49a
parentcef46213d5ddbaa507b277878394d6a535dc22cc
parent4a4e32a92b56a94c9192dbdcb6e504edf58d11d6
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 <dsahern@kernel.org>