From mboxrd@z Thu Jan 1 00:00:00 1970 From: Serhey Popovych Subject: [PATCH iproute2 0/3] ip/tunnels: Reuse code, vti6 zero endpoint support and minor cleanup Date: Mon, 18 Dec 2017 19:48:02 +0200 Message-ID: <1513619285-23187-1-git-send-email-serhe.popovych@gmail.com> To: netdev@vger.kernel.org Return-path: Received: from mail-lf0-f68.google.com ([209.85.215.68]:35718 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934599AbdLRRsL (ORCPT ); Mon, 18 Dec 2017 12:48:11 -0500 Received: by mail-lf0-f68.google.com with SMTP id j124so18733945lfg.2 for ; Mon, 18 Dec 2017 09:48:10 -0800 (PST) Received: from tuxracer.localdomain ([2a01:6d80::195:20:96:53]) by smtp.gmail.com with ESMTPSA id v86sm1031988lfd.65.2017.12.18.09.48.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Dec 2017 09:48:09 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: 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