Re: [PATCH net-next v3.16]r8169: Correct value from speed 10 on MII_BMCR

2016-03-25 Thread David Miller
From: Francois Romieu Date: Fri, 25 Mar 2016 23:53:25 +0100 > Been there. Such requests are usually left unanswered. :o( Due to this patch submitters continued anti-social and anti-community behavior, I have been completely ignoring their patches. I will continue to mark

Re: [PATCH 1/2] net: dsa: mv88e6xxx: Introduce _mv88e6xxx_phy_page_{read,write}

2016-03-25 Thread Guenter Roeck
On 03/25/2016 06:58 PM, Patrick Uiterwijk wrote: On Sat, Mar 26, 2016 at 2:45 AM, Guenter Roeck wrote: On 03/25/2016 05:10 PM, Patrick Uiterwijk wrote: Add versions of the phy_page_read and _write functions to be used in a context where the SMI mutex is held.

Re: [PATCH 1/2] net: dsa: mv88e6xxx: Introduce _mv88e6xxx_phy_page_{read,write}

2016-03-25 Thread Patrick Uiterwijk
On Sat, Mar 26, 2016 at 2:45 AM, Guenter Roeck wrote: > On 03/25/2016 05:10 PM, Patrick Uiterwijk wrote: >> >> Add versions of the phy_page_read and _write functions to >> be used in a context where the SMI mutex is held. >> >> Signed-off-by: Patrick Uiterwijk

Re: [RFC net-next 2/2] udp: No longer use SLAB_DESTROY_BY_RCU

2016-03-25 Thread Alexei Starovoitov
On Fri, Mar 25, 2016 at 03:29:24PM -0700, Eric Dumazet wrote: > Tom Herbert would like to avoid touching UDP socket refcnt for encapsulated > traffic. For this to happen, we need to use normal RCU rules, with a grace > period before freeing a socket. UDP sockets are not short lived in the > high

Re: [PATCH 1/2] net: dsa: mv88e6xxx: Introduce _mv88e6xxx_phy_page_{read,write}

2016-03-25 Thread Guenter Roeck
On 03/25/2016 05:10 PM, Patrick Uiterwijk wrote: Add versions of the phy_page_read and _write functions to be used in a context where the SMI mutex is held. Signed-off-by: Patrick Uiterwijk --- drivers/net/dsa/mv88e6xxx.c | 42

[PATCH] Drivers: isdn: hisax: isac.c: Fix assignment and check into one expression.

2016-03-25 Thread Cosmin-Gabriel Samoila
Fix variable assignment inside if statement. It is error-prone and hard to read. Signed-off-by: Cosmin-Gabriel Samoila --- drivers/isdn/hisax/isac.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/isdn/hisax/isac.c

Re: [PATCH] ipv6: Fix the pmtu path for connected UDP socket

2016-03-25 Thread Martin KaFai Lau
On Fri, Mar 25, 2016 at 04:55:27PM -0700, Martin KaFai Lau wrote: > void ip6_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, __be32 mtu) > { > + struct dst_entry *odst; > + > + odst = sk_dst_get(sk); > + > ip6_update_pmtu(skb, sock_net(sk), mtu, >

[PATCH 1/2] net: dsa: mv88e6xxx: Introduce _mv88e6xxx_phy_page_{read,write}

2016-03-25 Thread Patrick Uiterwijk
Add versions of the phy_page_read and _write functions to be used in a context where the SMI mutex is held. Signed-off-by: Patrick Uiterwijk --- drivers/net/dsa/mv88e6xxx.c | 42 -- 1 file changed, 32 insertions(+), 10 deletions(-)

[PATCH 2/2] net: dsa: mv88e6xxx: Clear the PDOWN bit on setup

2016-03-25 Thread Patrick Uiterwijk
Some of the vendor-specific bootloaders set up this part of the initialization for us, so this was never added. However, since upstream bootloaders don't initialize the chip specifically, they leave the fiber MII's PDOWN flag set, which means that the CPU port doesn't connect. This patch checks

Re: [RFC net-next 1/2] net: add SOCK_RCU_FREE socket flag

2016-03-25 Thread Tom Herbert
On Fri, Mar 25, 2016 at 3:29 PM, Eric Dumazet wrote: > We want a generic way to insert an RCU grace period before socket > freeing for cases where RCU_SLAB_DESTROY_BY_RCU is adding too > much overhead. > > SLAB_DESTROY_BY_RCU strict rules force us to take a reference > on the

Re: [RFC net-next 2/2] udp: No longer use SLAB_DESTROY_BY_RCU

2016-03-25 Thread Tom Herbert
On Fri, Mar 25, 2016 at 3:29 PM, Eric Dumazet wrote: > Tom Herbert would like to avoid touching UDP socket refcnt for encapsulated > traffic. For this to happen, we need to use normal RCU rules, with a grace > period before freeing a socket. UDP sockets are not short lived in

Re: [PATCH] ipv6: Fix the pmtu path for connected UDP socket

2016-03-25 Thread Martin KaFai Lau
On Wed, Mar 23, 2016 at 04:57:22PM -0700, Wei Wang wrote: > What about something like this: > > diff --git a/net/ipv6/route.c b/net/ipv6/route.c > index ed44663..21b4102 100644 > --- a/net/ipv6/route.c > +++ b/net/ipv6/route.c > @@ -1394,6 +1394,19 @@ static void ip6_rt_update_pmtu(struct

Re: [PATCH net-next v3.16]r8169: Correct value from speed 10 on MII_BMCR

2016-03-25 Thread Phil Sutter
On Fri, Mar 25, 2016 at 11:53:25PM +0100, Francois Romieu wrote: > Phil Sutter : > [...] > > Your patch submissions are getting better, also good to see you're > > finally using git-send-email. A few things need to be corrected though: > > > > #define BMCR_RESV 0x003f

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread Ben Greear
On 03/25/2016 04:03 PM, Vijay Pandurangan wrote: On Fri, Mar 25, 2016 at 6:23 PM, Ben Greear wrote: On 03/25/2016 02:59 PM, Vijay Pandurangan wrote: consider two scenarios, where process a sends raw ethernet frames containing UDP packets to b I) process a --> veth

Re: [RFC PATCH] tcp: Add SOF_TIMESTAMPING_TX_EOR and allow MSG_EOR in tcp_sendmsg

2016-03-25 Thread Yuchung Cheng
On Thu, Mar 24, 2016 at 6:39 PM, Willem de Bruijn wrote: > > > This patch allows the user process to use MSG_EOR during > > tcp_sendmsg to tell the kernel that it is the last byte > > of an application response message. > > > > The user process can use the new

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread Vijay Pandurangan
On Fri, Mar 25, 2016 at 6:23 PM, Ben Greear wrote: > On 03/25/2016 02:59 PM, Vijay Pandurangan wrote: >> >> consider two scenarios, where process a sends raw ethernet frames >> containing UDP packets to b >> >> I) process a --> veth --> process b >> >> II) process a ->

