[v3 3/8] dpaa_eth: add support for S/G frames

2015-09-24 Thread Madalin Bucur
Add support for Scater/Gather (S/G) frames. The FMan can place the frame content into multiple buffers and provide a S/G Table (SGT) into one first buffer with references to the others. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

Re: [PATCH 2/2] Convert smsc911x to use ACPI as well as DT

2015-09-24 Thread Catalin Marinas
On Thu, Sep 24, 2015 at 12:52:38PM +0100, David Woodhouse wrote: > On Thu, 2015-09-24 at 11:31 +0100, Catalin Marinas wrote: > > PRP0001 opens the door to any DT-like properties in ACPI and, knowing > > how the ARM ecosystem works, I'm pretty sure we'll soon lose control (if > > we haven't

[net-next PATCH v2 3/3] i40evf: Add support for netpoll

2015-09-24 Thread Alexander Duyck
Signed-off-by: Alexander Duyck --- drivers/net/ethernet/intel/i40evf/i40evf_main.c | 26 +++ 1 file changed, 26 insertions(+) diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c index

Re: [Linux 4.2-rc8+...v4.3-rc2] REGRESSION: ppp: circular locking dependency detected: [pppd] ppp_dev_uninit() | rtnl_lock()

2015-09-24 Thread Sedat Dilek
On Thu, Sep 24, 2015 at 1:03 PM, Guillaume Nault wrote: > On Wed, Sep 23, 2015 at 11:21:50PM +0200, Sedat Dilek wrote: >> On Wed, Sep 23, 2015 at 10:46 PM, Sedat Dilek wrote: >> > On Wed, Sep 23, 2015 at 12:38 PM, Guillaume Nault

[PATCH net-next 1/4] rhashtable: add function to replace an element

2015-09-24 Thread Tom Herbert
Add the rhashtable_replace_fast function. This replaces one object in the table with another atomically. The hashes of the new and old objects must be equal. Signed-off-by: Tom Herbert --- include/linux/rhashtable.h | 80 ++ 1

[PATCH net-next 3/4] ila: Create net/ipv6/ila directory

2015-09-24 Thread Tom Herbert
Create ila directory in preparation for supporting other hooks in the kernel than LWT for doing ILA. This includes: - Moving ila.c to ila/ila_lwt.c - Splitting out some common functions into ila_common.c Signed-off-by: Tom Herbert --- net/ipv6/Makefile | 2 +-

[PATCH net 2/2] sctp: Prevent soft lockup when sctp_accept() is called during a timeout event

2015-09-24 Thread Karl Heiss
A case can occur when sctp_accept() is called by the user during a heartbeat timeout event after the 4-way handshake. Since sctp_assoc_migrate() changes both assoc->base.sk and assoc->ep, the bh_sock_lock in sctp_generate_heartbeat_event() will be taken with the listening socket but released with

[PATCH net 1/2] sctp: Whitespace fix

2015-09-24 Thread Karl Heiss
Fix indentation in sctp_generate_heartbeat_event. Signed-off-by: Karl Heiss --- net/sctp/sm_sideeffect.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c index 35df126..f554b9a 100644 ---

[PATCH net 0/2] sctp: Fix SCTP deadlock

2015-09-24 Thread Karl Heiss
These patches fix a deadlock during accept() of an SCTP connection. The first patch fixes whitespace issues. The second patch actually fixes the deadlock race. Karl Heiss (2): sctp: Whitespace fix sctp: Prevent soft lockup when sctp_accept() is called during a timeout event

[PATCH net-next 2/4] netlink: add a start callback for starting a netlink dump

2015-09-24 Thread Tom Herbert
The start callback allows the caller to set up a context for the dump callbacks. Presumably, the context can then be destroyed in the done callback. Signed-off-by: Tom Herbert --- include/linux/netlink.h | 2 ++ include/net/genetlink.h | 2 ++ net/netlink/af_netlink.c

[PATCH net-next 0/4] ila: Use NF_INET_PRE_ROUTING nfhook

2015-09-24 Thread Tom Herbert
In the current implementation of ILA, LWT is used to perform translation on both the input and output paths. This is functional, however there is a big performance hit in the receive path. Early demux occurs before the routing lookup (a hit actually obviates the route lookup). Therefore the stack

[PATCH net-next 4/4] ila: Add support for netfilter NF_INET_PRE_ROUTING hook

2015-09-24 Thread Tom Herbert
This patch sets up a hook at NF_INET_PRE_ROUTING to perform ILA translation. This is done to have a way to perform translation before early demux which can be a significant performance advantage over LWT which would occur after. The implementation uses an rhashtable which is used to do the

[PATCH RESEND v3 1/9] phy: fix of_mdio_find_bus() device refcount leak

2015-09-24 Thread Russell King
of_mdio_find_bus() leaks a struct device refcount, caused by using class_find_device() and not realising that the device reference has its refcount incremented: * Note, you will need to drop the reference with put_device() after use. ... while ((dev = class_dev_iter_next())) {

Re: [PATCH v2] netlink: Replace rhash_portid with bound

2015-09-24 Thread Tejun Heo
Hello, David. On Thu, Sep 24, 2015 at 12:11:42PM -0700, David Miller wrote: > From: Herbert Xu > Date: Tue, 22 Sep 2015 11:38:56 +0800 > > > The commit 1f770c0a09da855a2b51af6d19de97fb955eca85 ("netlink: > > Fix autobind race condition that leads to zero port ID")

Re: [PATCH 2/2] Convert smsc911x to use ACPI as well as DT

2015-09-24 Thread David Woodhouse
On Thu, 2015-09-24 at 16:15 +0100, Catalin Marinas wrote: > With "PRP0001", they can skip the _DSD properties review process (not > that they bother much currently) as long as the existing DT support > covers their needs. So no change there then. I take it the smsc911x bindings didn't go through

[PATCH RESEND v3 5/9] of_mdio: fix MDIO phy device refcounting

2015-09-24 Thread Russell King
bus_find_device() is defined as: * This is similar to the bus_for_each_dev() function above, but it * returns a reference to a device that is 'found' for later use, as * determined by the @match callback. and it does indeed return a reference-counted pointer to the device: while

[PATCH RESEND v3 4/9] phy: add proper phy struct device refcounting

2015-09-24 Thread Russell King
Take a refcount on the phy struct device when the phy device is attached to a network device, and drop it after it's detached. This ensures that a refcount is held on the phy device while the device is being used by a network device, thereby preventing the phy_device from being unexpectedly

[PATCH iproute2] geneve: add support for IPv6 link partners

2015-09-24 Thread John W. Linville
Signed-off-by: John W. Linville --- include/linux/if_link.h | 1 + ip/iplink_geneve.c | 20 +--- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/include/linux/if_link.h b/include/linux/if_link.h index 193456660ee8..d0f385579c83 100644

[PATCH RESEND v3 6/9] net: fix phy refcounting in a bunch of drivers

2015-09-24 Thread Russell King
of_phy_find_device() increments the phy struct device refcount, which we need to properly balance. Add code to network drivers using this function to ensure that the struct device refcount is correctly balanced. For xgene, looking back in the history, we should be able to use of_phy_connect()

Re: [PATCH net-next] genetlink: simplify genl_notify

2015-09-24 Thread David Miller
From: Jiri Benc Date: Tue, 22 Sep 2015 18:56:43 +0200 > The genl_notify function has too many arguments for no real reason - all > callers use genl_info to get them anyway. Just pass the genl_info down to > genl_notify. > > Signed-off-by: Jiri Benc Applied,

[PATCH RESEND v3 8/9] phy: add phy_device_remove()

2015-09-24 Thread Russell King
Add a phy_device_remove() function to complement phy_device_register(), which undoes the effects of phy_device_register() by removing the phy device from visibility, but not freeing it. This allows these details to be moved out of the mdio bus code into the phy code where this action belongs.

[PATCH RESEND v3 7/9] phy: fixed-phy: properly validate phy in fixed_phy_update_state()

2015-09-24 Thread Russell King
Validate that the phy_device passed into fixed_phy_update_state() is a fixed-phy device before walking the list of phys for a fixed phy at the same address. Signed-off-by: Russell King --- drivers/net/phy/fixed_phy.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v7 02/10] ss: created formatters for json and hr

2015-09-24 Thread Matthias Tafelmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA384 On 09/24/2015 01:26 AM, Stephen Hemminger wrote: > Having JSON output is going to be a real plus for programatic > parsing. My understanding of best practice with JSON is that it is > best to output values in best machine readable form, the format

[PATCH 2/3] Check for vlan ethernet types for 8021.q or 802.1ad

2015-09-24 Thread Thomas F Herbert
Signed-off-by: Thomas F Herbert --- include/linux/if_vlan.h | 17 + 1 file changed, 17 insertions(+) diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h index 67ce5bd..88d1be4 100644 --- a/include/linux/if_vlan.h +++ b/include/linux/if_vlan.h

[PATCH 1/3] openvswitch: 802.1ad uapi changes.

2015-09-24 Thread Thomas F Herbert
openvswitch: Add support for 8021.AD Change the description of the VLAN tpid field. Signed-off-by: Thomas F Herbert --- include/uapi/linux/openvswitch.h | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git

[PATCH 3/3] 802.1AD: Flow handling, actions, vlan parsing and netlink attributes

2015-09-24 Thread Thomas F Herbert
Add support for 802.1ad including the ability to push and pop double tagged vlans. Add support for 802.1ad to netlink parsing and flow conversion. Uses double nested encap attributes to represent double tagged vlan. Inner TPID encoded along with ctci in nested attributes. Signed-off-by: Thomas F

[PATCH net-next V13 0/3] openvswitch: Add support for 802.1ad

2015-09-24 Thread Thomas F Herbert
V13: Fix incorrect encoding and decoding of netlink to/from key attributes. V12: Fix some problems and issues pointed out by reviewers. When parsing netlink attributes Ether types other then 0x88a8 as outer tpid. V11: Add inner tpid to flow key. Fix separate inner encap attribute when parsing

Re: [PATCH net-next] net: Fix Hisilicon Network Subsystem Support Compilation

2015-09-24 Thread David Miller
From: huangdaode Date: Thu, 24 Sep 2015 17:54:09 +0800 > This patch fixes the compilation error with arm allmodconfig, this error > generated due to unavailability of readq on 32-bit platform which was > found during net-next daily compilation > > Signed-off-by:

Re: [RFC v2 net-next 00/10] Add new drivers: qed & qede

2015-09-24 Thread David Miller
From: Ariel Elior Date: Thu, 24 Sep 2015 14:46:24 + > Just a friendly reminder that this request for comment is still out > there, and well, no comments have been forthcoming. For sizable networking drivers, your expectations should be set extremely low for anyone

RE: [RFC v2 net-next 00/10] Add new drivers: qed & qede

2015-09-24 Thread Yuval Mintz
> > Just a friendly reminder that this request for comment is still out > > there, and well, no comments have been forthcoming. > > For sizable networking drivers, your expectations should be set extremely low > for anyone putting aside the time to review your work. > > I'm not saying this is

[PATCH] bridge: Allow forward delay to be cfgd when STP enabled

2015-09-24 Thread Stephen Hemminger
From: Ian Wilson Allow bridge forward delay to be configured when Spanning Tree is enabled. Signed-off-by: Ian Wilson Signed-off-by: Stephen Hemminger --- net/bridge/br_stp.c | 13 - 1 file changed, 4

[RFT] geneve: implement support for IPv6-based tunnels

2015-09-24 Thread John W. Linville
Signed-off-by: John W. Linville --- The IPv6 tunnel_info/metadata paths are untested due to lack of OVS infrastructure for testing. The traditional netdev paths have had reasonable testing by me with some local virt guests over the past few weeks. NOTE -- this patch

[PATCH 4/9] phy: add proper phy struct device refcounting

2015-09-24 Thread Russell King
Take a refcount on the phy struct device when the phy device is attached to a network device, and drop it after it's detached. This ensures that a refcount is held on the phy device while the device is being used by a network device, thereby preventing the phy_device from being unexpectedly

[PATCH 1/9] phy: fix of_mdio_find_bus() device refcount leak

2015-09-24 Thread Russell King
of_mdio_find_bus() leaks a struct device refcount, caused by using class_find_device() and not realising that the device reference has its refcount incremented: * Note, you will need to drop the reference with put_device() after use. ... while ((dev = class_dev_iter_next())) {

[PATCH 8/9] phy: add phy_device_remove()

2015-09-24 Thread Russell King
Add a phy_device_remove() function to complement phy_device_register(), which undoes the effects of phy_device_register() by removing the phy device from visibility, but not freeing it. This allows these details to be moved out of the mdio bus code into the phy code where this action belongs.

[PATCH 5/9] of_mdio: fix MDIO phy device refcounting

2015-09-24 Thread Russell King
bus_find_device() is defined as: * This is similar to the bus_for_each_dev() function above, but it * returns a reference to a device that is 'found' for later use, as * determined by the @match callback. and it does indeed return a reference-counted pointer to the device: while

[PATCH v3 0/9] Phy, mdiobus, and netdev struct device fixes

2015-09-24 Thread Russell King - ARM Linux
Hi, The third version of this series fixes the build error which David identified, and drops the broken changes for the Cavium Thunger BGX ethernet driver as this driver requires some complex changes to resolve the leakage - and this is best done by people who can test the driver. Compared to

[PATCH 3/9] phy: fix mdiobus module safety

2015-09-24 Thread Russell King
Re-implement the mdiobus module refcounting to ensure that we actually ensure that the mdiobus module code does not go away while we might call into it. The old scheme using bus->dev.driver was buggy, because bus->dev is a class device which never has a struct device_driver associated with it,

[PATCH 2/9] net: dsa: fix of_mdio_find_bus() device refcount leak

2015-09-24 Thread Russell King
Current users of of_mdio_find_bus() leak a struct device refcount, as they fail to clean up the reference obtained inside class_find_device(). Fix the DSA code to properly refcount the returned MDIO bus by: 1. taking a reference on the struct device whenever we assign it to

[PATCH 9/9] net: fix net_device refcounting

2015-09-24 Thread Russell King
of_find_net_device_by_node() uses class_find_device() internally to lookup the corresponding network device. class_find_device() returns a reference to the embedded struct device, with its refcount incremented. Add a comment to the definition in net/core/net-sysfs.c indicating the need to drop

[PATCH 7/9] phy: fixed-phy: properly validate phy in fixed_phy_update_state()

2015-09-24 Thread Russell King
Validate that the phy_device passed into fixed_phy_update_state() is a fixed-phy device before walking the list of phys for a fixed phy at the same address. Signed-off-by: Russell King --- drivers/net/phy/fixed_phy.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [Linux 4.2-rc8+...v4.3-rc2] REGRESSION: ppp: circular locking dependency detected: [pppd] ppp_dev_uninit() | rtnl_lock()

2015-09-24 Thread David Miller
From: Sedat Dilek Date: Thu, 24 Sep 2015 18:19:16 +0200 > OK, I guess DaveM will take your patch into net.git#master first... > and tag it there with CC-stable? I do not tag anything with stable. I queue it up into a patchwork bundle and explicitly submit those patches

Re: [PATCH v2] netlink: Replace rhash_portid with bound

2015-09-24 Thread David Miller
From: Herbert Xu Date: Tue, 22 Sep 2015 11:38:56 +0800 > The commit 1f770c0a09da855a2b51af6d19de97fb955eca85 ("netlink: > Fix autobind race condition that leads to zero port ID") created > some new races that can occur due to inconcsistencies between the > two port

Re: [PATCH net-next] ipv6: remove unused neigh parameter from ndisc functions

2015-09-24 Thread David Miller
From: Jiri Benc Date: Tue, 22 Sep 2015 18:57:13 +0200 > Since commit 12fd84f4383b1 ("ipv6: Remove unused neigh argument for > icmp6_dst_alloc() and its callers."), the neigh parameter of ndisc_send_na > and ndisc_send_ns is unused. > > CC: YOSHIFUJI Hideaki

[PATCH RESEND v3 9/9] net: fix net_device refcounting

2015-09-24 Thread Russell King
of_find_net_device_by_node() uses class_find_device() internally to lookup the corresponding network device. class_find_device() returns a reference to the embedded struct device, with its refcount incremented. Add a comment to the definition in net/core/net-sysfs.c indicating the need to drop

Re: [PATCH 17/19] tools: bpf_jit_disasm: make get_last_jit_image return unsigned

2015-09-24 Thread Daniel Borkmann
On 09/24/2015 04:00 PM, Andrzej Hajda wrote: The function returns always non-negative values. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2046107 Signed-off-by:

[PATCH RESEND v3 3/9] phy: fix mdiobus module safety

2015-09-24 Thread Russell King
Re-implement the mdiobus module refcounting to ensure that we actually ensure that the mdiobus module code does not go away while we might call into it. The old scheme using bus->dev.driver was buggy, because bus->dev is a class device which never has a struct device_driver associated with it,

[PATCH RESEND v3 2/9] net: dsa: fix of_mdio_find_bus() device refcount leak

2015-09-24 Thread Russell King
Current users of of_mdio_find_bus() leak a struct device refcount, as they fail to clean up the reference obtained inside class_find_device(). Fix the DSA code to properly refcount the returned MDIO bus by: 1. taking a reference on the struct device whenever we assign it to

Re: [RFC v2 net-next 05/10] qede: Add basic network device support

2015-09-24 Thread Stephen Hemminger
On Thu, 17 Sep 2015 17:23:54 +0300 Yuval Mintz wrote: > +#define QEDE_NAPI_WEIGHT (NAPI_POLL_WEIGHT) > + Why not just use existing constant rather than walpapering? > + > +#define U64_LO(x)((u32)(((u64)(x)) & 0x)) > +#define U64_HI(x)

Re: [PATCH net] bnx2x: byte swap rss_key to comply to Toeplitz specs

2015-09-24 Thread David Miller
From: Eric Dumazet Date: Tue, 22 Sep 2015 17:04:58 -0700 > From: Eric Dumazet > > After a good amount of debugging, I found bnx2x was byte swaping > the 40 bytes of rss_key. > > If we byte swap the key, then bnx2x generates hashes matching > MSDN

Re: [PATCH] net: mdio-octeon: Add PCI driver binding.

2015-09-24 Thread David Daney
On 09/24/2015 02:52 PM, David Miller wrote: From: David Daney Date: Tue, 22 Sep 2015 17:41:36 -0700 From: David Daney When the Cavium mdio-octeon devices appear in the Thunder family of arm64 based SoCs, they show up as PCI devices. Add PCI

[PATCH net-next] net: Add support for filtering neigh dump by master device

2015-09-24 Thread David Ahern
Add support for filtering neighbor dumps by master device by adding the NDA_MASTER attribute to the dump request. Signed-off-by: David Ahern --- This method works for other filters as well and other dump commands as well. Works fine for all combinations of new and old

[PATCH] net: Fix panic in icmp_route_lookup

2015-09-24 Thread David Ahern
Andrey reported a panic: [ 7249.865507] BUG: unable to handle kernel pointer dereference at 00b4 [ 7249.865559] IP: [] icmp_route_lookup+0xaa/0x320 [ 7249.865598] *pdpt = 30f7f001 *pde = [ 7249.865637] Oops: [#1] ... [ 7249.866811] CPU: 0 PID: 0 Comm: swapper/0

Re: [Patch net] net: revert "net_sched: move tp->root allocation into fw_init()"

2015-09-24 Thread David Miller
From: Cong Wang Date: Tue, 22 Sep 2015 17:01:11 -0700 > fw filter uses tp->root==NULL to check if it is the old method, > so it doesn't need allocation at all in this case. This patch > reverts the offending commit and adds some comments for old > method to make it

Re: [PATCH] ip6_gre: Reduce log level in ip6gre_err() to debug

2015-09-24 Thread David Miller
From: Matt Bennett Date: Wed, 23 Sep 2015 16:58:31 +1200 > Currently error log messages in ip6gre_err are printed at 'warn' > level. This is different to most other tunnel types which don't > print any messages. These log messages don't provide any information >

Re: [PATCH] net: mdio-octeon: Add PCI driver binding.

2015-09-24 Thread David Daney
On 09/24/2015 03:14 PM, David Miller wrote: From: David Daney Date: Thu, 24 Sep 2015 15:04:23 -0700 On 09/24/2015 02:52 PM, David Miller wrote: From: David Daney Date: Tue, 22 Sep 2015 17:41:36 -0700 From: David Daney

Re: [PATCH v3 0/9] Phy, mdiobus, and netdev struct device fixes

2015-09-24 Thread Russell King - ARM Linux
On Thu, Sep 24, 2015 at 03:51:37PM -0700, David Miller wrote: > From: Andrew Lunn > Date: Fri, 25 Sep 2015 00:26:54 +0200 > > > On Thu, Sep 24, 2015 at 03:15:54PM -0700, David Miller wrote: > >> From: Andrew Lunn > >> Date: Thu, 24 Sep 2015 23:57:31 +0200 > >> >

Re: [PATCH v3 0/9] Phy, mdiobus, and netdev struct device fixes

2015-09-24 Thread Andrew Lunn
... > While looking at the DSA code, I noticed we have a > of_find_net_device_by_node(), and it looks like users of that are > similarly buggy - it looks like net/dsa/dsa.c is the only user. Fix > that too. ... > The mdiobus code also suffered from the same kind of leak, but thankfully > this

Re: [PATCH] net: mdio-octeon: Add PCI driver binding.

2015-09-24 Thread David Miller
From: David Daney Date: Thu, 24 Sep 2015 15:45:41 -0700 > 2) The OF device tree nodes for PCI devices do not result in the > creation of a platform device. But they are created for the children right? And that's the one you need them for probing. I'm still not

Re: [PATCH] net: mdio-octeon: Add PCI driver binding.

2015-09-24 Thread David Daney
On 09/24/2015 03:50 PM, David Miller wrote: From: David Daney Date: Thu, 24 Sep 2015 15:45:41 -0700 2) The OF device tree nodes for PCI devices do not result in the creation of a platform device. But they are created for the children right? And that's the one you

Re: [PATCH] net: mdio-octeon: Add PCI driver binding.

2015-09-24 Thread David Miller
From: David Daney Date: Thu, 24 Sep 2015 15:54:30 -0700 > On 09/24/2015 03:50 PM, David Miller wrote: >> From: David Daney >> Date: Thu, 24 Sep 2015 15:45:41 -0700 >> >>> 2) The OF device tree nodes for PCI devices do not result in the >>>

