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(-) -- 1.7.10.4