Re: [PATCH v2 net-next 1/2] net: phy: Add Edge-rate driver for Microsemi PHYs.

2016-09-08 Thread Raju Lakkaraju
Hi Andrew, Thank you for review the code and valuable comments. On Thu, Sep 08, 2016 at 03:14:15PM +0200, Andrew Lunn wrote: > EXTERNAL EMAIL > > > On Thu, Sep 08, 2016 at 02:47:21PM +0530, Raju Lakkaraju wrote: > > From: Raju Lakkaraju > > > > Used Device Tree

Re: [RFC Patch net-next 5/6] net_sched: use rcu in fast path

2016-09-08 Thread Cong Wang
On Thu, Sep 8, 2016 at 8:49 AM, John Fastabend wrote: > Agreed not sure why you would ever want to do a late binding and > replace on a tc_mirred actions. But it is supported... I will let Jamal teach you on this, /me is really tired of explaining things to you John.

Re: [PATCH v2 net-next 2/2] net: phy: Add MAC-IF driver for Microsemi PHYs.

2016-09-08 Thread Raju Lakkaraju
Hi Andrew, Thank you for review the code and valuable comments. On Thu, Sep 08, 2016 at 03:27:27PM +0200, Andrew Lunn wrote: > EXTERNAL EMAIL > > > On Thu, Sep 08, 2016 at 02:47:22PM +0530, Raju Lakkaraju wrote: > > From: Raju Lakkaraju > > > > Used Device Tree

Re: [RFC Patch net-next 5/6] net_sched: use rcu in fast path

2016-09-08 Thread Cong Wang
On Tue, Sep 6, 2016 at 7:52 AM, Eric Dumazet wrote: > On Thu, 2016-09-01 at 22:57 -0700, Cong Wang wrote: > > > > Missing changelog ? I was too lazy to write a changelog for this RFC patch, surely it will be added when removing RFC. > > Here I have no idea what you want

Re: [RFC PATCH] net: ip_finish_output_gso: Attempt gso_size clamping if segments exceed mtu

