Skip to content

lwtunnel: add ip and ip6 options setting and dumping

Xin Long netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5lwtunnel: add options process for arp requestnet/ipv4/ip_tunnel_core.c+4 -30 replies
2/5lwtunnel: add options process for cmp_encapnet/ipv4/ip_tunnel_core.c+8 -20 replies
3/5lwtunnel: add options setting and dumping for geneveinclude/uapi/linux/lwtunnel.h net/ipv4/ip_tunnel_core.c+216 -160 replies
4/5lwtunnel: add options setting and dumping for vxlaninclude/uapi/linux/lwtunnel.h net/ipv4/ip_tunnel_core.c+74 -20 replies
5/5lwtunnel: add options setting and dumping for erspaninclude/uapi/linux/lwtunnel.h net/ipv4/ip_tunnel_core.c+104 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 0/5] lwtunnel: add ip and ip6 options setting and dumping

With this patchset, users can configure options by ip route encap for geneve, vxlan and ersapn lwtunnel, like:

  # ip r a 1.1.1.0/24 encap ip id 1 geneve class 0 type 0 \
    data "1212121234567890" dst 10.1.0.2 dev geneve1
  # ip r a 1.1.1.0/24 encap ip id 1 vxlan gbp 456 \
    dst 10.1.0.2 dev erspan1
  # ip r a 1.1.1.0/24 encap ip id 1 erspan ver 1 idx 123 \
    dst 10.1.0.2 dev erspan1

iproute side patch is attached on the reply of this mail.

Thank Simon for good advice.

Xin Long (5):
lwtunnel: add options process for arp request
lwtunnel: add options process for cmp_encap
lwtunnel: add options setting and dumping for geneve
lwtunnel: add options setting and dumping for vxlan
lwtunnel: add options setting and dumping for erspan

 include/uapi/linux/lwtunnel.h |  41 +++++
 net/ipv4/ip_tunnel_core.c     | 382 +++++++++++++++++++++++++++++++++++++++---
 2 files changed, 402 insertions(+), 21 deletions(-)
Signature · 1 line
2.1.0