Re: [PATCH RFC] net: phy: Introduced the PHY_AN_PENDING state

2015-06-10 Thread Keng Soon Cheah
Resending as I didn't reply all. On Tue, Jun 09, 2015 at 10:17:59PM -0700, Florian Fainelli wrote: > > The typical way to work around these problems are to fix them at the PHY > driver level, see below. > My first attempt of work around is to target on the PHY driver but I couldn't figure out a

Re: [PATCH WIP RFC 0/3] mpls: support for ler

2015-06-10 Thread roopa
On 6/8/15, 3:58 PM, Thomas Graf wrote: I'll immediately ACK any series that supports both models and rebase my patches on top of it. I think we are on the right track overall. I am trying to get my code on github to collaborate better. Stay tuned (hopefully end of day today). Robert/Thomas,

RE: [RFC,v3 02/10] dpaa_eth: add support for DPAA Ethernet

2015-06-10 Thread Madalin-Cristian Bucur
Hi Eric, Can you please tell us if this change would be for the better? I was about to say yes to this request but checked and no other Ethernet driver seems to use the queue trans_start. I was able to find your patch "net: tx scalability works : trans_start" [ http://patchwork.ozlabs.org/patch

Re: [PATCH] NET: Add ezchip ethernet driver

2015-06-10 Thread Paul Bolle
Just a nit and a question. On Tue, 2015-06-09 at 15:44 +0300, Noam Camus wrote: > --- /dev/null > +++ b/drivers/net/ethernet/ezchip/Kconfig > +config NET_VENDOR_EZCHIP > + bool "EZchip devices" > + default y > + ---help--- > + If you have a network (Ethernet) device belonging to

Re: [PATCH] net, swap: Remove a warning and clarify why sk_mem_reclaim is required when deactivating swap

2015-06-10 Thread Leon Romanovsky
On Tue, Jun 9, 2015 at 9:40 PM, Jeff Layton wrote: > From: Mel Gorman > > Jeff Layton reported the following; > > [ 74.232485] [ cut here ] > [ 74.233354] WARNING: CPU: 2 PID: 754 at net/core/sock.c:364 > sk_clear_memalloc+0x51/0x80() > [ 74.234790] Modules linke

jewelry and watches

2015-06-10 Thread Tonny
Dear Sir/Madam: Attached pls kindly find our new design . Best regards! Tonny

[PATCH 3.10.y 2/2] ipv6: update ip6_rt_last_gc every time GC is run

2015-06-10 Thread Konstantin Khlebnikov
From: Michal Kubeček commit 49a18d86f66d33a20144ecb5a34bba0d1856b260 upstream As pointed out by Eric Dumazet, net->ipv6.ip6_rt_last_gc should hold the last time garbage collector was run so that we should update it whenever fib6_run_gc() calls fib6_clean_all(), not only if we got there from ip6_

[PATCH 3.10.y 0/2] ipv6: avoid soft lockups in fib6_run_gc()

2015-06-10 Thread Konstantin Khlebnikov
Two patches from 3.11 which are missing in 3.10.y I've just seen livelock in 3.10.69+ where all cpus are stuck in fib6_run_gc() <4>[2919865.977745] Call Trace: <4>[2919865.977748] <4>[2919865.977754] [] _raw_spin_lock_bh+0x1e/0x30 <4>[2919865.977759] [] fib6_run_gc+0x28/0x100 <4>[2919865.977

[PATCH 3.10.y 1/2] ipv6: prevent fib6_run_gc() contention

2015-06-10 Thread Konstantin Khlebnikov
From: Michal Kubeček commit 2ac3ac8f86f2fe065d746d9a9abaca867adec577 upstream On a high-traffic router with many processors and many IPv6 dst entries, soft lockup in fib6_run_gc() can occur when number of entries reaches gc_thresh. This happens because fib6_run_gc() uses fib6_gc_lock to allow o

[PATCH net-next] net/unix: support SCM_SECURITY for stream sockets

2015-06-10 Thread Stephen Smalley
SCM_SECURITY was originally only implemented for datagram sockets, not for stream sockets. However, SCM_CREDENTIALS is supported on Unix stream sockets. For consistency, implement Unix stream support for SCM_SECURITY as well. Also clean up the existing code and get rid of the superfluous UNIXSID

pull-request: mac80211-next 2015-06-10

2015-06-10 Thread Johannes Berg
Hi Dave, For -next, I have another set of changes, mostly small fixes for there and a few cleanups. Kalle and I also decided to put in a big API change that I'd been planning for a while and that required modifying all the drivers, for that I pulled in your net-next tree before (re-)applying that

Re: [PATCH v3] ipv6: Fix protocol resubmission

2015-06-10 Thread Josh Hunt
On 06/09/2015 11:24 PM, Hajime Tazaki wrote: Hello Josh, Dave, my mobile ipv6 test on libos failed with this commit. This commit makes a destination option header handling (i.e., ipprot->handler == ipv6_destopt_rcv) failed since ipv6_destopt_rcv() seems to return a positive value to indicate t

Re: [PATCH v3 1/2] sctp: rcu-ify addr_waitq

2015-06-10 Thread Marcelo Ricardo Leitner
On Tue, Jun 09, 2015 at 04:32:59PM -0300, Marcelo Ricardo Leitner wrote: > On Tue, Jun 09, 2015 at 07:36:38AM -0400, Neil Horman wrote: > > On Mon, Jun 08, 2015 at 05:37:05PM +0200, Hannes Frederic Sowa wrote: > > > On Mo, 2015-06-08 at 11:19 -0400, Neil Horman wrote: > > > > On Mon, Jun 08, 2015 a

Re: pull-request: mac80211-next 2015-06-10

2015-06-10 Thread Johannes Berg
On Wed, 2015-06-10 at 15:09 +0200, Johannes Berg wrote: > The following changes since commit c3eee1fb1d308564ada5f7ea57bc51efc6130b37: > > Merge tag 'batman-adv-for-davem' of git://git.open-mesh.org/linux-merge > (2015-06-09 20:23:52 -0700) > > are available in the git repository at: > > g

Re: [RFC,v3 02/10] dpaa_eth: add support for DPAA Ethernet

2015-06-10 Thread Eric Dumazet
On Wed, 2015-06-10 at 07:38 +, Madalin-Cristian Bucur wrote: > Hi Eric, > > Can you please tell us if this change would be for the better? > > I was about to say yes to this request but checked and no other Ethernet > driver seems to use the queue trans_start. > I was able to find your patch

[PATCH net-next 03/13] net/mlx4_core: Add sink counter

2015-06-10 Thread Or Gerlitz
From: Eran Ben Elisha Reserve the last valid counter index for "sink" counter, when a new counter cannot be allocated, the driver will use this counter. In order to avoid allocating this counter on any other flow, fix the indices bitmap allocation range, and reserve the sink counter index. Add

[PATCH net-next 04/13] net/mlx4_core: Remove counters table allocation from VF flow

2015-06-10 Thread Or Gerlitz
From: Eran Ben Elisha Since virtual functions get their counters indices allocation from the PF, allocate counters indices bitmap only in case the function isn't virtual. Also, check that the device has counters to allocate before creating the indices bitmap table. Signed-off-by: Eran Ben Elish

[PATCH net-next 01/13] net/mlx4_core: Check before cleaning counters bitmap

2015-06-10 Thread Or Gerlitz
From: Eran Ben Elisha If counters are not supported by the device. The indices bitmap table is not allocated during initialization. Add the symmetrical check before cleaning the counters bitmap table or freeing a counter. Signed-off-by: Eran Ben Elisha Signed-off-by: Hadar Hen Zion Signed-off-

[PATCH net-next 06/13] net/mlx4_core: Add port attribute when tracking counters

2015-06-10 Thread Or Gerlitz
From: Eran Ben Elisha Counter will get its port attribute within the resource tracker when the first QP attached to it is modified to RTR. If a QP is counter-less, an attempt to create a new counter with assigned port will be made. Signed-off-by: Eran Ben Elisha Signed-off-by: Hadar Hen Zion S

[PATCH net-next 00/13] mlx4 driver update (+ new VF ndo)

2015-06-10 Thread Or Gerlitz
Hi Dave, This series from Eran and Hadar is further dealing with traffic counters in the mlx4 driver, this time mostly around SRIOV. We added a new ndo to read the VF counters through the PF netdev netlink infrastructure plus mlx4 implementation for that ndo. Or. Eran Ben Elisha (13): net/m

[PATCH net-next 05/13] net/mlx4_core: Adjust counter grant policy in the resource tracker

2015-06-10 Thread Or Gerlitz
From: Eran Ben Elisha Each physical function has a guarantee of two counters per port, one for a default counter and one for the IB driver. Each virtual function has a guarantee of one counter per port. All other counters are free and can be obtained on demand. This is a preparation step for su

[PATCH net-next 02/13] net/mlx4_core: Reset counters data when freed

2015-06-10 Thread Or Gerlitz
From: Eran Ben Elisha Add resetting the counter data to the free counter flow, so the counter's data won't be accessible anymore if querying the counter. Also, on next counter allocation (to another VM for example), it will be fresh and clear. Signed-off-by: Eran Ben Elisha Signed-off-by: Hadar

[PATCH net-next 13/13] net/mlx4_en: Support ndo_get_vf_stats

2015-06-10 Thread Or Gerlitz
From: Eran Ben Elisha Implement function to gather vf statistics through the PF. The function is provided in the master net device ops. All VFs counters are stored in list per slave, run over the slave's list and collect all statistics. Signed-off-by: Eran Ben Elisha Signed-off-by: Hadar Hen Z

[PATCH net-next 11/13] net/mlx4_en: Show PF own statistics via ethtool

2015-06-10 Thread Or Gerlitz
From: Eran Ben Elisha Allow the user to observe the PF own statistics using ethtool with pf_ prefixed counter names. Those counters are the PF statistics out of the overall port statistics. Every PF QP is attached to a counter and the summary of those counters is the PF statistics. Signed-off-b

[PATCH net-next 08/13] IB/mlx4: Add RoCE/IB dedicated counters

2015-06-10 Thread Or Gerlitz
From: Eran Ben Elisha This is an infrastructure step to attach all the QPs opened from the IB driver to a counter in order to collect VF stats from the PF using those counters. If the port's type is Ethernet, the counter policy demands two counters per port (one for RoCE and one for Ethernet). T

[PATCH net-next 07/13] net/mlx4_core: Allocate default counter per port

2015-06-10 Thread Or Gerlitz
From: Eran Ben Elisha Default counter per port will be allocated at the mlx4 core driver load. Every QP opened by the Ethernet driver will be attached to the port's default counter. This is an infrastructure step to collect VF statistics from the PF. Signed-off-by: Eran Ben Elisha Signed-off-

[PATCH net-next 09/13] IB/mlx4: Set VF to read from QP counters

2015-06-10 Thread Or Gerlitz
From: Eran Ben Elisha As IB VFs are not capable to read the port counters through MADs, move there to read their own QP counters to gather statistics. Signed-off-by: Eran Ben Elisha Signed-off-by: Hadar Hen Zion Signed-off-by: Or Gerlitz --- drivers/infiniband/hw/mlx4/mad.c |6 -- 1

[PATCH net-next 10/13] net/mlx4_core: Add helper to query counters

2015-06-10 Thread Or Gerlitz
From: Eran Ben Elisha This is an infrastructure step for querying VF and PF counters. This code was in the IB driver, move it to the mlx4 core driver so it will be accessible for more use cases. Signed-off-by: Eran Ben Elisha Signed-off-by: Hadar Hen Zion Signed-off-by: Or Gerlitz --- drive

[PATCH net-next 12/13] net/core: Add reading VF statistics through the PF netdevice

2015-06-10 Thread Or Gerlitz
From: Eran Ben Elisha Add ndo_get_vf_stats where the PF retrieves and fills the VFs traffic statistics. Add rtnl_link_vf_stats64 for passing the VF statistics from the PF to user-space. Signed-off-by: Eran Ben Elisha Signed-off-by: Hadar Hen Zion Signed-off-by: Or Gerlitz --- include/linux/n

[PATCH 00/12] Freescale DPAA FMan

2015-06-10 Thread Madalin Bucur
The Freescale Data Path Acceleration Architecture (DPAA) is a set of hardware components on specific QorIQ multicore processors. This architecture provides the infrastructure to support simplified sharing of networking interfaces and accelerators by multiple CPU cores and the accelerators. One of

[PATCH 03/12] fsl/fman: Add the FMan port FLIB headers

2015-06-10 Thread Madalin Bucur
From: Igal Liberman The FMan Port Flib provides basic API used by the drivers to configure and control the FMan Port hardware. Signed-off-by: Igal Liberman --- .../net/ethernet/freescale/fman/flib/fman_common.h | 73 .../ethernet/freescale/fman/flib/fsl_fman_port.h | 427 ++

Re: [PATCH v3] ipv6: Fix protocol resubmission

2015-06-10 Thread Josh Hunt
On 06/10/2015 10:16 AM, YOSHIFUJI Hideaki wrote: Hi, Josh Hunt wrote: Hajime Thanks for the report. I mentioned in an earlier post this might be a problem. Dave, what if we restore the old behavior, but add a new label to handle the case where the decapsulating protocol returns the nexthdr

[PATCH 10/12] fsl/fman: Add FMan SP support

2015-06-10 Thread Madalin Bucur
From: Igal Liberman Add Storage Profiles support. The Storage Profiles contain parameters that are used by the FMan in order to store frames being received on the Rx ports, or to determine the parameters that affect writing the Internal Context in the frame margin on Tx. Signed-off-by: Igal Libe

Re: [PATCH net-next 12/13] net/core: Add reading VF statistics through the PF netdevice

2015-06-10 Thread John Fastabend
On 06/10/2015 07:59 AM, Or Gerlitz wrote: From: Eran Ben Elisha Add ndo_get_vf_stats where the PF retrieves and fills the VFs traffic statistics. Add rtnl_link_vf_stats64 for passing the VF statistics from the PF to user-space. Signed-off-by: Eran Ben Elisha Signed-off-by: Hadar Hen Zion Sig

[PATCH 05/12] fsl/fman: Add the FMan MAC FLIB headers

2015-06-10 Thread Madalin Bucur
From: Igal Liberman The FMan MAC FLib provides basic API used by the drivers to configure and control the FMan MAC hardware. Signed-off-by: Igal Liberman --- .../net/ethernet/freescale/fman/flib/fsl_enet.h| 275 +++ .../ethernet/freescale/fman/flib/fsl_fman_dtsec.h | 791 +

[PATCH 11/12] fsl/fman: Add FMan Port Support

2015-06-10 Thread Madalin Bucur
From: Igal Liberman This patch adds The FMan Port configuration, initialization and runtime control routines. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Makefile |2 +- drivers/net/ethernet/freescale/fman/fm.c | 487 ++- drivers/net/ethernet/f

Re: [PATCH v3] ipv6: Fix protocol resubmission

2015-06-10 Thread YOSHIFUJI Hideaki
Hi, Josh Hunt wrote: > On 06/09/2015 11:24 PM, Hajime Tazaki wrote: >> >> Hello Josh, Dave, >> >> my mobile ipv6 test on libos failed with this commit. >> >> This commit makes a destination option header handling (i.e., >> ipprot->handler == ipv6_destopt_rcv) failed since >> ipv6_destopt_rcv() see

[PATCH 06/12] fsl/fman: Add the FMan MAC FLIB

2015-06-10 Thread Madalin Bucur
From: Igal Liberman The FMan MAC FLib provides basic API used by the drivers to configure and control the FMan MAC hardware. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Makefile | 1 + drivers/net/ethernet/freescale/fman/mac/Makefile | 5 + .../net/ethernet

[PATCH 09/12] fsl/fman: Add FMan MAC support

2015-06-10 Thread Madalin Bucur
From: Igal Liberman Add Frame Manger MAC Driver support. This patch adds The FMan MAC configuration, initialization and runtime control routines. This patch contains support for these types of MACs: tGEC, dTSEC and mEMAC Signed-off-by: Igal Liberman Signed-off-by: Madalin Bucur --- dr

[PATCH 01/12] fsl/fman: Add the FMan FLIB headers

2015-06-10 Thread Madalin Bucur
From: Igal Liberman This patch presents the FMan Foundation Libraries (FLIB) headers. The FMan FLib provides the basic API used by the FMan drivers to configure and control the FMan hardware. Signed-off-by: Igal Liberman --- .../ethernet/freescale/fman/flib/common/general.h | 41 ++ .../net/

[PATCH 07/12] fsl/fman: Add FMan MURAM support

2015-06-10 Thread Madalin Bucur
From: Igal Liberman Add Frame Manager Multi-User RAM support. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Kconfig| 1 + drivers/net/ethernet/freescale/fman/Makefile | 6 +- drivers/net/ethernet/freescale/fman/fm_muram.c | 127 +

[PATCH 02/12] fsl/fman: Add the FMan FLIB

2015-06-10 Thread Madalin Bucur
From: Igal Liberman The FMan FLib provides the basic API used by the FMan drivers to configure and control the FMan hardware. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/Kconfig | 1 + drivers/net/ethernet/freescale/Makefile | 2 + drivers/net/ethernet/freesc

Re: [PATCH v3] ipv6: Fix protocol resubmission

2015-06-10 Thread Josh Hunt
On 06/10/2015 10:23 AM, Josh Hunt wrote: On 06/10/2015 10:16 AM, YOSHIFUJI Hideaki wrote: Hi, Josh Hunt wrote: Hajime Thanks for the report. I mentioned in an earlier post this might be a problem. Dave, what if we restore the old behavior, but add a new label to handle the case where the d

Re: [PATCH net-next 1/3 v2] net: track link-status of ipv4 nexthops

2015-06-10 Thread Alexander Duyck
On 06/09/2015 11:47 PM, Andy Gospodarek wrote: Add a fib flag called RTNH_F_LINKDOWN to any ipv4 nexthops that are reachable via an interface where carrier is off. No action is taken, but additional flags are passed to userspace to indicate carrier status. This also includes a cleanup to fib_di

[PATCH 04/12] fsl/fman: Add the FMan port FLIB

2015-06-10 Thread Madalin Bucur
From: Igal Liberman The FMan Port FLib provides basic API used by the drivers to configure and control the FMan Port hardware. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Kconfig| 1 + drivers/net/ethernet/freescale/fman/Makefile | 2 + drivers/net/et

[PATCH 12/12] fsl/fman: Add FMan MAC driver

2015-06-10 Thread Madalin Bucur
From: Igal Liberman This patch adds the Ethernet MAC driver support. Signed-off-by: Igal Liberman Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/inc/mac.h | 136 drivers/net/ethernet/freescale/fman/mac/Makefile | 3 +- drivers/net/ethernet/freescale/fman/mac/

[V6 PATCH 1/7] ACPI / scan: Parse _CCA and setup device coherency

2015-06-10 Thread Suravee Suthikulpanit
This patch implements support for ACPI _CCA object, which is introduced in ACPIv5.1, can be used for specifying device DMA coherency attribute. The parsing logic traverses device namespace to parse coherency information, and stores it in acpi_device_flags. Then uses it to call arch_setup_dma_ops()

[V6 PATCH 5/7] amd-xgbe: Unify coherency checking logic with device_dma_is_coherent()

2015-06-10 Thread Suravee Suthikulpanit
Currently, amd-xgbe driver has separate logic to determine device coherency for DT vs. ACPI. This patch simplifies the code with a call to device_dma_is_coherent(). Signed-off-by: Tom Lendacky Signed-off-by: Suravee Suthikulpanit --- drivers/net/ethernet/amd/xgbe/xgbe-main.c | 27 +-

[V6 PATCH 6/7] megaraid_sas: fix TRUE and FALSE re-define build error

2015-06-10 Thread Suravee Suthikulpanit
Signed-off-by: Suravee Suthikulpanit Cc: Kashyap Desai Cc: Sumit Saxena Cc: Uday Lingala --- drivers/scsi/megaraid/megaraid_sas_fp.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/megaraid/megaraid_sas_fp.c b/drivers/scsi/megaraid/megaraid_sas_fp.c index 4f72287..e8b

[V6 PATCH 7/7] ufs: fix TRUE and FALSE re-define build error

2015-06-10 Thread Suravee Suthikulpanit
Signed-off-by: Suravee Suthikulpanit Cc: Vinayak Holikatti --- drivers/scsi/ufs/unipro.h | 8 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/ufs/unipro.h b/drivers/scsi/ufs/unipro.h index 3fc3e21..816a8a4 100644 --- a/drivers/scsi/ufs/unipro.h +++ b/drivers/scsi/ufs/unipro.h

[V6 PATCH 4/7] crypto: ccp - Unify coherency checking logic with device_dma_is_coherent()

2015-06-10 Thread Suravee Suthikulpanit
Currently, the driver has separate logic to determine device coherency for DT vs ACPI. This patch simplifies the code with a call to device_dma_is_coherent(). Signed-off-by: Tom Lendacky Signed-off-by: Suravee Suthikulpanit --- drivers/crypto/ccp/ccp-platform.c | 60 +--

[V6 PATCH 2/7] arm64 : Introduce support for ACPI _CCA object

2015-06-10 Thread Suravee Suthikulpanit
>From http://www.uefi.org/sites/default/files/resources/ACPI_6.0.pdf, section 6.2.17 _CCA states that ARM platforms require ACPI _CCA object to be specified for DMA-cabpable devices. Therefore, this patch specifies ACPI_CCA_REQUIRED in arm64 Kconfig. In addition, to handle the case when _CCA is mi

[V6 PATCH 3/7] device property: Introduces device_dma_is_coherent()

2015-06-10 Thread Suravee Suthikulpanit
Currently, device drivers, which support both OF and ACPI, need to call two separate APIs, of_dma_is_coherent() and acpi_dma_is_coherent()) to determine device coherency attribute. This patch simplifies this process by introducing a new device property API, device_dma_is_coherent(), which calls th

