[PATCH] net: sun4i-emac: Claim emac sram

2015-08-23 Thread Hans de Goede
Claim the emac sram ourselves, rather then relying on the bootloader having mapped the sram to the emac controller during boot. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/net/ethernet/allwinner/sun4i-emac.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-)

[PATCH, net-next] r8169: Remove unfounded interrupts

2015-08-23 Thread Corcodel Marian
Remove unfounded interrupts which is not on RTL 8101 series. Signed-off-by: Corcodel Marian corcodel.mar...@gmail.com diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 5fb79b1..5693e65 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++

[PATCH net-next] vrf: Add ethernet header for pass through VRF device

2015-08-23 Thread David Ahern
The change to use a custom dst broke tcpdump captures on the VRF device: $ tcpdump -n -i vrf10 ... 05:32:29.009362 IP 10.2.1.254 10.2.1.2: ICMP echo request, id 21989, seq 1, length 64 05:32:29.009855 00:00:40:01:8d:36 45:00:00:54:d6:6f, ethertype Unknown (0x0a02), length 84: 0x:

Re: [PATCH net-next 7/9] dsa: mv88e6xxx: Don't poll forced interfaces for state changes

2015-08-23 Thread Florian Fainelli
Le 08/23/15 02:46, Andrew Lunn a écrit : When polling for link status, don't consider ports which have a forced link. Such ports don't monitor their phy or may not even have a phy. Signed-off-by: Andrew Lunn and...@lunn.ch Acked-by: Florian Fainelli f.faine...@gmail.com -- Florian -- To

Re: [PATCH 05/11] mlxsw: fix error return code