Re: [PATCH net-next v3.16]r8169: Correct value from speed 10 on MII_BMCR

2016-03-25 Thread Francois Romieu
Phil Sutter : [...] > Your patch submissions are getting better, also good to see you're > finally using git-send-email. A few things need to be corrected though: > #define BMCR_RESV 0x003f /* Unused... */ #define BMCR_SPEED1000 0x0040 /*

Re: [PATCH RFC 3/9] net: Add fast receive encapsulation

2016-03-25 Thread Joe Perches
On Fri, 2016-03-25 at 16:40 -0400, David Miller wrote: > From: Tom Herbert > Date: Wed, 23 Mar 2016 15:36:52 -0700 > > > +{ > > + struct udp_sock *up = udp_sk(sk); > > + int is_udplite = IS_UDPLITE(sk); > > + > > + int (*encap_rcv)(struct sock *sk, struct

[RFC net-next 2/2] udp: No longer use SLAB_DESTROY_BY_RCU

2016-03-25 Thread Eric Dumazet
Tom Herbert would like to avoid touching UDP socket refcnt for encapsulated traffic. For this to happen, we need to use normal RCU rules, with a grace period before freeing a socket. UDP sockets are not short lived in the high usage case, so the added cost of call_rcu() should not be a concern.

[RFC net-next 1/2] net: add SOCK_RCU_FREE socket flag

2016-03-25 Thread Eric Dumazet
We want a generic way to insert an RCU grace period before socket freeing for cases where RCU_SLAB_DESTROY_BY_RCU is adding too much overhead. SLAB_DESTROY_BY_RCU strict rules force us to take a reference on the socket sk_refcnt, and it is a performance problem for UDP encapsulation, or TCP

[RFC net-next 0/2] udp: use standard RCU rules

2016-03-25 Thread Eric Dumazet
Add a generic facility for sockets to be freed afer an RCU grace period. Then UDP is changed to no longer use SLAB_DESTROY_BY_RCU, in order to speedup rx processing for traffic encapsulated in UDP. I prepared a patch to convert TCP listeners to this infrastructure, but will post it later, since

Re: [net-next RFC 0/4] SO_BINDTOSUBNET

2016-03-25 Thread Gilberto
On 03/25/2016 12:25 AM, Tom Herbert wrote: > On Wed, Mar 16, 2016 at 6:19 AM, Gilberto Bertin > wrote: >> This is my second attempt to submit an RFC for this patch. >> >> Some arguments for and against it since the first submission: >> * SO_BINDTOSUBNET is an arbitrary

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread Ben Greear
On 03/25/2016 02:59 PM, Vijay Pandurangan wrote: consider two scenarios, where process a sends raw ethernet frames containing UDP packets to b I) process a --> veth --> process b II) process a -> eth -> wire -> eth -> process b I believe (I) is the simplest setup we can create that will

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread Cong Wang
On Fri, Mar 25, 2016 at 2:59 PM, Vijay Pandurangan wrote: > consider two scenarios, where process a sends raw ethernet frames > containing UDP packets to b > > I) process a --> veth --> process b > > II) process a -> eth -> wire -> eth -> process b > > I believe (I) is the

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread Cong Wang
On Fri, Mar 25, 2016 at 1:56 PM, Ben Greear wrote: > On 03/24/2016 10:33 PM, Cong Wang wrote: > >> Here we go: >> >> diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c >> index 1ecfa71..ab66080 100644 >> --- a/net/packet/af_packet.c >> +++