Re: [PATCH] ip6_tunnel: Reduce log level in ip6_tnl_err() to debug

2015-09-24 Thread David Miller
From: Matt Bennett Date: Fri, 25 Sep 2015 11:01:47 +1200 > Currently error log messages in ip6_tnl_err are printed at 'warn' > level. This is different to other tunnel types which don't print > any messages. These log messages don't provide any information that

Re: [PATCH 3/3] 802.1AD: Flow handling, actions, vlan parsing and netlink attributes

2015-09-24 Thread Pravin Shelar
On Thu, Sep 24, 2015 at 10:58 AM, Thomas F Herbert wrote: > Add support for 802.1ad including the ability to push and pop double > tagged vlans. Add support for 802.1ad to netlink parsing and flow > conversion. Uses double nested encap attributes to represent double >

Re: [PATCH 13/17] net: gianfar: remove misuse of IRQF_NO_SUSPEND flag

2015-09-24 Thread Li Yang
On Wed, Sep 23, 2015 at 5:03 PM, Thomas Gleixner wrote: > On Wed, 23 Sep 2015, Li Yang wrote: >> On Mon, Sep 21, 2015 at 11:51 AM, Thomas Gleixner wrote: >> > On Mon, 21 Sep 2015, Manoil Claudiu wrote: >> >> >The device is set as wakeup capable using