2015-08-23 Thread Jiri Pirko
Sun, Aug 23, 2015 at 02:11:16AM CEST, julia.law...@lip6.fr wrote: Return a negative error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ identifier ret; expression e1,e2; @@ ( if (\(ret 0\|ret != 0\)) {

Re: [PATCH net-next 3/9] phy: fixed_phy: Set supported speed in phydev

2015-08-23 Thread Florian Fainelli
Le 08/23/15 02:46, Andrew Lunn a écrit : Set the supported field of the phydev to indicate the speed features of the phy. If the phy is never attached to a netdev, but used in an adjust_link() function, the speed will be incorrectly evaluated to 10/half rather than the correct speed/duplex.

Re: [PATCH net-next 5/9] net: dsa: Allow DSA and CPU ports to have a phy-mode property

2015-08-23 Thread Florian Fainelli
Le 08/23/15 02:46, Andrew Lunn a écrit : It can be useful for DSA and CPU ports to have a phy-mode property, in particular to specify RGMII delays. Parse the property and set it in the fixed-link phydev. Signed-off-by: Andrew Lunn and...@lunn.ch Acked-by: Florian Fainelli

Re: [PATCH net-next 6/9] dsa: mv88e6xxx: Set the RGMII delay based on phy interface

2015-08-23 Thread Florian Fainelli
Le 08/23/15 02:46, Andrew Lunn a écrit : Some Marvell switches allow the RGMII Rx and Tx clock to be delayed when the port is using RGMII. Have the adjust_link function look at the phy interface type and enable this delay as requested. Signed-off-by: Andrew Lunn and...@lunn.ch ---

Re: [net-next PATCH v2 3/3] net: sched: fall back to noqueue when removing root qdisc

2015-08-23 Thread Jesper Dangaard Brouer
On Sat, 22 Aug 2015 02:20:56 +0200 Phil Sutter p...@nwl.cc wrote: When removing the root qdisc, the interface should fall back to noqueue as the 'real' minimal qdisc instead of the default one. I worry this behavior could break existing scripts. I prefer the idea of allowing tc command to

Re: [PATCH v3 01/10] ss: rooted out ss type declarations for output formatters

2015-08-23 Thread Stephen Hemminger
On Thu, 20 Aug 2015 22:40:12 +0200 Matthias Tafelmeier matthias.tafelme...@gmx.net wrote: The prospected output formatters and ss do share type declarations like slabstat or tcpstat so that the decision has been made to centralize those declarations in ss_types.h. Potential future

Re: [PATCH net-next 2/9] dsa: mv88e6xxx: Allow speed/duplex of port to be configured

2015-08-23 Thread Florian Fainelli
Le 08/23/15 02:46, Andrew Lunn a écrit : The current code sets user ports to perform auto negotiation using the phy. CPU and DSA ports are configured to full duplex and maximum speed the switch supports. There are however use cases where the CPU has a slower port, and when user ports have

Re: [PATCH v3 3/4] Add support for driver cross-timestamp to PTP_SYS_OFFSET ioctl

2015-08-23 Thread Richard Cochran
On Sun, Aug 23, 2015 at 10:15:00AM +0200, Thomas Gleixner wrote: So why can't you take N samples from the synced hardware? It does not make any sense to me to switch to the imprecise mode if nsamples 1. Ok, then I prefer to leave this imprecise method in place and ... You can also provide a

[PATCH net-next] net/mlx5e: Avoid accessing NULL pointer at ndo_select_queue

2015-08-23 Thread Achiad Shochat
From: Rana Shahout ra...@mellanox.com To avoid multiply/division operations on the data path, we hold a {channel, tc}==txq mapping table. We held this mapping table inside the channel object that is being destroyed upon some configuration operations (e.g MTU change). So in case ndo_select_queue

Re: [PATCH, net-next] r8169: Remove unfounded interrupts

2015-08-23 Thread Stephen Hemminger
On Sun, 23 Aug 2015 19:18:30 +0300 Corcodel Marian corcodel.mar...@gmail.com wrote: Remove unfounded interrupts which is not on RTL 8101 series. Signed-off-by: Corcodel Marian corcodel.mar...@gmail.com Kernel style standards precludes use of C++ style comments. Also, it is is considered

Re: [PATCH net-next 9/9] phy: fixed_phy: Set phy capabilities even when link is down

2015-08-23 Thread Florian Fainelli
Le 08/23/15 02:47, Andrew Lunn a écrit : What features a phy supports is masked in genphy_config_init() by looking at the PHYs BMSR register. If the link is down, fixed_phy_update_regs() will only set the auto- negotiation capable bit in BMSR. Thus genphy_config_init() comes to the

Re: [net-next PATCH v2 3/3] net: sched: fall back to noqueue when removing root qdisc

2015-08-23 Thread Jesper Dangaard Brouer
On Sun, 23 Aug 2015 20:44:42 +0200 Jesper Dangaard Brouer bro...@redhat.com wrote: On Sat, 22 Aug 2015 02:20:56 +0200 Phil Sutter p...@nwl.cc wrote: When removing the root qdisc, the interface should fall back to noqueue as the 'real' minimal qdisc instead of the default one. I worry

Re: [PATCH net-next 4/9] net: dsa: Allow configuration of CPU DSA port speeds/duplex

2015-08-23 Thread Florian Fainelli
Le 08/23/15 02:46, Andrew Lunn a écrit : By default, DSA and CPU ports are configured to the maximum speed the switch supports. However there can be use cases where the peer devices port is slower. Allow a fixed-link property to be used with the DSA and CPU port in the device tree, and use

[PATCH, net-next] r8169: Keep writting on ChipCmd reg. close

2015-08-23 Thread Corcodel Marian
Keep writting on ChipCmd register close and execute before writting on any decriptors.On close the interface same rule. Signed-off-by: Corcodel Marian corcodel.mar...@gmail.com diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index b0f7ed2..2ee8bca

[PATCH, net-next] r8169: Increase MaxReadReq on pci express

2015-08-23 Thread Corcodel Marian
Increase MaxReadReq to 8192 bytes wich fit with value written on MaxTxPacketSize register 64 units and 128 descriptors on unit on pci express interface. Old value from MaxReadReq is half from new value as not fit. Signed-off-by: Corcodel Marian a...@192-168-0-3.rdsnet.ro diff --git

[PATCH net-next] inetpeer: remove dead code

2015-08-23 Thread David Ahern
Remove various inlined functions not referenced in the kernel. Signed-off-by: David Ahern d...@cumulusnetworks.com --- include/net/inetpeer.h | 67 -- 1 file changed, 67 deletions(-) diff --git a/include/net/inetpeer.h b/include/net/inetpeer.h

Re: [PATCH v3 3/4] Add support for driver cross-timestamp to PTP_SYS_OFFSET ioctl

2015-08-23 Thread Thomas Gleixner
On Sat, 22 Aug 2015, Richard Cochran wrote: On Sat, Aug 22, 2015 at 10:33:48PM +0200, Thomas Gleixner wrote: @@ -196,19 +197,31 @@ long ptp_ioctl(struct posix_clock *pc, unsigned int cmd, unsigned long arg) break; } pct = sysoff-ts[0]; -

[PATCH net-next] inetpeer: Add support for VRFs

2015-08-23 Thread David Ahern
inetpeer caches based on address only, so duplicate IP addresses within a namespace return the same cached entry. Similar to IP fragments handle duplicate addresses across VRFs by adding the VRF master device index to the lookup. Signed-off-by: David Ahern d...@cumulusnetworks.com ---

[PATCH net-next 9/9] phy: fixed_phy: Set phy capabilities even when link is down

2015-08-23 Thread Andrew Lunn
What features a phy supports is masked in genphy_config_init() by looking at the PHYs BMSR register. If the link is down, fixed_phy_update_regs() will only set the auto- negotiation capable bit in BMSR. Thus genphy_config_init() comes to the conclusion the PHY can only perform 10/Half, and masks

[PATCH net-next 0/9] DSA port configuration and status

2015-08-23 Thread Andrew Lunn
This patchset allows various switch port settings to be configured and port status to be sampled. Some of these patches have been posted before. The first three patches provide infrastructure for configuring a switch ports link speed and duplex from a fixed_link phy. Patch four then uses this

[PATCH net-next 5/9] net: dsa: Allow DSA and CPU ports to have a phy-mode property

2015-08-23 Thread Andrew Lunn
It can be useful for DSA and CPU ports to have a phy-mode property, in particular to specify RGMII delays. Parse the property and set it in the fixed-link phydev. Signed-off-by: Andrew Lunn and...@lunn.ch --- net/dsa/dsa.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH net-next 4/9] net: dsa: Allow configuration of CPU DSA port speeds/duplex