2016-09-08 Thread Shmulik Ladkani
On Thu, 25 Aug 2016 12:05:33 +0300 Shmulik Ladkani wrote: > The BUG occurs when GRO occurs on the ingress, and only if GRO merges > skbs into the frag_list (OTOH when segments are only placed into frags[] > of a single skb, skb_segment succeeds even if gso_size was

Re: [PATCH net] net_sched: act_mirred: full rcu conversion

2016-09-08 Thread Alexei Starovoitov
On Thu, Sep 08, 2016 at 10:24:32PM -0700, Cong Wang wrote: > On Thu, Sep 8, 2016 at 8:35 AM, Eric Dumazet wrote: > > From: Eric Dumazet > > > > As reported by Cong Wang, I was lazy when I did initial RCU conversion > > of tc_mirred, as I thought I

Re: README: [PATCH RFC 11/11] net/mlx5e: XDP TX xmit more

2016-09-08 Thread Jesper Dangaard Brouer
On Thu, 8 Sep 2016 20:22:04 -0700 Alexei Starovoitov wrote: > On Thu, Sep 08, 2016 at 10:11:47AM +0200, Jesper Dangaard Brouer wrote: > > > > I'm sorry but I have a problem with this patch! > > is it because the variable is called 'xdp_doorbell'? > Frankly I see

Re: [PATCH net-next V7 4/4] net/sched: Introduce act_tunnel_key

2016-09-08 Thread Cong Wang
On Thu, Sep 8, 2016 at 9:15 AM, John Fastabend wrote: > > This should be rtnl_derefence(t->params) and drop the read_lock/unlock > pair. This is always called with RTNL lock unless you have a path I'm > not seeing. You missed the previous discussion on V6, John. BTW,

Re: [PATCH net] net_sched: act_mirred: full rcu conversion

2016-09-08 Thread Cong Wang
On Thu, Sep 8, 2016 at 8:51 AM, Eric Dumazet wrote: > On Thu, 2016-09-08 at 08:47 -0700, John Fastabend wrote: > >> Works for me. FWIW I find this plenty straightforward and don't really >> see the need to make the hash table itself rcu friendly. >> >> Acked-by: John

Re: [PATCH net] net_sched: act_mirred: full rcu conversion

2016-09-08 Thread Cong Wang
On Thu, Sep 8, 2016 at 8:35 AM, Eric Dumazet wrote: > From: Eric Dumazet > > As reported by Cong Wang, I was lazy when I did initial RCU conversion > of tc_mirred, as I thought I could avoid allocation/freeing of a > parameter block. Quote from Eric

Re: [PATCH net-next v3] net: inet: diag: expose the socket mark to privileged processes.

2016-09-08 Thread Lorenzo Colitti
On Fri, Sep 9, 2016 at 9:57 AM, David Miller wrote: > > > I'll see if I can send something out to pass in in_skb instead. > > The other option is to have a "struct foo_info" object on the callers > stack that holds all of these values, then pass a pointer to the foo_info > to

Re: [RFC Patch net-next 0/6] net_sched: really switch to RCU for tc actions

2016-09-08 Thread Cong Wang
On Wed, Sep 7, 2016 at 9:23 AM, John Fastabend wrote: > > hmm I'm trying to see where the questionable part is in the current > code? What is it exactly. All you need is a google search in netdev: https://www.mail-archive.com/netdev@vger.kernel.org/msg115480.html

[RFC net-next] net: diag: reduce arguments passed to fill functions.

2016-09-08 Thread Lorenzo Colitti
Most of the arguments passed to the various diag_fill functions are only a couple of pointer lookups away from in_skb. Instead of passing all the arguments down the call chain, pass around in_skb and have the fill functions get what they need from that. This patch does not remove the "bool

Re: [PATCH v4 2/4] wcn36xx: Transition driver to SMD client

2016-09-08 Thread Kalle Valo
Andy Gross writes: >> > >> This doesn't compile for me: >> > >> >> > > >> > > I thought I mentioned this in the mail, sorry for missing that. >> > >> > Maybe you did and I just forgot, I have a tendency to do that :) >> > >> > > There is a patch for this issue in

Re: [PATCH v4 2/4] wcn36xx: Transition driver to SMD client

2016-09-08 Thread Andy Gross
On Thu, Sep 08, 2016 at 09:21:59PM -0700, Bjorn Andersson wrote: > On Thu 08 Sep 10:35 PDT 2016, Kalle Valo wrote: > > > Bjorn Andersson writes: > > > > > On Thu, Sep 8, 2016 at 5:16 AM, Kalle Valo wrote: > > >> Bjorn Andersson

Re: [v11, 5/8] soc: fsl: add GUTS driver for QorIQ platforms

2016-09-08 Thread Scott Wood
On Tue, 2016-09-06 at 16:28 +0800, Yangbo Lu wrote: > The global utilities block controls power management, I/O device > enabling, power-onreset(POR) configuration monitoring, alternate > function selection for multiplexed signals,and clock control. > > This patch adds a driver to manage and

Re: [PATCH v4 2/4] wcn36xx: Transition driver to SMD client

2016-09-08 Thread Bjorn Andersson
On Thu 08 Sep 10:35 PDT 2016, Kalle Valo wrote: > Bjorn Andersson writes: > > > On Thu, Sep 8, 2016 at 5:16 AM, Kalle Valo wrote: > >> Bjorn Andersson writes: > >> > >>> The wcn36xx wifi driver follows the life

Re: README: [PATCH RFC 11/11] net/mlx5e: XDP TX xmit more

2016-09-08 Thread Alexei Starovoitov
On Thu, Sep 08, 2016 at 10:11:47AM +0200, Jesper Dangaard Brouer wrote: > > I'm sorry but I have a problem with this patch! is it because the variable is called 'xdp_doorbell'? Frankly I see nothing scary in this patch. It extends existing code by adding a flag to ring doorbell or not. The end

Re: [PATCH net-next] rtnetlink: remove unused ifla_stats_policy

2016-09-08 Thread Roopa Prabhu
On 9/8/16, 5:23 PM, David Miller wrote: > From: Stephen Hemminger > Date: Wed, 7 Sep 2016 13:57:36 -0700 > >> This structure is defined but never used. Flagged with W=1 >> >> Signed-off-by: Stephen Hemminger > This comes from commit

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread Eric Dumazet
On Thu, 2016-09-08 at 17:35 -0700, Jojy Varghese wrote: > Thanks for the feedback guys. I appreciate it. > > I am working with 4.4.3 kernel. I will try to reproduce the issue > with the kernel tree at > https://git.kernel.org/cgit/linux/kernel/git/davem/net.git. > Good. Please do not top post

Re: [patch net-next v8 0/3] return offloaded stats as default and expose original sw stats

2016-09-08 Thread Roopa Prabhu
On 9/7/16, 11:19 PM, Jiri Pirko wrote: > From: Jiri Pirko > > The problem we try to handle is about offloaded forwarded packets > which are not seen by kernel. Let me try to draw it: > > port1 port2 (HW stats are counted here) > \

[PATCH v3] qed: mark symbols static where possible

2016-09-08 Thread Baoyou Xie
We get a few warnings when building kernel with W=1: drivers/net/ethernet/qlogic/qed/qed_l2.c:112:5: warning: no previous prototype for 'qed_sp_vport_start' [-Wmissing-prototypes] drivers/net/ethernet/qlogic/qed/qed_sriov.c:110:6: warning: no previous prototype for 'qed_iov_is_valid_vfid'

Re: [PATCH net-next] net: bridge: add helper to call /sbin/bridge-stp

2016-09-08 Thread Stephen Hemminger
On Thu, 8 Sep 2016 12:50:43 -0400 Vivien Didelot wrote: > If /sbin/bridge-stp is available on the system, bridge tries to execute > it instead of the kernel implementation when starting/stopping STP. > > If anything goes wrong with /sbin/bridge-stp, bridge

Re: [PATCH net-next v3] net: inet: diag: expose the socket mark to privileged processes.

2016-09-08 Thread David Miller
From: Lorenzo Colitti Date: Fri, 9 Sep 2016 09:48:27 +0900 > On Fri, Sep 9, 2016 at 8:13 AM, David Miller wrote: >>> This adds the capability for a process that has CAP_NET_ADMIN on >>> a socket to see the socket mark in socket dumps. >> >> Applied, but

Re: [PATCH] bonding: Prevent deletion of a bond, or the last slave from a bond, with active usage.

2016-09-08 Thread Stephen Hemminger
On Tue, 06 Sep 2016 08:08:59 -0700 Jay Vosburgh wrote: > Kaur, Jasminder wrote: > > >From: "Kaur, Jasminder" > > > >If a bond is in use such as with IP address configured, removing it > >can result in application

Re: [PATCH net-next v3] net: inet: diag: expose the socket mark to privileged processes.

2016-09-08 Thread Lorenzo Colitti
On Fri, Sep 9, 2016 at 8:13 AM, David Miller wrote: >> This adds the capability for a process that has CAP_NET_ADMIN on >> a socket to see the socket mark in socket dumps. > > Applied, but the argument list of inet_sk_diag_fill is starting to get out > of control. I think a

Re: [PATCH net-next] ipv4: accept u8 in IP_TOS ancillary data

2016-09-08 Thread David Miller
From: Eric Dumazet Date: Wed, 07 Sep 2016 21:52:56 -0700 > From: Eric Dumazet > > In commit f02db315b8d8 ("ipv4: IP_TOS and IP_TTL can be specified as > ancillary data") Francesco added IP_TOS values specified as integer. > > However, kernel sends

[PATCH net-next 2/4] bpf: add BPF_SIZEOF and BPF_FIELD_SIZEOF macros

2016-09-08 Thread Daniel Borkmann
Add BPF_SIZEOF() and BPF_FIELD_SIZEOF() macros to improve the code a bit which otherwise often result in overly long bytes_to_bpf_size(sizeof()) and bytes_to_bpf_size(FIELD_SIZEOF()) lines. So place them into a macro helper instead. Moreover, we currently have a BUILD_BUG_ON(BPF_FIELD_SIZEOF())

[PATCH net-next 4/4] bpf: add BPF_CALL_x macros for declaring helpers

2016-09-08 Thread Daniel Borkmann
This work adds BPF_CALL_() macros and converts all the eBPF helper functions to use them, in a similar fashion like we do with SYSCALL_DEFINE() macros that are used today. Motivation for this is to hide all the register handling and all necessary casts from the user, so that it is done

[PATCH net-next 0/4] Some BPF helper cleanups

2016-09-08 Thread Daniel Borkmann
This series contains a couple of misc cleanups and improvements for BPF helpers. For details please see individual patches. We let this also sit for a few days with Fengguang's kbuild test robot, and there were no issues seen (besides one false positive, see last one for details). Thanks! Daniel

[PATCH net-next 3/4] bpf: add own ctx rewriter on ifindex for clsact progs

2016-09-08 Thread Daniel Borkmann
When fetching ifindex, we don't need to test dev for being NULL since we're always guaranteed to have a valid dev for clsact programs. Thus, avoid this test in fast path. Signed-off-by: Daniel Borkmann Acked-by: Alexei Starovoitov --- net/core/filter.c |

[PATCH net-next 1/4] bpf: minor cleanups in helpers

2016-09-08 Thread Daniel Borkmann
Some minor misc cleanups, f.e. use sizeof(__u32) instead of hardcoding and in __bpf_skb_max_len(), I missed that we always have skb->dev valid anyway, so we can drop the unneeded test for dev; also few more other misc bits addressed here. Signed-off-by: Daniel Borkmann

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread David Miller
From: Jojy Varghese Date: Thu, 8 Sep 2016 17:35:08 -0700 > - "dst-ifdown" does not look correct since it will never release > reference to loopback device. The routes and packets in the namespace are purged and disappear when the namespace goes down, and that's how

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread Jojy Varghese
Thanks for the feedback guys. I appreciate it. I am working with 4.4.3 kernel. I will try to reproduce the issue with the kernel tree at https://git.kernel.org/cgit/linux/kernel/git/davem/net.git. In the meantime, the only data I have now is : - "dst-ifdown" does not look correct since it

Re: [PATCH net-next] bpf: fix range propagation on direct packet access

2016-09-08 Thread David Miller
From: Daniel Borkmann Date: Thu, 8 Sep 2016 01:03:42 +0200 > LLVM can generate code that tests for direct packet access via > skb->data/data_end in a way that currently gets rejected by the > verifier, example: ... > The reason why this gets rejected despite a proper test

Re: [PATCH net-next] tcp: use an RB tree for ooo receive queue

2016-09-08 Thread David Miller
From: Nicolas Dichtel Date: Thu, 8 Sep 2016 16:31:22 +0200 > Le 08/09/2016 à 13:02, Ilpo Järvinen a écrit : > [snip] >> Acked-By: Ilpo Järvinen > Also nitpicking: the end of the email address is missing ;-) I fixed this up when I applied the

