From mboxrd@z Thu Jan 1 00:00:00 1970 From: Serhey Popovych Subject: [PATCH iproute2-next 0/3] ip: Minor code cleanups and improvements Date: Wed, 31 Jan 2018 10:15:05 +0200 Message-ID: <1517386508-10915-1-git-send-email-serhe.popovych@gmail.com> To: netdev@vger.kernel.org Return-path: Received: from mail-lf0-f66.google.com ([209.85.215.66]:44729 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750904AbeAaIP7 (ORCPT ); Wed, 31 Jan 2018 03:15:59 -0500 Received: by mail-lf0-f66.google.com with SMTP id v188so19327278lfa.11 for ; Wed, 31 Jan 2018 00:15:58 -0800 (PST) Received: from tuxracer.localdomain ([2a01:6d80::195:20:96:53]) by smtp.gmail.com with ESMTPSA id l74sm3769818lfi.1.2018.01.31.00.15.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jan 2018 00:15:55 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: With this series I want to do some adjustments in header files for ip(8) as well as some trivial cleanups like variable rename and finally use addattr_nest()/addattr_nest_end() family instead of open coding nested attributes handling. See individual patch description for more information on changes presented. Reviews, comments and suggestions are welcome. Thanks, Serhii Serhey Popovych (3): ip: Consolidate ip, xdp and lwtunnel parse/dump prototypes in ip_common.h ip: Minor cleanups treewide: Use addattr_nest()/addattr_nest_end() to handle nested attributes include/utils.h | 10 ---------- ip/ip_common.h | 21 +++++++++++++++++++++ ip/ipaddress.c | 1 - ip/iplink.c | 7 +++---- ip/iplink_vlan.c | 5 ++--- ip/iplink_vxcan.c | 17 ++++++++--------- ip/iplink_xdp.c | 4 ++-- ip/ipmacsec.c | 28 ++++++++++++++-------------- ip/iproute.c | 1 - ip/iproute_lwtunnel.c | 4 ++-- ip/iproute_lwtunnel.h | 9 --------- ip/link_gre.c | 2 +- ip/link_gre6.c | 2 +- ip/link_ip6tnl.c | 2 +- ip/link_iptnl.c | 2 +- ip/link_veth.c | 17 ++++++++--------- ip/link_vti.c | 2 +- ip/link_vti6.c | 2 +- ip/xdp.h | 11 ----------- tc/f_flow.c | 5 ++--- tc/f_fw.c | 5 ++--- tc/f_route.c | 5 ++--- tc/f_rsvp.c | 5 ++--- tc/f_tcindex.c | 5 ++--- tc/f_u32.c | 5 ++--- tc/m_action.c | 26 ++++++++++---------------- tc/m_bpf.c | 5 ++--- tc/m_connmark.c | 5 ++--- tc/m_csum.c | 5 ++--- tc/m_ematch.c | 16 +++++++--------- tc/m_gact.c | 5 ++--- tc/m_ife.c | 10 ++++------ tc/m_ipt.c | 5 ++--- tc/m_mirred.c | 5 ++--- tc/m_nat.c | 5 ++--- tc/m_pedit.c | 5 ++--- tc/m_police.c | 5 ++--- tc/m_sample.c | 5 ++--- tc/m_simple.c | 5 ++--- tc/m_skbedit.c | 5 ++--- tc/m_skbmod.c | 5 ++--- tc/m_tunnel_key.c | 5 ++--- tc/m_vlan.c | 5 ++--- tc/m_xt.c | 5 ++--- tc/m_xt_old.c | 5 ++--- tc/q_atm.c | 11 ++++++----- tc/q_cbq.c | 10 ++++------ tc/q_cbs.c | 5 ++--- tc/q_choke.c | 5 ++--- tc/q_codel.c | 5 ++--- tc/q_drr.c | 5 ++--- tc/q_dsmark.c | 13 ++++++------- tc/q_fq.c | 5 ++--- tc/q_fq_codel.c | 5 ++--- tc/q_gred.c | 10 ++++------ tc/q_hfsc.c | 6 ++---- tc/q_hhf.c | 5 ++--- tc/q_htb.c | 10 ++++------ tc/q_mqprio.c | 5 ++--- tc/q_netem.c | 7 ++----- tc/q_pie.c | 5 ++--- tc/q_qfq.c | 5 ++--- tc/q_red.c | 5 ++--- tc/q_sfb.c | 5 ++--- tc/q_tbf.c | 5 ++--- tc/tc_qdisc.c | 5 ++--- 66 files changed, 189 insertions(+), 262 deletions(-) delete mode 100644 ip/iproute_lwtunnel.h delete mode 100644 ip/xdp.h -- 1.7.10.4