[PATCH v7 0/8] Patchset enabling hardware based cross-timestamps for next gen Intel platforms

2016-02-12 Thread Christopher S. Hall
Modern Intel hardware adds an Always Running Timer (ART) that allows the network and audio device clocks to precisely cross timestamp the device clock with the system clock. This allows a precise correlation of the device time and system time. This patchset adds interfaces to the timekeeping code

[PATCH v7 2/8] time: Add timekeeping snapshot code capturing system time and counter

2016-02-12 Thread Christopher S. Hall
In the current timekeeping code there isn't any interface to atomically capture the current relationship between the system counter and system time. ktime_get_snapshot() returns this triple (counter, monotonic raw, realtime) in the system_time_snapshot struct. Signed-off-by: Christopher S. Hall [

[PATCH v7 1/8] time: Add cycles to nanoseconds translation

2016-02-12 Thread Christopher S. Hall
The timekeeping code does not currently provide a way to translate externally provided clocksource cycles to system time. The cycle count is always provided by the result clocksource read() method internal to the timekeeping code. The added function timekeeping_cycles_to_ns() calculated a nanosecon

[PATCH v7 5/8] time: Add history to cross timestamp interface supporting slower devices

2016-02-12 Thread Christopher S. Hall
Another representative use case of time sync and the correlated clocksource (in addition to PTP noted above) is PTP synchronized audio. In a streaming application, as an example, samples will be sent and/or received by multiple devices with a presentation time that is in terms of the PTP master cl

[PATCH v7 4/8] time: Add driver cross timestamp interface for higher precision time synchronization

2016-02-12 Thread Christopher S. Hall
ACKNOWLEDGMENT: cross timestamp code was developed by Thomas Gleixner . It has changed considerably and any mistakes are mine. The precision with which events on multiple networked systems can be synchronized using, as an example, PTP (IEEE 1588, 802.1AS) is limited by the precision of the cross t

[PATCH v7 7/8] ptp: Add PTP_SYS_OFFSET_PRECISE for driver crosstimestamping

2016-02-12 Thread Christopher S. Hall
Currently, network /system cross-timestamping is performed in the PTP_SYS_OFFSET ioctl. The PTP clock driver reads gettimeofday() and the gettime64() callback provided by the driver. The cross-timestamp is best effort where the latency between the capture of system time (getnstimeofday()) and the d

[PATCH v7 6/8] x86: tsc: Always Running Timer (ART) correlated clocksource

2016-02-12 Thread Christopher S. Hall
On modern Intel systems TSC is derived from the new Always Running Timer (ART). ART can be captured simultaneous to the capture of audio and network device clocks, allowing a correlation between timebases to be constructed. Upon capture, the driver converts the captured ART value to the appropriate

[PATCH v7 8/8] net: e1000e: Adds hardware supported cross timestamp on e1000e nic

2016-02-12 Thread Christopher S. Hall
Modern Intel systems supports cross timestamping of the network device clock and Always Running Timer (ART) in hardware. This allows the device time and system time to be precisely correlated. The timestamp pair is returned through e1000e_phc_get_syncdevicetime() used by get_system_device_crosstst

[PATCH v7 3/8] time: Remove duplicated code in ktime_get_raw_and_real()

2016-02-12 Thread Christopher S. Hall
The code in ktime_get_snapshot() is a superset of the code in ktime_get_raw_and_real() code. Further, ktime_get_raw_and_real() is called only by the PPS code, pps_get_ts(). Consolidate the pps_get_ts() code into a single function calling ktime_get_snapshot() and eliminate ktime_get_raw_and_real().

Re: [PATCH net-next v8 05/19] net: ethtool: add new ETHTOOL_GSETTINGS/SSETTINGS API

2016-02-12 Thread Ben Hutchings
On Tue, 2016-02-09 at 16:29 -0800, David Decotigny wrote: > From: David Decotigny > > This patch defines a new ETHTOOL_GSETTINGS/SSETTINGS API, handled by > the new get_ksettings/set_ksettings callbacks. This API provides > support for most legacy ethtool_cmd fields, adds support for larger > lin

Re: [PATCH net-next v8 02/19] test_bitmap: unit tests for lib/bitmap.c

2016-02-12 Thread Ben Hutchings
On Tue, 2016-02-09 at 16:29 -0800, David Decotigny wrote: > From: David Decotigny > > This is mainly testing bitmap construction and conversion to/from u32[] > for now. > > Tested: >   qemu i386, x86_64, ppc, ppc64 BE and LE, ARM. > > Signed-off-by: David Decotigny [...] > diff --git a/tools/t

[PATCH net-next v2 1/4] drivers: net: xgene: Add support for Classifier engine

2016-02-12 Thread Iyappan Subramanian
Signed-off-by: Iyappan Subramanian Signed-off-by: Khuong Dinh Signed-off-by: Tanmay Inamdar Tested-by: Toan Le --- drivers/net/ethernet/apm/xgene/Makefile | 3 +- drivers/net/ethernet/apm/xgene/xgene_enet_cle.c | 357 +++ drivers/net/ethernet/apm/xgene/xgene_ene

[PATCH net-next v2 3/4] drivers: net: xgene: Add support for multiple queues

2016-02-12 Thread Iyappan Subramanian
Signed-off-by: Iyappan Subramanian Signed-off-by: Khuong Dinh Signed-off-by: Tanmay Inamdar Tested-by: Toan Le --- drivers/net/ethernet/apm/xgene/xgene_enet_cle.c | 11 +- drivers/net/ethernet/apm/xgene/xgene_enet_hw.c| 12 + drivers/net/ethernet/apm/xgene/xgene_enet_hw.h| 5 + d

[PATCH net-next v2 4/4] dtb: xgene: Add irqs to support multi queue

2016-02-12 Thread Iyappan Subramanian
Signed-off-by: Iyappan Subramanian Signed-off-by: Khuong Dinh Signed-off-by: Tanmay Inamdar Tested-by: Toan Le --- arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 8 +++- arch/arm64/boot/dts/apm/apm-storm.dtsi | 8 +++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/a

[PATCH net-next v2 2/4] drivers: net: xgene: Add support for RSS

2016-02-12 Thread Iyappan Subramanian
Signed-off-by: Iyappan Subramanian Signed-off-by: Khuong Dinh Signed-off-by: Tanmay Inamdar Tested-by: Toan Le --- drivers/net/ethernet/apm/xgene/xgene_enet_cle.c | 386 +++- drivers/net/ethernet/apm/xgene/xgene_enet_cle.h | 41 +++ 2 files changed, 422 insertions(+), 5 de

[PATCH net-next v2 0/4] Add support for Classifier and RSS

2016-02-12 Thread Iyappan Subramanian
This patch set enables, (i) Classifier engine that is used for parsing through the packet and extracting a search string that is then used to search a database to find associative data. (ii) Receive Side Scaling (RSS) that does dynamic load balancing of the CPUs by controlling the number of messa

Re: [PATCH 0/3] drivers: net: cpsw: phy-handle fixes

2016-02-12 Thread David Rivshin (Allworx)
On Wed, 23 Dec 2015 20:18:16 -0500 "David Rivshin (Allworx)" wrote: > On Thu, 24 Dec 2015 00:34:49 +0100 > Nicolas Chauvet wrote: > > > 2015-12-23 22:54 GMT+01:00 David Rivshin (Allworx) < > > drivshin.allw...@gmail.com>: > > > > > On Wed, 23 Dec 2015 22:20:58 +0100 > > > Nicolas Chauvet

Re: [PATCH net-next v8 01/19] lib/bitmap.c: conversion routines to/from u32 array

2016-02-12 Thread Ben Hutchings
On Tue, 2016-02-09 at 16:29 -0800, David Decotigny wrote: > From: David Decotigny > > Aimed at transferring bitmaps to/from user-space in a 32/64-bit agnostic > way. > > Tested: >   unit tests (next patch) on qemu i386, x86_64, ppc, ppc64 BE and LE, >   ARM. > > Signed-off-by: David Decotigny

[PATCH] drivers: net: cpsw-phy-sel: add dev_warn() for unsupported PHY mode

2016-02-12 Thread David Rivshin (Allworx)
From: David Rivshin The cpsw-phy-sel driver supports only MII, RMII, and RGMII PHY modes, and silently handled any other values as if MII was specified. In a case where the PHY mode was incorrectly specified, or a bug elsewhere, there would be no indication of a problem. If MII was the correct mo

Re: [PATCH] af_unix: Don't set err in unix_stream_read_generic unless there was an error

2016-02-12 Thread Ben Hutchings
On Fri, 2016-02-05 at 22:30 +, Rainer Weikusat wrote: > The present unix_stream_read_generic contains various code sequences of > the form > > err = -EDISASTER; > if () > goto out; [...] I wish people would stop writing code like this.  At one time it may have been a useful micro-optimi

RE: [Intel-wired-lan] [PATCH net-next V2 4/6] igb: call ndo_stop() instead of dev_close() when running offline selftest

2016-02-12 Thread Brown, Aaron F
> From: Intel-wired-lan [intel-wired-lan-boun...@lists.osuosl.org] on behalf of > Stefan Assmann [sassm...@kpanic.de] > Sent: Wednesday, February 03, 2016 12:20 AM > To: intel-wired-...@lists.osuosl.org > Cc: netdev@vger.kernel.org; da...@davemloft.net; sassm...@kpanic.de > Subject: [Intel-wired-

RE: [PATCH net-next,V2] Add LAN9352 Ethernet Driver

2016-02-12 Thread Bryan.Whitehead
Thanks Florian, Lots of good comments here. I'm working on fixes and I'll respond when I get through it all. Bryan -Original Message- From: Florian Fainelli [mailto:f.faine...@gmail.com] Sent: Thursday, February 11, 2016 9:18 PM To: Bryan Whitehead - C21958; da...@davemloft.net Cc: net

RE: [Intel-wired-lan] [PATCH net-next V2 5/6] e1000: call ndo_stop() instead of dev_close() when running offline selftest

2016-02-12 Thread Brown, Aaron F
> From: Intel-wired-lan [intel-wired-lan-boun...@lists.osuosl.org] on behalf of > Stefan Assmann [sassm...@kpanic.de] > Sent: Wednesday, February 03, 2016 12:20 AM > To: intel-wired-...@lists.osuosl.org > Cc: netdev@vger.kernel.org; da...@davemloft.net; sassm...@kpanic.de > Subject: [Intel-wired-l

RE: [Intel-wired-lan] [PATCH net-next V2 6/6] e1000e: call ndo_stop() instead of dev_close() when running offline selftest

2016-02-12 Thread Brown, Aaron F
> From: Intel-wired-lan [intel-wired-lan-boun...@lists.osuosl.org] on behalf of > Stefan Assmann [sassm...@kpanic.de] > Sent: Wednesday, February 03, 2016 12:20 AM > To: intel-wired-...@lists.osuosl.org > Cc: netdev@vger.kernel.org; da...@davemloft.net; sassm...@kpanic.de > Subject: [Intel-wired-l

Re: [PATCHv2 next 1/3] ipvlan: scrub skb before routing in L3 mode.

2016-02-12 Thread Cong Wang
On Wed, Feb 10, 2016 at 7:33 AM, Mahesh Bandewar wrote: > From: Mahesh Bandewar > > Scrub skb before hitting the iptable hooks to ensure packets hit > these hooks. > > Signed-off-by: Mahesh Bandewar > --- > v1: initial patch > v2: resend > > drivers/net/ipvlan/ipvlan_core.c | 4 ++-- > 1 file c

[PATCH RFC 3/3] net: dsa: remove dsa_slave_stp_update

2016-02-12 Thread Vivien Didelot
When a port leaves a bridge, the bridge layer now restores its STP state to Forwarding, if the device belong to a switchdev user. Thus remove this redundant action from the DSA layer. Signed-off-by: Vivien Didelot --- net/dsa/slave.c | 17 - 1 file changed, 17 deletions(-) diff

[PATCH RFC 0/3] net: bridge: set forwarding state when unbridging switchdev ports

2016-02-12 Thread Vivien Didelot
When a port leaves a bridge, the bridge layer sets its STP state to Disabled. But switchdev users seem to need to restore its state to Forwarding to keep the communication with the CPU port functional (see DSA and Rocker for instance). br_set_state() tries to set the switchdev port state, if corr

[PATCH RFC 1/3] net: bridge: log state when setting it

2016-02-12 Thread Vivien Didelot
Every call to br_set_state is followed by a call to br_log_state. Directly call it within br_set_state instead. Signed-off-by: Vivien Didelot --- net/bridge/br_stp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/bridge/br_stp.c b/net/bridge/br_stp.c index b3cca12..

[PATCH RFC 2/3] net: bridge: set forwarding state on port removal

2016-02-12 Thread Vivien Didelot
When a port leaves a bridge, the bridge layer puts its STP state to Disabled. If the port is part of an hardware switch, the mode needs to be set to Forwarding in order to restore communication with the CPU. Call br_set_state() in del_nbp(), which only affects switchdev users. Signed-off-by: Vivi

[PATCH net] bridge: fix regression in ageing time

2016-02-12 Thread Stephen Hemminger
This fixes a regression in the bridge ageing time caused by: commit c62987bbd8a1 ("bridge: push bridge setting ageing_time down to switchdev") There are users of Linux bridge which use the feature that if ageing time is set to 0 it causes entries to never expire. This feature is even listed on t

Re: [PATCH] Revert "net: phy: turn carrier off on phy attach"

2016-02-12 Thread Clemens Gruber
Hi Florian, On Fri, Feb 12, 2016 at 10:56:04AM -0800, Florian Fainelli wrote: > On 12/02/16 10:01, Clemens Gruber wrote: > > Commit 113c74d83eef ("net: phy: turn carrier off on phy attach") breaks > > the eth0 link coming up on all my i.MX6Q boards with a Marvell 88E1510. > > If I then do a ifconf

Re: [PATCH net] af_unix: Guard against other == sk in unix_dgram_sendmsg

2016-02-12 Thread Rainer Weikusat
Ben Hutchings writes: > On Fri, 2016-02-12 at 20:17 +, Rainer Weikusat wrote: [...] I don't think this should apply when receiving and sending sockets are identical. But that's just my opinion. The other option would be to avoid the unix_state_double_lock for sk == other.

Re: Bonding MAC failover behavior with VLAN interfaces

2016-02-12 Thread Jay Vosburgh
John Valko wrote: >Hi all, > >I have observed the following on CentOS 6 using the >2.6.32-573.8.1.el6.x86_64 kernel as well as Ubuntu 15.10 with >4.2.0-25-generic.. I have not yet tried with a vanilla kernel but with the >large time/distro gap it didn't seem likely to be caused by distro >changes

Re: [PATCH net] af_unix: Guard against other == sk in unix_dgram_sendmsg

2016-02-12 Thread Ben Hutchings
On Fri, 2016-02-12 at 20:17 +, Rainer Weikusat wrote: > Ben Hutchings writes: > > On Fri, 2016-02-12 at 13:25 +, Rainer Weikusat wrote: > > > Philipp Hahn writes: > > > > Hello Rainer, > > > > > > > > Am 11.02.2016 um 20:37 schrieb Rainer Weikusat: > > > > > The unix_dgram_sendmsg routin

Re: [PATCH net] af_unix: Guard against other == sk in unix_dgram_sendmsg

2016-02-12 Thread Rainer Weikusat
Ben Hutchings writes: > On Fri, 2016-02-12 at 13:25 +, Rainer Weikusat wrote: >> Philipp Hahn writes: >> > Hello Rainer, >> > >> > Am 11.02.2016 um 20:37 schrieb Rainer Weikusat: >> > > The unix_dgram_sendmsg routine use the following test >> > > >> > > if (unlikely(unix_peer(other) != sk &

Re: [PATCH 00/33] Compile-time stack metadata validation

2016-02-12 Thread Peter Zijlstra
On Fri, Feb 12, 2016 at 12:32:06PM -0600, Josh Poimboeuf wrote: > What I actually see in the listing is: > > decl__percpu_prefix:__preempt_count > je 1f: > > 1: > call___preempt_schedule > > So it puts the "call ___preempt_schedule" in the slow path. Ah

Re: [PATCH net] af_unix: Guard against other == sk in unix_dgram_sendmsg

2016-02-12 Thread Ben Hutchings
On Fri, 2016-02-12 at 13:25 +, Rainer Weikusat wrote: > Philipp Hahn writes: > > > Hello Rainer, > > > > Am 11.02.2016 um 20:37 schrieb Rainer Weikusat: > > > The unix_dgram_sendmsg routine use the following test > > > > > > if (unlikely(unix_peer(other) != sk && unix_recvq_full(other))) {

Re: [PATCH v2] net: fec: Add "phy-reset-active-low" property to DT

2016-02-12 Thread Rob Herring
On Fri, Feb 12, 2016 at 9:24 AM, Fabio Estevam wrote: > On Fri, Feb 12, 2016 at 1:20 PM, Rob Herring wrote: > >> This is what the gpio flags are for. Why can't you use that? > > This has already been discussed in v1: > https://lkml.org/lkml/2016/2/8/867 Thanks. That's fine, but that detail shoul

[PATCH/RFC] openvswitch: loosen restriction of output of MPLS to tunnel vports

2016-02-12 Thread Simon Horman
If an skb was not MPLS initially then it may be GSO and in that case if it became MPLS then GSO can't be performed because both MPLS and tunnels make use of the inner_protocol field of struct skbuff in order to allow GSO to be performed in the inner packet. On the other hand if an skb was MPLS ini

RE: [PATCH net-next,V2] Add LAN9352 Ethernet Driver

2016-02-12 Thread Bryan.Whitehead
Lino, Regarding "a matching smp_rmb() in the irq handler" There is a smp_wmb() in the irq handler, since in both cases we are forcing a write operation on software_irq_signal. I suppose using atomic operations on software_irq_signal would also work, but this driver was based on drivers/net/eth

Re: [PATCH] Revert "net: phy: turn carrier off on phy attach"

2016-02-12 Thread Florian Fainelli
On 12/02/16 10:01, Clemens Gruber wrote: > Commit 113c74d83eef ("net: phy: turn carrier off on phy attach") breaks > the eth0 link coming up on all my i.MX6Q boards with a Marvell 88E1510. > If I then do a ifconfig eth0 down/up cycle I first get a MDIO read > timeout but then the link becomes ready

Re: [PATCH 00/33] Compile-time stack metadata validation

2016-02-12 Thread Josh Poimboeuf
On Fri, Feb 12, 2016 at 12:32:06PM -0600, Josh Poimboeuf wrote: > On Fri, Feb 12, 2016 at 06:10:37PM +0100, Peter Zijlstra wrote: > > On Fri, Feb 12, 2016 at 08:45:43AM -0600, Josh Poimboeuf wrote: > > > On Fri, Feb 12, 2016 at 11:36:24AM +0100, Jiri Slaby wrote: > > > > > > This seems like a real

Re: [PATCH 00/33] Compile-time stack metadata validation

2016-02-12 Thread Josh Poimboeuf
On Fri, Feb 12, 2016 at 06:10:37PM +0100, Peter Zijlstra wrote: > On Fri, Feb 12, 2016 at 08:45:43AM -0600, Josh Poimboeuf wrote: > > On Fri, Feb 12, 2016 at 11:36:24AM +0100, Jiri Slaby wrote: > > > > This seems like a real frame pointer bug caused by the following line in > > arch/x86/include/as

[PATCH] Revert "net: phy: turn carrier off on phy attach"

2016-02-12 Thread Clemens Gruber
Commit 113c74d83eef ("net: phy: turn carrier off on phy attach") breaks the eth0 link coming up on all my i.MX6Q boards with a Marvell 88E1510. If I then do a ifconfig eth0 down/up cycle I first get a MDIO read timeout but then the link becomes ready and everything is back to normal. Without this s

Re: [PATCH net-next 03/10] net: mvneta: bm: add support for hardware buffer management

2016-02-12 Thread Gregory CLEMENT
Hi Marcin, On mar., janv. 12 2016, Marcin Wojtas wrote: > Hi Gregory, > > I have two remarks to my own code. Please let me know before patch v2, > I will provide you with corrected version (I already did it locally). I resumled my work on the subject yestaerdy, and I just remebered this email

Re: [PATCH net-next,V2] Add LAN9352 Ethernet Driver

2016-02-12 Thread Andrew Lunn
> At this point my plan is to just get a basic Ethernet controller > driver submitted, and later work on switch features. They are not really separable. The linux way of dealing with switches is to model each port as a net device. So you should have a lan0 device and a lan1 device for this two p

[PATCH net-next 0/4] net: dsa: pass bridge device to drivers

2016-02-12 Thread Vivien Didelot
This patchset simplifies the DSA layer. A switch may support multiple bridges with the same hardware VLAN. Thus a check such as dsa_bridge_check_vlan_range must be moved from the DSA layer to the concerned driver. The first purpose of this patchset is to help moving this check to the mv88e6xxx dr

[PATCH net-next 1/4] net: dsa: mv88e6xxx: add port private structure

2016-02-12 Thread Vivien Didelot
Add a per-port mv88e6xxx_priv_port structure to store per-port related data, instead of adding several arrays of DSA_MAX_PORTS elements in the mv88e6xxx_priv_state structure. It currently only contains the port STP state. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx.c | 4 ++-- d

[PATCH net-next 2/4] net: dsa: pass bridge down to drivers

2016-02-12 Thread Vivien Didelot
Some DSA drivers may or may not support multiple software bridges on top of an hardware switch. It is more convenient for them to access the bridge's net_device for finer configuration. Removing the need to craft and access a bitmask also simplifies the code. This patch changes the signature of

[PATCH net-next 3/4] net: dsa: mv88e6xxx: check hardware VLAN in use

2016-02-12 Thread Vivien Didelot
The DSA drivers now have access to the VLAN prepare phase and the bridge net_device. It is easier to check for overlapping bridges from within the driver. Thus add such check in mv88e6xxx_port_vlan_prepare. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx.c | 64 ++

[PATCH net-next 4/4] net: dsa: remove dsa_bridge_check_vlan_range

2016-02-12 Thread Vivien Didelot
DSA drivers may support multiple bridge groups with the same hardware VLAN. The mv88e6xxx driver which cannot yet, already has its own check for overlapping bridges. Thus remove the check from the DSA layer. Signed-off-by: Vivien Didelot --- net/dsa/slave.c | 50 -

Re: [PATCH 00/33] Compile-time stack metadata validation

2016-02-12 Thread Peter Zijlstra
On Fri, Feb 12, 2016 at 08:45:43AM -0600, Josh Poimboeuf wrote: > On Fri, Feb 12, 2016 at 11:36:24AM +0100, Jiri Slaby wrote: > > This seems like a real frame pointer bug caused by the following line in > arch/x86/include/asm/preempt.h: > > # define __preempt_schedule() asm ("call ___preempt_sc

Re: [PATCH net-next,V2] Add LAN9352 Ethernet Driver

2016-02-12 Thread Andrew Lunn
On Fri, Feb 12, 2016 at 04:51:49PM +, bryan.whiteh...@microchip.com wrote: > Hi Andrew, > > Sorry I still did not make this clear. And I'm not sure I understand your > question so I'll try to explain again, but please give me feedback if it's > still not clear. > > Also you can reference Fi

RE: [PATCH net-next v1 0/8] xen-netback: support toeplitz hashing

2016-02-12 Thread Paul Durrant
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: 12 February 2016 16:42 > To: Paul Durrant > Cc: netdev@vger.kernel.org; xen-de...@lists.xenproject.org > Subject: Re: [PATCH net-next v1 0/8] xen-netback: support toeplitz hashing > > From: Paul Durrant > Date:

RE: [PATCH net-next,V2] Add LAN9352 Ethernet Driver

2016-02-12 Thread Bryan.Whitehead
Florian, I'm not familiar with the DSA subsystem. Can you refer me to documents about it? Andrew, I'm also not familiar with switchdev, or which is better in this case. Can you refer me to documents about it? At this point my plan is to just get a basic Ethernet controller driver submitted, and

RE: [PATCH net-next,V2] Add LAN9352 Ethernet Driver

2016-02-12 Thread Bryan.Whitehead
Hi Andrew, Sorry I still did not make this clear. And I'm not sure I understand your question so I'll try to explain again, but please give me feedback if it's still not clear. Also you can reference Figure 2-1 for an Internal Block Diagram on page 9 of http://ww1.microchip.com/downloads/en/Dev

Re: [PATCH net v4] r8169: Bad implementation of netif_carrier_*

2016-02-12 Thread David Miller
From: Corcodel Marian Date: Fri, 12 Feb 2016 15:40:07 +0200 > How is status with this patch-is accepted or not? > I'm interresed by this patch on order to send another patches wich > depend this. The patch is rejected. It will not be looked at further. It is dead. And you can submit this patc

ipv6 csum failures on MLX4 VFs

2016-02-12 Thread Sebastian Ott
Hi, I receive tons of these csum failure warnings. The patch mentioned here: https://patchwork.ozlabs.org/patch/512005/ seems to work. Will something like that be integrated upstream? Sebastian

Re: [PATCH net-next v1 0/8] xen-netback: support toeplitz hashing

2016-02-12 Thread David Miller
From: Paul Durrant Date: Fri, 12 Feb 2016 11:07:50 + > Windows *requires* use of Teoplitz so your position completely rules > out being able to support receive side scaling in Windows PV > frontends on Linux kernel backends, not only for Xen but for any > other hypervisor, which I think is to

e1000e: initialization breaks IPMI support on 80003ES2LAN

2016-02-12 Thread Lucas Nussbaum
Hi, We have Intel 80003ES2LAN nics on SGI Altix XE310 servers (SuperMicro Baseboard, with product name X7DGT). On those machines, one of the NIC port is bridged internally with the BMC. It seems that during the e1000e driver initialization (at boot time), the NIC is reset, which causes the BMC to

Re: [PATCH 8/8] netfilter: implement xt_cgroup cgroup2 path match

2016-02-12 Thread Tejun Heo
Hello, On Fri, Feb 12, 2016 at 01:10:18AM +0100, Alban Crequy wrote: > Is there any plans to implement a similar cgroup2 path match in a > cgroup classifier in tc? That'd be great. I wanted to but couldn't figure out the heads and tails after staring at the code for half an hour. > I wonder if

[PATCH net,stable] qmi_wwan: add "4G LTE usb-modem U901"

2016-02-12 Thread Bjørn Mork
Thomas reports: T: Bus=01 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#= 4 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=05c6 ProdID=6001 Rev=00.00 S: Manufacturer=USB Modem S: Product=USB Modem S: SerialNumber=1234567890ABCDEF C: #Ifs= 5 Cfg#= 1 Atr=e0 MxPwr=5

Re: [PATCH v2] net: fec: Add "phy-reset-active-low" property to DT

2016-02-12 Thread Fabio Estevam
On Fri, Feb 12, 2016 at 1:20 PM, Rob Herring wrote: > This is what the gpio flags are for. Why can't you use that? This has already been discussed in v1: https://lkml.org/lkml/2016/2/8/867

Re: [PATCH v2] net: fec: Add "phy-reset-active-low" property to DT

2016-02-12 Thread Rob Herring
On Tue, Feb 09, 2016 at 09:01:12PM +0100, Bernhard Walle wrote: > We need that for a custom hardware that needs the reverse reset > sequence. > > Signed-off-by: Bernhard Walle > --- > Changes compared to v1: > - Add documentation to 'phy-reset-gpios' that flags are ignored >as suggested by A

Re: [PATCH net-next] net: macb: add wake-on-lan support via magic packet

2016-02-12 Thread Rob Herring
On Tue, Feb 09, 2016 at 12:07:16PM -0200, Sergio Prado wrote: > Tested on Acqua A5 SoM (http://www.acmesystems.it/acqua). > > Signed-off-by: Sergio Prado > --- > Documentation/devicetree/bindings/net/macb.txt | 2 + > drivers/net/ethernet/cadence/macb.c| 67 > ++

[PATCH net-next v1 4/9] amd-xgbe: Verify forced speed matches the active speedset

2016-02-12 Thread Tom Lendacky
When using ethtool to set the speed for the device, verify that the specified speed is valid within the active speedset. Signed-off-by: Tom Lendacky --- drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/ne

Re: [PATCH 0/4] Add Ethernet support on STM32F429

2016-02-12 Thread Alexandre Torgue
Hi David, I will fix it in next patch version. I just find a corruption issue in stmmac driver, I will also fix it in next version. Best regards Alex 2016-02-09 10:52 GMT+01:00 David Miller : > From: Alexandre TORGUE > Date: Wed, 3 Feb 2016 15:54:31 +0100 > >> STM32F429 Chip embeds a Synopsys

[PATCH net-next v1 8/9] amd-xgbe: Check Rx queue fifos before stopping Rx DMA

2016-02-12 Thread Tom Lendacky
Check to be sure that the Rx queue fifos are empty before stopping the Rx DMA channels. Signed-off-by: Tom Lendacky --- drivers/net/ethernet/amd/xgbe/xgbe-common.h | 10 ++--- drivers/net/ethernet/amd/xgbe/xgbe-dev.c| 30 +++ 2 files changed, 37 insertions(+),

[PATCH net-next v2 0/7] net: unify dst caching for tunnel devices

2016-02-12 Thread Paolo Abeni
This patch series try to unify the dst cache implementations currently present in the kernel, namely in ip_tunnel.c and ip6_tunnel.c, introducing a new generic implementation, replacing the existing ones, and then using the new implementation in other tunnel devices which currently lack it. The ne

[PATCH net-next v1 7/9] amd-xgbe: Do traffic class setup when called through dcbnl

2016-02-12 Thread Tom Lendacky
Currently the netdev traffic class setup is only performed when invoked through the ndo_setup_tc interface. However, the same setup should be performed when the dcbnl interface (ieee_setets) is invoked. Rework the netdev traffic class setup to be invokable through either interface and also provide

[PATCH net-next v1 9/9] amd-xgbe: Mask auto-negotiation interrupts in ISR

2016-02-12 Thread Tom Lendacky
Currently the auto-negotiation interrupt handling disables the irq instead of masking off the interrupts. This was done because the phy library was originally used to read and write the PCS registers, which could not be performed in interrupt context. Now that the phy library is no longer used to r

[PATCH net-next v1 5/9] amd-xgbe: Enable/disable PFC per traffic class

2016-02-12 Thread Tom Lendacky
Currently the PFC flow control is enabled on all traffic classes if one or more traffic classes request it. The PFC enable setting of the traffic class should be used to determine whether to enable or disable flow control for the traffic class. Signed-off-by: Tom Lendacky --- drivers/net/etherne

[PATCH net-next v1 6/9] amd-xgbe: Fix the mapping of priorities to traffic classes

2016-02-12 Thread Tom Lendacky
The driver is checking the pfc_en field of the ieee_pfc structure to determine whether to associate a priority with a traffic class. This is incorrect since the pfc_en field is for determining if PFC is enabled for a traffic class. The association of priority to traffic class does not depend on wh

[PATCH net-next v1 3/9] amd-xgbe: Use __napi_schedule_irqoff

2016-02-12 Thread Tom Lendacky
Change from calling __napi_schedule to __napi_schedule_irqoff when running in interrupt context or when called by netpoll with interrupts already disabled. The Tx timer function will continue to use __napi_schedule. Signed-off-by: Tom Lendacky --- drivers/net/ethernet/amd/xgbe/xgbe-drv.c |4

[PATCH net-next v1 2/9] amd-xgbe: Change from napi_complete to napi_complete_done

2016-02-12 Thread Tom Lendacky
Change from using napi_complete to napi_complete_done to allow for the use of gro_flush_timeout in tuning network processing. Signed-off-by: Tom Lendacky --- drivers/net/ethernet/amd/xgbe/xgbe-drv.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethern

[PATCH net-next v1 1/9] amd-xgbe: Disable VLAN filtering when in promiscuous mode

2016-02-12 Thread Tom Lendacky
When the hardware is placed in promiscuous mode it will still perform VLAN filtering and therefore may not pass all packets to the driver. Disable all VLAN filtering when entering promiscuous mode and restore VLAN filtering upon exit from promiscuous mode. In order to avoid adding forward declarat

[PATCH net-next v1 0/9] amd-xgbe: AMD XGBE driver updates 2016-02-12

2016-02-12 Thread Tom Lendacky
The following updates and fixes are included in this driver update series: - Disable VLAN filtering in promiscuous mode - Change from using napi_complete to napi_complete_done - Use __napi_schedule_irqoff when running in interrupt context - Verify ethtool speed setting is valid for the selected sp

Re: [PATCH 00/33] Compile-time stack metadata validation

2016-02-12 Thread Josh Poimboeuf
On Fri, Feb 12, 2016 at 11:36:24AM +0100, Jiri Slaby wrote: > On 01/21/2016, 11:49 PM, Josh Poimboeuf wrote: > > This is v16 of the compile-time stack metadata validation patch set, > > along with proposed fixes for most of the warnings it found. It's based > > on the tip/master branch. > > Hi, >

[PATCH net-next v2 6/7] geneve: add dst caching support

2016-02-12 Thread Paolo Abeni
use generic dst implementation for both plain geneve devices and lwtunnels. In case of UDP traffic with datagram length below MTU this give about 2% performance increase for plain geneve tunnel over ipv4, about 65% performance increase for ipv6 tunnel. Signed-off-by: Paolo Abeni Suggested-and-Ac

[PATCH net-next v2 4/7] net: use dst_cache for vxlan device

2016-02-12 Thread Paolo Abeni
In case of UDP traffic with datagram length below MTU this give about 3% performance increase when tunneling over ipv4 and about 70% when tunneling over ipv6. Signed-off-by: Paolo Abeni Suggested-and-acked-by: Hannes Frederic Sowa --- v2: move the dst_cache usage into the vxlan lookup functions

[PATCH net-next v2 3/7] ip_tunnel: replace dst_cache with generic implementation

2016-02-12 Thread Paolo Abeni
The current ip_tunnel cache implementation is prone to a race that will cause the wrong dst to be cached on cuncurrent dst cache miss and ip tunnel update via netlink. Replacing with the generic implementation fix the issue. Signed-off-by: Paolo Abeni Suggested-and-acked-by: Hannes Frederic Sowa

[PATCH net-next v2 5/7] net: add dst_cache to ovs vxlan lwtunnel

2016-02-12 Thread Paolo Abeni
In case of UDP traffic with datagram length below MTU this give about 2% performance increase when tunneling over ipv4 and about 60% when tunneling over ipv6 Signed-off-by: Paolo Abeni Suggested-and-acked-by: Hannes Frederic Sowa --- v2: move the dst_cache inside the dst_metadata, so that it's

[PATCH net-next v2 7/7] net/ipv4: add dst cache support for gre lwtunnels

2016-02-12 Thread Paolo Abeni
In case of UDP traffic with datagram length below MTU this gives about 4% performance increase Signed-off-by: Paolo Abeni Suggested-and-Acked-by: Hannes Frederic Sowa --- v2: codying style cleanup --- net/ipv4/ip_gre.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff

[PATCH net-next v2 1/7] net: add dst_cache support

2016-02-12 Thread Paolo Abeni
This patch add a generic, lockless dst cache implementation. The need for lock is avoided updating the dst cache fields only in per cpu scope, and requiring that the cache manipulation functions are invoked with the local bh disabled. The refresh_ts and reset_ts fields are used to ensure the cache

[PATCH net-next v2 2/7] net: replace dst_cache ip6_tunnel implementation with the generic one

2016-02-12 Thread Paolo Abeni
This also fix a potential race into the existing tunnel code, which could lead to the wrong dst to be permanenty cached: CPU1: CPU2: dst = ip6_route_output(...) dst_cache_rese

pull-request: wireless-drivers-next 2016-02-12

2016-02-12 Thread Kalle Valo
Hi Dave, here's first pull request for 4.6. We have a new kconfig option CONFIG_IWLWIFI_PCIE_RTPM for iwlwifi runtime power management. wl12xxx got device tree support for the spi bus and added a bindings document for it. More info in the tag below. Please let me know if you have any problems. K

Re: [PATCH 1/4] net: ethernet: dwmac: add Ethernet glue logic for stm32 chip

2016-02-12 Thread kbuild test robot
Hi Alexandre, [auto build test WARNING on net/master] [also build test WARNING on v4.5-rc3 next-20160212] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Alexandre-TORGUE/Add-Ethernet-support

Re: Same data to several sockets with just one syscall ?

2016-02-12 Thread Tom Herbert
On Fri, Feb 12, 2016 at 9:53 AM, Claudio Scordino wrote: > Hi all. > > Suppose I have an application that needs to send the very same data to > several sockets already connected. In this case, the application has > to call the sendto() syscall several times: > > for(...) >sen

[PATCH iproute2] netns: Fix an off-by-one strcpy() in netns_map_add().

2016-02-12 Thread Nicolas Cavallari
netns_map_add() does a malloc of (sizeof (struct nsid_cache) + strlen(name)) and then proceed with strcpy() of name into the zero-length member at the end of the nsid_cache structure. The nul-terminator is written outside of the allocated memory and may overwrite the allocator's internal structure

Re: [PATCH net v4] r8169: Bad implementation of netif_carrier_*

2016-02-12 Thread Corcodel Marian
On Thu, 2016-02-11 at 08:27 +0200, Corcodel Marian wrote: > On probe stage what carrier to stop and rest two situation > netif_carrier_* is slow and disturbing autonegociation process. > > Signed-off-by: Corcodel Marian > --- > drivers/net/ethernet/realtek/r8169.c | 3 --- > 1 file changed,

Re: [PATCH] af_unix: Don't set err in unix_stream_read_generic unless there was an error

2016-02-12 Thread Rainer Weikusat
Joseph Salisbury writes: > On 02/05/2016 05:30 PM, Rainer Weikusat wrote: >> The present unix_stream_read_generic contains various code sequences of >> the form >> >> err = -EDISASTER; >> if () >> goto out; [...] >> Change it such that err is only set if an error condition was detected. [.

Re: [PATCH net] af_unix: Guard against other == sk in unix_dgram_sendmsg

2016-02-12 Thread Rainer Weikusat
Philipp Hahn writes: > Hello Rainer, > > Am 11.02.2016 um 20:37 schrieb Rainer Weikusat: >> The unix_dgram_sendmsg routine use the following test >> >> if (unlikely(unix_peer(other) != sk && unix_recvq_full(other))) { [...] >> This isn't correct as the> specified address could have been bound

Re: [PATCH] net: phy: spi_ks8995: add dependency on GPIO

2016-02-12 Thread Helmut Buchsbaum
On 02/12/2016 11:18 AM, Sudip Mukherjee wrote: The builds of allmodconfig of s390, m68k, tilegx, tilepro is failing with the error: drivers/net/phy/spi_ks8995.c:477:3: error: implicit declaration of function 'gpiod_set_value' drivers/net/phy/spi_ks8995.c:477:19: error: implicit declaration o

[PATCH] ath9k: reduce stack usage in ar9003_aic_cal_post_process

2016-02-12 Thread Arnd Bergmann
In some configurations, this function uses more than the warning limit of 1024 bytes: drivers/net/wireless/ath/ath9k/ar9003_aic.c: In function 'ar9003_aic_cal_post_process': drivers/net/wireless/ath/ath9k/ar9003_aic.c:434:1: error: the frame size of 1040 bytes is larger than 1024 bytes [-Werror=

RE: [PATCH net-next v1 0/8] xen-netback: support toeplitz hashing

2016-02-12 Thread Paul Durrant
> -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev- > ow...@vger.kernel.org] On Behalf Of David Miller > Sent: 12 February 2016 10:54 > To: Paul Durrant > Cc: netdev@vger.kernel.org; xen-de...@lists.xenproject.org > Subject: Re: [PATCH net-next v1 0/8] xen-netback: sup

Re: [PATCH net-next v1 0/8] xen-netback: support toeplitz hashing

2016-02-12 Thread David Miller
From: Paul Durrant Date: Fri, 12 Feb 2016 10:13:17 + > This patch series adds support for frontend-configurable toeplitz hashing > in xen-netback (on the guest receive side). This support has been testing > against a Windows frontend and has proven to be sufficient to pass the > Microsoft HCK

Re: [PATCH v5 net-next 0/8] Local Checksum Offload

2016-02-12 Thread David Miller
From: Edward Cree Date: Thu, 11 Feb 2016 20:46:00 + > Re-tested VxLAN; everything else is unchanged from v4. > > Changes from v4: > * Rebased series to fix conflicts with vxlan/vxlan6 merge. > > Changes from v3: > * Fixed inverted checksum values introduced in v3. > * Don't mangle zero c

Re: [PATCH v2 net-next 0/2] tcp/dccp: better use of ephemeral ports

2016-02-12 Thread David Miller
From: Eric Dumazet Date: Thu, 11 Feb 2016 16:28:48 -0800 > Big servers have bloated bind table, making very hard to succeed > ephemeral port allocations, without special containers/namespace tricks. > > This patch series extends the strategy added in commit 07f4c90062f8 > ("tcp/dccp: try to not

[PATCH] net: phy: spi_ks8995: include linux/gpio/consumer.h

2016-02-12 Thread Arnd Bergmann
The ks8995 phy driver just started using gpiod_* functions, which are declared in linux/gpio/consumer.h, not linux/gpio.h, resulting in a build failure in randconfig builds that do not have CONFIG_GPIOLIB enabled: drivers/net/phy/spi_ks8995.c: In function 'ks8995_probe': drivers/net/phy/spi_ks8995

Re: [PATCH 00/33] Compile-time stack metadata validation

2016-02-12 Thread Jiri Slaby
On 02/12/2016, 11:36 AM, Jiri Slaby wrote: > It there some compilation flag missing? -f flags when compiling that file are: > -falign-jumps=1 > -falign-loops=1 > -fconserve-stack > -fno-asynchronous-unwind-tables > -fno-common > -fno-delete-null-pointer-checks > -fno-inline-functions-called-once >

  1   2   >