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

Add flush support to match entries with or without (if "no" is
prepended) sticky flag.

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

$ bridge fdb flush dev br0 nosticky
This will delete all entries except the ones with sticky flag 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