netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2-next v2 0/8] Extend flush command to support VXLAN attributes
@ 2023-10-17 10:55 Amit Cohen
  2023-10-17 10:55 ` [PATCH iproute2-next v2 1/8] bridge: fdb: rename some variables to contain 'brport' Amit Cohen
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Amit Cohen @ 2023-10-17 10:55 UTC (permalink / raw)
  To: netdev; +Cc: dsahern, stephen, razor, mlxsw, roopa, Amit Cohen

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(-)

-- 
2.41.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-10-20 15:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-17 10:55 [PATCH iproute2-next v2 0/8] Extend flush command to support VXLAN attributes Amit Cohen
2023-10-17 10:55 ` [PATCH iproute2-next v2 1/8] bridge: fdb: rename some variables to contain 'brport' Amit Cohen
2023-10-17 10:55 ` [PATCH iproute2-next v2 2/8] bridge: fdb: support match on source VNI in flush command Amit Cohen
2023-10-17 10:55 ` [PATCH iproute2-next v2 3/8] bridge: fdb: support match on nexthop ID " Amit Cohen
2023-10-17 12:53   ` Nikolay Aleksandrov
2023-10-17 10:55 ` [PATCH iproute2-next v2 4/8] bridge: fdb: support match on destination VNI " Amit Cohen
2023-10-17 10:55 ` [PATCH iproute2-next v2 5/8] bridge: fdb: support match on destination port " Amit Cohen
2023-10-17 10:55 ` [PATCH iproute2-next v2 6/8] bridge: fdb: support match on destination IP " Amit Cohen
2023-10-17 10:55 ` [PATCH iproute2-next v2 7/8] bridge: fdb: support match on [no]router flag " Amit Cohen
2023-10-17 10:55 ` [PATCH iproute2-next v2 8/8] man: bridge: add a note about using 'master' and 'self' with flush Amit Cohen
2023-10-20 15:50 ` [PATCH iproute2-next v2 0/8] Extend flush command to support VXLAN attributes patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).