]> git.ipfire.org Git - thirdparty/iproute2.git/commit
bridge: fdb: add flush [no]permanent entry matching
authorNikolay Aleksandrov <razor@blackwall.org>
Wed, 8 Jun 2022 12:29:15 +0000 (15:29 +0300)
committerDavid Ahern <dsahern@kernel.org>
Fri, 10 Jun 2022 15:01:33 +0000 (09:01 -0600)
commit988c319807508ba6de79f22e859edc50aaaad171
tree8ee1ecd66484ec0463198abedb1cf2b1f0328882
parentbb9e453c14068c308f000cdcff98a4dd468358d5
bridge: fdb: add flush [no]permanent entry matching

Add flush support to match permanent or non-permanent entries if "no" is
prepended respectively.

Examples:
$ bridge fdb flush dev br0 permanent
This will delete all permanent entries in br0's fdb table.

$ bridge fdb flush dev br0 nopermanent
This will delete all entries except the permanent ones in br0's fdb
table.

Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
bridge/fdb.c
man/man8/bridge.8