Re: [PATCH net-next] tcp: use an RB tree for ooo receive queue

2016-09-08 Thread David Miller
From: Eric Dumazet Date: Wed, 07 Sep 2016 14:49:28 -0700 > From: Yaogong Wang > > Over the years, TCP BDP has increased by several orders of magnitude, > and some people are considering to reach the 2 Gbytes limit. > > Even with current window scale

Re: [PATCH net-next] macsec: set network devtype

2016-09-08 Thread David Miller
From: Stephen Hemminger Date: Wed, 7 Sep 2016 14:07:32 -0700 > The netdevice type structure for macsec was being defined but never used. > To set the network device type the macro SET_NETDEV_DEVTYPE must be called. > Compile tested only, I don't use macsec. > >

Re: [PATCH net-next] rtnetlink: remove unused ifla_stats_policy

2016-09-08 Thread David Miller
From: Stephen Hemminger Date: Wed, 7 Sep 2016 13:57:36 -0700 > This structure is defined but never used. Flagged with W=1 > > Signed-off-by: Stephen Hemminger This comes from commit 10c9ead9f3c6bb24bddc9a96681f7d58e6623966 ("rtnetlink:

Re: [PATCH net 0/3] nfp: fixes and trivial cleanup

2016-09-08 Thread David Miller
From: Jakub Kicinski Date: Wed, 7 Sep 2016 19:45:34 +0100 > First patch drops unnecessary version.h includes. Second one > drops support for pre-release versions of FW ABI. Removing > FW ABI 0.0 from supported set is particularly good since 0 > could just be

Re: [PATCH v2] vti: use right inner_mode for inbound inter address family policy checks

2016-09-08 Thread David Miller
From: thomas.zeitlhofer+l...@ze-it.at Date: Wed, 7 Sep 2016 20:40:38 +0200 > In case of inter address family tunneling (IPv6 over vti4 or IPv4 over > vti6), the inbound policy checks in vti_rcv_cb() and vti6_rcv_cb() are > using the wrong address family. As a result, all inbound inter address >

Re: [PATCH v2] tcp: cwnd does not increase in TCP YeAH

2016-09-08 Thread David Miller
From: Artem Germanov Date: Wed, 7 Sep 2016 10:49:36 -0700 > Commit 76174004a0f19785a328f40388e87e982bbf69b9 > (tcp: do not slow start when cwnd equals ssthresh ) > introduced regression in TCP YeAH. Using 100ms delay 1% loss virtual > ethernet link kernel 4.2 shows

Re: [PATCH net-next V6 4/4] net/sched: Introduce act_tunnel_key

2016-09-08 Thread Cong Wang
On Thu, Sep 8, 2016 at 6:18 AM, Hadar Hen Zion wrote: > On Wed, Sep 7, 2016 at 7:27 PM, Cong Wang wrote: >> Also, ->cleanup() should be called with RTNL, no need to >> take read lock here. > > RTNL lock isn't taken when cleanup is called.

Re: [PATCH net-next v22 0/3] openvswitch: add 802.1ad support

2016-09-08 Thread David Miller
From: Eric Garver Date: Wed, 7 Sep 2016 12:56:56 -0400 > This series adds 802.1ad support to openvswitch. It is a continuation of the > work originally started by Thomas F Herbert - hence the large rev number. ... Series applied, thanks.

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread David Miller
From: Jojy Varghese Date: Thu, 8 Sep 2016 16:33:38 -0700 > Sorry last patch was just the delta over my original patch. Here is > the complete patch: It looks like you are grasping at straws. Please slow down and take the time to debug this properly. All of the

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread Eric Dumazet
On Thu, 2016-09-08 at 16:33 -0700, Jojy Varghese wrote: > Sorry last patch was just the delta over my original patch. Here is > the complete patch: > > --- > net/core/dst.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/net/core/dst.c b/net/core/dst.c > index

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread Eric Dumazet
On Thu, 2016-09-08 at 16:16 -0700, Jojy Varghese wrote: > The dst's do disappear but the net device does not. A better solution > is to only hold reference to dst's net device ONLY if it is not a > loopback device. In the case of the loopback device, we want to do > only a "put" on it and skip the

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread Jojy Varghese
Sorry last patch was just the delta over my original patch. Here is the complete patch: --- net/core/dst.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/net/core/dst.c b/net/core/dst.c index a1656e3..f63027e 100644 --- a/net/core/dst.c +++ b/net/core/dst.c @@ -433,8

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread Jojy Varghese
The dst's do disappear but the net device does not. A better solution is to only hold reference to dst's net device ONLY if it is not a loopback device. In the case of the loopback device, we want to do only a "put" on it and skip the "hold". Updating the patch below: --- net/core/dst.c | 7

Re: [PATCH net 0/5] Mellanox 100G mlx5 fixes 2016-09-07

2016-09-08 Thread David Miller
From: Saeed Mahameed Date: Wed, 7 Sep 2016 19:07:56 +0300 > The following series contains bug fixes for the mlx5e driver. > > from Gal, > - Static code checker cleanup (casting overflow) > - Fix global PFC counter statistics reading > - Fix HW LRO when

Re: [PATCH net-next v3] net: inet: diag: expose the socket mark to privileged processes.

2016-09-08 Thread David Miller
From: Lorenzo Colitti Date: Thu, 8 Sep 2016 00:42:25 +0900 > This adds the capability for a process that has CAP_NET_ADMIN on > a socket to see the socket mark in socket dumps. > > Commit a52e95abf772 ("net: diag: allow socket bytecode filters to > match socket marks")

Re: [PATCH net] tcp: fastopen: avoid negative sk_forward_alloc

2016-09-08 Thread David Miller
From: Eric Dumazet Date: Wed, 07 Sep 2016 08:34:11 -0700 > From: Eric Dumazet > > When DATA and/or FIN are carried in a SYN/ACK message or SYN message, > we append an skb in socket receive queue, but we forget to call > sk_forced_mem_schedule(). >

Re: [Patch v6] net: ethernet: xilinx: Enable emaclite for MIPS

2016-09-08 Thread David Miller
From: Zubair Lutfullah Kakakhel Date: Thu, 8 Sep 2016 09:17:31 +0100 > Hi, > > On 09/08/2016 12:07 AM, David Miller wrote: >> From: Zubair Lutfullah Kakakhel >> Date: Mon, 5 Sep 2016 13:07:54 +0100 >> >>> The MIPS based xilfpga platform

[PATCH net-next] ip_tunnel: do not clear l4 hashes

2016-09-08 Thread Eric Dumazet
From: Eric Dumazet If skb has a valid l4 hash, there is no point clearing hash and force a further flow dissection when a tunnel encapsulation is added. Signed-off-by: Eric Dumazet --- net/ipv4/ip_tunnel_core.c |2 +- 1 file changed, 1

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread Eric Dumazet
On Thu, 2016-09-08 at 15:12 -0700, Jojy Varghese wrote: > Hi Eric/Lance > > Thanks for taking time to look at the patch. The problem in dst.c's > "dst_ifdown" is that it will never do an actual "dev_put" on the > loopback net device. This results in the loopback net device to be > alive even

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread Jojy Varghese
Hi Eric/Lance Thanks for taking time to look at the patch. The problem in dst.c's "dst_ifdown" is that it will never do an actual "dev_put" on the loopback net device. This results in the loopback net device to be alive even when the dst goes away. Thanks Jojy On Thu, Sep 8, 2016 at 2:05 PM,

Re: [PATCH iproute2] tuntap: Add name attribute to usage text

2016-09-08 Thread Stephen Hemminger
On Thu, 8 Sep 2016 14:56:34 +0200 Thomas Graf wrote: > Signed-off-by: Thomas Graf > --- > ip/iptuntap.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied

Re: [PATCH iproute] gitignore: Ignore 'tags' file generated by ctags

2016-09-08 Thread Stephen Hemminger
On Tue, 6 Sep 2016 14:42:52 +0800 Hangbin Liu wrote: > Signed-off-by: Hangbin Liu > --- > .gitignore | 1 + > 1 file changed, 1 insertion(+ Applied

Re: [PATCH] drivers: net: phy: mdio-xgene: Add hardware dependency

2016-09-08 Thread Iyappan Subramanian
On Thu, Sep 8, 2016 at 7:25 AM, Jean Delvare wrote: > The mdio-xgene driver is only useful on X-Gene SoC. > > Signed-off-by: Jean Delvare > Cc: Iyappan Subramanian > Cc: David S. Miller > --- >

Re: [PATCHv2 iproute2 net-next] nstat: add sctp snmp support

2016-09-08 Thread Stephen Hemminger
On Mon, 5 Sep 2016 11:35:02 +0800 Hangbin Liu wrote: > SCTP module was not load by default. But this should be OK since we will not > load table if fdopen() failed, also opening the proc file won't load SCTP > kernel module. > > Signed-off-by: Hangbin Liu

Re: vlan aware bridge doesn't propagate mac changes to vlans on top of it

2016-09-08 Thread Michal Soltys
On 2016-09-08 04:03, Toshiaki Makita wrote: > On 2016/09/08 3:22, Michal Soltys wrote: > ... >> 4.7.2 >> git describe on that commit suggests it's been available since 4.6.x >> >> What I did in details: >> >> ip li add name port1b type veth peer name port1e >> ip li add br0 type bridge >> ip li

Re: [RFC] bridge: MAC learning uevents

2016-09-08 Thread Stephen Hemminger
On Thu, 8 Sep 2016 11:30:08 -0700 Florian Fainelli wrote: > On 09/08/2016 10:19 AM, D. Herrendoerfer wrote: > > > > On 08 Sep 2016, at 17:39, Stephen Hemminger > > wrote: > > > >> On Thu, 8 Sep 2016 15:06:16 +0200 > >> "D. Herrendoerfer"

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread Eric Dumazet
On Thu, 2016-09-08 at 14:00 -0700, Eric Dumazet wrote: > Latest real fix was : > https://git.kernel.org/cgit/linux/kernel/git/davem/net.git/commit/?id=751eb6b6042a596b0080967c1a529a9fe98dac1d Another interesting fix is

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread Eric Dumazet
On Thu, 2016-09-08 at 12:08 -0700, Jojy Varghese wrote: > (Updating the patch for the case when a non-loopback dev could be > unregistered) > > Currently during namespace cleanup, if ‘dst’ subsystem is holding > a reference to the interface in the namespace, it does not get released. > Current

Re: [PATCH] via-velocity: remove null pointer check on array tdinfo->skb_dma

2016-09-08 Thread Francois Romieu
Colin King : > From: Colin Ian King > > tdinfo->skb_dma is a 7 element array of dma_addr_t hence cannot be > null, so the pull pointer check on tdinfo->skb_dma is redundant. > Remove it. > > Signed-off-by: Colin Ian King

Re: [PATCH net 6/9] net/mlx4_core: Use RCU to perform radix tree lookup for SRQ

2016-09-08 Thread David Miller
From: Tariq Toukan Date: Thu, 8 Sep 2016 11:51:58 +0300 > From: Leon Romanovsky > > Radix tree lookup can be performed without locking. > > Fixes: 225c7b1feef1 ("IB/mlx4: Add a driver Mellanox ConnectX InfiniBand > adapters") > Suggested-by: Sagi

Re: [PATCH net 2/9] net/mlx4_en: Fix wrong indentation

2016-09-08 Thread David Miller
From: Tariq Toukan Date: Thu, 8 Sep 2016 11:51:54 +0300 > From: Kamal Heib > > Use tabs instead of spaces before if statement, no functional change. > > Fixes: e7c1c2c46201 ("mlx4_en: Added self diagnostics test implementation") > Signed-off-by:

Re: [PATCH net 1/9] net/mlx4_en: Add branch prediction hints in RX data-path

2016-09-08 Thread David Miller
From: Tariq Toukan Date: Thu, 8 Sep 2016 11:51:53 +0300 > Add likely/unlikely hints to improve branch predictions > in the RX data-path. > > Signed-off-by: Tariq Toukan This is absolutely not appropriate for 'net'. This is not a bug fix, it is a

Re: pull request (net-next): ipsec-next 2016-09-08

2016-09-08 Thread David Miller
From: Steffen Klassert Date: Thu, 8 Sep 2016 07:54:35 +0200 > 1) Constify the xfrm_replay structures. From Julia Lawall > > 2) Protect xfrm state hash tables with rcu, lookups >can be done now without acquiring xfrm_state_lock. >From Florian Westphal. > >