2015-08-23 Thread Andrew Lunn
By default, DSA and CPU ports are configured to the maximum speed the switch supports. However there can be use cases where the peer devices port is slower. Allow a fixed-link property to be used with the DSA and CPU port in the device tree, and use this information to configure the port.

[PATCH net-next 2/9] dsa: mv88e6xxx: Allow speed/duplex of port to be configured

2015-08-23 Thread Andrew Lunn
The current code sets user ports to perform auto negotiation using the phy. CPU and DSA ports are configured to full duplex and maximum speed the switch supports. There are however use cases where the CPU has a slower port, and when user ports have SFP modules with fixed speed. In these cases,

[PATCH net-next 7/9] dsa: mv88e6xxx: Don't poll forced interfaces for state changes

2015-08-23 Thread Andrew Lunn
When polling for link status, don't consider ports which have a forced link. Such ports don't monitor their phy or may not even have a phy. Signed-off-by: Andrew Lunn and...@lunn.ch --- drivers/net/dsa/mv88e6xxx.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH net-next 3/9] phy: fixed_phy: Set supported speed in phydev

2015-08-23 Thread Andrew Lunn
Set the supported field of the phydev to indicate the speed features of the phy. If the phy is never attached to a netdev, but used in an adjust_link() function, the speed will be incorrectly evaluated to 10/half rather than the correct speed/duplex. Signed-off-by: Andrew Lunn and...@lunn.ch ---

[PATCH net-next 1/9] net: phy: Allow PHY devices to identify themselves as Ethernet switches, etc.

