mbox series

[iproute2-next,v2,0/8] Extend flush command to support VXLAN attributes

Message ID 20231017105532.3563683-1-amcohen@nvidia.com (mailing list archive)
Headers show
Series Extend flush command to support VXLAN attributes | expand

Message

Amit Cohen Oct. 17, 2023, 10:55 a.m. UTC
The merge commit f84e3f8cced9 ("Merge branch 'bridge-fdb-flush' into next")
added support for fdb flushing.

The kernel was extended to support flush for VXLAN device, so the
"bridge fdb flush" command should support new attributes.

Add support for flushing FDB entries based on the following:
* Source VNI
* Nexthop ID
* Destination VNI
* Destination Port
* Destination IP
* 'router' flag

With this set, flush works with attributes which are relevant for VXLAN
FDBs, for example:

$ bridge fdb flush dev vx10 vni 5000 dst 192.2.2.1
< flush all vx10 entries with VNI 5000 and destination IP 192.2.2.1 >

There are examples for each attribute in the respective commit messages.

Patch set overview:
Patch #1 prepares the code for adding support for 'port' keyword
Patches #2-#7 add support for new keywords in flush command
Patch #8 adds a note in man page

v2:
	* Print 'nhid' instead of 'id' in the error in patch #3
	* Use capital letters for 'ECMP' in man page in patch #3

Amit Cohen (8):
  bridge: fdb: rename some variables to contain 'brport'
  bridge: fdb: support match on source VNI in flush command
  bridge: fdb: support match on nexthop ID in flush command
  bridge: fdb: support match on destination VNI in flush command
  bridge: fdb: support match on destination port in flush command
  bridge: fdb: support match on destination IP in flush command
  bridge: fdb: support match on [no]router flag in flush command
  man: bridge: add a note about using 'master' and 'self' with flush

 bridge/fdb.c      | 88 ++++++++++++++++++++++++++++++++++++++++-------
 man/man8/bridge.8 | 53 +++++++++++++++++++++++++++-
 2 files changed, 127 insertions(+), 14 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Oct. 20, 2023, 3:50 p.m. UTC | #1
Hello:

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

On Tue, 17 Oct 2023 13:55:24 +0300 you wrote:
> The merge commit f84e3f8cced9 ("Merge branch 'bridge-fdb-flush' into next")
> added support for fdb flushing.
> 
> The kernel was extended to support flush for VXLAN device, so the
> "bridge fdb flush" command should support new attributes.
> 
> Add support for flushing FDB entries based on the following:
> * Source VNI
> * Nexthop ID
> * Destination VNI
> * Destination Port
> * Destination IP
> * 'router' flag
> 
> [...]

Here is the summary with links:
  - [iproute2-next,v2,1/8] bridge: fdb: rename some variables to contain 'brport'
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=c1904631bb84
  - [iproute2-next,v2,2/8] bridge: fdb: support match on source VNI in flush command
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=69b0310e82c6
  - [iproute2-next,v2,3/8] bridge: fdb: support match on nexthop ID in flush command
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=f3c34db4be1d
  - [iproute2-next,v2,4/8] bridge: fdb: support match on destination VNI in flush command
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=9107073a78e4
  - [iproute2-next,v2,5/8] bridge: fdb: support match on destination port in flush command
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=1b429388aaa3
  - [iproute2-next,v2,6/8] bridge: fdb: support match on destination IP in flush command
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=994bf05ee265
  - [iproute2-next,v2,7/8] bridge: fdb: support match on [no]router flag in flush command
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=958eecd2d05a
  - [iproute2-next,v2,8/8] man: bridge: add a note about using 'master' and 'self' with flush
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=734a82a15e1a

You are awesome, thank you!