Skip to content

Extend VXLAN driver to support FDB flushing

Amit Cohen bridge linux-kselftest netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 2 repliesApplied 11/11

Patches in v1 All 11 applied

#Subject and filesSizeRepliesApplied
1/11net: Handle bulk delete policy in bridge driverinclude/linux/netdevice.h net/bridge/br_fdb.c net/bridge/br_private.h +1 more+37 -300 repliesApplied
2/11vxlan: vxlan_core: Make vxlan_flush() more generic for future usedrivers/net/vxlan/vxlan_core.c+26 -40 repliesApplied
3/11vxlan: vxlan_core: Do not skip default entry in vxlan_flush() by defaultdrivers/net/vxlan/vxlan_core.c+18 -60 repliesApplied
4/11vxlan: vxlan_core: Add support for FDB flushdrivers/net/vxlan/vxlan_core.c+56 -00 repliesApplied
5/11vxlan: vxlan_core: Support FDB flushing by source VNIdrivers/net/vxlan/vxlan_core.c+8 -00 repliesApplied
6/11vxlan: vxlan_core: Support FDB flushing by nexthop IDdrivers/net/vxlan/vxlan_core.c+15 -00 repliesApplied
7/11vxlan: vxlan_core: Support FDB flushing by destination VNIdrivers/net/vxlan/vxlan_core.c+51 -00 repliesApplied
8/11vxlan: vxlan_core: Support FDB flushing by destination portdrivers/net/vxlan/vxlan_core.c+9 -10 repliesApplied
9/11vxlan: vxlan_core: Support FDB flushing by destination IPdrivers/net/vxlan/vxlan_core.c+20 -10 repliesApplied
10/11selftests: Add test cases for FDB flush with VXLAN devicetools/testing/selftests/net/Makefile tools/testing/selftests/net/fdb_flush.sh+717 -00 repliesApplied
11/11selftests: fdb_flush: Add test cases for FDB flush with bridge devicetools/testing/selftests/net/fdb_flush.sh+96 -01 replyApplied

Reviews trailers per patch

9 of 11 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchIdo SchimmelPetr MachataNikolay Aleksandrov
SeriesA-b
1/11R-b
2/11R-b R-b
3/11R-b R-b
4/11R-b R-b
5/11R-b R-b
6/11R-b R-b
7/11R-b R-b
8/11R-b
9/11R-b
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH net-next 00/11] Extend VXLAN driver to support FDB flushing

The merge commit 92716869375b ("Merge branch 'br-flush-filtering'") added support for FDB flushing in bridge driver. Extend VXLAN driver to support FDB flushing also. Add support for filtering by fields which are relevant for VXLAN FDBs:
* Source VNI
* Nexthop ID
* 'router' flag
* Destination VNI
* Destination Port
* Destination IP

Without this set, flush for VXLAN device fails:

$ bridge fdb flush dev vx10
RTNETLINK answers: Operation not supported

With this set, such flush works with the relevant arguments, for example:

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

Some preparations are required, handle them before adding flushing support in VXLAN driver. See more details in commit messages.

Patch set overview:
Patch #1 prepares flush policy to be used by VXLAN driver Patches #2-#3 are preparations in VXLAN driver Patch #4 adds an initial support for flushing in VXLAN driver Patches #5-#9 add support for filtering by several attributes Patch #10 adds a test for FDB flush with VXLAN Patch #11 extends the test to check FDB flush with bridge

Amit Cohen (11):
net: Handle bulk delete policy in bridge driver
vxlan: vxlan_core: Make vxlan_flush() more generic for future use
vxlan: vxlan_core: Do not skip default entry in vxlan_flush() by
default
vxlan: vxlan_core: Add support for FDB flush
vxlan: vxlan_core: Support FDB flushing by source VNI
vxlan: vxlan_core: Support FDB flushing by nexthop ID
vxlan: vxlan_core: Support FDB flushing by destination VNI
vxlan: vxlan_core: Support FDB flushing by destination port
vxlan: vxlan_core: Support FDB flushing by destination IP
selftests: Add test cases for FDB flush with VXLAN device
selftests: fdb_flush: Add test cases for FDB flush with bridge device

 drivers/net/vxlan/vxlan_core.c           | 207 +++++-
 include/linux/netdevice.h                |   8 +-
 net/bridge/br_fdb.c                      |  29 +-
 net/bridge/br_private.h                  |   3 +-
 net/core/rtnetlink.c                     |  27 +-
 tools/testing/selftests/net/Makefile     |   1 +
 tools/testing/selftests/net/fdb_flush.sh | 812 +++++++++++++++++++++++
 7 files changed, 1049 insertions(+), 38 deletions(-)
 create mode 100755 tools/testing/selftests/net/fdb_flush.sh
Signature · 1 line
2.40.1