From: David Ahern Subject: Re: [PATCH iproute2-next] ip/tunnel: Minor cleanups Date: Fri, 9 Feb 2018 09:12:15 -0700 Message-ID: <3e9becb6-aa30-fd14-e3a2-b4fb565e87c2@gmail.com> References: <1518087422-1513-1-git-send-email-serhe.popovych@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Serhey Popovych , netdev@vger.kernel.org Return-path: Received: from mail-pg0-f43.google.com ([74.125.83.43]:43364 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751031AbeBIQMR (ORCPT ); Fri, 9 Feb 2018 11:12:17 -0500 Received: by mail-pg0-f43.google.com with SMTP id f6so3894855pgs.10 for ; Fri, 09 Feb 2018 08:12:17 -0800 (PST) In-Reply-To: <1518087422-1513-1-git-send-email-serhe.popovych@gmail.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 2/8/18 3:57 AM, Serhey Popovych wrote: > Few minor changes to reduce diffs between ip and ipv6 tunnel code: > > 1) reduce intendation by one level when adding attributes in gre and > gre6; reorder addattr*() calls to simplify diff > > 2) reorder local variables definition; change their type (e.g. for > IFLA_LINK) to match ones returned by rta_getattr_*() > > 3) move "mode" parameter parsing in link_iptnl.c to the similar > position as in link_ip6tnl.c > > 4) handle "tc" as shortcut for "tclass"/"tos" in link_iptnl.c > > 5) add whitespace where required > > Signed-off-by: Serhey Popovych > --- > ip/link_gre.c | 91 +++++++++++++++++++++++++++--------------------------- > ip/link_gre6.c | 83 ++++++++++++++++++++++++------------------------- > ip/link_ip6tnl.c | 13 ++++---- > ip/link_iptnl.c | 61 ++++++++++++++++++------------------ > ip/link_vti.c | 2 +- > ip/link_vti6.c | 2 +- > 6 files changed, 127 insertions(+), 125 deletions(-) > applied to iproute2-next. That is a large change for a single patch. Please send future cleanups with grouped changes like you have done for other patches. gre/gr6 in one patch, vti /vti6 in a second, etc.