Re: [PATCH] ip: find correct route for socket which is not bound (v2)

2015-09-24 Thread David Miller
From: Wengang Wang Date: Mon, 21 Sep 2015 16:00:09 +0800 > This is the v2, comparing the v1, the changes is: > * for loopback outbound device, it continue skipping cached route; >for others, it goes through the cached route. There are many things I want you to

Re: [PATCH 13/17] net: gianfar: remove misuse of IRQF_NO_SUSPEND flag

2015-09-24 Thread David Miller
From: Sudeep Holla Date: Mon, 21 Sep 2015 16:47:09 +0100 > The device is set as wakeup capable using proper wakeup API but the > driver misuses IRQF_NO_SUSPEND to set the interrupt as wakeup source > which is incorrect. > > This patch removes the use of IRQF_NO_SUSPEND

Re: [PATCH net 0/2] lwtunnel: make it really work, for IPv4

2015-09-24 Thread David Miller
From: Jiri Benc Date: Tue, 22 Sep 2015 18:12:10 +0200 > One of the selling points of lwtunnel was the ability to specify the tunnel > destination using routes. However, this doesn't really work currently, as > ARP and ndisc replies are not handled correctly. ARP and ndisc

Re: [PATCH] net: mdio-octeon: Add PCI driver binding.

