Skip to content

Allow to switch off UDP-based tunnel offloads per netdevice

Sabrina Dubroca netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyIn review
  2. v16 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- rename feature bit to NETIF_F_RX_UDP_TUNNEL_PORT
- rename ethtool feature to rx-udp_tunnel-port-offload

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6net: add new netdevice feature for offload of RX port for UDP tunnelsinclude/linux/netdev_features.h net/core/dev.c net/core/ethtool.c+9 -00 replies
2/6net: check UDP tunnel RX port offload feature before calling tunnel ndo ndonet/ipv4/udp_tunnel.c+6 -10 replies
3/6net: add infrastructure to un-offload UDP tunnel portinclude/linux/netdevice.h include/net/udp_tunnel.h net/ipv4/udp_tunnel.c+27 -00 replies
4/6net: call udp_tunnel_get_rx_info when NETIF_F_RX_UDP_TUNNEL_PORT is togglednet/core/dev.c+21 -10 replies
5/6geneve/vxlan: add support for NETDEV_UDP_TUNNEL_DROP_INFOdrivers/net/geneve.c drivers/net/vxlan.c+30 -140 replies
6/6geneve/vxlan: offload ports on register/unregister eventsdrivers/net/geneve.c drivers/net/vxlan.c+13 -40 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH net-next v2 0/6] Allow to switch off UDP-based tunnel offloads per netdevice

This patchset adds a new netdevice feature to toggle RX offloads of UDP-based tunnel via ethtool. This is useful if the offload is causing issues, for example if the hardware is buggy.

The feature is added to all devices providing the ->ndo_udp_tunnel_add op, and enabled by default to preserve current behavior.

When the administrator disables this feature on a device, all currently offloaded ports are cleared from the device. When the feature is turned on, the stack notifies the device about all current ports.

v2:
- rename feature bit to NETIF_F_RX_UDP_TUNNEL_PORT
- rename ethtool feature to rx-udp_tunnel-port-offload

Sabrina Dubroca (6):
net: add new netdevice feature for offload of RX port for UDP tunnels
net: check UDP tunnel RX port offload feature before calling tunnel
ndo ndo
net: add infrastructure to un-offload UDP tunnel port
net: call udp_tunnel_get_rx_info when NETIF_F_RX_UDP_TUNNEL_PORT is
toggled
geneve/vxlan: add support for NETDEV_UDP_TUNNEL_DROP_INFO geneve/vxlan: offload ports on register/unregister events

 drivers/net/geneve.c            | 24 ++++++++++++++++++------
 drivers/net/vxlan.c             | 31 ++++++++++++++++++++++---------
 include/linux/netdev_features.h |  2 ++
 include/linux/netdevice.h       |  1 +
 include/net/udp_tunnel.h        |  8 ++++++++
 net/core/dev.c                  | 28 +++++++++++++++++++++++++++-
 net/core/ethtool.c              |  1 +
 net/ipv4/udp_tunnel.c           | 25 ++++++++++++++++++++++++-
 8 files changed, 103 insertions(+), 17 deletions(-)
Signature · 1 line
2.13.2