Skip to content

ip/tunnels: Reuse code, vti6 zero endpoint support and minor cleanup

Serhey Popovych netdev 1 version Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3ip/tunnel: Use tnl_parse_key() to parse tunnel keyip/link_gre.c ip/link_gre6.c ip/link_vti.c +2 more+23 -1620 replies
2/3link_ip6tnl: Use IN6ADDR_ANY_INIT to initialize local/remote endpointsip/link_ip6tnl.c+2 -20 replies
3/3link_vti6: Always add local/remote endpoint attributesip/link_vti6.c+2 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH iproute2 0/3] ip/tunnels: Reuse code, vti6 zero endpoint support and minor cleanup

In this series I present next set of improvements:

1) Use tnl_parse_key() to avoid code duplication in tunnel configuration via netlink code.

2) Trivial: use IN6ADDR_ANY_INIT instead of open coded initialization of local/remote endpoint in ip6tnl code.

3) Trivial: drop additional checks for zero endpoint in vti6 code. This completes and unifies support for unconfiguring local/remote endpoint for tunnel.

See individual patch description message for details.

Thanks,
Serhii

Serhey Popovych (3):
ip/tunnel: Use tnl_parse_key() to parse tunnel key
link_ip6tnl: Use IN6ADDR_ANY_INIT to initialize local/remote
endpoints
link_vti6: Always add local/remote endpoint attributes

 ip/link_gre.c    |   45 +++++----------------------------------------
 ip/link_gre6.c   |   45 +++++----------------------------------------
 ip/link_ip6tnl.c |    4 ++--
 ip/link_vti.c    |   45 +++++----------------------------------------
 ip/link_vti6.c   |   51 +++++++--------------------------------------------
 ip/tunnel.c      |    5 +++--
 6 files changed, 27 insertions(+), 168 deletions(-)
Signature · 1 line
1.7.10.4