2015-09-24 Thread David Miller
From: David Daney Date: Thu, 24 Sep 2015 15:04:23 -0700 > On 09/24/2015 02:52 PM, David Miller wrote: >> From: David Daney >> Date: Tue, 22 Sep 2015 17:41:36 -0700 >> >>> From: David Daney >>> >>> When the Cavium

Re: [PATCH net-next] net: dsa: Set a "dsa" device_type

2015-09-24 Thread Vivien Didelot
Hi Florian, On Sep. Wednesday 23 (39) 06:19 PM, Florian Fainelli wrote: > Provide a device_type information for slave network devices created by > DSA, this is useful for user-space application to easily locate/search > for devices of a specific kind. > > Signed-off-by: Florian Fainelli

[PATCH net-next 3/4] bridge: push bridge setting ageing_time down to switchdev

2015-09-24 Thread sfeldma
From: Scott Feldman Use SWITCHDEV_F_SKIP_EOPNOTSUPP to skip over ports in bridge that don't support setting ageing_time (or setting bridge attrs in general). If push fails, don't update ageing_time in bridge and return err to user. If push succeeds, update ageing_time in

[PATCH net-next 0/4] switchdev: push bridge attributes down

2015-09-24 Thread sfeldma
From: Scott Feldman Push bridge-level attributes down to switchdev drivers. This patchset adds the infrastructure and then pushes, as an example, ageing_time attribute down from bridge to switchdev (rocker) driver. Add some range-checking for ageing_time. # ip link set dev

