mbox series

[iproute2-next,00/10] bridge: fdb: add extended flush support

Message ID 20220608122921.3962382-1-razor@blackwall.org (mailing list archive)
Headers show
Series bridge: fdb: add extended flush support | expand

Message

Nikolay Aleksandrov June 8, 2022, 12:29 p.m. UTC
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(-)

Comments

patchwork-bot+netdevbpf@kernel.org June 10, 2022, 3:10 p.m. UTC | #1
Hello:

This series was applied to iproute2/iproute2-next.git (main)
by David Ahern <dsahern@kernel.org>:

On Wed,  8 Jun 2022 15:29:11 +0300 you wrote:
> 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)
> 
> [...]

Here is the summary with links:
  - [iproute2-next,01/10] bridge: fdb: add new flush command
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=6e1ca489c5a2
  - [iproute2-next,02/10] bridge: fdb: add flush vlan matching
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=d9c15896f1d3
  - [iproute2-next,03/10] bridge: fdb: add flush port matching
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=bb9e453c1406
  - [iproute2-next,04/10] bridge: fdb: add flush [no]permanent entry matching
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=988c31980750
  - [iproute2-next,05/10] bridge: fdb: add flush [no]static entry matching
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=0f6c81a63c50
  - [iproute2-next,06/10] bridge: fdb: add flush [no]dynamic entry matching
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=8198f75073ed
  - [iproute2-next,07/10] bridge: fdb: add flush [no]added_by_user entry matching
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=ef5425739fb8
  - [iproute2-next,08/10] bridge: fdb: add flush [no]extern_learn entry matching
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=b78036468886
  - [iproute2-next,09/10] bridge: fdb: add flush [no]sticky entry matching
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=259795676e90
  - [iproute2-next,10/10] bridge: fdb: add flush [no]offloaded entry matching
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=4a4e32a92b56

You are awesome, thank you!