Good day,

2016-09-08 Thread David Anthony
-- I need your assistance in making claim to the Bank deposit of a deceased client of mine because you bear the same sur name . he died on 12 March 2013. please reply ASAP so i can guard you through. Sincerely, David Anthony

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread Lance Richardson
> From: "Jojy Varghese" > To: netdev@vger.kernel.org > Cc: da...@davemloft.net > Sent: Thursday, September 8, 2016 3:08:29 PM > Subject: Re: [PATCH] net_namespace: fixed net_device reference leak > > (Updating the patch for the case when a non-loopback dev could be >

Re: [PATCH net] sctp: hold the transport before using it in sctp_hash_cmp

2016-09-08 Thread Neil Horman
On Thu, Sep 08, 2016 at 05:49:04PM +0800, Xin Long wrote: > Now sctp uses the transport without holding it in sctp_hash_cmp, > it can cause a use-after-free panic. As after it get transport from > hashtable, another CPU may free it, then the members it accesses > may be unavailable memory. > >

Re: [PATCH net 1/6] sctp: remove the unnecessary state check in sctp_outq_tail

2016-09-08 Thread Neil Horman
On Fri, Sep 09, 2016 at 01:34:05AM +0800, Xin Long wrote: > >> Data Chunks are only sent by sctp_primitive_SEND, in which sctp checks > >> the asoc's state through statetable before calling sctp_outq_tail. So > >> there's no need to do it again in sctp_outq_tail. > >> > >> This patch is to remove

Re: [PATCH] net_namespace: fixed net_device reference leak

2016-09-08 Thread Jojy Varghese
(Updating the patch for the case when a non-loopback dev could be unregistered) Currently during namespace cleanup, if ‘dst’ subsystem is holding a reference to the interface in the namespace, it does not get released. Current code first does a ’dev_hold’ on the same device followed by a

Re: [RFC PATCH 1/2] macb: Add 1588 support in Cadence GEM.

2016-09-08 Thread Richard Cochran
On Thu, Sep 08, 2016 at 10:22:43AM +0530, Harini Katakam wrote: > >> + /* get GEM internal time */ > >> + sech = gem_readl(bp, TSH); > >> + secl = gem_readl(bp, TSL); > > > > Does reading TSH latch the time? The TRM is silent about that, and > > most other designs latch on reading the

Re: [PATCH RFC 11/11] net/mlx5e: XDP TX xmit more

2016-09-08 Thread Eric Dumazet
On Thu, 2016-09-08 at 11:48 -0700, Rick Jones wrote: > With small packets and the "default" ring size for this NIC/driver > combination, is the BQL large enough that the ring fills before one hits > the BQL? It depends on how TX completion (NAPI handler) is implemented in the driver. Say how

Re: [PATCH] xfrm: fix header file comment reference to struct xfrm_replay_state_esn

2016-09-08 Thread Richard Guy Briggs
On 16/09/08, Richard Guy Briggs wrote: > Reported-by: Paul Wouters Oops, this above should read "nohats.ca". > Signed-off-by: Richard Guy Briggs > --- > include/uapi/linux/xfrm.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH RFC 11/11] net/mlx5e: XDP TX xmit more