Re: [PATCH net-next 2/3 v2] net: ipv4 sysctl option to ignore routes when nexthop link is down

2015-06-10 Thread Alexander Duyck
On 06/09/2015 11:47 PM, Andy Gospodarek wrote: This feature is only enabled with the new per-interface or ipv4 global sysctls called 'ignore_routes_with_linkdown'. net.ipv4.conf.all.ignore_routes_with_linkdown = 0 net.ipv4.conf.default.ignore_routes_with_linkdown = 0 net.ipv4.conf.lo.ignore_ro

[V6 PATCH 0/7] ACPI: Introduce support for _CCA object

2015-06-10 Thread Suravee Suthikulpanit
This patch series introduce support for _CCA object, which is currently used mainly by ARM64 platform to specify DMA coherency attribute for devices when booting with ACPI. A copy of ACPIv6 can be found here: http://www.uefi.org/sites/default/files/resources/ACPI_6.0.pdf This patch also intro

Re: [RFC net-next 1/3] Symbol preparation for VRF driver

2015-06-10 Thread Alexander Duyck
On 06/08/2015 11:35 AM, Shrijeet Mukherjee wrote: From: Shrijeet Mukherjee This change is needed for the following VRF driver which creates a routing domain and allows applications to bind to the domain. No active code path changes. Signed-off-by: Shrijeet Mukherjee --- net/ipv4/fib_fronte

