Skip to content

RFC udp_tunnel: convert mlx5 to the new udp_tunnel infrastructure

Jakub Kicinski netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4udp_tunnel: add the ability to hard-code IANA VXLANDocumentation/networking/ethtool-netlink.rst include/net/udp_tunnel.h net/ethtool/tunnels.c +1 more+76 -80 replies
2/4mlx5: convert to new udp_tunnel infrastructuredrivers/net/ethernet/mellanox/mlx5/core/en.h drivers/net/ethernet/mellanox/mlx5/core/en_main.c drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +2 more+50 -1350 replies
3/4netdevsim: support the static IANA VXLAN port flagdrivers/net/netdevsim/netdevsim.h drivers/net/netdevsim/udp_tunnels.c+5 -00 replies
4/4selftests: net: add a test for static UDP tunnel portstools/testing/selftests/drivers/net/netdevsim/udp_tunnel_nic.sh+58 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/4] udp_tunnel: convert mlx5 to the new udp_tunnel infrastructure

This set converts the last driver not using the new infrastructure - mlx5.

We need a small amount of special handling as mlx5 expects IANA VXLAN port to always be programmed into the device. ethtool will show such ports in a separate, type-less, fake table, at the end:

Tunnel information for eth0:
UDP port table 0:

    Size: 7
    Types: vxlan
    No entries
  UDP port table 1: 
    Size: 1
    Types: none (static entries)
    Entries (1):
        port 4789, vxlan

Posting as an RFC because the netdevsim patches will conflict with the Intel series but otherwise the work should be independent. Reviews and testing would be much appreciated.

Jakub Kicinski (4):
udp_tunnel: add the ability to hard-code IANA VXLAN
mlx5: convert to new udp_tunnel infrastructure
netdevsim: support the static IANA VXLAN port flag
selftests: net: add a test for static UDP tunnel ports

 Documentation/networking/ethtool-netlink.rst  |  3 +
 drivers/net/ethernet/mellanox/mlx5/core/en.h  |  2 -
 .../net/ethernet/mellanox/mlx5/core/en_main.c | 88 ++-----------------
 .../net/ethernet/mellanox/mlx5/core/en_rep.c  |  2 -
 .../ethernet/mellanox/mlx5/core/lib/vxlan.c   | 87 +++++++++---------
 .../ethernet/mellanox/mlx5/core/lib/vxlan.h   |  6 +-
 drivers/net/netdevsim/netdevsim.h             |  1 +
 drivers/net/netdevsim/udp_tunnels.c           |  4 +
 include/net/udp_tunnel.h                      |  5 ++
 net/ethtool/tunnels.c                         | 70 +++++++++++++--
 net/ipv4/udp_tunnel_nic.c                     |  7 ++
 .../drivers/net/netdevsim/udp_tunnel_nic.sh   | 58 ++++++++++++
 12 files changed, 190 insertions(+), 143 deletions(-)
Signature · 1 line
2.26.2