2016-09-08 Thread Rick Jones
On 09/08/2016 11:16 AM, Tom Herbert wrote: On Thu, Sep 8, 2016 at 10:19 AM, Jesper Dangaard Brouer wrote: On Thu, 8 Sep 2016 09:26:03 -0700 Tom Herbert wrote: Shouldn't qdisc bulk size be based on the BQL limit? What is the simple algorithm to apply

Re: [RFC] bridge: MAC learning uevents

2016-09-08 Thread Florian Fainelli
On 09/08/2016 10:19 AM, D. Herrendoerfer wrote: > > On 08 Sep 2016, at 17:39, Stephen Hemminger > wrote: > >> On Thu, 8 Sep 2016 15:06:16 +0200 >> "D. Herrendoerfer" wrote: >> >>> Hello, >>> >>> I'd like to start a discussion if

Re: [PATCH RFC 11/11] net/mlx5e: XDP TX xmit more

2016-09-08 Thread Tom Herbert
On Thu, Sep 8, 2016 at 10:19 AM, Jesper Dangaard Brouer wrote: > On Thu, 8 Sep 2016 09:26:03 -0700 > Tom Herbert wrote: > >> On Wed, Sep 7, 2016 at 10:11 PM, Jesper Dangaard Brouer >> wrote: >> > >> > On Wed, 7 Sep 2016 20:21:24 -0700