[PATCH 1/1 linux-next] vxge: use swap() in vxge_hw_channel_dtr_alloc()

2015-06-10 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- drivers/net/ethernet/neterion/vxge/vxge-traffic.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/neterion/vxge/vxge-traffic

[PATCH 1/1 linux-next] net/mlx4: use swap() in mlx4_init_qp_table()

2015-06-10 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- drivers/net/ethernet/mellanox/mlx4/qp.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/qp.c b/drivers/net

[PATCH 1/1 linux-next] ath5k: use swap() in ath5k_hw_get_median_noise_floor()

2015-06-10 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- drivers/net/wireless/ath/ath5k/phy.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wirele

[PATCH 1/1 linux-next] net: fs_enet: use swap() in fs_enet_rx_napi()

2015-06-10 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_

[PATCH 1/1 linux-next] net/ibm/emac: use swap() in emac_make_bootlist()

2015-06-10 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- drivers/net/ethernet/ibm/emac/core.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/eth

[PATCH 1/1 linux-next] net/mlx4_core: use swap() in mlx4_make_profile()

2015-06-10 Thread Fabian Frederick
Use kernel.h macro definition. Thanks to Julia Lawall for Coccinelle scripting support. Signed-off-by: Fabian Frederick --- drivers/net/ethernet/mellanox/mlx4/profile.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/profile.c b/dr

