Re: [PATCH v2 net 2/2] net: core: generic XDP support for stacked device

2019-05-21 Thread Stephen Hemminger
On Tue, 21 May 2019 08:15:36 +0200 Jiri Pirko wrote: > + if (static_branch_unlikely(&generic_xdp_needed_key)) { > + int ret2; > + > + preempt_disable(); > + rcu_read_lock(); > + ret2 = do_xdp_generic(rcu_dereference(skb->dev->xdp_prog), skb); >

[PATCH iproute2] man: fix macaddr section of ip-link

2019-05-21 Thread Stephen Hemminger
The formatting of setting mac address was confusing. Break lines and fix highlighting. Signed-off-by: Stephen Hemminger --- man/man8/ip-link.8.in | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in index d035a5c92ed5

Re: [PATCH iproute2 v2] m_mirred: don't bail if the control action is missing

2019-05-22 Thread Stephen Hemminger
On Mon, 20 May 2019 11:56:52 +0200 Paolo Abeni wrote: > The mirred act admits an optional control action, defaulting > to TC_ACT_PIPE. The parsing code currently emits an error message > if the control action is not provided on the command line, even > if the command itself completes with no erro

Re: [PATCH net-next] hv_sock: perf: Allow the socket buffer size options to influence the actual socket buffers

2019-05-22 Thread Stephen Hemminger
On Wed, 22 May 2019 22:56:07 + Sunil Muthuswamy wrote: > Currently, the hv_sock buffer size is static and can't scale to the > bandwidth requirements of the application. This change allows the > applications to influence the socket buffer sizes using the SO_SNDBUF and > the SO_RCVBUF socket o

Re: [PATCH iproute2] ip route: Set rtm_dst_len to 32 for all ip route get requests

2019-05-22 Thread Stephen Hemminger
On Fri, 17 May 2019 10:59:13 -0700 David Ahern wrote: > index 2b3dcc5dbd53..d980b86ffd42 100644 > --- a/ip/iproute.c > +++ b/ip/iproute.c > @@ -2035,7 +2035,11 @@ static int iproute_get(int argc, char **argv) > if (addr.bytelen) > addattr_l(&req

[PATCH v3 0/2] XDP generic fixes

2019-05-23 Thread Stephen Hemminger
This set of patches came about while investigating XDP generic on Azure. The split brain nature of the accelerated networking exposed issues with the stack device model. Stephen Hemminger (2): netvsc: unshare skb in VF rx handler net: core: support XDP generic on stacked devices. drivers

[PATCH v3 2/2] net: core: support XDP generic on stacked devices.

2019-05-23 Thread Stephen Hemminger
t;net: xdp: support xdp generic on virtual devices") Signed-off-by: Stephen Hemminger --- v1 - call xdp_generic in netvsc handler v2 - do xdp_generic in generic rx handler processing v3 - move xdp_generic call inside the another pass loop net/core/

[PATCH v3 1/2] netvsc: unshare skb in VF rx handler

2019-05-23 Thread Stephen Hemminger
Fixes: 0c195567a8f6 ("netvsc: transparent VF management") Signed-off-by: Stephen Hemminger --- drivers/net/hyperv/netvsc_drv.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 06393b215102..9873b8679f81 100644 --- a/dri

Re: [PATCH v3 2/2] net: core: support XDP generic on stacked devices.

2019-05-23 Thread Stephen Hemminger
On Thu, 23 May 2019 19:19:40 + Saeed Mahameed wrote: > On Thu, 2019-05-23 at 10:54 -0700, Stephen Hemminger wrote: > > When a device is stacked like (team, bonding, failsafe or netvsc) the > > XDP generic program for the parent device was not called. > > > > M

Re: [RFC net-next 1/1] net: sched: protect against loops in TC filter hooks

2019-05-24 Thread Stephen Hemminger
On Fri, 24 May 2019 17:05:46 +0100 John Hurley wrote: > TC hooks allow the application of filters and actions to packets at both > ingress and egress of the network stack. It is possible, with poor > configuration, that this can produce loops whereby an ingress hook calls > a mirred egress action

Fw: [Bug 203703] New: 5.1 regression makes r8169 Ethernet connection inoperable if fq_codel qdisc is used

2019-05-26 Thread Stephen Hemminger
Begin forwarded message: Date: Sat, 25 May 2019 04:55:19 + From: bugzilla-dae...@bugzilla.kernel.org To: step...@networkplumber.org Subject: [Bug 203703] New: 5.1 regression makes r8169 Ethernet connection inoperable if fq_codel qdisc is used https://bugzilla.kernel.org/show_bug.cgi?id=2

Re: netdev_alloc_skb is failing for 16k length

2019-05-27 Thread Stephen Hemminger
On Mon, 27 May 2019 12:21:51 +0530 Arun Kumar Neelakantam wrote: > Hi team, > > we are using "skb = netdev_alloc_skb(NULL, len);" which is getting > failed sometimes for len = 16k. > > I suspect mostly system memory got fragmented and hence atomic memory > allocation for 16k is failing, can y

Fw: [Bug 203743] New: Networking goes down when running Docker and receiving fragmented IPv4 packets

2019-05-28 Thread Stephen Hemminger
Begin forwarded message: Date: Tue, 28 May 2019 15:49:52 + From: bugzilla-dae...@bugzilla.kernel.org To: step...@networkplumber.org Subject: [Bug 203743] New: Networking goes down when running Docker and receiving fragmented IPv4 packets https://bugzilla.kernel.org/show_bug.cgi?id=203743

[PATCH PATCH v4 2/2] net: core: support XDP generic on stacked devices.

2019-05-28 Thread Stephen Hemminger
neric on virtual devices") Signed-off-by: Stephen Hemminger --- v1 - call xdp_generic in netvsc handler v2 - do xdp_generic in generic rx handler processing v3 - move xdp_generic call inside the another pass loop v4 - reset skb mac_len after xdp is called net/core/

[PATCH PATCH v4 0/2] XDP generic fixes

2019-05-28 Thread Stephen Hemminger
This set of patches came about while investigating XDP generic on Azure. The split brain nature of the accelerated networking exposed issues with the stack device model. Stephen Hemminger (2): netvsc: unshare skb in VF rx handler net: core: support XDP generic on stacked devices. drivers

[PATCH PATCH v4 1/2] netvsc: unshare skb in VF rx handler

2019-05-28 Thread Stephen Hemminger
Fixes: 0c195567a8f6 ("netvsc: transparent VF management") Signed-off-by: Stephen Hemminger --- drivers/net/hyperv/netvsc_drv.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 06393b215102..9873b8679f81 100644 --- a/dri

Re: [PATCH iproute2] lib: suppress error msg when filling the cache

2019-05-28 Thread Stephen Hemminger
On Fri, 24 May 2019 10:08:28 -0600 David Ahern wrote: > On 5/24/19 2:59 AM, Nicolas Dichtel wrote: > > Before the patch: > > $ ip netns add foo > > $ ip link add name veth1 address 2a:a5:5c:b9:52:89 type veth peer name > > veth2 address 2a:a5:5c:b9:53:90 netns foo > > RTNETLINK answers: No such

Re: [PATCH] tc: flower: fix port value truncation

2019-05-28 Thread Stephen Hemminger
On Mon, 27 May 2019 23:03:49 +0200 Lukasz Czapnik wrote: > sscanf truncates read port values silently without any error. As sscanf > man says: > (...) sscanf() conform to C89 and C99 and POSIX.1-2001. These standards > do not specify the ERANGE error. > > Replace sscanf with safer get_be16 that

Re: [RFC PATCH iproute2-next 1/1] tc: add support for act ctinfo

2019-05-30 Thread Stephen Hemminger
On Thu, 30 May 2019 16:43:20 + Kevin 'ldir' Darbyshire-Bryant wrote: > diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h > index 51a0496f..b0c6a49a 100644 > --- a/include/uapi/linux/pkt_cls.h > +++ b/include/uapi/linux/pkt_cls.h > @@ -105,7 +105,8 @@ enum tca_id { >

Re: [RFC PATCH iproute2-next 1/1] tc: add support for act ctinfo

2019-05-30 Thread Stephen Hemminger
On Thu, 30 May 2019 16:43:20 + Kevin 'ldir' Darbyshire-Bryant wrote: > ctinfo is an action restoring data stored in conntrack marks to various > fields. At present it has two independent modes of operation, > restoration of DSCP into IPv4/v6 diffserv and restoration of conntrack > marks into

Re: [PATCH iproute2-next 1/9] libnetlink: Set NLA_F_NESTED in rta_nest

2019-05-30 Thread Stephen Hemminger
On Wed, 29 May 2019 20:17:38 -0700 David Ahern wrote: > From: David Ahern > > Kernel now requires NLA_F_NESTED to be set on new nested > attributes. Set NLA_F_NESTED in rta_nest. > > Signed-off-by: David Ahern > --- > lib/libnetlink.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a

Re: [PATCH iproute2-next 7/9] Add support for nexthop objects

2019-05-30 Thread Stephen Hemminger
On Wed, 29 May 2019 20:17:44 -0700 David Ahern wrote: > +static struct > +{ kernel style is: static struct { ...

Re: [PATCH iproute2-next 7/9] Add support for nexthop objects

2019-05-30 Thread Stephen Hemminger
On Wed, 29 May 2019 20:17:44 -0700 David Ahern wrote: > + > +struct rtnl_handle rth_del = { .fd = -1 }; > + can this be static?

Re: [PATCH iproute2-next 7/9] Add support for nexthop objects

2019-05-30 Thread Stephen Hemminger
On Wed, 29 May 2019 20:17:44 -0700 David Ahern wrote: > + > +static void print_nh_gateway(FILE *fp, const struct nhmsg *nhm, > + const struct rtattr *rta) > +{ > + const char *gateway = format_host_rta(nhm->nh_family, rta); > + > + if (is_json_context()) > +

Re: [PATCH iproute2] iplink: don't try to get ll addr len when creating an iface

2019-05-30 Thread Stephen Hemminger
On Wed, 29 May 2019 16:42:10 +0200 Nicolas Dichtel wrote: > It will obviously fail. This is a follow up of the commit > 757837230a65 ("lib: suppress error msg when filling the cache"). > > Suggested-by: David Ahern > Signed-off-by: Nicolas Dichtel Looks good, thanks for following up. Applied.

Re: [PATCH iproute2] bridge: mdb: restore text output format

2019-05-30 Thread Stephen Hemminger
On Wed, 29 May 2019 20:52:42 +0300 Nikolay Aleksandrov wrote: > While I fixed the mdb json output, I did overlook the text output. > This patch returns the original text output format: > dev port grp > Example (old format, restored by this patch): > dev br0 port eth8 grp 239.1.1.11 temp >

Re: [PATCH net v2 1/3] net/sched: act_csum: pull all VLAN headers before checksumming

2019-05-30 Thread Stephen Hemminger
On Thu, 30 May 2019 20:03:41 +0200 Davide Caratti wrote: > > +static inline int tc_skb_pull_vlans(struct sk_buff *skb, > + unsigned int *hdr_count, > + __be16 *proto) > +{ > + if (skb_vlan_tag_present(skb)) > + *pro

Re: [RFC PATCH iproute2-next 1/1] tc: add support for act ctinfo

2019-05-30 Thread Stephen Hemminger
On Thu, 30 May 2019 16:43:20 + Kevin 'ldir' Darbyshire-Bryant wrote: Please don't use HTML encoded mail. I.e not exchange. > + > + if (argc) { > + if (matches(*argv, "dscp") == 0) { > + NEXT_ARG(); > + char *slash; > +

Fw: [Bug 203769] New: Regression: Valid network link no longer detected

2019-06-01 Thread Stephen Hemminger
Details are a bit scarce. The referenced commit is. commit 7dc2bccab0ee37ac28096b8fcdc390a679a15841 Author: Maxim Mikityanskiy Date: Tue May 21 06:40:04 2019 + Validate required parameters in inet6_validate_link_af Begin forwarded message: Date: Sat, 01 Jun 2019 09:53:51 + From

Re: [PATCH iproute2-next v1] tc: add support for action act_ctinfo

2019-06-03 Thread Stephen Hemminger
On Mon, 3 Jun 2019 21:41:43 +0100 Kevin Darbyshire-Bryant wrote: > ctinfo is an action restoring data stored in conntrack marks to various > fields. At present it has two independent modes of operation, > restoration of DSCP into IPv4/v6 diffserv and restoration of conntrack > marks into packet

Re: [PATCH iproute2] man: tc-skbedit.8: document 'inheritdsfield'

2019-06-04 Thread Stephen Hemminger
On Fri, 31 May 2019 14:12:15 +0200 Davide Caratti wrote: > while at it, fix missing square bracket near 'ptype' and a typo in the > action description (it's -> its). > > Signed-off-by: Davide Caratti Applied. Thanks

Re: [PATCH] devlink: fix libc and kernel headers collision

2019-06-04 Thread Stephen Hemminger
On Thu, 30 May 2019 18:32:27 +0300 Baruch Siach wrote: > Since commit 2f1242efe9d ("devlink: Add devlink health show command") we > use the sys/sysinfo.h header for the sysinfo(2) system call. But since > iproute2 carries a local version of the kernel struct sysinfo, this > causes a collision wit

Re: [PATCH] devlink: fix libc and kernel headers collision

2019-06-04 Thread Stephen Hemminger
On Thu, 30 May 2019 18:32:27 +0300 Baruch Siach wrote: > Since commit 2f1242efe9d ("devlink: Add devlink health show command") we > use the sys/sysinfo.h header for the sysinfo(2) system call. But since > iproute2 carries a local version of the kernel struct sysinfo, this > causes a collision wit

Re: [PATCH iproute2] tc: simple: don't hardcode the control action

2019-06-04 Thread Stephen Hemminger
On Fri, 31 May 2019 11:34:46 +0200 Davide Caratti wrote: > don't hardcode the 'pipe' control action, so that the following TDC test > > b776 - Replace simple action with invalid goto chain control > > can detect kernels that correctly validate 'goto chain' control action. > > CC: Andrea Claud

[PATCH] revert async probing of VMBus network devices.

2019-06-05 Thread Stephen Hemminger
VM's where 30% of the time eth0 and eth1 get swapped. Note: udev MAC address policy is disabled on Azure images because the netvsc and PCI VF will have the same mac address. Fixes: af0a5646cb8d ("use the new async probing feature for the hyperv drivers") Signed-off-by: Stephen He

Re: [PATCH RFC iproute2-next v4] tc: add support for action act_ctinfo

2019-06-05 Thread Stephen Hemminger
On Wed, 05 Jun 2019 11:23:59 -0700 Joe Perches wrote: > Strict 80 column limits with long identifiers are just silly. > > I don't know how strictly enforced the iproute2 80 column limit > actually is, but I suggest ignoring that limit where appropriate. Not strictly enforced, but long identifi

Re: [PATCH iproute2-next] devlink: Increase bus,device buffer size to 64 bytes

2019-06-06 Thread Stephen Hemminger
On Thu, 6 Jun 2019 06:49:19 -0500 Parav Pandit wrote: > Device name on mdev bus is 36 characters long which follow standard uuid > RFC 4122. > This is probably the longest name that a kernel will return for a > device. > > Hence increase the buffer size to 64 bytes. > > Acked-by: Jiri Pirko >

Re: [PATCH iproute2 net-next v1 3/6] taprio: Add support for enabling offload mode

2019-06-06 Thread Stephen Hemminger
On Thu, 6 Jun 2019 10:52:18 -0700 Vedang Patel wrote: > @@ -405,6 +420,7 @@ static int taprio_print_opt(struct qdisc_util *qu, FILE > *f, struct rtattr *opt) > struct rtattr *tb[TCA_TAPRIO_ATTR_MAX + 1]; > struct tc_mqprio_qopt *qopt = 0; > __s32 clockid = CLOCKID_INVALID; > +

Re: [PATCH iproute2 net-next v1 4/6] taprio: add support for setting txtime_delay.

2019-06-06 Thread Stephen Hemminger
On Thu, 6 Jun 2019 10:52:19 -0700 Vedang Patel wrote: > + if (tb[TCA_TAPRIO_ATTR_TXTIME_DELAY]) > + txtime_delay = > rta_getattr_s32(tb[TCA_TAPRIO_ATTR_TXTIME_DELAY]); > + > + print_int(PRINT_ANY, "txtime_delay", " txtime delay %d", txtime_delay); > + Once again do not prin

Re: [PATCH] revert async probing of VMBus network devices.

2019-06-06 Thread Stephen Hemminger
On Wed, 5 Jun 2019 11:51:14 -0700 Stephen Hemminger wrote: > Doing asynchronous probing can lead to reordered network device names. > And because udev doesn't have any useful information to construct a > persistent name, this causes VM's to sporadically boot with reordered &g

Re: [PATCH iproute2 1/1] tc: Fix binding of gact action by index.

2019-06-06 Thread Stephen Hemminger
On Thu, 6 Jun 2019 17:32:09 -0400 Roman Mashak wrote: > The following operation fails: > % sudo tc actions add action pipe index 1 > % sudo tc filter add dev lo parent : \ >protocol ip pref 10 u32 match ip src 127.0.0.2 \ >flowid 1:10 action gact index 1 > > Bad action type

Re: [PATCH iproute2 1/1] tc: Fix binding of gact action by index.

2019-06-06 Thread Stephen Hemminger
On Thu, 6 Jun 2019 17:32:09 -0400 Roman Mashak wrote: > The following operation fails: > % sudo tc actions add action pipe index 1 > % sudo tc filter add dev lo parent : \ >protocol ip pref 10 u32 match ip src 127.0.0.2 \ >flowid 1:10 action gact index 1 > > Bad action type

Re: [PATCH iproute2 v2] tc: simple: don't hardcode the control action

2019-06-06 Thread Stephen Hemminger
--+-+- > 5.1.0 | FAIL (bad IDR) | FAIL (bad IDR) > 5.1.0(patched)| FAIL (no rule/bad sdata)| PASS > > Changes since v1: > - reword commit message, thanks Stephen Hemminger > > Fixes: 087f46ee4ebd ("tc: introduce simple action") > CC: Andrea Claudi > CC: Marcelo Ricardo Leitner > Signed-off-by: Davide Caratti Applied, thanks

Re: [PATCH iproute2 net-next v1 3/6] taprio: Add support for enabling offload mode

2019-06-06 Thread Stephen Hemminger
On Thu, 6 Jun 2019 21:13:50 + "Patel, Vedang" wrote: > > On Jun 6, 2019, at 12:43 PM, Stephen Hemminger > > wrote: > > > > On Thu, 6 Jun 2019 10:52:18 -0700 > > Vedang Patel wrote: > > > >> @@ -405,6 +420,7 @@ static int taprio

Fw: [Bug 203843] New: e1000e crash when ethernet is plugged in

2019-06-07 Thread Stephen Hemminger
Begin forwarded message: Date: Fri, 07 Jun 2019 10:09:19 + From: bugzilla-dae...@bugzilla.kernel.org To: step...@networkplumber.org Subject: [Bug 203843] New: e1000e crash when ethernet is plugged in https://bugzilla.kernel.org/show_bug.cgi?id=203843 Bug ID: 203843

Re: [PATCH iproute2] ip: reset netns after each command in batch mode

2019-06-07 Thread Stephen Hemminger
On Fri, 7 Jun 2019 12:13:13 +0200 Matteo Croce wrote: > +void netns_restore(void) > +{ > + if (saved_netns != -1) { If saved_netns is -1 then it is a program bug becase no save was done? then do something? > + if (!setns(saved_netns, CLONE_NEWNET)) { > + cl

Re: [PATCH v2 iproute-next 10/10] ipmonitor: Add nexthop option to monitor

2019-06-07 Thread Stephen Hemminger
icate > nexthop group is joined by default and a second that indicates a > specific selection by the user (e.g, ip mon nexthop route). > > Signed-off-by: David Ahern Acked-by: Stephen Hemminger

Fw: [Bug 203847] New: VMware e1000 adapter doesn't get an IP address assigned. Manually assigning one does not solve the issue

2019-06-07 Thread Stephen Hemminger
Begin forwarded message: Date: Fri, 07 Jun 2019 23:53:00 + From: bugzilla-dae...@bugzilla.kernel.org To: step...@networkplumber.org Subject: [Bug 203847] New: VMware e1000 adapter doesn't get an IP address assigned. Manually assigning one does not solve the issue https://bugzilla.kernel.

Re: [PATCH iproute2 v2] ip: reset netns after each command in batch mode

2019-06-10 Thread Stephen Hemminger
On Fri, 7 Jun 2019 22:41:22 +0200 Matteo Croce wrote: > When creating a new netns or executing a program into an existing one, > the unshare() or setns() calls will change the current netns. > In batch mode, this can run commands on the wrong interfaces, as the > ifindex value is meaningful only

Re: [PATCH iproute2] ip6tunnel: fix 'ip -6 {show|change} dev ' cmds

2019-06-10 Thread Stephen Hemminger
On Thu, 6 Jun 2019 16:44:26 -0700 Mahesh Bandewar wrote: > Inclusion of 'dev' is allowed by the syntax but not handled > correctly by the command. It produces no output for show > command and falsely successful for change command but does > not make any changes. > > can be verified with the fol

Re: [PATCH iproute2 1/2] netns: switch netns in the child when executing commands

2019-06-10 Thread Stephen Hemminger
On Tue, 11 Jun 2019 00:16:12 +0200 Matteo Croce wrote: > + printf("\nnetns: %s\n", nsname); > + cmd_exec(argv[0], argv, true, nsname); > return 0; simple printf breaks JSON output.

Re: [PATCH iproute2 1/2] netns: switch netns in the child when executing commands

2019-06-10 Thread Stephen Hemminger
On Tue, 11 Jun 2019 01:03:57 +0200 Matteo Croce wrote: > On Tue, Jun 11, 2019 at 12:52 AM Matteo Croce wrote: > > > > On Tue, Jun 11, 2019 at 12:46 AM Stephen Hemminger > > wrote: > > > > > > On Tue, 11 Jun 2019 00:16:12 +0200 > > > Matteo Cro

Re: [PATCH iproute2] utils: don't match empty strings as prefixes

2019-07-15 Thread Stephen Hemminger
On Sun, 14 Jul 2019 16:57:54 +0200 Matteo Croce wrote: > On Wed, Jul 10, 2019 at 1:18 AM Matteo Croce wrote: > > > > On Tue, Jul 9, 2019 at 11:38 PM Stephen Hemminger > > wrote: > > > > > > On Tue, 9 Jul 2019 22:40:40 +0200 > > > Matteo Croc

Re: [PATCH iproute2 net-next v2 1/6] Kernel header update for hardware offloading changes.

2019-07-15 Thread Stephen Hemminger
On Mon, 15 Jul 2019 19:40:19 + "Patel, Vedang" wrote: > Hi Stephen, > > The kernel patches corresponding to this series have been merged. I just > wanted to check whether these iproute2 related patches are on your TODO list. > > Let me know if you need any information from me on these pat

Re: [PATCH iproute2] tc: util: constrain percentage in 0-100 interval

2019-07-15 Thread Stephen Hemminger
On Sat, 13 Jul 2019 11:44:07 +0200 Andrea Claudi wrote: > parse_percent() currently allows to specify negative percentages > or value above 100%. However this does not seems to make sense, > as the function is used for probabilities or bandiwidth rates. > > Moreover, using negative values leads

Re: [PATCH iproute2 v2] utils: don't match empty strings as prefixes

2019-07-15 Thread Stephen Hemminger
On Mon, 15 Jul 2019 20:04:30 +0200 Matteo Croce wrote: > iproute has an utility function which checks if a string is a prefix for > another one, to allow use of abbreviated commands, e.g. 'addr' or 'a' > instead of 'address'. > > This routine unfortunately considers an empty string as prefix > o

Re: [PATCH iproute2 master 0/3] devlink dumpit fixes

2019-07-15 Thread Stephen Hemminger
On Wed, 10 Jul 2019 14:03:18 +0300 Tariq Toukan wrote: > Hi, > > This series from Aya contains several fixes for devlink health > dump show command with binary data. > > In patch 1 we replace the usage of doit with a dumpit, which > is non-blocking and allows transferring larger amount of data.

Re: [PATCH iproute2-rc 1/8] rdma: Update uapi headers to add statistic counter support

2019-07-15 Thread Stephen Hemminger
On Wed, 10 Jul 2019 10:24:48 +0300 Leon Romanovsky wrote: > From: Mark Zhang > > Update rdma_netlink.h to kernel commit 6e7be47a5345 ("RDMA/nldev: > Allow get default counter statistics through RDMA netlink"). > > Signed-off-by: Mark Zhang > Signed-off-by: Leon Romanovsky I am waiting on th

Re: [PATCH iproute2 net-next v3 2/5] taprio: Add support for setting flags

2019-07-15 Thread Stephen Hemminger
On Mon, 15 Jul 2019 15:51:41 -0700 Vedang Patel wrote: > @@ -405,6 +420,7 @@ static int taprio_print_opt(struct qdisc_util *qu, FILE > *f, struct rtattr *opt) > struct rtattr *tb[TCA_TAPRIO_ATTR_MAX + 1]; > struct tc_mqprio_qopt *qopt = 0; > __s32 clockid = CLOCKID_INVALID; > +

Re: [PATCH iproute2 net-next v3 3/5] taprio: add support for setting txtime_delay.

2019-07-15 Thread Stephen Hemminger
On Mon, 15 Jul 2019 15:51:42 -0700 Vedang Patel wrote: > + if (get_s32(&txtime_delay, *argv, 0)) { Is txtime_delay of a negative value meaningful?

Re: [PATCH iproute2 net-next v3 2/5] taprio: Add support for setting flags

2019-07-15 Thread Stephen Hemminger
On Mon, 15 Jul 2019 17:15:15 -0700 Jakub Kicinski wrote: > On Mon, 15 Jul 2019 16:37:43 -0700, Stephen Hemminger wrote: > > On Mon, 15 Jul 2019 15:51:41 -0700 > > Vedang Patel wrote: > > > @@ -442,6 +458,11 @@ static int taprio_print_opt(struct qdisc_util *qu, >

Re: [PATCH iproute2-rc 2/8] rdma: Add "stat qp show" support

2019-07-16 Thread Stephen Hemminger
On Wed, 10 Jul 2019 10:24:49 +0300 Leon Romanovsky wrote: > From: Mark Zhang > > This patch presents link, id, task name, lqpn, as well as all sub > counters of a QP counter. > A QP counter is a dynamically allocated statistic counter that is > bound with one or more QPs. It has several sub-cou

Re: [PATCH iproute2 0/2] Fix IPv6 tunnel add when dev param is used

2019-07-16 Thread Stephen Hemminger
On Tue, 9 Jul 2019 15:16:49 +0200 Andrea Claudi wrote: > Commit ba126dcad20e6 ("ip6tunnel: fix 'ip -6 {show|change} dev > ' cmds") breaks IPv6 tunnel creation when dev parameter > is used. > > This series revert the original commit, which mistakenly use > dev for tunnel name, while addressing a

Re: [PATCH iproute2 net-next v5 1/5] etf: Add skip_sock_check

2019-07-18 Thread Stephen Hemminger
On Thu, 18 Jul 2019 12:55:39 -0700 Vedang Patel wrote: > - print_string(PRINT_ANY, "deadline_mode", "deadline_mode %s", > + print_string(PRINT_ANY, "deadline_mode", "deadline_mode %s ", > (qopt->flags & TC_ETF_DEADLINE_MODE_ON) ? "on" > : "off"); > + pri

Re: [patch net-next rfc 2/7] net: introduce name_node struct to be used in hashlist

2019-07-19 Thread Stephen Hemminger
On Fri, 19 Jul 2019 13:00:24 +0200 Jiri Pirko wrote: > From: Jiri Pirko > > Signed-off-by: Jiri Pirko > --- > include/linux/netdevice.h | 10 +++- > net/core/dev.c| 96 +++ > 2 files changed, 86 insertions(+), 20 deletions(-) > > diff --git a/i

Re: [patch net-next rfc 0/7] net: introduce alternative names for network interfaces

2019-07-19 Thread Stephen Hemminger
On Fri, 19 Jul 2019 13:00:22 +0200 Jiri Pirko wrote: > From: Jiri Pirko > > In the past, there was repeatedly discussed the IFNAMSIZ (16) limit for > netdevice name length. Now when we have PF and VF representors > with port names like "pfXvfY", it became quite common to hit this limit: > 01234

Re: [PATCH iproute2-rc v1 0/7] Statistics counter support

2019-07-19 Thread Stephen Hemminger
On Wed, 17 Jul 2019 17:31:49 +0300 Leon Romanovsky wrote: > From: Leon Romanovsky > > Changelog v0->v1: > * Fixed typo in manual page (Gal) > * Rebased on top of d035cc1b "ip tunnel: warn when changing IPv6 tunnel > without tunnel name" > * Dropped update header file because it was already

Re: [PATCH iproute2] json: fix backslash escape typo in jsonw_puts

2019-07-19 Thread Stephen Hemminger
On Wed, 17 Jul 2019 18:15:31 -0700 Ivan Delalande wrote: > Fixes: fcc16c22 ("provide common json output formatter") > Signed-off-by: Ivan Delalande Applied.

Re: [patch net-next rfc 2/7] net: introduce name_node struct to be used in hashlist

2019-07-19 Thread Stephen Hemminger
On Fri, 19 Jul 2019 21:17:40 +0200 Jiri Pirko wrote: > Fri, Jul 19, 2019 at 06:29:36PM CEST, step...@networkplumber.org wrote: > >On Fri, 19 Jul 2019 13:00:24 +0200 > >Jiri Pirko wrote: > > > >> From: Jiri Pirko > >> > >> Signed-off-by: Jiri Pirko > >> --- > >> include/linux/netdevice.h |

Re: [PATCH iproute2] etf: make printing of variable JSON friendly

2019-07-19 Thread Stephen Hemminger
9383cdc ("etf: Add skip_sock_check") > Reported-by: Stephen Hemminger > Signed-off-by: Vedang Patel > --- > tc/q_etf.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/tc/q_etf.c b/tc/q_etf.c > index c2090589bc64..307c50eed48b 10064

Re: [patch iproute2 1/2] tc: action: fix crash caused by incorrect *argv check

2019-07-23 Thread Stephen Hemminger
On Tue, 23 Jul 2019 13:25:37 +0200 Jiri Pirko wrote: > From: Jiri Pirko > > One cannot depend on *argv being null in case of no arg is left on the > command line. For example in batch mode, this is not always true. Check > argc instead to prevent crash. > > Reported-by: Alex Kushnarov > Fixes

Re: [patch iproute2 1/2] tc: action: fix crash caused by incorrect *argv check

2019-07-23 Thread Stephen Hemminger
On Tue, 23 Jul 2019 13:25:37 +0200 Jiri Pirko wrote: > From: Jiri Pirko > > One cannot depend on *argv being null in case of no arg is left on the > command line. For example in batch mode, this is not always true. Check > argc instead to prevent crash. > > Reported-by: Alex Kushnarov > Fixes

Re: [PATCH iproute2] etf: make printing of variable JSON friendly

2019-07-23 Thread Stephen Hemminger
wrote: > >>> > >>> On 7/19/19 3:40 PM, Vedang Patel wrote: > >>>> In iproute2 txtime-assist series, it was pointed out that print_bool() > >>>> should be used to print binary values. This is to make it JSON friendly. > >>>> > >>&

Re: [PATCH] iproute2: devlink: use sys/queue.h from libbsd as a fallback

2019-07-26 Thread Stephen Hemminger
; > The change pulls in 'sys/queue.h' from libbsd in case > system headers don't already provides it. > > Tested on linux-musl and linux-glibc. > > Bug: https://bugs.gentoo.org/690486 > CC: Stephen Hemminger > CC: netdev@vger.kernel.org > Signed-

Re: [PATCH iproute2] iplink: document the 'link change' subcommand

2019-07-26 Thread Stephen Hemminger
On Wed, 24 Jul 2019 21:12:18 +0200 Matteo Croce wrote: > ip link can set parameters both via the 'set' and 'change' keyword. > In fact, 'change' is an alias for 'set'. > Document this in the help and manpage. > > Fixes: 1d93483985f0 ("iplink: use netlink for link configuration") > Signed-off-by:

Re: [patch iproute2 1/2] tc: action: fix crash caused by incorrect *argv check

2019-07-26 Thread Stephen Hemminger
On Tue, 23 Jul 2019 21:36:00 +0200 Jiri Pirko wrote: > Tue, Jul 23, 2019 at 07:54:01PM CEST, step...@networkplumber.org wrote: > >On Tue, 23 Jul 2019 13:25:37 +0200 > >Jiri Pirko wrote: > > > >> From: Jiri Pirko > >> > >> One cannot depend on *argv being null in case of no arg is left on the

Re: [patch iproute2 1/2] tc: action: fix crash caused by incorrect *argv check

2019-07-26 Thread Stephen Hemminger
On Tue, 23 Jul 2019 13:25:37 +0200 Jiri Pirko wrote: > From: Jiri Pirko > > One cannot depend on *argv being null in case of no arg is left on the > command line. For example in batch mode, this is not always true. Check > argc instead to prevent crash. > > Reported-by: Alex Kushnarov > Fixes

Re: [patch iproute2 2/2] tc: batch: fix line/line_next processing in batch

2019-07-26 Thread Stephen Hemminger
line_next. So change the flow and don't process it. Alongside with that, free the previous line buffer and prevent memory leak. Also, avoid passing uninitialized memory to filters. Fixes: 485d0c6001c4 ("tc: Add batchsize feature for filter and actions") Signed-off-by: Jiri Pirk

[PATCH] iplink: document 'change' option to ip link

2019-07-26 Thread Stephen Hemminger
Add the command alias "change" to man page. Don't show it on usage, since it is not commonly used. Reported-off-by: Matteo Croce Signed-off-by: Stephen Hemminger --- man/man8/ip-link.8.in | 5 + 1 file changed, 5 insertions(+) diff --git a/man/man8/ip-link.8.in b/man/ma

Re: [PATCH v2] iproute2: devlink: port from sys/queue.h to list.h

2019-07-26 Thread Stephen Hemminger
; The change ports to list.h API and drops dependency of 'sys/queue.h'. > The API maps one-to-one. > > Build-tested on linux-musl and linux-glibc. > > Bug: https://bugs.gentoo.org/690486 > CC: Stephen Hemminger > CC: netdev@vger.kernel.org > Signed-off-by: Sergei

Re: [PATCH] iplink_can: fix format output of clock with flag -details

2019-07-26 Thread Stephen Hemminger
On Fri, 26 Jul 2019 15:06:09 +0200 Antonio Borneo wrote: > The command > ip -details link show can0 > prints in the last line the value of the clock frequency attached > to the name of the following value "numtxqueues", e.g. > clock 4950numtxqueues 1 numrxqueues 1 gso_max_size >

Re: ip route JSON format is unparseable for "unreachable" routes

2019-07-28 Thread Stephen Hemminger
] },{ "type": "unreachable", "dst": "192.168.23.0/24", "protocol": "boot", "scope": "global", "flags": [ ] },{ "type": "prohibit", "dst": "192.168.24.0/24", "protocol": "boot", "scope": "global", "flags": [ ] },{ "type": "blackhole", "dst": "192.168.25.0/24", "protocol": "boot", "scope": "global", "flags": [ ] } ] Fixes: 663c3cb23103 ("iproute: implement JSON and color output") Acked-by: Phil Sutter Reviewed-and-tested-by: Andrea Claudi Signed-off-by: Matteo Croce Signed-off-by: Stephen Hemminger

Re: [PATCH iproute2 0/1] Fix s64 argument parsing

2019-07-29 Thread Stephen Hemminger
On Mon, 29 Jul 2019 13:04:09 +0200 Kurt Kanzenbach wrote: > On Thu, Jul 04, 2019 at 02:24:26PM +0200, Kurt Kanzenbach wrote: > > Hi, > > > > while using the TAPRIO Qdisc on ARM32 I've noticed that the base_time > > parameter is > > incorrectly configured. The problem is the utility function get_

Re: [PATCH v4 net-next 15/19] ionic: Add netdev-event handling

2019-07-30 Thread Stephen Hemminger
On Mon, 22 Jul 2019 14:40:19 -0700 Shannon Nelson wrote: > + > +static void ionic_lif_set_netdev_info(struct lif *lif) > +{ > + struct ionic_admin_ctx ctx = { > + .work = COMPLETION_INITIALIZER_ONSTACK(ctx.work), > + .cmd.lif_setattr = { > + .opcode

[RFC iproute2 0/4] Revert tc batchsize feature

2019-07-31 Thread Stephen Hemminger
For example, the routing daemons have figured out that by using multiple threads and turning off the netlink ACK they can update millions of routes quickly. Stephen Hemminger (4): Revert "tc: Remove pointless assignments in batch()" Revert "tc: flush after each command in batch mod

[RFC iproute2 3/4] Revert "tc: fix batch force option"

2019-07-31 Thread Stephen Hemminger
This reverts commit b133392468d1f404077a8f3554d1f63d48bb45e8. --- tc/tc.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/tc/tc.c b/tc/tc.c index c115155b2234..b7b6bd288897 100644 --- a/tc/tc.c +++ b/tc/tc.c @@ -334,7 +334,6 @@ static int batch(const char *

[RFC iproute2 2/4] Revert "tc: flush after each command in batch mode"

2019-07-31 Thread Stephen Hemminger
This reverts commit d66fdfda71e4a30c1ca0ddb7b1a048bef30fe79e. --- tc/tc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tc/tc.c b/tc/tc.c index 1f23971ae4b9..c115155b2234 100644 --- a/tc/tc.c +++ b/tc/tc.c @@ -405,7 +405,6 @@ static int batch(const char *name) err = do_cmd(l

[RFC iproute2 4/4] Revert "tc: Add batchsize feature for filter and actions"

2019-07-31 Thread Stephen Hemminger
This reverts commit 485d0c6001c4aa134b99c86913d6a7089b7b2ab0. --- tc/m_action.c | 65 ++-- tc/tc.c| 199 - tc/tc_common.h | 7 +- tc/tc_filter.c | 129 4 files changed, 87 insertions(+), 313 de

[RFC iproute2 1/4] Revert "tc: Remove pointless assignments in batch()"

2019-07-31 Thread Stephen Hemminger
This reverts commit 6358bbc381c6e38465838370bcbbdeb77ec3565a. --- tc/tc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tc/tc.c b/tc/tc.c index 64e342dd85bf..1f23971ae4b9 100644 --- a/tc/tc.c +++ b/tc/tc.c @@ -326,11 +326,11 @@ static int batch(const char *name) st

Fw: [Bug 204399] New: error in handling vlan tag by raw ethernet socket

2019-08-01 Thread Stephen Hemminger
Begin forwarded message: Date: Thu, 01 Aug 2019 06:37:39 + From: bugzilla-dae...@bugzilla.kernel.org To: step...@networkplumber.org Subject: [Bug 204399] New: error in handling vlan tag by raw ethernet socket https://bugzilla.kernel.org/show_bug.cgi?id=204399 Bug ID: 204399

Re: [PATCH iproute2-next] ip tunnel: add json output

2019-08-01 Thread Stephen Hemminger
On Thu, 1 Aug 2019 12:12:58 +0200 Andrea Claudi wrote: > Add json support on iptunnel and ip6tunnel. > The plain text output format should remain the same. > > Signed-off-by: Andrea Claudi > --- > ip/ip6tunnel.c | 82 +++-- > ip/iptunnel.c | 90 +++

Re: [PATCH iproute2-next] ip tunnel: add json output

2019-08-02 Thread Stephen Hemminger
On Fri, 2 Aug 2019 13:14:15 +0200 Andrea Claudi wrote: > On Thu, Aug 1, 2019 at 5:16 PM Stephen Hemminger > wrote: > > > > On Thu, 1 Aug 2019 12:12:58 +0200 > > Andrea Claudi wrote: > > > > > Add json support on iptunnel and ip6tunnel. > > >

Re: [patch iproute2] devlink: finish queue.h to list.h transition

2019-08-05 Thread Stephen Hemminger
On Mon, 5 Aug 2019 11:56:56 +0200 Jiri Pirko wrote: > From: Jiri Pirko > > Loose the "q" from the names and name the structure fields in the same > way rest of the code does. Also, fix list_add arg order which leads > to segfault. > > Fixes: 33267017faf1 ("iproute2: devlink: port from sys/que

[PATCH net 1/2] docs: admin-guide: remove references to IPX and token-ring

2019-08-05 Thread Stephen Hemminger
Both IPX and TR have not been supported for a while now. Remove them from the /proc/sys/net documentation. Signed-off-by: Stephen Hemminger --- Documentation/admin-guide/sysctl/net.rst | 29 +--- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/Documentation

[PATCH net 2/2] net: docs: replace IPX in tuntap documentation

2019-08-05 Thread Stephen Hemminger
IPX is no longer supported, but the example in the documentation might useful. Replace it with IPv6. Signed-off-by: Stephen Hemminger --- Documentation/networking/tuntap.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/networking/tuntap.txt b

Re: [PATCH iproute2-next] ss: sctp: fix typo for nodelay

2019-08-06 Thread Stephen Hemminger
On Sat, 3 Aug 2019 10:37:41 +0200 Patrick Talbert wrote: > nodealy should be nodelay. > > Signed-off-by: Patrick Talbert Both patches applied to current iproute2

Re: [PATCH 12/17] skge: no need to check return value of debugfs_create functions

2019-08-06 Thread Stephen Hemminger
On Tue, 6 Aug 2019 18:11:23 +0200 Greg Kroah-Hartman wrote: > When calling debugfs functions, there is no need to ever check the > return value. The function can work or not, but the code logic should > never do something different based on this. > > Cc: Mirko Lindner > Cc:

Re: [patch net-next rfc 3/7] net: rtnetlink: add commands to add and delete alternative ifnames

2019-08-12 Thread Stephen Hemminger
On Mon, 12 Aug 2019 10:31:39 +0200 Jiri Pirko wrote: > Mon, Aug 12, 2019 at 03:37:26AM CEST, dsah...@gmail.com wrote: > >On 8/11/19 7:34 PM, David Ahern wrote: > >> On 8/10/19 12:30 AM, Jiri Pirko wrote: > >>> Could you please write me an example message of add/remove? > >> > >> altnames a

Re: [PATCH iproute2] tc: Fix block-handle support for filter operations

2019-08-12 Thread Stephen Hemminger
On Mon, 12 Aug 2019 13:17:06 +0300 Ido Schimmel wrote: > From: Ido Schimmel > > Commit e991c04d64c0 ("Revert "tc: Add batchsize feature for filter and > actions"") reverted more than it should and broke shared block > functionality. Fix this by restoring the original functionality. > > To repr

Fw: [Bug 211175] New: gretap does not fragment packets regardless of the DF flag

2021-01-14 Thread Stephen Hemminger
Begin forwarded message: Date: Wed, 13 Jan 2021 13:37:33 + From: bugzilla-dae...@bugzilla.kernel.org To: step...@networkplumber.org Subject: [Bug 211175] New: gretap does not fragment packets regardless of the DF flag https://bugzilla.kernel.org/show_bug.cgi?id=211175 Bug ID

  1   2   3   4   5   6   7   8   9   10   >