[PATCH] xfrm: fix header file comment reference to struct xfrm_replay_state_esn

2016-09-08 Thread Richard Guy Briggs
Reported-by: Paul Wouters Signed-off-by: Richard Guy Briggs --- include/uapi/linux/xfrm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/xfrm.h b/include/uapi/linux/xfrm.h index 1433389..1fc62b2 100644 ---

Re: [PATCH V3] dt: net: enhance DWC EQoS binding to support Tegra186

2016-09-08 Thread Stephen Warren
On 09/01/2016 01:02 PM, Stephen Warren wrote: From: Stephen Warren The Synopsys DWC EQoS is a configurable IP block which supports multiple options for bus type, clocking and reset structure, and feature list. Extend the DT binding to define a "compatible value" for the

Re: [PATCH v4 2/4] wcn36xx: Transition driver to SMD client

2016-09-08 Thread Kalle Valo
Bjorn Andersson writes: > On Thu, Sep 8, 2016 at 5:16 AM, Kalle Valo wrote: >> Bjorn Andersson writes: >> >>> The wcn36xx wifi driver follows the life cycle of the WLAN_CTRL SMD >>> channel, as such it should be a

Re: [PATCH net 1/6] sctp: remove the unnecessary state check in sctp_outq_tail

2016-09-08 Thread Xin Long
>> Data Chunks are only sent by sctp_primitive_SEND, in which sctp checks >> the asoc's state through statetable before calling sctp_outq_tail. So >> there's no need to do it again in sctp_outq_tail. >> >> This patch is to remove it from sctp_outq_tail. >> >> Signed-off-by: Xin Long