[PATCH net] inet: add proper locking in __inet{6}_lookup()

2016-03-25 Thread Eric Dumazet
From: Eric Dumazet Blocking BH in __inet{6}_lookup() is not correct, as the lookups are done using RCU protection. It matters only starting from Lorenzo Colitti patches to destroy a TCP socket, since rcu_read_lock() is already held by other users of these functions. This

Re: RESEND: Easily reproducible kernel panic due to netdev all_adj_list refcnt handling

2016-03-25 Thread Andrew Collins
On 03/25/2016 02:43 PM, Matthias Schiffer wrote: We've tried your patch, and it changes the symptoms a bit, but doesn't fix the panic. I've attached kernel logs of the crash both before and after applying the patch. One note: I did not reproduce this issue myself, it was first reported in [1],

[PATCH-RFC] drivers: net: ethernet: intel: e1000e: fix ethtool autoneg off for fiber

2016-03-25 Thread Daniel Walker
From: Steve Shih This patch fixes the issues for disabling auto-negotiation and forcing speed and duplex settings for the fiber media. For fiber media, e1000_get_settings should return ETH_TP_MDI_INVALID for eth_tp_mdix_ctrl instead of ETH_TP_MDI_AUTO so subsequent

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread Vijay Pandurangan
consider two scenarios, where process a sends raw ethernet frames containing UDP packets to b I) process a --> veth --> process b II) process a -> eth -> wire -> eth -> process b I believe (I) is the simplest setup we can create that will replicate this bug. If process a sends frames that

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread Vijay Pandurangan
On Fri, Mar 25, 2016 at 10:35 AM, Ben Greear wrote: > > > On 03/24/2016 10:24 PM, Vijay Pandurangan wrote: >> >> On Fri, Mar 25, 2016 at 1:07 AM, Ben Greear >> wrote: >>> >>> On 03/24/2016 09:45 PM, Vijay Pandurangan wrote:

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread Ben Greear
On 03/24/2016 10:33 PM, Cong Wang wrote: Here we go: diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 1ecfa71..ab66080 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -1925,6 +1925,7 @@ static int packet_sendmsg_spkt(struct socket *sock, struct msghdr

Re: RESEND: Easily reproducible kernel panic due to netdev all_adj_list refcnt handling

2016-03-25 Thread Matthias Schiffer
On 02/23/2016 11:29 PM, Andrew Collins wrote: > I'm running into a relatively easily reproducible kernel panic related to > the all_adj_list handling for netdevs > in recent kernels. > > The following sequence of commands will reproduce the issue: > > ip link add link eth0 name eth0.100 type

Re: [PATCH RFC 3/9] net: Add fast receive encapsulation

2016-03-25 Thread David Miller
From: Tom Herbert Date: Wed, 23 Mar 2016 15:36:52 -0700 > +{ > + struct udp_sock *up = udp_sk(sk); > + int is_udplite = IS_UDPLITE(sk); > + > + int (*encap_rcv)(struct sock *sk, struct sk_buff *skb); > + Small nit, please put this encap_rcv function pointer

Re: [PATCH] ip.7: Fix incorrect sockopt name

2016-03-25 Thread Michael Kerrisk (man-pages)
Hello Benjamin, On 03/22/2016 09:28 AM, Benjamin Poirier wrote: > "IP_LEAVE_GROUP" does not exist. It was perhaps a confusion with > MCAST_LEAVE_GROUP. Change the text to IP_DROP_MEMBERSHIP which has the same > function as MCAST_LEAVE_GROUP and is documented in the ip.7 man page. > > Reference:

Re: [PATCH v2] netpoll: Fix extra refcount release in netpoll_cleanup()

2016-03-25 Thread David Miller
From: Bjorn Helgaas Date: Fri, 25 Mar 2016 11:46:39 -0500 > You're right, there is an issue here. I reproduced a problem with a > bond device. bond_netpoll_setup() calls __netpoll_setup() directly > (not netpoll_setup()). I'll debug it more; just wanted to let you > know

Re: [PATCH net-next] net: dsa: mv88e6xxx: fix 6185 hardware bridging

2016-03-25 Thread David Miller
From: Vivien Didelot Date: Fri, 25 Mar 2016 13:20:30 -0400 > David, please ignore this patch for the moment. Ok.

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread David Miller
From: Ben Greear Date: Fri, 25 Mar 2016 10:14:46 -0700 > Anyway, you know the stack and drivers better than me, so if you > think Cong's patch is valid, then I'll test it and make sure it > works in my setups at least. It probably is, I'm just waiting to see if Tom

Re: [PATCH 1/1] net: Add SO_REUSEPORT_LISTEN_OFF socket option as drain mode

2016-03-25 Thread Willem de Bruijn
On Fri, Mar 25, 2016 at 1:00 PM, Eric Dumazet wrote: > On Fri, 2016-03-25 at 12:31 -0400, Craig Gallek wrote: > >> I believe the issue here is that closing the listen sockets will drop >> any connections that are in the listen queue but have not been >> accepted yet. In

Re: netpoll rtnl_dereference() usage

2016-03-25 Thread Neil Horman
On Fri, Mar 25, 2016 at 12:30:32PM -0500, Bjorn Helgaas wrote: > Hi Neil, > > Since we're looking at netpoll, here's another question (or two). > 0790bbb68f9d ("netpoll: cleanup sparse warnings") adds this: > > @@ -1236,7 +1236,11 @@ void __netpoll_cleanup(struct netpoll *np) > struct

Re: [RFT Patch net 1/2] ipv6: invalidate the socket cached route on pmtu events if possible

2016-03-25 Thread Eric Dumazet
On Fri, 2016-03-25 at 10:17 -0700, Cong Wang wrote: > 1) sock lock protects the whole update: the whole check, update, recheck, > set logic, to make sure another CPU will not do the same to the same socket > at the same time. > > 2) the dst itself is safe, because it is always refcounted, and we