2015-08-23 Thread Andrew Lunn
From: Florian Fainelli f.faine...@gmail.com Some Ethernet MAC drivers using the PHY library require the hardcoding of link parameters when interfaced to a switch device, SFP module, switch to switch port, etc. This has typically lead to various ad-hoc implementations looking like this: - using a

[PATCH net-next 6/9] dsa: mv88e6xxx: Set the RGMII delay based on phy interface

2015-08-23 Thread Andrew Lunn
Some Marvell switches allow the RGMII Rx and Tx clock to be delayed when the port is using RGMII. Have the adjust_link function look at the phy interface type and enable this delay as requested. Signed-off-by: Andrew Lunn and...@lunn.ch --- drivers/net/dsa/mv88e6xxx.c | 10 ++

[PATCH net v2] sctp: start t5 timer only when peer.rwnd is 0 and local.state is SHUTDOWN_PENDING

2015-08-23 Thread Xin Long
when A sends a data to B, then A close() and enter into SHUTDOWN_PENDING state, if B neither claim his rwnd is 0 nor send SACK for this data, A will keep retransmitting this data util t5 timeout, Max.Retrans times can't work anymore, which is bad. if B's rwnd is not 0, it should send abord after

Re: [PATCH net-next 6/9] dsa: mv88e6xxx: Set the RGMII delay based on phy interface

2015-08-23 Thread Andrew Lunn
On Sun, Aug 23, 2015 at 11:44:01AM -0700, Florian Fainelli wrote: Le 08/23/15 02:46, Andrew Lunn a écrit : Some Marvell switches allow the RGMII Rx and Tx clock to be delayed when the port is using RGMII. Have the adjust_link function look at the phy interface type and enable this delay as

[RFC] netlink_ack: send a capped message in case of error