Re: [RFC] bridge: MAC learning uevents

2016-09-08 Thread D. Herrendoerfer
There is a reference to the virtual port in the event so you can actually keep only one record MAC per port, I suppose the the impact would be the same if you do this to a macvtap device on top of an ethernet device. But granted - you could really load down the host. Dirk On 08 Sep 2016, at

Re: [PATCH RFC 11/11] net/mlx5e: XDP TX xmit more

2016-09-08 Thread Jesper Dangaard Brouer
On Thu, 8 Sep 2016 09:26:03 -0700 Tom Herbert wrote: > On Wed, Sep 7, 2016 at 10:11 PM, Jesper Dangaard Brouer > wrote: > > > > On Wed, 7 Sep 2016 20:21:24 -0700 Tom Herbert wrote: > > > >> On Wed, Sep 7, 2016 at 7:58 PM, John

Re: [RFC] bridge: MAC learning uevents

2016-09-08 Thread D. Herrendoerfer
On 08 Sep 2016, at 17:39, Stephen Hemminger wrote: > On Thu, 8 Sep 2016 15:06:16 +0200 > "D. Herrendoerfer" wrote: > >> Hello, >> >> I'd like to start a discussion if it makes sense to add an optional feature >> >> to the

Re: [PATCH net 1/1] net sched actions: fix GETing actions

2016-09-08 Thread Cong Wang
On Thu, Sep 8, 2016 at 5:12 AM, Jamal Hadi Salim wrote: > From: Jamal Hadi Salim > > Example of what broke: > ...add a gact action to drop > sudo $TC actions add action drop index 10 > ...now retrieve it, looks good > sudo $TC actions get action gact index

[PATCH net-next] net: bridge: add helper to call /sbin/bridge-stp

2016-09-08 Thread Vivien Didelot
If /sbin/bridge-stp is available on the system, bridge tries to execute it instead of the kernel implementation when starting/stopping STP. If anything goes wrong with /sbin/bridge-stp, bridge silently falls back to kernel STP, making hard to debug userspace STP. This patch adds a

Re: [PATCH RFC 11/11] net/mlx5e: XDP TX xmit more