[PATCH net-next 10/19] bna: remove RXF_E_PAUSE and RXF_E_RESUME events

2015-06-10 Thread Ivan Vecera
RXF_E_PAUSE & RXF_E_RESUME events are never sent for bna_rxf object so they needn't to be handled. The bna_rxf's state bna_rxf_sm_fltr_clr_wait and function bna_rxf_fltr_clear are unused after this so remove them also. Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bna_tx_rx.c |

[PATCH net-next 06/19] bna: remove unused cbfn parameter

2015-06-10 Thread Ivan Vecera
removed: bna_rx_ucast_add bna_rx_ucast_del simplified: bna_enet_pause_config bna_rx_mcast_delall bna_rx_mcast_listset bna_rx_mode_set bna_rx_ucast_listset bna_rx_ucast_set Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bna.h | 24 + drivers/net/ethernet

[PATCH net-next 11/19] bna: remove paused from bna_rx_config and flags from bna_rxf

2015-06-10 Thread Ivan Vecera
The bna_rx_config struct member paused can be removed as it is never written and as it cannot have non-zero value the bna_rxf struct member flags also cannot have BNA_RXF_F_PAUSED value and is always zero. So the flags member can be removed as well as bna_rxf_flags enum and the code-paths that need

[PATCH net-next 09/19] bna: remove prio_change_cbfn oper_state_cbfn from struct bna_tx

2015-06-10 Thread Ivan Vecera
Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bna_tx_rx.c | 13 - drivers/net/ethernet/brocade/bna/bna_types.h | 3 --- 2 files changed, 16 deletions(-) diff --git a/drivers/net/ethernet/brocade/bna/bna_tx_rx.c b/drivers/net/ethernet/brocade/bna/bna_tx_rx.c index

[PATCH net-next 01/19] bna: use ether_addr_copy instead of memcpy

2015-06-10 Thread Ivan Vecera
Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bna_tx_rx.c | 12 ++-- drivers/net/ethernet/brocade/bna/bnad.c | 14 ++ 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/drivers/net/ethernet/brocade/bna/bna_tx_rx.c b/drivers/net/ethernet/br

[PATCH net-next 12/19] bna: remove TX_E_PRIO_CHANGE event and BNA_TX_F_PRIO_CHANGED flag

2015-06-10 Thread Ivan Vecera
TX_E_PRIO_CHANGE event is never sent for bna_tx so it doesn't need to be handled. After this change bna_tx->flags cannot contain BNA_TX_F_PRIO_CHANGED flag and it can be also eliminated. Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bna_tx_rx.c | 22 -- driv

[PATCH net-next 04/19] bna: get rid of duplicate and unused macros

2015-06-10 Thread Ivan Vecera
replaced macros: BNA_MAC_IS_EQUAL -> ether_addr_equal BNA_POWER_OF_2 -> is_power_of_2 BNA_TO_POWER_OF_2_HIGH -> roundup_pow_of_two removed unused macros: bfa_fsm_get_state bfa_ioc_clr_stats bfa_ioc_fetch_stats bfa_ioc_get_alt_ioc_fwstate bfa_ioc_isr_mode_set bfa_ioc_maxfrsize bfa_ioc_mbox_cmd_pend

[PATCH net-next 05/19] bna: use BIT(x) instead of (1 << x)

2015-06-10 Thread Ivan Vecera
Signed-off-by: Ivan Vecera --- .../net/ethernet/brocade/bna/bfa_defs_mfg_comm.h | 2 +- drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c | 2 +- drivers/net/ethernet/brocade/bna/bfi_enet.h| 66 ++-- drivers/net/ethernet/brocade/bna/bna_enet.c| 4 +- drivers/

[PATCH net-next 08/19] bna: remove oper_state_cbfn from struct bna_rxf

2015-06-10 Thread Ivan Vecera
Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bna.h | 15 --- drivers/net/ethernet/brocade/bna/bna_tx_rx.c | 6 -- drivers/net/ethernet/brocade/bna/bna_types.h | 4 3 files changed, 25 deletions(-) diff --git a/drivers/net/ethernet/brocade/bna/bna.h

[PATCH net-next 02/19] bna: get rid of mac_t

2015-06-10 Thread Ivan Vecera
The patch converts mac_t type to widely used 'u8 [ETH_ALEN]'. Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bfa_defs.h | 4 ++-- drivers/net/ethernet/brocade/bna/bfa_defs_cna.h | 2 +- drivers/net/ethernet/brocade/bna/bfa_ioc.c | 8 drivers/net/ethernet/bro

[PATCH net-next 13/19] bna: correct comparisons/assignments to bool

2015-06-10 Thread Ivan Vecera
Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bfa_ioc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/brocade/bna/bfa_ioc.c b/drivers/net/ethernet/brocade/bna/bfa_ioc.c index 29e0428..52fc439 100644 --- a/drivers/net/ethernet/b

[PATCH net-next 00/19] bna: clean-up

2015-06-10 Thread Ivan Vecera
The patches clean the bna driver. Ivan Vecera (19): bna: use ether_addr_copy instead of memcpy bna: get rid of mac_t bna: replace pragma(pack) with attribute __packed bna: get rid of duplicate and unused macros bna: use BIT(x) instead of (1 << x) bna: remove unused cbfn parameter bna

[PATCH net-next 03/19] bna: replace pragma(pack) with attribute __packed

2015-06-10 Thread Ivan Vecera
Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bfa_defs.h| 6 +- drivers/net/ethernet/brocade/bna/bfa_defs_cna.h| 14 +-- .../net/ethernet/brocade/bna/bfa_defs_mfg_comm.h | 6 +- drivers/net/ethernet/brocade/bna/bfi.h | 70 +++--- drivers/n

[PATCH net-next 07/19] bna: remove pause_cbfn from struct bna_enet

2015-06-10 Thread Ivan Vecera
Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bna_enet.c | 15 --- drivers/net/ethernet/brocade/bna/bna_types.h | 3 --- 2 files changed, 18 deletions(-) diff --git a/drivers/net/ethernet/brocade/bna/bna_enet.c b/drivers/net/ethernet/brocade/bna/bna_enet.c index

[PATCH net-next 17/19] bna: use list_for_each_entry where appropriate

2015-06-10 Thread Ivan Vecera
Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bfa_ioc.c | 5 +- drivers/net/ethernet/brocade/bna/bna.h | 41 -- drivers/net/ethernet/brocade/bna/bna_enet.c | 23 -- drivers/net/ethernet/brocade/bna/bna_tx_rx.c | 117 +-- 4 files c

[PATCH net-next 16/19] bna: get rid of private macros for manipulation with lists

2015-06-10 Thread Ivan Vecera
Remove macros for manipulation with struct list_head and replace them with standard ones. Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bfa_cee.c | 1 - drivers/net/ethernet/brocade/bna/bfa_ioc.c | 10 +- drivers/net/ethernet/brocade/bna/bfa_msgq.c | 10 +- drivers/net

[PATCH net-next 14/19] bna: use memdup_user to copy userspace buffers

2015-06-10 Thread Ivan Vecera
Patch converts kzalloc->copy_from_user sequence to memdup_user. There is also one useless assignment of NULL to bnad->regdata as it is followed by assignment of kzalloc output. Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bnad_debugfs.c | 27 - 1 file c

[PATCH net-next 15/19] bna: remove useless pointer assignment

2015-06-10 Thread Ivan Vecera
Pointer cmpl used to iterate through completion entries is updated at the beginning of while loop as well as at the end. The update at the end of the loop is useless. Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bnad.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers

[PATCH net-next 19/19] bna: use netdev_* and dev_* instead of printk and pr_*

2015-06-10 Thread Ivan Vecera
Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bnad.c | 46 + drivers/net/ethernet/brocade/bna/bnad_debugfs.c | 34 -- drivers/net/ethernet/brocade/bna/bnad_ethtool.c | 9 ++--- drivers/net/ethernet/brocade/bna/cna_fwimg.c| 2

[PATCH net-next 18/19] bna: fix timeout API argument type

2015-06-10 Thread Ivan Vecera
Timeout functions are defined with 'void *' ptr argument. They should be defined directly with 'struct bfa_ioc *' type to avoid type conversions. Signed-off-by: Ivan Vecera --- drivers/net/ethernet/brocade/bna/bfa_ioc.c | 16 +--- drivers/net/ethernet/brocade/bna/bfa_ioc.h | 8 -

Re: [RFC 00/10] NFS: add AF_VSOCK support to NFS client

2015-06-10 Thread Stefan Hajnoczi
On Mon, Jun 08, 2015 at 05:02:47PM -0400, J. Bruce Fields wrote: > On Thu, Jun 04, 2015 at 05:45:43PM +0100, Stefan Hajnoczi wrote: > > The approach in this series > > --- > > AF_VSOCK stream sockets can be used for NFSv4.1 much in the same way as TCP. > > RFC 1831 record fr

Re: [PATCH] iwlwifi:dvm:Return false if resume command data is not same size as received packet for the function iwl_resume_status_fn

2015-06-10 Thread Grumbach, Emmanuel
On Wed, 2015-06-10 at 12:33 -0400, Nicholas Krause wrote: > This makes the function iwl_resume_status_fn return false now if > the received packet of type iwl_rx_packet is not the same size > as the structure pointer, iwl_resume_data's cmd element in order > to signal callers about this error and a

[PATCH net-next] net: phy: davicom: add IDs for DM9161B and C variants

2015-06-10 Thread Gustavo Zacarias
Add PHY IDs for Davicom DM9161B and DM9161C variants. Tested with a DM9161C on a custom Atmel-based SAM9X25 board in RMII mode. The DM9161B uses the same model id with just the LSB bit of the version id changing (which is masked out). For all intents and purposes they're the same as the DM9161A w

[PATCH v3 net-next 2/2] tcp: add CDG congestion control

2015-06-10 Thread Kenneth Klette Jonassen
CAIA Delay-Gradient (CDG) is a TCP congestion control that modifies the TCP sender in order to [1]: o Use the delay gradient as a congestion signal. o Back off with an average probability that is independent of the RTT. o Coexist with flows that use loss-based congestion control, i.e., f

[PATCH v3 net-next 1/2] tcp: export tcp_enter_cwr()

2015-06-10 Thread Kenneth Klette Jonassen
Upcoming tcp_cdg uses tcp_enter_cwr() to initiate PRR. Export this function so that CDG can be compiled as a module. Cc: Eric Dumazet Cc: Yuchung Cheng Cc: Stephen Hemminger Cc: Neal Cardwell Cc: David Hayes Cc: Andreas Petlund Cc: Dave Taht Cc: Nicolas Kuhn Signed-off-by: Kenneth Klette J

Re: [PATCH] iwlwifi:dvm:Return false if resume command data is not same size as received packet for the function iwl_resume_status_fn

2015-06-10 Thread Grumbach, Emmanuel
On Wed, 2015-06-10 at 12:58 -0400, Nicholas Krause wrote: > > On June 10, 2015 12:50:45 PM EDT, "Grumbach, Emmanuel" > wrote: > >On Wed, 2015-06-10 at 12:33 -0400, Nicholas Krause wrote: > >> This makes the function iwl_resume_status_fn return false now if > >> the received packet of type iwl_rx

[PATCH] net/ps3_gelic: Fix build error with DEBUG

2015-06-10 Thread Geoff Levand
When the DEBUG preprocessor macro is defined the ps3_gelic_net driver build fails due to an undeclared routine gelic_descr_get_status(). This problem was introduced during the code cleanup of commit 6b0c21cede22be1f68f0a632c0ca38008ce1abe7 (net: Fix p3_gelic_net sparse warnings), which re-arrange