netpoll rtnl_dereference() usage

2016-03-25 Thread Bjorn Helgaas
Hi Neil, Since we're looking at netpoll, here's another question (or two). 0790bbb68f9d ("netpoll: cleanup sparse warnings") adds this: @@ -1236,7 +1236,11 @@ void __netpoll_cleanup(struct netpoll *np) struct netpoll_info *npinfo; unsigned long flags; - npinfo =

Re: [PATCH net-next] net: dsa: mv88e6xxx: fix 6185 hardware bridging

2016-03-25 Thread Vivien Didelot
Hi, Vivien Didelot writes: > The 88E6185 switch also has a MapDA bit in its Port Control 2 register. > When this bit is cleared, all frames are sent out to the CPU port. > > Set this bit to rely on ATU hits and direct the frame out of the correct > ports,

Re: [RFT Patch net 1/2] ipv6: invalidate the socket cached route on pmtu events if possible

2016-03-25 Thread Cong Wang
On Thu, Mar 24, 2016 at 6:51 PM, Eric Dumazet wrote: > On Thu, 2016-03-24 at 17:15 -0700, Cong Wang wrote: > >> My understanding is that bh_lock_sock() prevents concurrent >> access to sock struct. Since this is in softirq context, multiple >> CPU's could call this

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread Ben Greear
On 03/25/2016 09:44 AM, David Miller wrote: From: Ben Greear Date: Fri, 25 Mar 2016 09:10:58 -0700 I am suspicious that this will break at least some drivers. I grepped around for ip_summed, and found this, for instance: davicom/dm9000.c /* The DM9000 is

[PATCH net-next] net: dsa: mv88e6xxx: fix 6185 hardware bridging

2016-03-25 Thread Vivien Didelot
The 88E6185 switch also has a MapDA bit in its Port Control 2 register. When this bit is cleared, all frames are sent out to the CPU port. Set this bit to rely on ATU hits and direct the frame out of the correct ports, and thus enable hardware bridging. Signed-off-by: Vivien Didelot

Re: [PATCH 1/1] net: Add SO_REUSEPORT_LISTEN_OFF socket option as drain mode

2016-03-25 Thread Eric Dumazet
On Fri, 2016-03-25 at 12:31 -0400, Craig Gallek wrote: > I believe the issue here is that closing the listen sockets will drop > any connections that are in the listen queue but have not been > accepted yet. In the case of reuseport, you could in theory drain > those queues into the non-closed

Re: [PATCH v2] netpoll: Fix extra refcount release in netpoll_cleanup()

2016-03-25 Thread Bjorn Helgaas
On Fri, Mar 25, 2016 at 07:33:42AM -0400, Neil Horman wrote: > On Thu, Mar 24, 2016 at 09:56:21PM -0500, Bjorn Helgaas wrote: > > netpoll_setup() does a dev_hold() on np->dev, the netpoll device. If it > > fails, it correctly does a dev_put() but leaves np->dev set. If we call > >

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread David Miller
From: Cong Wang Date: Fri, 25 Mar 2016 09:32:23 -0700 > So I believe dm9000 needs to fix. +1

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread David Miller
From: Ben Greear Date: Fri, 25 Mar 2016 09:10:58 -0700 > I am suspicious that this will break at least some drivers. I > grepped around for ip_summed, and found this, for instance: > > davicom/dm9000.c > > /* The DM9000 is not smart enough to leave fragmented

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread Cong Wang
On Fri, Mar 25, 2016 at 9:10 AM, Ben Greear wrote: > I am suspicious that this will break at least some drivers. I grepped > around > for ip_summed, and found this, for instance: > > davicom/dm9000.c > > /* The DM9000 is not smart enough to leave fragmented

Re: [PATCH 1/1] net: Add SO_REUSEPORT_LISTEN_OFF socket option as drain mode

2016-03-25 Thread Craig Gallek
On Fri, Mar 25, 2016 at 12:21 PM, Alexei Starovoitov wrote: > On Fri, Mar 25, 2016 at 11:29:10AM -0400, Craig Gallek wrote: >> On Thu, Mar 24, 2016 at 2:00 PM, Willy Tarreau wrote: >> > The pattern is : >> > >> > t0 : unprivileged processes 1 and 2

[ethtool PATCH v7 0/2] add support for new ETHTOOL_xLINKSETTINGS ioctls

2016-03-25 Thread David Decotigny
From: David Decotigny History: v7 added ref to related kernel commit in netlink ioctl patch description v6 re-added last patch, to use AF_NETLINK when AF_INET not available v5 rebased main patch, removed last patch "use AF_LOCAL when AF_INET not

[ethtool PATCH v7 2/2] ethtool: use netlink socket when AF_INET not available

2016-03-25 Thread David Decotigny
From: David Decotigny To benefit from this, kernel commit 025c68186e07 ("netlink: add support for NIC driver ioctls") is needed. Signed-off-by: David Decotigny --- configure.ac | 2 +- ethtool.c| 7 +++ 2 files changed, 8 insertions(+), 1

Re: [PATCH 1/1] net: Add SO_REUSEPORT_LISTEN_OFF socket option as drain mode

2016-03-25 Thread Alexei Starovoitov
On Fri, Mar 25, 2016 at 11:29:10AM -0400, Craig Gallek wrote: > On Thu, Mar 24, 2016 at 2:00 PM, Willy Tarreau wrote: > > The pattern is : > > > > t0 : unprivileged processes 1 and 2 are listening to the same port > >(sock1@pid1) (sock2@pid2) > ><-- listening

[ethtool PATCH v7 1/2] ethtool.c: add support for ETHTOOL_xLINKSETTINGS ioctls

2016-03-25 Thread David Decotigny
From: David Decotigny More info with kernel commit 8d3f2806f8fb ("Merge branch 'ethtool-ksettings'"). Note: The new features implemented in this patch depend on kernel commit 793cf87de9d1 ("Set cmd field in ETHTOOL_GLINKSETTINGS response to wrong nwords"). Signed-off-by:

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread Ben Greear
On 03/24/2016 10:33 PM, Cong Wang wrote: On Thu, Mar 24, 2016 at 10:13 PM, Ben Greear wrote: On 03/24/2016 10:06 PM, Cong Wang wrote: On Thu, Mar 24, 2016 at 9:34 PM, Ben Greear wrote: On 03/24/2016 06:44 PM, Vijay Pandurangan wrote:

Re: [PATCH net-next v3.16]r8169: Add support for half duplex on MDI

2016-03-25 Thread Andrew Lunn
On Fri, Mar 25, 2016 at 04:29:52PM +0200, Corcodel Marian wrote: > This patch add support for half duplex on MDI chips. > > Signed-off-by: Corcodel Marian > --- > drivers/net/ethernet/realtek/r8169.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff

Re: [PATCH v2 1/1] net: macb: remove BUG_ON() and reset the queue to handle RX errors

2016-03-25 Thread David Miller
From: Cyrille Pitchen Date: Fri, 25 Mar 2016 10:37:34 +0100 > This patch removes two BUG_ON() used to notify about RX queue corruptions > on macb (not gem) hardware without actually handling the error. > > The new code skips corrupted frames but still processes

Re: [PATCH net-next 1/1] qlge: Update version to 1.00.00.35

2016-03-25 Thread David Miller
From: Manish Chopra Date: Fri, 25 Mar 2016 07:14:09 -0400 > Just updating version as many fixes got > accumulated over 1.00.00.34 > > Signed-off-by: Manish Chopra Applied, but it is the 'net' tree that fixes et al. like this should be

Re: [PATCH] net: phy: bcm7xxx: Add entries for Broadcom BCM7346 and BCM7362

2016-03-25 Thread David Miller
From: Jaedon Shin Date: Fri, 25 Mar 2016 12:46:54 +0900 > Add PHY entries for the Broadcom BCM7346 and BCM7362 chips, these are > 40nm generation Ethernet PHY. > > Fixes: 815717d1473e ("net: phy: bcm7xxx: Remove wildcard entries") > Signed-off-by: Jaedon Shin

Re: [PATCH net] bpf: add missing map_flags to bpf_map_show_fdinfo

2016-03-25 Thread David Miller
From: Daniel Borkmann Date: Fri, 25 Mar 2016 00:30:25 +0100 > Add map_flags attribute to bpf_map_show_fdinfo(), so that tools like > tc can check for them when loading objects from a pinned entry, e.g. > if user intent wrt allocation (BPF_F_NO_PREALLOC) is different to the

Re: dynamically set number of queues for 82598 devices in -stable

2016-03-25 Thread William Dauchy
Hi Jeff, Any chance to get an opinion on that? Thanks, On Nov27 11:05, William Dauchy wrote: > Hello Jeff, > > I faced the problem described in commit 7e3f5c8: > ixgbe: fix bounds checking in ixgbe_setup_tc for 82598 > > This patch resolves an issue where users were not able to dynamically >

Re: [PATCH 1/1] net: Add SO_REUSEPORT_LISTEN_OFF socket option as drain mode

2016-03-25 Thread Craig Gallek
On Thu, Mar 24, 2016 at 2:00 PM, Willy Tarreau wrote: > The pattern is : > > t0 : unprivileged processes 1 and 2 are listening to the same port >(sock1@pid1) (sock2@pid2) ><-- listening --> > > t1 : new processes are started to replace the old ones >

Re: [PATCH v2] netpoll: Fix extra refcount release in netpoll_cleanup()

2016-03-25 Thread David Miller
From: Bjorn Helgaas Date: Thu, 24 Mar 2016 21:56:21 -0500 > netpoll_setup() does a dev_hold() on np->dev, the netpoll device. If it > fails, it correctly does a dev_put() but leaves np->dev set. If we call > netpoll_cleanup() after the failure, np->dev is still set so we

Re: [PATCH 00/13] Enhance stmmac driver to support GMAC4.x IP

2016-03-25 Thread Alexandre Torgue
Hi, On 03/25/2016 04:11 PM, David Miller wrote: It is absolutely not appropriate to submit new feature patches at this time. Please resubmit this after the net-next tree opens back out. No pb, I will wait and resend. Regards Alex Thank you.

Re: [PATCH 00/13] Enhance stmmac driver to support GMAC4.x IP

2016-03-25 Thread David Miller
It is absolutely not appropriate to submit new feature patches at this time. Please resubmit this after the net-next tree opens back out. Thank you.

Re: veth regression with "don’t modify ip_summed; doing so treats packets with bad checksums as good."

2016-03-25 Thread Ben Greear
On 03/24/2016 10:24 PM, Vijay Pandurangan wrote: On Fri, Mar 25, 2016 at 1:07 AM, Ben Greear wrote: On 03/24/2016 09:45 PM, Vijay Pandurangan wrote: Actually, maybe they should be set to CHECKSUM_PARTIAL if we want veth to drop the packets if they have bad

[PATCH net-next v3.16]r8169: Add support for half duplex on MDI

2016-03-25 Thread Corcodel Marian
This patch add support for half duplex on MDI chips. Signed-off-by: Corcodel Marian --- drivers/net/ethernet/realtek/r8169.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/realtek/r8169.c

Re: [PATCH net-next v3.16]r8169: Correct value from speed 10 on MII_BMCR

2016-03-25 Thread Corcodel Marian
On Fri, 25 Mar 2016 14:33:02 +0100 Phil Sutter wrote: > Hi, > > Your patch submissions are getting better, also good to see you're > finally using git-send-email. A few things need to be corrected > though: > > Subject line: > - The 'vNN' part in brackets is supposed to be the

Re: [PATCH net-next v3.16]r8169: Correct value from speed 10 on MII_BMCR

2016-03-25 Thread Phil Sutter
Hi, Your patch submissions are getting better, also good to see you're finally using git-send-email. A few things need to be corrected though: Subject line: - The 'vNN' part in brackets is supposed to be the reroll-count (see 'git format-patch -h' for details), not kernel version. You're

Re: [PATCH 1/1] net: Add SO_REUSEPORT_LISTEN_OFF socket option as drain mode

2016-03-25 Thread Eric Dumazet
On Fri, 2016-03-25 at 12:21 +0100, Yann Ylavic wrote: > Not my intention, you guys know what's the better for the kernel and its APIs. > My concern is (was) admittedly due to my own lack of knowledge of > (e)BPF, hence how much of kernel internals I'd need to know to make > the SO_REUSEPORT work

[PATCH net-next v3.16]r8169: Correct value from speed 10 on MII_BMCR

2016-03-25 Thread Corcodel Marian
This patch correct value on MII_BMCR register ald value 0 have target on reserved register first 2 bytes from MII_BMCR speed 10 is flipped value on BMCR_SPEED100 Signed-off-by: Corcodel Marian --- drivers/net/ethernet/realtek/r8169.c | 2 +- 1 file changed, 1

[PATCH net-next 1/1] qlge: Update version to 1.00.00.35

2016-03-25 Thread Manish Chopra
Just updating version as many fixes got accumulated over 1.00.00.34 Signed-off-by: Manish Chopra --- drivers/net/ethernet/qlogic/qlge/qlge.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qlge/qlge.h

Re: [PATCH net-next v3.16]r8169: Implement definitions from linux/mii.h header

2016-03-25 Thread Sergei Shtylyov
Hello. On 3/25/2016 1:25 PM, Corcodel Marian wrote: Add definitions from mii and inhibit 0 to advertise. Signed-off-by: Corcodel Marian --- drivers/net/ethernet/realtek/r8169.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff

tg3 link autoneg on one port results in packets loss on other port

2016-03-25 Thread vincent Richard
Hi all, I am using a HP DL360p server with broadcom BCM5719 ethernet card handled by tg3 driver. When the link is renegotiated on one ethernet port, out packets get lost on other ethernet ports. The problem is easily reproducible by looping on switch port up/down. Instrumenting the driver, I

Re: [PATCH v2] netpoll: Fix extra refcount release in netpoll_cleanup()

2016-03-25 Thread Neil Horman
On Thu, Mar 24, 2016 at 09:56:21PM -0500, Bjorn Helgaas wrote: > netpoll_setup() does a dev_hold() on np->dev, the netpoll device. If it > fails, it correctly does a dev_put() but leaves np->dev set. If we call > netpoll_cleanup() after the failure, np->dev is still set so we do another >

Re: [PATCH 1/1] net: Add SO_REUSEPORT_LISTEN_OFF socket option as drain mode

2016-03-25 Thread Yann Ylavic
On Fri, Mar 25, 2016 at 9:53 AM, Willy Tarreau wrote: > > On Thu, Mar 24, 2016 at 11:49:41PM -0700, Eric Dumazet wrote: >> Everything is possible, but do not complain because BPF went in the >> kernel before your changes. > > Don't get me wrong, I'm not complaining, I'm more asking for help to >

[PATCH net-next v3.16]r8169: Implement definitions from linux/mii.h header

2016-03-25 Thread Corcodel Marian
Add definitions from mii and inhibit 0 to advertise. Signed-off-by: Corcodel Marian --- drivers/net/ethernet/realtek/r8169.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/drivers/net/ethernet/realtek/r8169.c

[PATCH v2 1/1] net: macb: remove BUG_ON() and reset the queue to handle RX errors

2016-03-25 Thread Cyrille Pitchen
This patch removes two BUG_ON() used to notify about RX queue corruptions on macb (not gem) hardware without actually handling the error. The new code skips corrupted frames but still processes faultless frames. Then it resets the RX queue before restarting the reception from a clean state. This

[PATCH 13/13] stmmac: update MAINTAINERS

2016-03-25 Thread Alexandre TORGUE
Signed-off-by: Alexandre TORGUE diff --git a/MAINTAINERS b/MAINTAINERS index b70294e..394e233 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3293,6 +3293,7 @@ F:Documentation/powerpc/cxlflash.txt STMMAC ETHERNET DRIVER M: Giuseppe Cavallaro

[PATCH 02/13] stmmac: rework the routines to show the ring status

2016-03-25 Thread Alexandre TORGUE
To avoid lot of check in stmmac_main for display ring management and support the GMAC4 chip, the display_ring function is moved into dedicated descriptor file. Signed-off-by: Alexandre TORGUE Signed-off-by: Giuseppe Cavallaro diff --git

[PATCH 06/13] stmmac: add DMA support for GMAC 4.xx

2016-03-25 Thread Alexandre TORGUE
DMA behavior is linked to descriptor management: -descriptor mechanism (Tx for example, but it is exactly the same for RX): -useful registers: -DMA_CH#_TxDesc_Ring_Len: length of transmit descriptor ring -DMA_CH#_TxDesc_List_Address: start address of the ring -DMA_CH#_TxDesc_Tail_Pointer:

[PATCH 08/13] stmmac: enhance mmc counter management

2016-03-25 Thread Alexandre TORGUE
For gmac3, the MMC addr map is: 0x100 - 0x2fc For gmac4, the MMC addr map is: 0x700 - 0x8fc So instead of adding 0x600 to the IO address when setup the mmc, the RMON base address is saved inside the private structure and then used to manage the counters. Signed-off-by: Giuseppe Cavallaro

[PATCH 10/13] stmmac: support new GMAC4

2016-03-25 Thread Alexandre TORGUE
This patch adds the whole GMAC4 support inside the stmmac d.d. now able to use the new HW and some new features i.e.: TSO. It is missing the multi-queue and split Header support at this stage. This patch also updates the driver version and the stmmac.txt. Signed-off-by: Alexandre TORGUE

[PATCH 09/13] stmmac: add new DT platform entries for GMAC4

2016-03-25 Thread Alexandre TORGUE
This is to support the snps,dwmac-4.00 and snps,dwmac-4.10a and related features on the platform driver. See binding doc for further details. Signed-off-by: Giuseppe Cavallaro Signed-off-by: Alexandre TORGUE diff --git

[PATCH 04/13] stmmac: add descriptors function for GMAC 4.xx

2016-03-25 Thread Alexandre TORGUE
One of main changes of GMAC 4.xx IP is descriptors management. -descriptors are only used in ring mode. -A descriptor is composed of 4 32bits registers (no more extended descriptors) -descriptor mechanism (Tx for example, but it is exactly the same for RX): -useful registers:

[PATCH 11/13] Documentation: networking: update stmmac

2016-03-25 Thread Alexandre TORGUE
Update stmmac driver documentation according to new GMAC 4.x family. Signed-off-by: Alexandre TORGUE diff --git a/Documentation/networking/stmmac.txt b/Documentation/networking/stmmac.txt index d64a147..671fe3d 100644 --- a/Documentation/networking/stmmac.txt +++

[PATCH 12/13] stmmac: update version to Jan_2016

2016-03-25 Thread Alexandre TORGUE
This patch just updates the driver to the version fully tested on STi platforms. This version is Jan_2016. Signed-off-by: Alexandre TORGUE diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h index 317ce35..ff67506

[PATCH 05/13] stmmac: add GMAC4 DMA/CORE Header File

2016-03-25 Thread Alexandre TORGUE
This is the main header file to define all the macro used for GMAC4 DMA and CORE parts. Signed-off-by: Alexandre TORGUE Signed-off-by: Giuseppe Cavallaro diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4.h

[PATCH 07/13] stmmac: add GMAC4 core support

2016-03-25 Thread Alexandre TORGUE
This is the initial support for GMAC4 that includes the main callbacks to setup the core module: including Csum, basic filtering, mac address and interrupt (MMC, MTL, PMT) No LPI added. Signed-off-by: Alexandre TORGUE Signed-off-by: Giuseppe Cavallaro

[PATCH 03/13] stmmac: rework synopsys id read, moved to dwmac setup

2016-03-25 Thread Alexandre TORGUE
synopsys_uid is only used once after setup, to get synopsys_id by using shitf/mask operation. It's no longer used then. So, remove this temporary variable and directly compute synopsys_id from setup routine. Acked-by: Giuseppe Cavallaro Signed-off-by: Fabrice Gasnier

[PATCH 00/13] Enhance stmmac driver to support GMAC4.x IP

2016-03-25 Thread Alexandre TORGUE
This is a subset of patch to enhance current stmmac driver to support new GMAC4.x chips. New set of callbacks is defined to support this new family: descriptors, dma, core. One of main changes of GMAC 4.xx IP is descriptors management. -descriptors are only used in ring mode. -A descriptor is

[PATCH 01/13] stmmac: rework get_hw_feature function

2016-03-25 Thread Alexandre TORGUE
On next GMAC IP generation (4.xx), the way to get hw feature is not the same than on previous 3.xx. As it is hardware dependent, the way to get hw capabilities should be defined in dma ops of each MAC IP. It will avoid also a huge computation of hw capabilities in stmmac_main. Signed-off-by:

Re: [PATCH net] net: ipv4: Multipath needs to handle unreachable nexthops

2016-03-25 Thread Julian Anastasov
Hello, On Thu, 24 Mar 2016, David Ahern wrote: > On 3/24/16 4:33 PM, Julian Anastasov wrote: > > But for multipath routes we can also consider the > > nexthops as "alternatives", so it depends on how one uses > > the multipath mechanism. The ability to fallback to > > another

Re: [PATCH 1/1] net: Add SO_REUSEPORT_LISTEN_OFF socket option as drain mode

2016-03-25 Thread Willy Tarreau
Hi Eric, On Thu, Mar 24, 2016 at 11:49:41PM -0700, Eric Dumazet wrote: > Everything is possible, but do not complain because BPF went in the > kernel before your changes. Don't get me wrong, I'm not complaining, I'm more asking for help to try to elaborate the alternate solution. I understood

Re: [PATCH] stmmac: Fix phy without MDIO subnode

2016-03-25 Thread Giuseppe CAVALLARO
On 3/24/2016 6:01 PM, John Keeping wrote: On Thu, 24 Mar 2016 13:56:02 +0100, Giuseppe CAVALLARO wrote: This should be fixed by some work done some days ago and not yet committed. Pls see "stmmac: MDIO fixes" patch-set and let me know if ok on your side. Yes, that works for me. thx John

RE: [v6, 2/5] soc: fsl: add GUTS driver for QorIQ platforms

2016-03-25 Thread Yangbo Lu
> -Original Message- > From: Scott Wood > Sent: Saturday, March 19, 2016 6:55 AM > To: Yangbo Lu; devicet...@vger.kernel.org; linux-arm- > ker...@lists.infradead.org; linux-ker...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; linux-...@vger.kernel.org; linux- > i...@vger.kernel.org;

Re: [PATCH 1/1] net: Add SO_REUSEPORT_LISTEN_OFF socket option as drain mode

2016-03-25 Thread Eric Dumazet
On Fri, 2016-03-25 at 06:28 +0100, Willy Tarreau wrote: > On Thu, Mar 24, 2016 at 04:54:03PM -0700, Tom Herbert wrote: > > On Thu, Mar 24, 2016 at 4:40 PM, Yann Ylavic wrote: > > > I'll learn how to do this to get the best performances from the > > > server, but having to do

RE: [v6, 5/5] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-03-25 Thread Yangbo Lu
> -Original Message- > From: Scott Wood > Sent: Saturday, March 19, 2016 2:28 AM > To: Arnd Bergmann; Rob Herring > Cc: Yangbo Lu; linuxppc-...@lists.ozlabs.org; devicet...@vger.kernel.org; > ulf.hans...@linaro.org; Zhao Qiang; Russell King; Bhupesh Sharma; > netdev@vger.kernel.org; Joerg

RE: [v6, 3/5] dt: move guts devicetree doc out of powerpc directory

2016-03-25 Thread Yangbo Lu
> -Original Message- > From: Scott Wood > Sent: Saturday, March 19, 2016 2:16 AM > To: Rob Herring; Yangbo Lu > Cc: devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-ker...@vger.kernel.org; linuxppc-...@lists.ozlabs.org; linux- > c...@vger.kernel.org;

  1   2   >