2016-09-08 Thread Tom Herbert
On Wed, Sep 7, 2016 at 10:11 PM, Jesper Dangaard Brouer wrote: > > On Wed, 7 Sep 2016 20:21:24 -0700 Tom Herbert wrote: > >> On Wed, Sep 7, 2016 at 7:58 PM, John Fastabend >> wrote: >> > On 16-09-07 11:22 AM, Jesper Dangaard

Re: [4.4-RT PATCH RFC/RFT] drivers: net: cpsw: mark rx/tx irq as IRQF_NO_THREAD

2016-09-08 Thread Grygorii Strashko
On 09/08/2016 05:28 PM, Sebastian Andrzej Siewior wrote: > On 2016-08-12 18:58:21 [+0300], Grygorii Strashko wrote: >> Hi Sebastian, > Hi Grygorii, > >> Thankds for comment. You're right: >> irq_thread()->irq_forced_thread_fn()->local_bh_enable() >> >> but wouldn't here two wake_up_process()

Re: [PATCH net-next V7 4/4] net/sched: Introduce act_tunnel_key

2016-09-08 Thread John Fastabend
On 16-09-08 06:23 AM, Hadar Hen Zion wrote: > From: Amir Vadai > > This action could be used before redirecting packets to a shared tunnel > device, or when redirecting packets arriving from a such a device. > > The action will release the metadata created by the tunnel device >

Re: [PATCH v3 net-next 1/1] net_sched: Introduce skbmod action

2016-09-08 Thread Eric Dumazet
On Thu, 2016-09-08 at 09:02 -0700, Eric Dumazet wrote: > On Thu, 2016-09-08 at 06:38 -0400, Jamal Hadi Salim wrote: > > On 16-09-06 10:25 AM, Eric Dumazet wrote: > > > > > > > > Just use u16 in the array ? > > > > > > u16 tmpaddr[ETH_ALEN / 2]; /* ether_addr_copy() requirement */ > > > > > >

[PATCH] xfrm_user: propagate sec ctx allocation errors

2016-09-08 Thread Mathias Krause
When we fail to attach the security context in xfrm_state_construct() we'll return 0 as error value which, in turn, will wrongly claim success to userland when, in fact, we won't be adding / updating the XFRM state. This is a regression introduced by commit fd21150a0fe1 ("[XFRM] netlink: Inline

Re: [PATCH v3 net-next 1/1] net_sched: Introduce skbmod action

2016-09-08 Thread Eric Dumazet
On Thu, 2016-09-08 at 06:38 -0400, Jamal Hadi Salim wrote: > On 16-09-06 10:25 AM, Eric Dumazet wrote: > > > > > Just use u16 in the array ? > > > > u16 tmpaddr[ETH_ALEN / 2]; /* ether_addr_copy() requirement */ > > > > ether_addr_copy((u8 *)tmpaddr, eth_hdr(skb)->h_dest); > > ... > > > > Ok -

Re: [4.4-RT PATCH RFC/RFT] drivers: net: cpsw: mark rx/tx irq as IRQF_NO_THREAD

2016-09-08 Thread Sebastian Andrzej Siewior
On 2016-08-19 17:29:16 [+0300], Grygorii Strashko wrote: > I've collected trace before first occurrence of "NOHZ: local_softirq_pending > 80" > > irq/354-4848400-85[000]90.639460: irq_handler_entry:irq=19 > name=arch_timer >iperf-1284 [001]90.639474:

RE: mwifiex: propagate error if IRQ request fails in mwifiex_sdio_of()

2016-09-08 Thread Amitkumar Karwar
Hi Javier, > From: Javier Martinez Canillas [mailto:jav...@osg.samsung.com] > Sent: Tuesday, September 06, 2016 5:43 PM > To: Kalle Valo > Cc: linux-ker...@vger.kernel.org; Amitkumar Karwar; > netdev@vger.kernel.org; linux-wirel...@vger.kernel.org; Nishant > Sarmukadam; Arend van Spriel >

Re: [PATCH net] net_sched: act_mirred: full rcu conversion

2016-09-08 Thread Eric Dumazet
On Thu, 2016-09-08 at 08:47 -0700, John Fastabend wrote: > Works for me. FWIW I find this plenty straightforward and don't really > see the need to make the hash table itself rcu friendly. > > Acked-by: John Fastabend > Yes, it seems this hash table is used in

Re: [RFC Patch net-next 5/6] net_sched: use rcu in fast path

2016-09-08 Thread John Fastabend
[...] >> >> So its at least possible I think these could be interleaved on multiple >> cpus. > > Sure, this was very clear when I wrote this code. Otherwise I would have > used an intermediate object and one rcu_dereference() instead of the > READ_ONCE(). > > >> >> Notice that some of the

Re: [PATCH net] net_sched: act_mirred: full rcu conversion

2016-09-08 Thread John Fastabend
On 16-09-08 08:35 AM, Eric Dumazet wrote: > From: Eric Dumazet > > As reported by Cong Wang, I was lazy when I did initial RCU conversion > of tc_mirred, as I thought I could avoid allocation/freeing of a > parameter block. > > Use an intermediate object so that fast path

  1   2   3   >