2015-08-23 Thread Christophe Ricard
Hi, I have found with netlink we can miss a ack message when exchanging large buffers. I came across this bug ? when doing some tests on the NFC subsytem by trying to send extended APDU to a secure element (up to 65K) or when sending specific device firmware data (up to 8K) (NFC_ATTR_SE_APDU

[RFC] netlink: netlink_ack send a capped message in case of error

2015-08-23 Thread Christophe Ricard
Currently, ACK in case of error contains a full copy of the originating message. This can cause lost ACKs with large netlink messages, especially after commit c05cdb1b864f (netlink: allow large data transfers from user-space). Send back a capped message instead. Signed-off-by: Christophe Ricard

Re: [PATCH net-next] inetpeer: Add support for VRFs

2015-08-23 Thread Thomas Graf
On 08/23/15 at 08:26am, David Ahern wrote: inetpeer caches based on address only, so duplicate IP addresses within a namespace return the same cached entry. Similar to IP fragments handle duplicate addresses across VRFs by adding the VRF master device index to the lookup. We have a lot of

Re: [PATCH net-next 9/9] phy: fixed_phy: Set phy capabilities even when link is down

2015-08-23 Thread Andrew Lunn
On Sun, Aug 23, 2015 at 11:40:07AM -0700, Florian Fainelli wrote: Le 08/23/15 02:47, Andrew Lunn a écrit : What features a phy supports is masked in genphy_config_init() by looking at the PHYs BMSR register. If the link is down, fixed_phy_update_regs() will only set the auto-

Re: [PATCH net-next] net: dsa: mv88e6xxx: set 802.1Q mode to Fallback

2015-08-23 Thread David Miller
From: Vivien Didelot vivien.dide...@savoirfairelinux.com Date: Wed, 19 Aug 2015 18:54:55 -0400 The current Secure port mode requires the port-based VLANs to also be valid in the 802.1Q VLAN Table Unit. The current hardware bridging support only configures the port-based VLANs, thus is broken.

Re: [PATCH net-next] net/xen-netfront: only clean up queues if present

2015-08-23 Thread David Miller
From: Charles (Chas) Williams 3ch...@gmail.com Date: Wed, 19 Aug 2015 19:14:20 -0400 From: Chas Williams 3ch...@gmail.com If you simply load and unload the module without starting the interfaces, the queues are never created and you get a bad pointer dereference. Signed-off-by: Chas

Re: [PATCH net-next 4/9] net: dsa: Allow configuration of CPU DSA port speeds/duplex

2015-08-23 Thread Andrew Lunn
+ port_dn = cd-port_dn[port]; + if (of_phy_is_fixed_link(port_dn)) { + ret = of_phy_register_fixed_link(port_dn); + if (ret) { + netdev_err(master, + failed to

Re: [PATCH] net: FIB tracepoints

2015-08-23 Thread David Miller
From: David Ahern d...@cumulusnetworks.com Date: Tue, 18 Aug 2015 09:49:14 -0600 Signed-off-by: David Ahern d...@cumulusnetworks.com --- I realize the sensitivity around adding tracepoints, but these have been invaluable developing the VRF device driver along with a return probe: perf

Re: [v2 0/5] *** nps_enet fixups ***

2015-08-23 Thread David Miller
From: Noam Camus no...@ezchip.com Date: Thu, 20 Aug 2015 08:00:00 +0300 Change v2 TX done is handled back with NAPI poll. Change v1 This patch set is a bunch of fixes to make nps_enet work correctly with all platforms, i.e. real device, emulation system, and simulation system. The main

Re: [PATCH net-next] route: fix breakage after moving lwtunnel state

2015-08-23 Thread David Miller
From: Jiri Benc jb...@redhat.com Date: Fri, 21 Aug 2015 12:41:14 +0200 @@ -99,6 +99,9 @@ struct dst_entry { atomic_t__refcnt; /* client references*/ int __use; unsigned long lastuse; +#ifndef CONFIG_64BIT + struct

Re: pull-request: can-next 2015-05-06

2015-08-23 Thread David Miller
From: Marc Kleine-Budde m...@pengutronix.de Date: Thu, 20 Aug 2015 14:13:53 +0200 this is a pull request of a two patches for net-next. The first patch is by Nik Nyby and fixes a typo in a function name. The second patch by Lucas Stach demotes register output to debug level. Pulled, thanks

Re: [PATCH] net af_key: Fix RCU splat

2015-08-23 Thread David Miller
From: David Ahern d...@cumulusnetworks.com Date: Thu, 20 Aug 2015 08:51:40 -0700 @@ -1670,7 +1670,7 @@ static int pfkey_register(struct sock *sk, struct sk_buff *skb, const struct sad return -ENOBUFS; } - pfkey_broadcast(supp_skb, GFP_KERNEL, BROADCAST_REGISTERED,

[RFC, RFT PATCH 2/2] ipg: Remove ipg driver

2015-08-23 Thread Ondrej Zary
Now that IP1000A chips are supported by dl2k driver, the buggy ipg driver can be removed. --- drivers/net/ethernet/Kconfig |1 - drivers/net/ethernet/Makefile|1 - drivers/net/ethernet/icplus/Kconfig | 13 - drivers/net/ethernet/icplus/Makefile |5 -

[RFC, RFT PATCH 1/2] dl2k: Add support for IP1000A-based cards

2015-08-23 Thread Ondrej Zary
Add support for IP1000A chips to dl2k driver. IP1000A chip looks like a TC9020 with integrated PHY. Tested with Asus NX1101. --- drivers/net/ethernet/dlink/Kconfig |5 ++-- drivers/net/ethernet/dlink/dl2k.c | 51 +--- drivers/net/ethernet/dlink/dl2k.h |

Re: [PATCH net] netlink: mmap: fix tx type check

2015-08-23 Thread David Miller
From: Ken-ichirou MATSUZAWA chama...@gmail.com Date: Thu, 20 Aug 2015 12:43:53 +0900 I can't send netlink message via mmaped netlink socket since commit: a8866ff6a5bce7d0ec465a63bc482a85c09b0d39 netlink: make the check for send from tx_ring deterministic msg-msg_iter.type is set

Re: [PATCH net-next 0/3] tipc: fix link failover/synch problems

2015-08-23 Thread David Miller
From: Jon Maloy jon.ma...@ericsson.com Date: Thu, 20 Aug 2015 02:12:53 -0400 We fix three problems with the new link failover/synch implementation, which was introduced earlier in this release cycle. They are all related to situations where there is a very short interval between the disabling

Re: [PATCH net-next] inetpeer: Add support for VRFs

2015-08-23 Thread David Ahern
On 8/23/15 6:15 PM, Thomas Graf wrote: On 08/23/15 at 08:26am, David Ahern wrote: inetpeer caches based on address only, so duplicate IP addresses within a namespace return the same cached entry. Similar to IP fragments handle duplicate addresses across VRFs by adding the VRF master device

linux-next: build failure after merge of the net-next tree

2015-08-23 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In function 'dst_hold', inlined from '__ipv6_dev_ac_dec' at /home/sfr/next/next/net/ipv6/anycast.c:328:2: /home/sfr/next/next/include/linux/compiler.h:447:38: error: call to

Re: [RFC] netlink: netlink_ack send a capped message in case of error

2015-08-23 Thread Scott Feldman
On Sun, Aug 23, 2015 at 3:06 PM, Christophe Ricard christophe.ric...@gmail.com wrote: Currently, ACK in case of error contains a full copy of the originating message. This can cause lost ACKs with large netlink messages, especially after commit c05cdb1b864f (netlink: allow large data transfers

Re: [PATCH net-next v2 0/2] ila: Precompute checksums

2015-08-23 Thread David Miller
From: David Miller da...@davemloft.net Date: Sun, 23 Aug 2015 20:38:43 -0700 (PDT) From: Tom Herbert t...@herbertland.com Date: Thu, 20 Aug 2015 11:22:36 -0700 This patch set: - Adds argument ot LWT build_state that holds a pointer to the fib configuration being applied to the new

Re: [GIT] [4.3] NFC update

2015-08-23 Thread David Miller
From: Samuel Ortiz sa...@linux.intel.com Date: Fri, 21 Aug 2015 01:39:08 +0200 This is the NFC pull request for 4.3. With this one we have: - A new driver for Samsung's S3FWRN5 NFC chipset. In order to properly support this driver, a few NCI core routines needed to be exported. Future

Re: [PATCH] net/wireless: enable wiphy device to suspend/resume asynchronously

2015-08-23 Thread Fu, Zhonghui
On 2015/8/17 16:46, Arend van Spriel wrote: + Rafael On 08/17/2015 09:29 AM, Johannes Berg wrote: On Mon, 2015-08-17 at 09:48 +0800, Fu, Zhonghui wrote: The suspend/resume timing of wiphy device and related devices will be ensured by their parent/child relationship. So, enabling wiphy

Re: [PATCH] net: phy: fix PHY_RUNNING in phy_state_machine

2015-08-23 Thread Andy Fleming
On Mon, Aug 17, 2015 at 2:18 PM, David Miller da...@davemloft.net wrote: From: shh@gmail.com Date: Fri, 14 Aug 2015 12:23:40 +0800 From: Shaohui Xie shaohui@freescale.com Currently, if phy state is PHY_RUNNING, we always register a CHANGE when phy works in polling or interrupt

Re: [PATCH net-next v2 0/2] ila: Precompute checksums

2015-08-23 Thread David Miller
From: Tom Herbert t...@herbertland.com Date: Thu, 20 Aug 2015 11:22:36 -0700 This patch set: - Adds argument ot LWT build_state that holds a pointer to the fib configuration being applied to the new route - Adds support in ILA to precompute checksum difference for performance

Re: linux-next: build failure after merge of the net-next tree

2015-08-23 Thread Stephen Rothwell
Hi Dave, On Sun, 23 Aug 2015 20:33:25 -0700 (PDT) David Miller da...@davemloft.net wrote: From: Stephen Rothwell s...@canb.auug.org.au Date: Mon, 24 Aug 2015 13:21:11 +1000 After merging the net-next tree, today's linux-next build (arm multi_v7_defconfig) failed like this: Fixed by: