Re: iproute2 : Bug found. How to report ?

2015-08-23 Thread Vadim Kochan
On Mon, Aug 24, 2015 at 11:40:10AM +0530, Akshat Kakkar wrote: > Dear All, > A behavioural bug has been found in iproute2. How and where should I report > it? > -- > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to majord...@vger.kernel.org > More maj

Re: [PATCH] net: phy: add interrupt support for aquantia phy

2015-08-23 Thread David Miller
From: Date: Fri, 21 Aug 2015 15:29:29 +0800 > From: Shaohui Xie > > By implementing config_intr & ack_interrupt, now the phy can support > link connect/disconnect interrupt. > > Signed-off-by: Shaohui Xie Applied to net-next, thanks. -- To unsubscribe from this list: send the line "unsubscri

iproute2 : Bug found. How to report ?

2015-08-23 Thread Akshat Kakkar
Dear All, A behavioural bug has been found in iproute2. How and where should I report it? -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v2] net: bcmgenet: fix uncleaned dma flags

2015-08-23 Thread David Miller
From: Jaedon Shin Date: Fri, 21 Aug 2015 10:08:26 +0900 > Clean the dma flags of multiq ring buffer int the interface stop > process. This patch fixes that the genet is not running while the > interface is re-enabled. > > $ ifup eth0 - running after booting > $ ifdown eth0 > $ ifup eth0 - not ru

Re: [PATCH net] net: bcmgenet: Avoid sleeping in bcmgenet_timeout

2015-08-23 Thread David Miller
From: Florian Fainelli Date: Thu, 20 Aug 2015 18:04:22 -0700 > bcmgenet_timeout() executes in atomic context, yet we will invoke > napi_disable() which does sleep. Looking back at the changes, disabling > TX napi and re-enabling it is completely useless, since we reclaim all > TX buffers and re-e

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 wrote: > > From: > Date: Fri, 14 Aug 2015 12:23:40 +0800 > > > From: Shaohui Xie > > > > Currently, if phy state is PHY_RUNNING, we always register a CHANGE > > when phy works in polling or interrupt ignored, this will make the > > adjust_link being

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 wrote: > > From: Stephen Rothwell > 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: > > > [PA

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, enabl

Re: [GIT] [4.3] NFC update

2015-08-23 Thread David Miller
From: Samuel Ortiz 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 drivers like Int

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

2015-08-23 Thread David Miller
From: David Miller Date: Sun, 23 Aug 2015 20:38:43 -0700 (PDT) > From: Tom Herbert > 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

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

2015-08-23 Thread David Miller
From: Tom Herbert 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 optimization > > v2: >

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

2015-08-23 Thread David Miller
From: Stephen Rothwell 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: [PATCH] route: fix breakage after moving lwtunnel state __recnt and related fields need to be in

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 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 from > user-space"). > >

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 '__compi

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 index

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] route: fix breakage after moving lwtunnel state

2015-08-23 Thread David Miller
From: Jiri Benc 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 lwtunnel_s

Re: [PATCH] net af_key: Fix RCU splat

2015-08-23 Thread David Miller
From: David Ahern 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, sk, > sock_net(sk

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

2015-08-23 Thread David Miller
From: Marc Kleine-Budde 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 Marc. -- To unsu

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

2015-08-23 Thread David Miller
From: Jon Maloy 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 > and enabling of in

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

2015-08-23 Thread David Miller
From: Noam Camus 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 trigger for

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

2015-08-23 Thread David Miller
From: Ken-ichirou MATSUZAWA 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 to WRITE (1

Re: [PATCH net-next v3 0/3] gro: Fixes for tunnels and GRO

2015-08-23 Thread David Miller
From: Tom Herbert Date: Wed, 19 Aug 2015 17:07:31 -0700 > This patch set addresses some issue related to tunneling and GRO: > > - Fix remote checksum offload to properly deal with frag0 in GRO. > - Add support for GRO at VXLAN tunnel (call gro_cells) > > Testing: Ran one netperf TCP_STREAM to h

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:

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

2015-08-23 Thread David Miller
From: Vivien Didelot 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. > > A new patchset is required t

Re: [PATCH] net: FIB tracepoints

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

[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 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, > > + "fail

[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 - drivers/net/eth

[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-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 del

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 0/9] DSA port configuration and status

2015-08-23 Thread Florian Fainelli
Le 08/23/15 02:46, Andrew Lunn a écrit : > 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

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 wrote: > On Sat, 22 Aug 2015 02:20:56 +0200 > Phil Sutter 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

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 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/) > >// >@@ >identifier ret; expression e1,e2; >@@ >( >if (\(ret < 0\|ret !=

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 h

Re: [PATCH net-next 8/9] phy: fixed_phy: Add gpio to determine link up/down.

2015-08-23 Thread Florian Fainelli
Le 08/23/15 02:46, Andrew Lunn a écrit : > An SFP module may have a link up/down status pin which can be > connection to a GPIO line of the host. Add support for reading such an > GPIO in the fixed_phy driver. Reviewed-by: Florian Fainelli -- Florian -- To unsubscribe from this list: send the li

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 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 assign noque

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 > --- > drivers/net/dsa

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 Acked-by: Florian Fainelli -- Florian -- To unsubscri

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 Acked-by: Florian Fainelli -- Florian -- To unsubscribe from this list: send t

[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 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 con

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: 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 --- drivers/net/ethernet/allwinner/sun4i-emac.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/

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 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 declarations shall > be placed there

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 wrote: > Remove unfounded interrupts which is not on RTL 8101 series. > > Signed-off-by: Corcodel Marian Kernel style standards precludes use of C++ style comments. Also, it is is considered best practice to delete incorrect or dead code rath

[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 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 +++ b/drivers/net/ethernet/realtek/r8169.

[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 --- include/net/inetpeer.h | 11 +++

[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 --- include/net/inetpeer.h | 67 -- 1 file changed, 67 deletions(-) diff --git a/include/net/inetpeer.h b/include/net/inetpeer.h index d5332ddcea3f..002f0bd2

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

2015-08-23 Thread Achiad Shochat
From: Rana Shahout 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 occurs during such

[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 M

[PATCH net v2] sctp: donot reset the overall_error_count in SHUTDOWN_RECEIVE state

2015-08-23 Thread Xin Long
commit f8d960524 fix the 0 peer.rwnd issue in SHUTDOWN_PENDING state through not reseting the overall_error_count when receive a heartbeat, but the same issue also exists in SHUTDOWN_RECEIVE state. so we change the condition to state < SCTP_STATE_SHUTDOWN_PENDING to reset the overall_error_count w

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 prov

[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 diff --git a/drivers/net/ethernet/real

[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 o

[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 --- net/dsa/dsa.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net/dsa/dsa.c

[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 inf

[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 --- drivers/net/ph

[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 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 "fixed PHY" emulated

[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 --- drivers/net/dsa/mv88e6xxx.c | 10 ++ drivers/net/dsa/mv88e6xxx

[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 --- drivers/net/dsa/mv88e6xxx.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/dsa/mv88e6xxx.c b/drivers/ne

[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. Signed-o

[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, por

[PATCH net-next 8/9] phy: fixed_phy: Add gpio to determine link up/down.

2015-08-23 Thread Andrew Lunn
An SFP module may have a link up/down status pin which can be connection to a GPIO line of the host. Add support for reading such an GPIO in the fixed_phy driver. Signed-off-by: Andrew Lunn --- .../devicetree/bindings/net/fixed-link.txt | 14 +++- Documentation/networking/stmmac.

[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 diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index b0f7ed2..2ee8bca 100644 --- a/drivers/net/ethe

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 = &sysof