Re: [PATCH net-next 1/3 v2] net: track link-status of ipv4 nexthops

2015-06-10 Thread Andy Gospodarek
On Wed, Jun 10, 2015 at 08:57:55AM -0700, Alexander Duyck wrote: > On 06/09/2015 11:47 PM, Andy Gospodarek wrote: > >Add a fib flag called RTNH_F_LINKDOWN to any ipv4 nexthops that are > >reachable via an interface where carrier is off. No action is taken, > >but additional flags are passed to use

Re: [RFC,v3 02/10] dpaa_eth: add support for DPAA Ethernet

2015-06-10 Thread Eric Dumazet
On Wed, 2015-04-29 at 17:56 +0300, Madalin Bucur wrote: > This introduces the Freescale Data Path Acceleration Architecture > (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, > BMan, PAMU and FMan drivers to deliver Ethernet connectivity on > the Freescale DPAA QorIQ platforms. ...

Re: [PATCH net-next 01/19] bna: use ether_addr_copy instead of memcpy

2015-06-10 Thread Joe Perches
On Wed, 2015-06-10 at 18:43 +0200, Ivan Vecera wrote: > Signed-off-by: Ivan Vecera Have you verified that all of these are __aligned(2)? I haven't, but you should verify that you have in the commit log. btw: this use looks odd to me: static int bnad_set_mac_address(struct net_device *netdev, v

Re: [RFC 00/10] NFS: add AF_VSOCK support to NFS client

2015-06-10 Thread J. Bruce Fields
On Wed, Jun 10, 2015 at 05:43:15PM +0100, Stefan Hajnoczi wrote: > On Mon, Jun 08, 2015 at 05:02:47PM -0400, J. Bruce Fields wrote: > > On Thu, Jun 04, 2015 at 05:45:43PM +0100, Stefan Hajnoczi wrote: > > > The approach in this series > > > --- > > > AF_VSOCK stream sockets

Re: [RFC net-next 2/3] VRF driver and needed infrastructure

2015-06-10 Thread Alexander Duyck
On 06/08/2015 11:35 AM, Shrijeet Mukherjee wrote: From: Shrijeet Mukherjee This driver borrows heavily from IPvlan and teaming drivers. Routing domains (VRF-lite) are created by instantiating a device and enslaving all routed interfaces that participate in the domain. As part of the enslavemen

Re: [RFC net-next 3/3] rcv path changes for vrf traffic

2015-06-10 Thread Alexander Duyck
On 06/08/2015 11:35 AM, Shrijeet Mukherjee wrote: From: Shrijeet Mukherjee Incoming frames for IP protocol stacks need the IIF to be changed from the actual interface to the VRF device. This allows the IIF rule to be used to select tables (or do regular PBR) This change selects the iif to be t

Re: [PATCH v3 net-next 1/2] tcp: export tcp_enter_cwr()

2015-06-10 Thread Yuchung Cheng
On Wed, Jun 10, 2015 at 10:08 AM, Kenneth Klette Jonassen wrote: > > Upcoming tcp_cdg uses tcp_enter_cwr() to initiate PRR. Export this > function so that CDG can be compiled as a module. > > Cc: Eric Dumazet > Cc: Yuchung Cheng > Cc: Stephen Hemminger > Cc: Neal Cardwell > Cc: David Hayes >

Re: [PATCH v3 net-next 2/2] tcp: add CDG congestion control

2015-06-10 Thread Yuchung Cheng
On Wed, Jun 10, 2015 at 10:08 AM, Kenneth Klette Jonassen wrote: > CAIA Delay-Gradient (CDG) is a TCP congestion control that modifies > the TCP sender in order to [1]: > > o Use the delay gradient as a congestion signal. > o Back off with an average probability that is independent of the RTT.

Re: [PATCH 01/12] fsl/fman: Add the FMan FLIB headers

2015-06-10 Thread Scott Wood
On Wed, 2015-06-10 at 18:21 +0300, Madalin Bucur wrote: > From: Igal Liberman > > This patch presents the FMan Foundation Libraries (FLIB) headers. > The FMan FLib provides the basic API used by the FMan drivers to > configure and control the FMan hardware. > > Signed-off-by: Igal Liberman > --

Re: [PATCH net-next 2/3 v2] net: ipv4 sysctl option to ignore routes when nexthop link is down

2015-06-10 Thread Andy Gospodarek
On Wed, Jun 10, 2015 at 09:17:19AM -0700, Alexander Duyck wrote: > > > On 06/09/2015 11:47 PM, Andy Gospodarek wrote: > >This feature is only enabled with the new per-interface or ipv4 global > >sysctls called 'ignore_routes_with_linkdown'. > > > >net.ipv4.conf.all.ignore_routes_with_linkdown = 0

Re: [PATCH v3 1/2] sctp: rcu-ify addr_waitq

2015-06-10 Thread Neil Horman
On Wed, Jun 10, 2015 at 10:31:42AM -0300, Marcelo Ricardo Leitner wrote: > On Tue, Jun 09, 2015 at 04:32:59PM -0300, Marcelo Ricardo Leitner wrote: > > On Tue, Jun 09, 2015 at 07:36:38AM -0400, Neil Horman wrote: > > > On Mon, Jun 08, 2015 at 05:37:05PM +0200, Hannes Frederic Sowa wrote: > > > > On

  1   2   >