[PATCH iproute2 15/22] ss: make local variables static

2018-11-15 Thread Stephen Hemminger
Several variables only used in this code. Signed-off-by: Stephen Hemminger --- misc/ss.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/misc/ss.c b/misc/ss.c index 4d12fb5d19df..e4d6ae489e79 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -96,20

[PATCH iproute2 06/22] genl: remove dead code

2018-11-15 Thread Stephen Hemminger
The function genl_ctrl_resolve_family is defined but never used in current code. Signed-off-by: Stephen Hemminger --- genl/ctrl.c | 71 --- genl/genl_utils.h | 2 -- 2 files changed, 73 deletions(-) diff --git a/genl/ctrl.c b/genl/ctrl.c index

[PATCH iproute2 03/22] lib/color: make local functions static

2018-11-15 Thread Stephen Hemminger
color_enable etc, only used here. Signed-off-by: Stephen Hemminger --- include/color.h | 2 -- lib/color.c | 6 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/color.h b/include/color.h index e30f28c51c84..17ec56f3d7b4 100644 --- a/include/color.h +++ b/include

[PATCH iproute2 04/22] lib/ll_map: make local function static

2018-11-15 Thread Stephen Hemminger
ll_idx_a2n is only used in ll_map. Signed-off-by: Stephen Hemminger --- include/ll_map.h | 1 - lib/ll_map.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/ll_map.h b/include/ll_map.h index fb708191c22c..511fe00b8567 100644 --- a/include/ll_map.h +++ b/include

[PATCH iproute2 09/22] ipmonitor: make local variable static

2018-11-15 Thread Stephen Hemminger
prefix_banner only used in one file. Signed-off-by: Stephen Hemminger --- ip/ipmonitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/ipmonitor.c b/ip/ipmonitor.c index 9d5ac2b5e4d2..743632cc5569 100644 --- a/ip/ipmonitor.c +++ b/ip/ipmonitor.c @@ -24,7 +24,7

[PATCH iproute2 11/22] tc: drop unused name_to_id function

2018-11-15 Thread Stephen Hemminger
Not used in current code. Signed-off-by: Stephen Hemminger --- include/names.h | 1 - lib/names.c | 28 2 files changed, 29 deletions(-) diff --git a/include/names.h b/include/names.h index 3e5d3b146a23..2fcaacc398d4 100644 --- a/include/names.h +++ b/include

[PATCH iproute2 12/22] tipc: make cmd_find static

2018-11-15 Thread Stephen Hemminger
Function only used in one file. Signed-off-by: Stephen Hemminger --- tipc/cmdl.c | 2 +- tipc/cmdl.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tipc/cmdl.c b/tipc/cmdl.c index 4a2f4fd92f48..f2f259cc5320 100644 --- a/tipc/cmdl.c +++ b/tipc/cmdl.c @@ -17,7 +17,7

[PATCH iproute2 13/22] tc/class: make filter variables static

2018-11-15 Thread Stephen Hemminger
Only used in this file. Signed-off-by: Stephen Hemminger --- tc/tc_class.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tc/tc_class.c b/tc/tc_class.c index 7e4e17fd7f39..7ac700d7ab31 100644 --- a/tc/tc_class.c +++ b/tc/tc_class.c @@ -153,9 +153,9 @@ static int

[PATCH iproute2 20/22] tc/action: make variables static

2018-11-15 Thread Stephen Hemminger
Signed-off-by: Stephen Hemminger --- tc/m_action.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tc/m_action.c b/tc/m_action.c index e90867fc6c25..d5fd5affe703 100644 --- a/tc/m_action.c +++ b/tc/m_action.c @@ -30,9 +30,9 @@ static struct action_util *action_list

[PATCH iproute2 21/22] tc/pedit: use structure initialization

2018-11-15 Thread Stephen Hemminger
The pedit callback structure table should be iniatialized using structure initialization to avoid structure changes problems. Signed-off-by: Stephen Hemminger --- tc/p_eth.c | 5 ++--- tc/p_icmp.c | 5 ++--- tc/p_ip.c | 5 ++--- tc/p_ip6.c | 5 ++--- tc/p_tcp.c | 5 ++--- tc/p_udp.c | 5

[PATCH iproute2 14/22] tc/police: make print_police static

2018-11-15 Thread Stephen Hemminger
print_police function only used by m_police. Signed-off-by: Stephen Hemminger --- tc/m_police.c | 10 +++--- tc/tc_util.h | 3 --- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tc/m_police.c b/tc/m_police.c index f3b07f7b0439..d645999ba08b 100644 --- a/tc/m_police.c +++ b

[PATCH iproute2 18/22] tc/util: make local functions static

2018-11-15 Thread Stephen Hemminger
The tc util library parse/print has functions only used locally (and some dead code removed). Signed-off-by: Stephen Hemminger --- tc/tc_util.c | 17 +++-- tc/tc_util.h | 5 - 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/tc/tc_util.c b/tc/tc_util.c index

[PATCH iproute2 17/22] tc/ematch: make local functions static

2018-11-15 Thread Stephen Hemminger
The print handling is only used in tc/m_ematch.c Remove unused function to print_ematch_tree. Signed-off-by: Stephen Hemminger --- tc/m_ematch.c | 30 +++--- tc/m_ematch.h | 1 - 2 files changed, 3 insertions(+), 28 deletions(-) diff --git a/tc/m_ematch.c b/tc

[PATCH iproute2 08/22] ip: make flag names const/static

2018-11-15 Thread Stephen Hemminger
The table of filter flags is only used in ipaddress Signed-off-by: Stephen Hemminger --- ip/ipaddress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index cd8cc76a3473..2671c4e162e3 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c

[PATCH iproute2 16/22] tc/pedit: make functions static

2018-11-15 Thread Stephen Hemminger
The parse and pack functions are only used by the pedit routines. Signed-off-by: Stephen Hemminger --- tc/m_pedit.c | 33 ++--- tc/m_pedit.h | 15 --- 2 files changed, 14 insertions(+), 34 deletions(-) diff --git a/tc/m_pedit.c b/tc/m_pedit.c index

[PATCH iproute2 19/22] tc/meta: make meta_table static and const

2018-11-15 Thread Stephen Hemminger
The mapping table is only used by em_meta. Signed-off-by: Stephen Hemminger --- tc/em_meta.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tc/em_meta.c b/tc/em_meta.c index d94fe88d9b2f..2ddc65ed6cb6 100644 --- a/tc/em_meta.c +++ b/tc/em_meta.c @@ -38,7 +38,7

[PATCH iproute2 07/22] bridge: make local variables static

2018-11-15 Thread Stephen Hemminger
enable_color and set_color_palette only used here. Signed-off-by: Stephen Hemminger --- bridge/bridge.c | 5 ++--- bridge/monitor.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bridge/bridge.c b/bridge/bridge.c index ac4d6a14f510..389f1bd5382b 100644 --- a/bridge

[PATCH iproute2 02/22] lib/utils: make local functions static

2018-11-15 Thread Stephen Hemminger
Some of the print/parsing is only used internally. Drop unused get_s8/get_s16. Signed-off-by: Stephen Hemminger --- include/utils.h | 5 - lib/utils.c | 48 +++- 2 files changed, 7 insertions(+), 46 deletions(-) diff --git a/include/utils.h

[PATCH iproute2 01/22] lib/ll_addr: whitespace and indent cleanup

2018-11-15 Thread Stephen Hemminger
Run old ll_addr through kernel Lindent. Signed-off-by: Stephen Hemminger --- lib/ll_addr.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/lib/ll_addr.c b/lib/ll_addr.c index 84de64e2e053..00b562aeda22 100644 --- a/lib/ll_addr.c +++ b/lib/ll_addr.c

[PATCH iproute2 05/22] libnetlnk: unused and local functions cleanup

2018-11-15 Thread Stephen Hemminger
rntl_talk_extack and parse_rtattr_index not used in current code. rtnl_dump_filter_l is only used in this file. Signed-off-by: Stephen Hemminger --- include/libnetlink.h | 7 --- lib/libnetlink.c | 28 ++-- 2 files changed, 2 insertions(+), 33 deletions(-) diff

[PATCH iproute2 00/22] misc cleanups

2018-11-15 Thread Stephen Hemminger
Code cleanup including: * make local functions static * drop dead code * whitespace code style cleanup Stephen Hemminger (22): lib/ll_addr: whitespace and indent cleanup lib/utils: make local functions static lib/color: make local functions static lib/ll_map: make local function

[PATCH iproute2] testsuite: drop old kernel configs

2018-11-15 Thread Stephen Hemminger
The testsuite directory had a directory of ancient kernel configs. Signed-off-by: Stephen Hemminger --- testsuite/configs/all-2.4| 848 - testsuite/configs/all-no-act | 1499 - testsuite/configs/all-police-act | 1504

[PATCH iproute2-next] drop support for IPX

2018-11-15 Thread Stephen Hemminger
IPX has been depracted then removed from upstream kernels. Drop support from ip route as well. Signed-off-by: Stephen Hemminger --- Makefile | 3 -- include/utils.h| 10 - ip/ip.c| 4 +- ip/iproute.c | 2 +- lib/ipx_ntop.c | 71

[PATCH iproute2] genl: remove dead code

2018-11-15 Thread Stephen Hemminger
The function genl_ctrl_resolve_family is defined but never used in current code. Signed-off-by: Stephen Hemminger --- genl/ctrl.c | 71 --- genl/genl_utils.h | 2 -- 2 files changed, 73 deletions(-) diff --git a/genl/ctrl.c b/genl/ctrl.c index

Re: [iproute PATCH] ip-address: Fix filtering by negated address flags

2018-11-14 Thread Stephen Hemminger
On Wed, 14 Nov 2018 11:52:51 +0100 Phil Sutter wrote: > Hi Stephen, > > On Tue, Nov 13, 2018 at 02:47:59PM -0800, Stephen Hemminger wrote: > > On Tue, 13 Nov 2018 16:12:01 +0100 > > Phil Sutter wrote: > > > > > + if (arg[0] == '-') { &

Re: [iproute PATCH] ip-route: Fix nexthop encap parsing

2018-11-14 Thread Stephen Hemminger
On Tue, 13 Nov 2018 13:39:04 +0100 Phil Sutter wrote: > When parsing nexthop parameters, a buffer of 4k bytes is provided. Yet, > in lwt_parse_encap() and some functions called by it, buffer size was > assumed to be 1k despite the actual size was provided. This led to > spurious buffer size error

Re: [iproute PATCH] man: ip-route.8: Document nexthop limit

2018-11-14 Thread Stephen Hemminger
On Mon, 12 Nov 2018 23:21:01 +0100 Phil Sutter wrote: > Add a note to 'nexthop' description stating the maximum number of > nexthops per command and pointing at 'append' command as a workaround. > > Signed-off-by: Phil Sutter Applied

Re: [iproute PATCH] ip-address: Fix filtering by negated address flags

2018-11-13 Thread Stephen Hemminger
On Tue, 13 Nov 2018 16:12:01 +0100 Phil Sutter wrote: > + if (arg[0] == '-') { > + inv = true; > + arg++; > + } The inverse logic needs to be moved into the loop handling filter names. Otherwise, you get weirdness like "-dynamic" being accepted and not doing what

Re: [PATCH iproute2] testsuite: ss: Fix spacing in expected output for ssfilter.t

2018-11-12 Thread Stephen Hemminger
On Sat, 10 Nov 2018 22:48:44 +0100 Phil Sutter wrote: > Hi Stefano, > > On Sat, Nov 10, 2018 at 10:21:59AM +0100, Stefano Brivio wrote: > > Since commit 00240899ec0b ("ss: Actually print left delimiter for > > columns") changes spacing in ss output, we also need to adjust for that in > > the ss

[PATCH iproute2] testsuite: colorize test result output

2018-11-12 Thread Stephen Hemminger
When running testsuite it is easy as a human to miss failure. Add symbol colorizing to SKIPED/PASS/FAIL output. Signed-off-by: Stephen Hemminger --- testsuite/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testsuite/Makefile b/testsuite/Makefile index

Re: [PATCH iproute] ss: Actually print left delimiter for columns

2018-11-09 Thread Stephen Hemminger
On Mon, 29 Oct 2018 23:04:25 +0100 Stefano Brivio wrote: > While rendering columns, we use a local variable to keep track of the > field currently being printed, without touching current_field, which is > used for buffering. > > Use the right pointer to access the left delimiter for the current

Re: [PATCH iproute2] tc: f_u32: allow skip_hw and skip_sw flags to be last

2018-11-09 Thread Stephen Hemminger
On Mon, 5 Nov 2018 19:23:27 -0800 Jakub Kicinski wrote: > u32 uses NEXT_ARG() incorrectly when parsing skip_hw and skip_sw > flags. NEXT_ARG() ensures there is another argument on the command > line, and is used in handling syntax to move past > and ensure there is a to read. > > Commit 5e

Re: [iproute2 PATCH v2] tc: flower: Classify packets based port ranges

2018-11-09 Thread Stephen Hemminger
On Wed, 07 Nov 2018 13:22:50 -0800 Amritha Nambiar wrote: > Added support for filtering based on port ranges. > > Example: > 1. Match on a port range: > - > $ tc filter add dev enp4s0 protocol ip parent :\ > prio 1 flower ip_proto tcp dst_port range 20-30 skip_hw\ >

Re: [PATCH iproute2 1/2] testsuite: build generate_nlmsg with QUIET_CC

2018-11-09 Thread Stephen Hemminger
On Fri, 2 Nov 2018 12:35:43 + Luca Boccassi wrote: > Follow the standard pattern, and respect user's verbosity setting. > > Signed-off-by: Luca Boccassi Both applied

Re: [PATCH iproute2] Fix warning in tc-skbprio.8 manpage

2018-11-09 Thread Stephen Hemminger
On Fri, 2 Nov 2018 10:57:41 + Luca Boccassi wrote: > ". If" gets interpreted as a macro, so move the period to the previous > line: > > 33: warning: macro `If' not defined > > Fixes: 141b55f8544e ("Add SKB Priority qdisc support in tc(8)") > > Signed-off-by: Luca Boccassi Applied

Re: [PATCH iproute2] man: ss.8: break and indent long line

2018-11-09 Thread Stephen Hemminger
On Fri, 2 Nov 2018 13:27:48 + Luca Boccassi wrote: > Fixes groff warning: > ss.8 92: warning [p 2, 2.8i]: can't break line > > And makes the line also more readable. > > Signed-off-by: Luca Boccassi Applied

Re: [PATCH iproute2] bridge: fdb: remove redundant dev string in show output

2018-11-09 Thread Stephen Hemminger
On Wed, 7 Nov 2018 15:14:09 -0800 Roopa Prabhu wrote: > From: Roopa Prabhu > > After commit 4abb8c723a64 ("bridge: fdb: Fix for missing > keywords in non-JSON output"), I am seeing a double print for dev > in bridge fdb show. eg: > "44:38:39:00:6a:82 dev dev bridge vlan 1 master bridge permane

Re: bring back IPX and NCPFS, please!

2018-11-09 Thread Stephen Hemminger
On Fri, 9 Nov 2018 14:23:27 +0100 "Johannes C. Schulz" wrote: > Hello all! > > I like to please you to bring back IPX and NCPFS modules to the kernel. > Whyever my admins using Novell-shares on our network which I'm not be > able to use anymore - I'm forced to use cifs instead (and the admins >

Re: Should the bridge learn from frames with link local destination MAC address?

2018-11-09 Thread Stephen Hemminger
On Fri, 9 Nov 2018 04:24:43 +0100 Andrew Lunn wrote: > Hi Roopa, Nikolay > > br_handle_frame() looks out for frames with a destination MAC > addresses with is Ethernet link local, those which fit > 01-80-C2-00-00-XX. It does not normally forward these, but it will > deliver them locally. > > Sh

Re: [PATCH iproute2] bridge: fdb: remove redundant dev string in show output

2018-11-09 Thread Stephen Hemminger
On Thu, 8 Nov 2018 10:35:05 +0100 Phil Sutter wrote: > Hi Roopa, > > On Wed, Nov 07, 2018 at 03:14:09PM -0800, Roopa Prabhu wrote: > > From: Roopa Prabhu > > > > After commit 4abb8c723a64 ("bridge: fdb: Fix for missing > > keywords in non-JSON output"), I am seeing a double print for dev > > i

Re: [PATCH net-next 03/11] vxlan: Allow configuration of DF behaviour

2018-11-06 Thread Stephen Hemminger
On Tue, 6 Nov 2018 22:38:59 +0100 Stefano Brivio wrote: > df = htons(IP_DF); > } > > + if (!df) { > + if (vxlan->cfg.df == VXLAN_DF_SET) { > + df = htons(IP_DF); I am confused, this looks like this

Re: [PATCH iproute2-next] rdma: Refresh help section of resource information

2018-11-05 Thread Stephen Hemminger
On Thu, 1 Nov 2018 10:35:05 +0200 Leon Romanovsky wrote: > From: Leon Romanovsky > > After commit 4060e4c0d257 ("rdma: Add PD resource tracking > information"), the resource information shows PDs and MRs, > but help pages didn't fully reflect it. > > Signed-off-by: Leon Romanovsky Applied

Re: [PATCH iproute2] Include bsd/string.h only in include/utils.h

2018-11-05 Thread Stephen Hemminger
On Thu, 1 Nov 2018 22:25:27 + Luca Boccassi wrote: > This is simpler and cleaner, and avoids having to include the header > from every file where the functions are used. The prototypes of the > internal implementation are in this header, so utils.h will have to be > included anyway for those

Re: [PATCH iproute2 net-next 0/3] ss: Allow selection of columns to be displayed

2018-11-01 Thread Stephen Hemminger
On Thu, 1 Nov 2018 15:18:03 -0600 David Ahern wrote: > On 11/1/18 3:06 PM, Jakub Kicinski wrote: > > On Wed, 31 Oct 2018 20:48:05 -0600, David Ahern wrote: > >>> spacing with a special character in the format string, that is: > >>> > >>> "%S.%Qr.%Qs %Al:%Pl %Ar:%Pr %p\n" > >>> > >>> wou

Re: [PATCH iproute2] ip rule: Require at least one argument for add

2018-11-01 Thread Stephen Hemminger
On Tue, 30 Oct 2018 13:59:05 -0700 David Ahern wrote: > From: David Ahern > > 'ip rule add' with no additional arguments just adds another rule > for the main table - which exists by default. Require at least > 1 argument similar to delete. > > Signed-off-by: David Ahern Applied these two

Re: [PATCH net v6] net/ipv6: Add anycast addresses to a global hashtable

2018-10-31 Thread Stephen Hemminger
On Thu, 1 Nov 2018 00:14:38 + Jeff Barnhill <0xeff...@gmail.com> wrote: > diff --git a/include/net/addrconf.h b/include/net/addrconf.h > index 14b789a123e7..799af1a037d1 100644 > --- a/include/net/addrconf.h > +++ b/include/net/addrconf.h > @@ -317,6 +317,8 @@ bool ipv6_chk_acast_addr(struct

Re: [PATCH net-next 6/8] net: sched: pie: add mechanism to set PIE active/inactive

2018-10-31 Thread Stephen Hemminger
On Wed, 31 Oct 2018 21:49:30 +0530 Leslie Monis wrote: > diff --git a/net/sched/sch_pie.c b/net/sched/sch_pie.c > index c84e91e..b68b367 100644 > --- a/net/sched/sch_pie.c > +++ b/net/sched/sch_pie.c > @@ -57,6 +57,7 @@ struct pie_vars { > psched_time_t dq_tstamp;/* drain rate */ >

Re: [PATCH net-next 5/8] net: sched: pie: add more conditions to auto-tune alpha and beta

2018-10-31 Thread Stephen Hemminger
On Wed, 31 Oct 2018 21:49:29 +0530 Leslie Monis wrote: > From: "Mohit P. Tahiliani" > > The update in drop probability depends on the parameters > alpha and beta, which in turn reflect the current congestion > level. However, the previous if-else cases were recommended > when the supported band

Re: [PATCH net-next 7/8] net: sched: pie: add derandomization mechanism

2018-10-31 Thread Stephen Hemminger
On Wed, 31 Oct 2018 21:49:31 +0530 Leslie Monis wrote: > diff --git a/net/sched/sch_pie.c b/net/sched/sch_pie.c > index b68b367..88e605c 100644 > --- a/net/sched/sch_pie.c > +++ b/net/sched/sch_pie.c > @@ -58,6 +58,7 @@ struct pie_vars { > u32 avg_dq_rate;/* bytes per pschedtime tic

Re: [PATCH net-next 0/8] net: sched: pie: align PIE implementation with RFC 8033

2018-10-31 Thread Stephen Hemminger
On Wed, 31 Oct 2018 21:49:24 +0530 Leslie Monis wrote: > The current implementation of PIE queueing discipline is according to an IETF > draft [http://tools.ietf.org/html/draft-pan-aqm-pie-00] and the paper > [PIE: A Lightweight Control Scheme to Address the Bufferbloat Problem]. > However, a lot

Re: [PATCH iproute2] bpf: check map symbol type properly with newer llvm compiler

2018-10-31 Thread Stephen Hemminger
On Mon, 29 Oct 2018 15:32:03 -0700 Yonghong Song wrote: > With llvm 7.0 or earlier, the map symbol type is STT_NOTYPE. > -bash-4.4$ cat t.c > __attribute__((section("maps"))) int g; > -bash-4.4$ clang -target bpf -O2 -c t.c > -bash-4.4$ readelf -s t.o > > Symbol table '.symtab' contain

Re: [PATCH iproute] ss: Actually print left delimiter for columns

2018-10-31 Thread Stephen Hemminger
On Mon, 29 Oct 2018 23:04:25 +0100 Stefano Brivio wrote: > While rendering columns, we use a local variable to keep track of the > field currently being printed, without touching current_field, which is > used for buffering. > > Use the right pointer to access the left delimiter for the current

Re: [PATCH iproute2] Use libbsd for strlcpy if available

2018-10-31 Thread Stephen Hemminger
On Mon, 29 Oct 2018 10:46:50 + Luca Boccassi wrote: > If libc does not provide strlcpy check for libbsd with pkg-config to > avoid relying on inline version. > > Signed-off-by: Luca Boccassi > --- > This allows distro maintainers to be able to choose to reduce > duplication and let this cod

Re: [PATCH iproute2 net-next 0/3] ss: Allow selection of columns to be displayed

2018-10-30 Thread Stephen Hemminger
On Tue, 30 Oct 2018 10:34:45 -0600 David Ahern wrote: > On 10/30/18 9:05 AM, Stefano Brivio wrote: > > Now that we have an abstraction for columns, it's relatively easy to > > selectively display only some of them, and Yoann has a use case for it. > > > > Patch 1/3 fixes a rendering issue that s

Re: [PATCH] Fix ss Netid column and Local/Peer_Address

2018-10-29 Thread Stephen Hemminger
On Fri, 26 Oct 2018 22:53:32 +0200 "Yoann P." wrote: > When using ss -Hutn4 or -utn3, Netid and State columns are sometime merged, > it > can be confusing when trying to pipe into awk or column. > Details (before and after output) are available on this github issue: https:// > github.com/shemmi

Re: [iproute2 PATCH v2] bridge: fix vlan show stats formatting

2018-10-29 Thread Stephen Hemminger
On Fri, 26 Oct 2018 23:51:03 +0200 Tobias Jungel wrote: > The output of -statistics vlan show was broken previous change for json > output. This aligns the format to vlan show. > > v2: fixed too greedy deletion that caused a -Wmaybe-uninitialized > > Signed-off-by: Tobias Jungel Applied

Re: [iproute PATCH] utils.h: provide fallback CLOCK_TAI definition

2018-10-29 Thread Stephen Hemminger
On Sat, 27 Oct 2018 17:31:02 +0200 Peter Korsgaard wrote: > q_{etf,taprio}.c uses CLOCK_TAI, which isn't exposed by glibc < 2.21 or > uClibc, breaking the build. Provide a fallback definition like it is done > for IPPROTO_MPLS and others. > > Signed-off-by: Peter Korsgaard > --- Applied, thank

Re: [PATCH] r8169: Add new device ID support

2018-10-24 Thread Stephen Hemminger
On Wed, 24 Oct 2018 14:29:34 +0800 Shawn Lin wrote: > On 2018/10/24 13:54, David Miller wrote: > > From: Shawn Lin > > Date: Wed, 24 Oct 2018 13:48:55 +0800 > > > >> Hi David, > >> > >> On 2018/10/24 10:19, David Miller wrote: > >>> From: Shawn Lin > >>> Date: Wed, 24 Oct 2018 09:46:47 +08

Re: [iproute PATCH v2] tc: htb: Print default value in hex

2018-10-23 Thread Stephen Hemminger
On Tue, 23 Oct 2018 12:36:24 +0200 Phil Sutter wrote: > Value of 'default' is assumed to be hexadecimal when parsing, so > consequently it should be printed in hex as well. This is a regression > introduced when adding JSON output. > > As requested, also change JSON output to print the value as

Re: [PATCH iproute2 1/1] DEBUG: Fix make check when need build generate_nlmsg

2018-10-22 Thread Stephen Hemminger
On Mon, 22 Oct 2018 19:03:41 +0200 Petr Vorel wrote: > Hi Stephen, > > > Applied, it seem to have gotten lost somewhere between my laptop and the > > repo. > Thanks a lot for merging :). > > There is a patchset "Minor shell code cleanup", which has state Accepted, but > not in git > https://

Re: [iproute PATCH] tc: Remove pointless assignments in batch()

2018-10-22 Thread Stephen Hemminger
On Thu, 18 Oct 2018 15:48:48 +0200 Phil Sutter wrote: > All these assignments are later overwritten without reading in between, > so just drop them. > > Fixes: 485d0c6001c4a ("tc: Add batchsize feature for filter and actions") > Signed-off-by: Phil Sutter Applied

Re: [iproute PATCH] tipc: Drop unused variable 'genl'

2018-10-22 Thread Stephen Hemminger
On Thu, 18 Oct 2018 15:48:09 +0200 Phil Sutter wrote: > Although initialized by call to libmnl, the variable is used only in a > call to sizeof(). Drop it and call sizeof with its type instead. > > Fixes: f043759dd4928 ("tipc: add new TIPC configuration tool") > Signed-off-by: Phil Sutter Appl

Re: [iproute PATCH] ip-route: Fix parse_encap_seg6() srh parsing

2018-10-22 Thread Stephen Hemminger
On Thu, 18 Oct 2018 15:44:14 +0200 Phil Sutter wrote: > In case caller did not specify 'segs' parameter, parse_srh() would read > garbage while iterating over 'segbuf'. Avoid this by initializing > 'segbuf' to an empty string. > > Fixes: e8493916a8ede ("iproute: add support for SR-IPv6 lwtunnel

Re: [iproute PATCH] rdma: Don't pass garbage to rd_check_is_filtered()

2018-10-22 Thread Stephen Hemminger
On Thu, 18 Oct 2018 14:35:50 +0200 Phil Sutter wrote: > Variables 'src_port' and 'dst_port' are initialized only if attributes > RDMA_NLDEV_ATTR_RES_SRC_ADDR or RDMA_NLDEV_ATTR_RES_DST_ADDR are > present. Make sure to pass them over to rd_check_is_filtered() only if > that is the case. > > Fixes

Re: [iproute PATCH] rdma: Fix for ineffective check in add_filter()

2018-10-22 Thread Stephen Hemminger
On Thu, 18 Oct 2018 13:41:54 +0200 Phil Sutter wrote: > With 'name' field defined as array in struct filters, it will always > contain a value irrespective of whether a name was assigned or not. > > Fix this by turning the field into a const char pointer. > > Fixes: 8cd644095842a ("devlink: Add

Re: [iproute PATCH] ip-route: Fix for memleak in error path

2018-10-22 Thread Stephen Hemminger
On Thu, 18 Oct 2018 14:30:31 +0200 Phil Sutter wrote: > If call to rta_addattr_l() failed, parse_encap_seg6() would leak memory. > Fix this by making sure calls to free() are not skipped. > > Fixes: bd59e5b1517b0 ("ip-route: Fix segfault with many nexthops") > Signed-off-by: Phil Sutter Applie

Re: [iproute2 PATCH] bridge: fix vlan show stats formatting

2018-10-22 Thread Stephen Hemminger
On Sat, 20 Oct 2018 15:42:33 +0200 Tobias Jungel wrote: > The output of -statistics vlan show was broken previous change for json > output. This aligns the format to vlan show. > > Signed-off-by: Tobias Jungel This patch causes new warning: CC vlan.o vlan.c: In function ‘print_vlan_s

Re: [iproute PATCH] tc: htb: Print default value in hex

2018-10-22 Thread Stephen Hemminger
On Fri, 19 Oct 2018 17:42:55 +0200 Phil Sutter wrote: > Value of 'default' is assumed to be hexadecimal when parsing, so > consequently it should be printed in hex as well. This is a regression > introduced when adding JSON output. > > Fixes: f354fa6aa5ff0 ("tc: jsonify htb qdisc") > Signed-off-

Re: [PATCH iproute2 1/1] DEBUG: Fix make check when need build generate_nlmsg

2018-10-22 Thread Stephen Hemminger
On Tue, 25 Sep 2018 14:49:56 +0200 Petr Vorel wrote: > make check from top level Makefile defines several flags which break > building generate_nlmsg: > > $ make check > make -C tools > gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations > -Wold-style-definition -Wformat

Re: [iproute2 PATCH] bridge: fix vlan show stats formatting

2018-10-22 Thread Stephen Hemminger
On Sat, 20 Oct 2018 15:42:33 +0200 Tobias Jungel wrote: > The output of -statistics vlan show was broken previous change for json > output. This aligns the format to vlan show. > > Signed-off-by: Tobias Jungel Applied, thanks

Re: [PATCH iproute2-next] Tree wide: Drop sockaddr_nl arg

2018-10-22 Thread Stephen Hemminger
On Fri, 19 Oct 2018 13:44:18 -0700 David Ahern wrote: > From: David Ahern > > No command, filter, or print function uses the sockaddr_nl arg, > so just drop it. > > Signed-off-by: David Ahern Acked-by: Stephen Hemminger

[PATCH iproute2] doc/man: spelling fixes

2018-10-18 Thread Stephen Hemminger
Use ispell and codespell to find/fix spelling errors in documentation and man pages. Signed-off-by: Stephen Hemminger --- doc/actions/actions-general | 14 +++--- doc/actions/ifb-README | 18 +- doc/actions/mirred-usage| 6 +++--- man/man8/ip-link.8.in

Re: Form sk_buff from DMA page

2018-10-17 Thread Stephen Hemminger
On Wed, 17 Oct 2018 17:32:33 + Keyur Amrutbhai Patel wrote: > Hi, > > Can anyone help me on how to form sk_buff from DMA page? Basically I get > complete packet from DMA as single page. > > Regards, > Keyur > This email and any attachments are intended for the sole use of the named > reci

Re: [PATCH net] r8169: fix NAPI handling under high load

2018-10-16 Thread Stephen Hemminger
On Tue, 16 Oct 2018 23:17:31 +0200 Holger Hoffstätte wrote: > On 10/16/18 22:37, Heiner Kallweit wrote: > > rtl_rx() and rtl_tx() are called only if the respective bits are set > > in the interrupt status register. Under high load NAPI may not be > > able to process all data (work_done == budget)

Re: [PATCH net] r8169: fix NAPI handling under high load

2018-10-16 Thread Stephen Hemminger
On Tue, 16 Oct 2018 22:37:31 +0200 Heiner Kallweit wrote: > rtl_rx() and rtl_tx() are called only if the respective bits are set > in the interrupt status register. Under high load NAPI may not be > able to process all data (work_done == budget) and it will schedule > subsequent calls to the poll

Re: [PATCH net-next 11/18] vxlan: Add netif_is_vxlan()

2018-10-15 Thread Stephen Hemminger
On Mon, 15 Oct 2018 13:30:41 -0700 Jakub Kicinski wrote: > On Mon, 15 Oct 2018 23:27:41 +0300, Ido Schimmel wrote: > > On Mon, Oct 15, 2018 at 01:16:42PM -0700, Stephen Hemminger wrote: > > > On Mon, 15 Oct 2018 22:57:48 +0300 > > > Ido Schimmel wrote: > > &g

Re: [PATCH net-next 11/18] vxlan: Add netif_is_vxlan()

2018-10-15 Thread Stephen Hemminger
On Mon, 15 Oct 2018 22:57:48 +0300 Ido Schimmel wrote: > On Mon, Oct 15, 2018 at 11:57:56AM -0700, Jakub Kicinski wrote: > > On Sat, 13 Oct 2018 17:18:38 +, Ido Schimmel wrote: > > > Add the ability to determine whether a netdev is a VxLAN netdev by > > > calling the above mentioned functio

Re: [PATCH iproute 2/2] utils: fix get_rtnl_link_stats_rta stats parsing

2018-10-15 Thread Stephen Hemminger
On Thu, 11 Oct 2018 14:24:03 +0200 Lorenzo Bianconi wrote: > > > iproute2 walks through the list of available tunnels using netlink > > > protocol in order to get device info instead of reading > > > them from proc filesystem. However the kernel reports device statistics > > > using IFLA_INET6_ST

Re: [PATCH iproute2] macsec: fix off-by-one when parsing attributes

2018-10-15 Thread Stephen Hemminger
On Fri, 12 Oct 2018 17:34:12 +0200 Sabrina Dubroca wrote: > I seem to have had a massive brainfart with uses of > parse_rtattr_nested(). The rtattr* array must have MAX+1 elements, and > the call to parse_rtattr_nested must have MAX as its bound. Let's fix > those. > > Fixes: b26fc590ce62 ("ip:

Re: [PATCH iproute2] json: make 0xhex handle u64

2018-10-15 Thread Stephen Hemminger
On Fri, 12 Oct 2018 17:34:32 +0200 Sabrina Dubroca wrote: > Stephen converted macsec's sci to use 0xhex, but 0xhex handles > unsigned int's, not 64 bits ints. Thus, the output of the "ip macsec > show" command is mangled, with half of the SCI replaced with 0s: > > # ip macsec show > 11: macsec0:

Re: [iproute PATCH] bridge: fdb: Fix for missing keywords in non-JSON output

2018-10-15 Thread Stephen Hemminger
On Tue, 9 Oct 2018 14:44:08 +0200 Phil Sutter wrote: > While migrating to JSON print library, some keywords were dropped from > standard output by accident. Add them back to unbreak output parsers. > > Fixes: c7c1a1ef51aea ("bridge: colorize output and use JSON print library") > Signed-off-by:

Re: [Bug 201423] New: eth0: hw csum failure

2018-10-15 Thread Stephen Hemminger
On Mon, 15 Oct 2018 08:41:47 -0700 Eric Dumazet wrote: > On Mon, Oct 15, 2018 at 8:15 AM Stephen Hemminger > wrote: > > > > > > > > Begin forwarded message: > > > > Date: Sun, 14 Oct 2018 10:42:48 + > > From: bugzilla-dae...@bugzilla.kernel.or

Fw: [Bug 201423] New: eth0: hw csum failure

2018-10-15 Thread Stephen Hemminger
Begin forwarded message: Date: Sun, 14 Oct 2018 10:42:48 + From: bugzilla-dae...@bugzilla.kernel.org To: step...@networkplumber.org Subject: [Bug 201423] New: eth0: hw csum failure https://bugzilla.kernel.org/show_bug.cgi?id=201423 Bug ID: 201423 Summary: eth0: hw

Re: [rtnetlink] Potential bug in Linux (rt)netlink code

2018-10-12 Thread Stephen Hemminger
On Fri, 12 Oct 2018 09:30:40 +0200 Henning Rogge wrote: > Hi, > > I am working on a self-written routing agent > (https://github.com/OLSR/OONF) and am stuck on a problem with netlink > that I cannot explain with an userspace error. > > I am using a netlink socket for setting routes > (RTM_NE

Re: [PATCH net-next v2] vxlan: support NTF_USE refresh of fdb entries

2018-10-12 Thread Stephen Hemminger
gt; 1 file changed, 7 insertions(+), 3 deletions(-) Acked-by: Stephen Hemminger

Re: [PATCH iproute2 net-next] bridge: add support for backup port

2018-10-12 Thread Stephen Hemminger
On Fri, 12 Oct 2018 14:42:55 +0300 Nikolay Aleksandrov wrote: > This patch adds support for the new backup port option that can be set > on a bridge port. If the port's carrier goes down all of the traffic > gets redirected to the configured backup port. We add the following new > arguments: > $

Re: [PATCH net-next] net: bridge: add support for per-port vlan stats

2018-10-12 Thread Stephen Hemminger
On Fri, 12 Oct 2018 13:41:16 +0300 Nikolay Aleksandrov wrote: > This patch adds an option to have per-port vlan stats instead of the > default global stats. The option can be set only when there are no port > vlans in the bridge since we need to allocate the stats if it is set > when vlans are be

Re: [PATCH net-next 0/9] net: Kernel side filtering for route dumps

2018-10-11 Thread Stephen Hemminger
On Thu, 11 Oct 2018 08:06:18 -0700 David Ahern wrote: > From: David Ahern > > Implement kernel side filtering of route dumps by protocol (e.g., which > routing daemon installed the route), route type (e.g., unicast), table > id and nexthop device. > > iproute2 has been doing this filtering in

Re: [PATCH iproute 2/2] utils: fix get_rtnl_link_stats_rta stats parsing

2018-10-11 Thread Stephen Hemminger
On Thu, 11 Oct 2018 14:24:03 +0200 Lorenzo Bianconi wrote: > > > iproute2 walks through the list of available tunnels using netlink > > > protocol in order to get device info instead of reading > > > them from proc filesystem. However the kernel reports device statistics > > > using IFLA_INET6_ST

Re: [PATCH stable 4.9 00/29] backport of IP fragmentation fixes

2018-10-10 Thread Stephen Hemminger
On Tue, 9 Oct 2018 21:15:04 -0700 Florian Fainelli wrote: > > > > Strange, I do not see "ip: use rb trees for IP frag queue." in this list ? > > And it was not in Stephen's backport to 4.14 either, wait, looks like it > was somehow squashed into "net: sk_buff rbnode reorg". Stephen, was > the

Re: [PATCH iproute 2/2] utils: fix get_rtnl_link_stats_rta stats parsing

2018-10-10 Thread Stephen Hemminger
On Wed, 10 Oct 2018 17:00:58 +0200 Lorenzo Bianconi wrote: > iproute2 walks through the list of available tunnels using netlink > protocol in order to get device info instead of reading > them from proc filesystem. However the kernel reports device statistics > using IFLA_INET6_STATS/IFLA_INET6_I

Re: [sky2 driver] 88E8056 PCI-E Gigabit Ethernet Controller not working after suspend

2018-10-10 Thread Stephen Hemminger
On Wed, 10 Oct 2018 03:16:40 +0200 Laurent Bigonville wrote: > Le 9/10/18 à 22:09, Stephen Hemminger a écrit : > > On Tue, 9 Oct 2018 19:30:30 +0200 > > Laurent Bigonville wrote: > > > >> Hello, > >> > >> On my desktop (Asus MB with dual Ethern

Re: [sky2 driver] 88E8056 PCI-E Gigabit Ethernet Controller not working after suspend

2018-10-09 Thread Stephen Hemminger
On Tue, 9 Oct 2018 19:30:30 +0200 Laurent Bigonville wrote: > Hello, > > On my desktop (Asus MB with dual Ethernet port), when waking up after > suspend, the network card is not detecting the link. > > I have to rmmod the sky2 driver and then modprobing it again. > > lspci shows me: > > 04:0

Re: [PATCH net-next] net: core: change bool members of struct net_device to bitfield members

2018-10-08 Thread Stephen Hemminger
On Mon, 8 Oct 2018 22:00:51 +0200 Heiner Kallweit wrote: > * > + * @uc_promisc:Counter that indicates promiscuous mode > + * has been enabled due to the need to listen to > + * additional unicast addresses in a device that > + * does n

Re: [PATCH iproute2-next] tc: jsonify output of q_fifo

2018-10-04 Thread Stephen Hemminger
On Thu, 4 Oct 2018 17:08:34 -0700 Jakub Kicinski wrote: > Print limits correctly in JSON context. > > Signed-off-by: Jakub Kicinski > --- > tc/q_fifo.c | 9 ++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/tc/q_fifo.c b/tc/q_fifo.c > index cb86a404d4de..61493fbbc5

Re: [PATCH net] vxlan: use nla_put_flag for ttl inherit

2018-10-04 Thread Stephen Hemminger
On Fri, 28 Sep 2018 09:08:26 +0800 Hangbin Liu wrote: > Phil pointed out that there is a mismatch between vxlan and geneve ttl > inherit. > We should define it as a flag and use nla_put_flag to export this opiton. > > Fixes: 8fd780698745b ("vxlan: fill ttl inherit info") > Reported-by: Phil Sut

Re: [PATCH iproute2] lib/libnetlink: fix response seq check

2018-10-03 Thread Stephen Hemminger
On Wed, 3 Oct 2018 16:01:40 -0700 Vlad Dumitrescu wrote: > Hi, > > On Fri, Sep 28, 2018 at 10:14 AM wrote: > > > > From: Vlad Dumitrescu > > > > Taking a one-iovec example, with rtnl->seq at 42. iovlen == 1, seq > > becomes 43 on line 604, and a message is sent with nlmsg_seq == 43. If > > a r

Re: [PATCH RFC v2 net-next 00/25] rtnetlink: Add support for rigid checking of data in dump request

2018-10-03 Thread Stephen Hemminger
On Mon, 1 Oct 2018 17:28:26 -0700 David Ahern wrote: > How to resolve the problem of not breaking old userspace yet be able to > move forward with new features such as kernel side filtering which are > crucial for efficient operation at high scale? What about forward compatibility? How would th

Re: [PATCH iproute2/net-next v2] tc_util: Add support for showing TCA_STATS_BASIC_HW statistics

2018-10-01 Thread Stephen Hemminger
On Mon, 01 Oct 2018 09:08:32 +0200 "Eelco Chaudron" wrote: > On 10 Aug 2018, at 16:48, Eelco Chaudron wrote: > > > On 10 Aug 2018, at 16:44, Stephen Hemminger wrote: > > > >> On Fri, 10 Aug 2018 07:59:30 -0400 > >> Eelco Chaudron wrote: >

Re: [PATCH iproute2-next 01/11] libnetlink: Convert GETADDR dumps to use rtnl_addrdump_req

2018-09-30 Thread Stephen Hemminger
On Sat, 29 Sep 2018 10:59:21 -0700 David Ahern wrote: > From: David Ahern > > Add rtnl_addrdump_req for address dumps using the proper ifaddrmsg > as the header. Convert existing RTM_GETADDR dumps to use it. > > Signed-off-by: David Ahern } > > +int rtnl_addrdump_req(struct rtnl_handle *r

<    3   4   5   6   7   8   9   10   11   12   >