From mboxrd@z Thu Jan 1 00:00:00 1970 From: Serhey Popovych Subject: [PATCH iproute2 0/4] ip/tunnel: Minor cleanups and improvements Date: Fri, 19 Jan 2018 18:43:59 +0200 Message-ID: <1516380243-32568-1-git-send-email-serhe.popovych@gmail.com> To: netdev@vger.kernel.org Return-path: Received: from mail-lf0-f54.google.com ([209.85.215.54]:34583 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756069AbeASQoL (ORCPT ); Fri, 19 Jan 2018 11:44:11 -0500 Received: by mail-lf0-f54.google.com with SMTP id k19so2837355lfj.1 for ; Fri, 19 Jan 2018 08:44:10 -0800 (PST) Received: from tuxracer.localdomain ([2a01:6d80::195:20:96:53]) by smtp.gmail.com with ESMTPSA id 77sm1785587ljx.58.2018.01.19.08.44.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jan 2018 08:44:08 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: It is small series of fixes and code cleanups: 1) Add space after encap-[ds]port parameter value in tunnel encapsulation options output. 2) Unify ttl/hoplimit parsing routines by using get_u8(), handling "inherit" and "hlim" as alias to "hoplimit" and "ttl" parameter name. 3) Report when unable to resolve vti tunnel link instead of silently quitting and use __u32 for fwmark istead of unsigned int to match with rest of tunneling code. 4) Use ll_name_to_index() instead of if_nametoindex() to make ip(8) output and input parameter acceptance coherent. See individual patch description message for details. Thanks, Serhii Serhey Popovych (4): tunnel: Add space between encap-dport and encap-sport in non-JSON output iptnl/ip6tnl: Unify ttl/hoplimit parsing routines vti/vti6: Minor improvements iplink: Use ll_name_to_index() instead of if_nametoindex() bridge/fdb.c | 4 ++-- bridge/mdb.c | 2 +- bridge/vlan.c | 2 +- ip/iplink_bond.c | 4 ++-- ip/iplink_bridge.c | 2 +- ip/iplink_vxlan.c | 2 +- ip/iproute_lwtunnel.c | 4 ++-- ip/link_gre.c | 12 ++++-------- ip/link_gre6.c | 15 ++++++++------- ip/link_ip6tnl.c | 16 ++++++++-------- ip/link_iptnl.c | 5 +++-- ip/link_vti.c | 4 ++-- ip/link_vti6.c | 8 +++++--- ip/tunnel.c | 4 ++-- 14 files changed, 42 insertions(+), 42 deletions(-) -- 1.7.10.4