[PATCH net-next 4/4] rocker: handle setting bridge ageing_time

2015-09-24 Thread sfeldma
From: Scott Feldman The FDB cleanup timer will get rescheduled to re-evaluate FDB entries based on new ageing_time. Signed-off-by: Scott Feldman --- drivers/net/ethernet/rocker/rocker.c | 22 ++ 1 file changed, 22 insertions(+) diff

[PATCH net-next 2/4] switchdev: skip over ports returning -EOPNOTSUPP when recursing ports

2015-09-24 Thread sfeldma
From: Scott Feldman This allows us to recurse over all the ports, skipping over unsupporting ports. Without the change, the recursion would stop at first unsupported port. Signed-off-by: Scott Feldman --- include/net/switchdev.h |1 +

[PATCH net-next 1/4] switchdev: add bridge attributes

2015-09-24 Thread sfeldma
From: Scott Feldman Setting the stage to push bridge-level attributes down to port driver so hardware can be programmed accordingly. Bridge-level attribute example is ageing_time. This is a per-bridge attribute, not a per-bridge-port attr. Signed-off-by: Scott Feldman

Re: [PATCH net-next 0/4] switchdev: push bridge attributes down

2015-09-24 Thread Stephen Hemminger
On Thu, 24 Sep 2015 13:59:26 -0700 sfel...@gmail.com wrote: > From: Scott Feldman > > Push bridge-level attributes down to switchdev drivers. This patchset > adds the infrastructure and then pushes, as an example, ageing_time attribute > down from bridge to switchdev

