bridge: fdb: add extended flush support
Status from this message: This series was applied to iproute2/iproute2-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | bridge: fdb: add new flush commandbridge/ man/ | +86 | 0 replies | |
| 2/10 | bridge: fdb: add flush vlan matchingbridge/ man/ | +21 | 0 replies | |
| 3/10 | bridge: fdb: add flush port matchingbridge/ man/ | +28 | 0 replies | |
| 4/10 | bridge: fdb: add flush [no]permanent entry matchingbridge/ man/ | +22 | 0 replies | |
| 5/10 | bridge: fdb: add flush [no]static entry matchingbridge/ man/ | +13 | 0 replies | |
| 6/10 | bridge: fdb: add flush [no]dynamic entry matchingbridge/ man/ | +13 | 0 replies | |
| 7/10 | bridge: fdb: add flush [no]added_by_user entry matchingbridge/ man/ | +19 | 0 replies | |
| 8/10 | bridge: fdb: add flush [no]extern_learn entry matchingbridge/ man/ | +13 | 0 replies | |
| 9/10 | bridge: fdb: add flush [no]sticky entry matchingbridge/ man/ | +14 | 0 replies | |
| 10/10 | bridge: fdb: add flush [no]offloaded entry matchingbridge/ man/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH iproute2-next 00/10] bridge: fdb: add extended flush support
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.
Thanks,
Nik
Nikolay Aleksandrov (10):
bridge: fdb: add new flush command
bridge: fdb: add flush vlan matching
bridge: fdb: add flush port matching
bridge: fdb: add flush [no]permanent entry matching
bridge: fdb: add flush [no]static entry matching
bridge: fdb: add flush [no]dynamic entry matching
bridge: fdb: add flush [no]added_by_user entry matching
bridge: fdb: add flush [no]extern_learn entry matching
bridge: fdb: add flush [no]sticky entry matching
bridge: fdb: add flush [no]offloaded entry matching
bridge/fdb.c | 142 +++++++++++++++++++++++++++++++++++++++++++++- man/man8/bridge.8 | 83 +++++++++++++++++++++++++++ 2 files changed, 224 insertions(+), 1 deletion(-)
Signature · 1 line
2.35.1