Re: [PATCH] net: mdio-octeon: Add PCI driver binding.

2015-09-24 Thread David Miller
From: David Daney Date: Tue, 22 Sep 2015 17:41:36 -0700 > From: David Daney > > When the Cavium mdio-octeon devices appear in the Thunder family of > arm64 based SoCs, they show up as PCI devices. Add PCI driver > wrapping so the driver is bound

Re: [PATCH v2 net-next] tcp: factorize sk_txhash init

2015-09-24 Thread David Miller
From: Eric Dumazet Date: Tue, 22 Sep 2015 20:44:17 -0700 > From: Eric Dumazet > > Neal suggested to move sk_txhash init into tcp_create_openreq_child(), > called both from IPv4 and IPv6. > > This opportunity was missed in commit 58d607d3e52f ("tcp:

Re: [PATCH] net: mdio-octeon: Add PCI driver binding.

2015-09-24 Thread David Daney
On 09/24/2015 03:04 PM, David Daney wrote: On 09/24/2015 02:52 PM, David Miller wrote: From: David Daney Date: Tue, 22 Sep 2015 17:41:36 -0700 From: David Daney When the Cavium mdio-octeon devices appear in the Thunder family of arm64 based

Re: [PATCH v3 0/9] Phy, mdiobus, and netdev struct device fixes

2015-09-24 Thread Andrew Lunn
On Thu, Sep 24, 2015 at 03:15:54PM -0700, David Miller wrote: > From: Andrew Lunn > Date: Thu, 24 Sep 2015 23:57:31 +0200 > > > I built the FEC driver as a module, and it won't unload: > > > > kernel:unregister_netdevice: waiting for eth1 to become free. Usage count > > = 1 >

Re: pull-request: mac80211 2015-09-23

2015-09-24 Thread David Miller
From: Johannes Berg Date: Wed, 23 Sep 2015 10:44:14 +0200 > It's been pretty quiet for this cycle since the sizeof() mess, but I > have two more fixes now I'd like to get in. > > Let me know if there's any problem. Pulled, thanks a lot. -- To unsubscribe from this

Re: [PATCH v3 0/9] Phy, mdiobus, and netdev struct device fixes

2015-09-24 Thread Andrew Lunn
> Thanks for testing. Please could you confirm whether the same behaviour > is observed without the patches, just to make absolutely sure that isn't > a regression. So i tested this now. I have two FEC interfaces. One i my main access interface, and the second is used by DSA to access switches.

[PATCH] ip6_tunnel: Reduce log level in ip6_tnl_err() to debug

2015-09-24 Thread Matt Bennett
Currently error log messages in ip6_tnl_err are printed at 'warn' level. This is different to other tunnel types which don't print any messages. These log messages don't provide any information that couldn't be deduced with networking tools. Also it can be annoying to have one end of the tunnel go

Re: [PATCH v3 0/9] Phy, mdiobus, and netdev struct device fixes

2015-09-24 Thread Russell King - ARM Linux
On Fri, Sep 25, 2015 at 12:50:33AM +0200, Andrew Lunn wrote: > > Thanks for testing. Please could you confirm whether the same behaviour > > is observed without the patches, just to make absolutely sure that isn't > > a regression. > > So i tested this now. > > I have two FEC interfaces. One i

[PATCH net-next 05/11] net: Replace vrf_dev_table and friends

2015-09-24 Thread David Ahern
Replace calls to vrf_dev_table and friends with l3mdev_fib_table and kin. Signed-off-by: David Ahern --- include/net/vrf.h | 80 - net/ipv4/af_inet.c | 4 +-- net/ipv4/fib_frontend.c | 7 ++--- 3 files

[PATCH net-next 01/11] net: Introduce L3 Master device abstraction

2015-09-24 Thread David Ahern
L3 master devices allow users of the abstraction to influence FIB lookups for enslaved devices. Current API provides a means for the master device to return a specific FIB table for an enslaved device, to return an rtable/custom dst and influence the OIF used for fib lookups. Signed-off-by: David

[PATCH net-next 03/11] net: Add support for l3mdev ops to VRF driver

2015-09-24 Thread David Ahern
Signed-off-by: David Ahern --- drivers/net/Kconfig | 1 + drivers/net/vrf.c | 29 + 2 files changed, 30 insertions(+) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index d18eb607bee6..b9ebd0d18a52 100644 --- a/drivers/net/Kconfig

[PATCH net-next 06/11] net: Replace calls to vrf_dev_get_rth

2015-09-24 Thread David Ahern
Replace calls to vrf_dev_get_rth with l3mdev_get_rtable. The check on the flow flags is handled in the l3mdev operation. Signed-off-by: David Ahern --- include/net/vrf.h | 22 -- net/ipv4/route.c | 8 +++- 2 files changed, 3 insertions(+), 27

[PATCH net-next 07/11] net: Remove the now unused vrf_ptr

2015-09-24 Thread David Ahern
Signed-off-by: David Ahern --- drivers/net/vrf.c | 32 ++-- include/linux/netdevice.h | 2 -- include/net/vrf.h | 6 -- 3 files changed, 2 insertions(+), 38 deletions(-) diff --git a/drivers/net/vrf.c

[PATCH net-next 00/11] net: L3 master device

2015-09-24 Thread David Ahern
The VRF device is essentially a Layer 3 master device used to associate netdevices with a specific routing table and to influence FIB lookups via 'ip rules' and controlling the oif/iif used for the lookup. This series generalizes the VRF into L3 master device, l3mdev. Similar to switchdev it has

[PATCH net-next 08/11] net: Remove vrf header file

2015-09-24 Thread David Ahern
Move remaining structs to VRF driver and delete the vrf header file. Signed-off-by: David Ahern --- MAINTAINERS | 1 - drivers/net/vrf.c | 16 +++- include/net/vrf.h | 29 - 3 files changed, 15 insertions(+), 31

[PATCH net-next 02/11] net: Rename IFF_VRF_MASTER to IFF_L3MDEV_MASTER

2015-09-24 Thread David Ahern
Rename IFF_VRF_MASTER to IFF_L3MDEV_MASTER and update the name of the netif_is_vrf and netif_index_is_vrf macros. Signed-off-by: David Ahern --- drivers/net/vrf.c | 6 +++--- include/linux/netdevice.h | 14 +++--- include/net/route.h | 2 +-

[PATCH net-next 10/11] net: Rename FLOWI_FLAG_VRFSRC to FLOWI_FLAG_L3MDEV_SRC

2015-09-24 Thread David Ahern
Signed-off-by: David Ahern --- drivers/net/vrf.c | 4 ++-- include/net/flow.h | 2 +- include/net/route.h | 2 +- net/ipv4/fib_trie.c | 2 +- net/ipv4/udp.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/vrf.c

[PATCH net-next 09/11] net: Move netif_index_is_l3_master to l3mdev.h

2015-09-24 Thread David Ahern
Change CONFIG dependency to CONFIG_NET_L3_MASTER_DEV as well. Signed-off-by: David Ahern --- include/linux/netdevice.h | 21 - include/net/l3mdev.h | 24 include/net/route.h | 1 + 3 files changed, 25

[PATCH net-next 04/11] net: Replace vrf_master_ifindex{,_rcu} with l3mdev equivalents

2015-09-24 Thread David Ahern
Replace calls to vrf_master_ifindex_rcu and vrf_master_ifindex with either l3mdev_master_ifindex_rcu or l3mdev_master_ifindex. The pattern: oif = vrf_master_ifindex(dev) ? : dev->ifindex; is replaced with oif = l3mdev_fib_oif(dev); And remove the now unused vrf macros. Signed-off-by:

[PATCH net-next 11/11] net: Add netif_is_l3_slave

2015-09-24 Thread David Ahern
Because IPv6 addrconf keys off of IFF_SLAVE can not use it for slave detection. Add a new private flag and add netif_is_l3_slave function for checking it. Signed-off-by: David Ahern --- drivers/net/vrf.c | 8 +++- include/linux/netdevice.h | 7 +++

netlink: Add barrier to netlink_connect for theoretical case

2015-09-24 Thread Herbert Xu
On Thu, Sep 24, 2015 at 04:05:10PM -0400, Tejun Heo wrote: > > > I've decided to apply this and queue it up for -stable. Thanks Dave! > This is mostly correct; however, if there are or can be in-kernel > users which create the client side of netlink socket, it isn't. Let's > say such in-kernel

[PATCH] ip: find correct route for socket which is not bound (v2)

2015-09-24 Thread Wengang Wang
This is the v2, comparing the v1, the changes is: * for loopback outbound device, it continue skipping cached route; for others, it goes through the cached route. For multicast, we should find valid route(thus get the meaniful pmtu) for the packet on the socket which is not bound to a

Re: [patch net-next v3 00/10] switchdev: transaction item queue and cleanup

2015-09-24 Thread Scott Feldman
On Thu, Sep 24, 2015 at 1:02 AM, Jiri Pirko wrote: > From: Jiri Pirko > > Jiri Pirko (10): > switchdev: rename "trans" to "trans_ph". > switchdev: introduce transaction item queue for attr_set and obj_add > switchdev: move transaction phase enum under

[PATCH net-next] tcp: avoid reorders for TFO passive connections

2015-09-24 Thread Eric Dumazet
From: Eric Dumazet We found that a TCP Fast Open passive connection was vulnerable to reorders, as the exchange might look like [1] C -> S S [2] S -> C S. ack request [3] S -> C . packets [2] and [3] can be generated at almost the same time. If C receives the 3rd

Re: [PATCH v3 0/9] Phy, mdiobus, and netdev struct device fixes

2015-09-24 Thread Florian Fainelli
On 24/09/15 12:17, Russell King - ARM Linux wrote: > Hi, > > The third version of this series fixes the build error which David > identified, and drops the broken changes for the Cavium Thunger BGX > ethernet driver as this driver requires some complex changes to > resolve the leakage - and this

<    1   2   3   >