Re: [PATCH net 0/4] net/mlx4_en: fix stats

2016-05-25 Thread David Miller
From: Eric Dumazet Date: Wed, 25 May 2016 09:50:35 -0700 > mlx4 has various bugs in its ndo_get_stats() and related functions. > This patch series address the obvious issues. > Remaining ones will be discussed later. Series applied, thanks.

Re: [PATCH net] sctp: fix double EPs display in sctp_diag

2016-05-25 Thread David Miller
From: Xin Long Date: Thu, 26 May 2016 03:09:23 +0800 > We have this situation: that EP hash table, contains only the EPs > that are listening, while the transports one, has the opposite. > We have to traverse both to dump all. > > But when we traverse the transports one we

Re: [PATCH] net: arc: trivial: Replace comma with a semicolon

2016-05-25 Thread David Miller
From: Marek Vasut Date: Thu, 26 May 2016 00:40:05 +0200 > Fix a typo in the driver, replace comma with a semicolon at the end > of statement. While using comma is a legal C here and probably does > not even generate compiler warning, it was unlikely the intention. > >

Re: [PATCH] net: stmmac: Fix incorrect memcpy source memory

2016-05-25 Thread David Miller
From: Andrew Lunn Date: Thu, 26 May 2016 02:26:25 +0200 > On Thu, May 26, 2016 at 12:40:23AM +0200, Marek Vasut wrote: >> The memcpy() currently copies mdio_bus_data into new_bus->irq, which >> makes no sense, since the mdio_bus_data structure contains more than >> just irqs. The

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

2016-05-25 Thread Yangbo Lu
Hi Uffe, Could we merge this patchset? ... It has been a long time to wait for Arnd's response... Thanks a lot. Best regards, Yangbo Lu > -Original Message- > From: Yangbo Lu > Sent: Friday, May 20, 2016 2:06 PM > To: 'Scott Wood'; Arnd Bergmann; linux-arm-ker...@lists.infradead.org

Re: usbnet: smsc95xx: fix link detection for disabled autonegotiation

2016-05-25 Thread Andrew Lunn
On Thu, May 26, 2016 at 04:06:47AM +0200, Christoph Fritz wrote: > To detect link status up/down for connections where autonegotiation is > explicitly disabled, we don't get an irq but need to poll the status > register for link up/down detection. > This patch adds a workqueue to poll for link

usbnet: smsc95xx: fix link detection for disabled autonegotiation

2016-05-25 Thread Christoph Fritz
To detect link status up/down for connections where autonegotiation is explicitly disabled, we don't get an irq but need to poll the status register for link up/down detection. This patch adds a workqueue to poll for link status. Signed-off-by: Christoph Fritz ---

[PATCH] brcmfmac: rework function picking free BSS index

2016-05-25 Thread Rafał Miłecki
The old implementation was overcomplicated and slightly bugged in some corner cases. Consider following state of BSS-es (limited to 6 for simplification): drvr->iflist[0]: { bsscfgidx:0, ndev->name:wlan1, } drvr->iflist[1]: (null) drvr->iflist[2]: { bsscfgidx:2, ndev->name:wlan1-1, }

Re: [PATCH] virtio_net: fix virtnet_open and virtnet_probe competing for try_fill_recv

2016-05-25 Thread Jason Wang
On 2016年05月25日 20:33, wangyunjian wrote: In function virtnet_open() and virtnet_probe(), func try_fill_recv() will be executed at the same time. VQ in virtqueue_add() is not protected well and BUG_ON will be triggered when virito_net.ko being removed. Test Script: for (( i=0; i<500;

Re: [PATCH] net: stmmac: Fix incorrect memcpy source memory

2016-05-25 Thread Andrew Lunn
On Thu, May 26, 2016 at 12:40:23AM +0200, Marek Vasut wrote: > The memcpy() currently copies mdio_bus_data into new_bus->irq, which > makes no sense, since the mdio_bus_data structure contains more than > just irqs. The code was likely supposed to copy mdio_bus_data->irqs > into the new_bus->irq

Re: [PATCH] net: stmmac: Fix incorrect memcpy source memory

2016-05-25 Thread David Miller
From: Marek Vasut Date: Thu, 26 May 2016 00:40:23 +0200 > The memcpy() currently copies mdio_bus_data into new_bus->irq, which > makes no sense, since the mdio_bus_data structure contains more than > just irqs. The code was likely supposed to copy mdio_bus_data->irqs > into the

Re: [PATCH v2] net: alx: use custom skb allocator

2016-05-25 Thread David Miller
From: Feng Tang Date: Wed, 25 May 2016 14:49:54 +0800 > This patch follows Eric Dumazet's commit 7b70176421 for Atheros > atl1c driver to fix one exactly same bug in alx driver, that the > network link will be lost in 1-5 minutes after the device is up. > > My laptop Lenovo

[PATCH V3] brcmfmac: print error if p2p_ifadd firmware command fails

2016-05-25 Thread Rafał Miłecki
This is helpful for debugging, without this all I was getting from "iw" command on device with BCM43602 was: > command failed: Too many open files in system (-23) Signed-off-by: Rafał Miłecki --- V2: s/in/if/ in commit message V3: Add one more error message as suggested by

[PATCH] net: stmmac: Fix incorrect memcpy source memory

2016-05-25 Thread Marek Vasut
The memcpy() currently copies mdio_bus_data into new_bus->irq, which makes no sense, since the mdio_bus_data structure contains more than just irqs. The code was likely supposed to copy mdio_bus_data->irqs into the new_bus->irq instead, so fix this. Signed-off-by: Marek Vasut Cc:

[PATCH] net: arc: trivial: Replace comma with a semicolon

2016-05-25 Thread Marek Vasut
Fix a typo in the driver, replace comma with a semicolon at the end of statement. While using comma is a legal C here and probably does not even generate compiler warning, it was unlikely the intention. Signed-off-by: Marek Vasut Cc: David S. Miller Cc:

Re: [PATCH] brcmfmac: fix setting AP channel with new firmwares

2016-05-25 Thread Rafał Miłecki
On 25 May 2016 at 23:08, Arend van Spriel wrote: > On 24-05-16 11:09, Rafał Miłecki wrote: >> Firmware for new chipsets is based on a new major version of code >> internally maintained at Broadcom. E.g. brcmfmac4366b-pcie.bin (used for >> BCM4366B1) is based on

Re: [PATCH net 1/4] net/mlx4_en: fix tx_dropped bug

2016-05-25 Thread Alexei Starovoitov
On Wed, May 25, 2016 at 09:50:36AM -0700, Eric Dumazet wrote: > 1) mlx4_en_xmit() can increment priv->stats.tx_dropped, but this variable > is overwritten in mlx4_en_DUMP_ETH_STATS(). > > 2) This increment was not SMP safe, as a port might have many TX queues. > > Add a per TX ring tx_dropped to

Re: [PATCH] brcmfmac: fix setting AP channel with new firmwares

2016-05-25 Thread Arend van Spriel
On 24-05-16 11:09, Rafał Miłecki wrote: > Firmware for new chipsets is based on a new major version of code > internally maintained at Broadcom. E.g. brcmfmac4366b-pcie.bin (used for > BCM4366B1) is based on 10.10.69.3309 while brcmfmac43602-pcie.ap.bin was > based on 7.35.177.56. > > Currently

Re: [PATCH V2] brcmfmac: print error if p2p_ifadd firmware command fails

2016-05-25 Thread Arend van Spriel
On 24-05-16 23:05, Rafał Miłecki wrote: > This is helpful for debugging, without this all I was getting from "iw" > command on device with BCM43602 was: >> command failed: Too many open files in system (-23) > > Signed-off-by: Rafał Miłecki > --- > V2: s/in/if/ in commit

Re: [PATCH net] sctp: fix double EPs display in sctp_diag

2016-05-25 Thread Marcelo Ricardo Leitner
On Thu, May 26, 2016 at 03:09:23AM +0800, Xin Long wrote: > We have this situation: that EP hash table, contains only the EPs > that are listening, while the transports one, has the opposite. > We have to traverse both to dump all. > > But when we traverse the transports one we will also get EPs

Re: [PATCH net] sctp: sctp_diag should dump sctp socket type

2016-05-25 Thread Eric Dumazet
On Thu, 2016-05-26 at 03:14 +0800, Xin Long wrote: > Now we cannot distinguish that one sk is a udp or sctp style when > we use ss to dump sctp_info. it's necessary to dump it as well. > > For sctp_diag, ss support is not officially available, thus there > are no official users of this yet, so we

Re: [PATCH net v2] team: don't call netdev_change_features under team->lock

2016-05-25 Thread David Miller
From: Ivan Vecera Date: Wed, 25 May 2016 21:21:52 +0200 > The team_device_event() notifier calls team_compute_features() to fix > vlan_features under team->lock to protect team->port_list. The problem is > that subsequent __team_compute_features() calls

Re: [PATCH net v2] team: don't call netdev_change_features under team->lock

2016-05-25 Thread Jiri Pirko
Wed, May 25, 2016 at 09:21:52PM CEST, ivec...@redhat.com wrote: >The team_device_event() notifier calls team_compute_features() to fix >vlan_features under team->lock to protect team->port_list. The problem is >that subsequent __team_compute_features() calls netdev_change_features() >to propagate

Re: [PATCH net v2 0/3] Documentation: dsa: misc fixes

2016-05-25 Thread David Miller
From: Florian Fainelli Date: Tue, 24 May 2016 21:26:38 -0700 > Here are some miscelaneous documentation fixes for DSA, I targeted "net" > because these are not functional code changes, but still documentation fixes > per-se. > > Changes in v2: > > - reword what the

Re: [PATCH net] sfc: on MC reset, clear PIO buffer linkage in TXQs

2016-05-25 Thread David Miller
From: Edward Cree Date: Tue, 24 May 2016 18:53:36 +0100 > Otherwise, if we fail to allocate new PIO buffers, our TXQs will try to > use the old ones, which aren't there any more. > > Fixes: 183233bec810 "sfc: Allocate and link PIO buffers; map them with > write-combining"

Re: [PATCH net 0/2] Fix spinlock usage in HWBM

2016-05-25 Thread David Miller
From: Gregory CLEMENT Date: Tue, 24 May 2016 18:03:24 +0200 > these two patches fix spinlock related issues introduced in v4.6. They > have been reported by Russell King and Jean-Jacques Hiblot. Series applied and queued up for -stable.

[PATCH net v2] team: don't call netdev_change_features under team->lock

2016-05-25 Thread Ivan Vecera
The team_device_event() notifier calls team_compute_features() to fix vlan_features under team->lock to protect team->port_list. The problem is that subsequent __team_compute_features() calls netdev_change_features() to propagate vlan_features to upper vlan devices while team->lock is still taken.

Re: [PATCH v2] tipc: fix potential null pointer dereferences in some compat functions

2016-05-25 Thread David Miller
From: Baozeng Ding Date: Tue, 24 May 2016 22:33:24 +0800 > Before calling the nla_parse_nested function, make sure the pointer to the > attribute is not null. This patch fixes several potential null pointer > dereference vulnerabilities in the tipc netlink functions. > >

Re: [PATCH net 1/1] qed: Reset the enable flag for eth protocol.

2016-05-25 Thread David Miller
From: Sudarsana Reddy Kalluru Date: Tue, 24 May 2016 05:25:23 -0400 > This patch fixes the coding error in determining the enable flag for > the application/protocol. The enable flag should be set for all protocols > but the eth. > > Signed-off-by: Sudarsana Reddy

Re: [RFC PATCH] ethtool: add support for 25G/50G/100G speed modes

2016-05-25 Thread David Miller
From: vi...@cumulusnetworks.com Date: Sun, 22 May 2016 23:59:00 -0700 > From: Vidya Sagar Ravipati > > This patch enhances ethtool link mode bitmap to include > 25G/50G/100G speed along with interface modes > > Signed-off-by: Vidya Sagar Ravipati

Re: [PATCH net] sctp: sctp_diag should dump sctp socket type

2016-05-25 Thread David Miller
From: Xin Long Date: Thu, 26 May 2016 03:14:28 +0800 > For sctp_diag, ss support is not officially available, thus there > are no official users of this yet, so we can add this field in the > middle of sctp_info without breaking user API. This is not what matters. What

[PATCH net] sctp: sctp_diag should dump sctp socket type

2016-05-25 Thread Xin Long
Now we cannot distinguish that one sk is a udp or sctp style when we use ss to dump sctp_info. it's necessary to dump it as well. For sctp_diag, ss support is not officially available, thus there are no official users of this yet, so we can add this field in the middle of sctp_info without

[PATCH net] sctp: fix double EPs display in sctp_diag

2016-05-25 Thread Xin Long
We have this situation: that EP hash table, contains only the EPs that are listening, while the transports one, has the opposite. We have to traverse both to dump all. But when we traverse the transports one we will also get EPs that are in the EP hash if they are listening. In this case, the EP

Re: [RFC PATCH 00/29] net: VRF support

2016-05-25 Thread David Ahern
On 5/25/16 10:04 AM, Chenna wrote: David Ahern gmail.com> writes: Kernel patches are also available here: https://github.com/dsahern/linux.git vrf-3.19 iproute2 patches are also available here: https://github.com/dsahern/iproute2 vrf-3.19 Hello David, Do we have the similar

Re: [RFC PATCH 00/29] net: VRF support

2016-05-25 Thread Chenna
David Ahern gmail.com> writes: > > Kernel patches are also available here: > https://github.com/dsahern/linux.git vrf-3.19 > > iproute2 patches are also available here: > https://github.com/dsahern/iproute2 vrf-3.19 > Hello David, Do we have the similar support package for 3.10

Re: [PATCH v8 10/22] IB/hns: Add process flow to init RoCE engine

2016-05-25 Thread Leon Romanovsky
On Wed, May 25, 2016 at 11:05:13PM +0800, Lijun Ou wrote: > This patch mainly initialized the RoCE engine. It is absolutely > necessary to run RoCE. It mainly includes that configure DMAE > user, initialize doorbell and raq operations, enable port. > > Signed-off-by: Wei Hu

[PATCH 3.19.y-ckt 38/40] VSOCK: do not disconnect socket when peer has shutdown SEND only

2016-05-25 Thread Kamal Mostafa
3.19.8-ckt22 -stable review patch. If anyone has any objections, please let me know. ---8< From: Ian Campbell [ Upstream commit dedc58e067d8c379a15a8a183c5db318201295bb ] The peer may be expecting a reply

[3.19.y-ckt stable] Patch "VSOCK: do not disconnect socket when peer has shutdown SEND only" has been added to the 3.19.y-ckt tree

2016-05-25 Thread Kamal Mostafa
This is a note to let you know that I have just added a patch titled VSOCK: do not disconnect socket when peer has shutdown SEND only to the linux-3.19.y-queue branch of the 3.19.y-ckt extended stable tree which can be found at:

Re: [PATCH net-next 1/2] net: vrf: Fix dst reference counting

2016-05-25 Thread David Ahern
I failed to update the auto-generated subject prefix in the patches. Both of these are for 4.5 stable not net-next. On 5/25/16 10:35 AM, David Ahern wrote: commit 9ab179d83b4e31ea277a123492e419067c2f129a upstream Vivek reported a kernel exception deleting a VRF with an active connection

[PATCH net 4/4] net/mlx4_en: get rid of private net_device_stats

2016-05-25 Thread Eric Dumazet
We simply can use the standard net_device stats. We do not need to clear fields that are already 0. Signed-off-by: Eric Dumazet Cc: Willem de Bruijn Cc: Eugenia Emantayev --- drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 2

[PATCH net 3/4] net/mlx4_en: get rid of ret_stats

2016-05-25 Thread Eric Dumazet
mlx4 uses a private struct net_device_stats in a vain attempt to avoid races. This is buggy because multiple cpus could call mlx4_en_get_stats() at the same time, so ret_stats can not guarantee stable results. To fix this, we need to switch to ndo_get_stats64() as this method provides per-thread

[PATCH net 2/4] net/mlx4_en: clear some TX ring stats in mlx4_en_clear_stats()

2016-05-25 Thread Eric Dumazet
mlx4_en_clear_stats() clears about everything but few TX ring fields are missing : - queue_stopped, wake_queue, tso_packets, xmit_more Signed-off-by: Eric Dumazet Cc: Willem de Bruijn Cc: Eugenia Emantayev ---

[PATCH net 1/4] net/mlx4_en: fix tx_dropped bug

2016-05-25 Thread Eric Dumazet
1) mlx4_en_xmit() can increment priv->stats.tx_dropped, but this variable is overwritten in mlx4_en_DUMP_ETH_STATS(). 2) This increment was not SMP safe, as a port might have many TX queues. Add a per TX ring tx_dropped to fix these issues. This is u32 as mlx4_en_DUMP_ETH_STATS() will add a

[PATCH net 0/4] net/mlx4_en: fix stats

2016-05-25 Thread Eric Dumazet
mlx4 has various bugs in its ndo_get_stats() and related functions. This patch series address the obvious issues. Remaining ones will be discussed later. Eric Dumazet (4): net/mlx4_en: fix tx_dropped bug net/mlx4_en: clear some TX ring stats in mlx4_en_clear_stats() net/mlx4_en: get rid of

[PATCH net-next 2/2] net: vrf: protect changes to private data with rcu

2016-05-25 Thread David Ahern
commit b0e95ccdd77591f108c938bbc702b57554a1665d upstream One cpu can be processing packets which includes using the cached route entries in the vrf device's private data and on another cpu the device gets deleted which releases the routes and sets the pointers in net_vrf to NULL. This results in

[PATCH net-next 1/2] net: vrf: Fix dst reference counting

2016-05-25 Thread David Ahern
commit 9ab179d83b4e31ea277a123492e419067c2f129a upstream Vivek reported a kernel exception deleting a VRF with an active connection through it. The root cause is that the socket has a cached reference to a dst that is destroyed. Converting the dst_destroy to dst_release and letting proper

[PATCH 4.5-stable 0/2] net: vrf: 4.5 backports

2016-05-25 Thread David Ahern
Backports of 2 vrf patches to 4.5.5 stable tree. Dave: not sure if you want me to send to stable maintainers or if you want to add them to your stable queue. I have the 4.4.11 versions ready as well. David Ahern (2): net: vrf: Fix dst reference counting net: vrf: protect changes

[PATCH percpu/for-4.7-fixes 2/2] percpu: fix synchronization between synchronous map extension and chunk destruction

2016-05-25 Thread Tejun Heo
For non-atomic allocations, pcpu_alloc() can try to extend the area map synchronously after dropping pcpu_lock; however, the extension wasn't synchronized against chunk destruction and the chunk might get freed while extension is in progress. This patch fixes the bug by putting most of non-atomic

[PATCH percpu/for-4.7-fixes 1/2] percpu: fix synchronization between chunk->map_extend_work and chunk destruction

2016-05-25 Thread Tejun Heo
Atomic allocations can trigger async map extensions which is serviced by chunk->map_extend_work. pcpu_balance_work which is responsible for destroying idle chunks wasn't synchronizing properly against chunk->map_extend_work and may end up freeing the chunk while the work item is still in flight.

Re: [PATCH v8 22/22] MAINTAINERS: Add maintainers for HiSilicon RoCE driver

2016-05-25 Thread Joe Perches
On Wed, 2016-05-25 at 23:05 +0800, Lijun Ou wrote: > This patch added maintainers for RoCE driver. Please add sections in alphabetic order. > diff --git a/MAINTAINERS b/MAINTAINERS [] > @@ -10121,6 +10121,14 @@ W: http://www.emulex.com >  S: Supported >  F: drivers/infiniband/hw/ocrdma/ >  

[PATCH v8 19/22] IB/hns: Add memory region operations support

2016-05-25 Thread Lijun Ou
This patch was mainly for implementing of memory region. Memory Registration provides mechanisms that allow consumers to describe a set of virtually contiguous memory locations or a set of physically contiguous memory locations. MR operations includes as follows: 1. get dma MR in kernel mode

[PATCH v8 10/22] IB/hns: Add process flow to init RoCE engine

2016-05-25 Thread Lijun Ou
This patch mainly initialized the RoCE engine. It is absolutely necessary to run RoCE. It mainly includes that configure DMAE user, initialize doorbell and raq operations, enable port. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao

[PATCH v8 01/22] net: hns: Add reset function support for RoCE driver

2016-05-25 Thread Lijun Ou
It added reset function for RoCE driver. RoCE is a feature of hns. In hip06 SoC, in RoCE reset process, it's needed to configure dsaf channel reset, port and sl map info. Reset function of RoCE is located in dsaf module, we only call it in RoCE driver when needed. Signed-off-by: Wei Hu

[PATCH v8 03/22] IB/hns: Add initial main frame driver and get cfg info

2016-05-25 Thread Lijun Ou
This patch mainly added the initial bare main driver. It could get the relative configure information of net node. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou ---

[PATCH v8 22/22] MAINTAINERS: Add maintainers for HiSilicon RoCE driver

2016-05-25 Thread Lijun Ou
This patch added maintainers for RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Lijun Ou --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5f83015..ba23a81 100644 --- a/MAINTAINERS +++

[PATCH v8 11/22] IB/hns: Add IB device registration

2016-05-25 Thread Lijun Ou
This patch registered IB device when loaded, and unregistered IB device when removed. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_main.c | 47

Re: [PATCH net] team: don't call netdev_change_features under team->lock

2016-05-25 Thread Jiri Pirko
Wed, May 25, 2016 at 04:55:49PM CEST, ivec...@redhat.com wrote: >The team_device_event() notifier calls team_compute_features() to fix >vlan_features under team->lock to protect team->port_list. The problem is >that subsequent __team_compute_features() calls netdev_change_features() >to propagate

[PATCH v8 05/22] IB/hns: Add initial profile resource

2016-05-25 Thread Lijun Ou
This patch mainly configured some profile resoure. For example, vendor_id, hardware version, and some data structure sizes so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou ---

[PATCH v8 06/22] IB/hns: Add initial cmd operation

2016-05-25 Thread Lijun Ou
This patch added the operation for cmd, and added some functions for initializing eq table and selecting cmd mode. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou ---

[PATCH v8 00/22] Add HiSilicon RoCE driver

2016-05-25 Thread Lijun Ou
The HiSilicon Network Substem is a long term evolution IP which is supposed to be used in HiSilicon ICT SoCs. HNS (HiSilicon Network Sybsystem) also has a hardware support of performing RDMA with RoCEE. The driver for HiSilicon RoCEE(RoCE Engine) is a platform driver and will support mulitple

[PATCH v8 15/22] IB/hns: Add PD operations support

2016-05-25 Thread Lijun Ou
This patch added the verbs to operate PD. It mainly includes the functions of allocating PD and deallocating PD. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou ---

[PATCH net] team: don't call netdev_change_features under team->lock

2016-05-25 Thread Ivan Vecera
The team_device_event() notifier calls team_compute_features() to fix vlan_features under team->lock to protect team->port_list. The problem is that subsequent __team_compute_features() calls netdev_change_features() to propagate vlan_features to upper vlan devices while team->lock is still taken.

[PATCH v8 09/22] IB/hns: Add hca support

2016-05-25 Thread Lijun Ou
This patch mainly setup hca for RoCE. It will do a series of initial works, as follows: 1. init uar table, allocate uar resource 2. init pd table 3. init cq table 4. init mr table 5. init qp table Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao

[PATCH v8 04/22] IB/hns: Add RoCE engine reset function

2016-05-25 Thread Lijun Ou
This patch mainly added reset flow of RoCE engine in RoCE driver. It is necessary when RoCE is loaded and removed. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou ---

[PATCH v8 08/22] IB/hns: Add icm support

2016-05-25 Thread Lijun Ou
This patch mainly added icm support for RoCE. It initializes icm which managers the relative memory blocks for RoCE. The data structures of RoCE will be located in it. For example, CQ table, QP table and MTPT table so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong

[PATCH v8 14/22] IB/hns: Add operations support for IB device and port

2016-05-25 Thread Lijun Ou
This patch mainly registered some relative verbs for the kernel. These operation functions will be called by user. For example: 1. modify device 2. query device 3. query_port 4. modify_port and so on. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao

[PATCH v8 12/22] IB/hns: Set mtu and gid support

2016-05-25 Thread Lijun Ou
This patch mainly set mtu and gid resource. These resource will be used to set up network transmission in nodes. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou ---

[PATCH v8 21/22] IB/hns: Kconfig and Makefile for RoCE module

2016-05-25 Thread Lijun Ou
This patch added Kconfig and Makefile for building RoCE module. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/Kconfig | 1 + drivers/infiniband/hw/Makefile

[PATCH v8 17/22] IB/hns: Add QP operations support

2016-05-25 Thread Lijun Ou
This patch was implementing for queue pair operations. QP Consists of a Send Work Queue and a Receive Work Queue. Send and receive queues are always created as a pair and remain that way throughout their lifetime. A Queue Pair is identified by its Queue Pair Number. QP operations as follows:

[PATCH v8 02/22] devicetree: bindings: IB: Add binding document for HiSilicon RoCE

2016-05-25 Thread Lijun Ou
This patch added DTS binding document for HiSilicon RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Lijun Ou --- .../bindings/infiniband/hisilicon-hns-roce.txt | 107 + 1 file changed, 107 insertions(+) create mode 100644

[PATCH v8 16/22] IB/hns: Add ah operations support

2016-05-25 Thread Lijun Ou
This patch was for implementing of address handle operations. It includes three verbs that create ah, query ah and destroy ah. They is completed independently by RoCE driver. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by:

[PATCH v8 20/22] IB/hns: Add operation for getting immutable port

2016-05-25 Thread Lijun Ou
This patch added a new verbs that is getting port immutable. It is added in the 4.5 kernel and latest. It is necessary to solve the fail questions for registering ib device. Signed-off-by: Wei Hu Signed-off-by: Lijun Ou ---

[PATCH v8 07/22] IB/hns: Add event queue support

2016-05-25 Thread Lijun Ou
This patch added event queue support for RoCE driver. It is used for RoCE interrupt. RoCE includes 32 synchronous event irqs, 1 asynchronous event irq and 1 common overflow irq. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao

[PATCH v8 13/22] IB/hns: Add interface of the protocol stack registration

2016-05-25 Thread Lijun Ou
This patch mainly added the function module which netif notify registered the protocol stack. It includes interface functions as follows: 1. The executive called interface of RoCE when the netlink event that registered protocol stack was generated 2. The executive called interface

Re: [RESEND] Re: updating carl9170-1.fw in linux-firmware.git

2016-05-25 Thread Ben Hutchings
On Wed, 2016-04-20 at 23:11 +0200, Christian Lamparter wrote: > On Wednesday, April 20, 2016 10:59:44 AM Kalle Valo wrote: > > Christian Lamparter writes: > > > > > On Monday, April 18, 2016 07:42:05 PM Kalle Valo wrote: > > > > Christian Lamparter

[PATCH 2/2] fou: add Kconfig options for IPv6 support

2016-05-25 Thread Arnd Bergmann
A previous patch added the fou6.ko module, but that failed to link in a couple of configurations: net/built-in.o: In function `ip6_tnl_encap_add_fou_ops': net/ipv6/fou6.c:88: undefined reference to `ip6_tnl_encap_add_ops' net/ipv6/fou6.c:94: undefined reference to `ip6_tnl_encap_add_ops'

[PATCH v8 18/22] IB/hns: Add CQ operations support

2016-05-25 Thread Lijun Ou
This patch was implementing for Completion Queue(CQ) operations. A CQ can be used to multiplex work completions from multiple work queues across queue pairs on the same HCA. CQ as the notification mechanism for Work Request completions. CQ operations as follows: 1. create CQ. CQ are created

[PATCH 1/2] ipv6: hide ip6_encap_hlen/ip6_tnl_encap definitions

2016-05-25 Thread Arnd Bergmann
A recent cleanup moved MAX_IPTUN_ENCAP_OPS along with some other definitions, but it is now invisible when CONFIG_INET is not defined, but still referenced from ip6_tunnel.h: In file included from net/xfrm/xfrm_input.c:17:0: include/net/ip6_tunnel.h:67:17: error: 'MAX_IPTUN_ENCAP_OPS' undeclared

Re: [ethtool 0/3][pull request] Intel Wired LAN Driver Updates 2016-05-03

2016-05-25 Thread Ben Hutchings
On Tue, 2016-05-24 at 16:47 -0700, Jeff Kirsher wrote: > On Wed, 2016-05-04 at 09:44 -0700, Jeff Kirsher wrote: > > This series contains updates to ixgbe in ethtool. > > > > Preethi adds missing device IDs and mac_type definitions, also updated > > the display registers for x550, x550em_x/a.  

Re: [PATCH net v2 3/3] Documentation: networking: dsa: Describe port_vlan_filtering

2016-05-25 Thread Vivien Didelot
Florian Fainelli writes: > Described what the port_vlan_filtering function is supposed to > accomplish. > > Fixes: fb2dabad69f0 ("net: dsa: support VLAN filtering switchdev attr") > Signed-off-by: Florian Fainelli Reviewed-by: Vivien Didelot

Re: Davicom DM9162 PHY supported in the kernel?

2016-05-25 Thread Amr Bekhit
Hi Andrew, I've had another play around with the DTS and appear to have solved the problem. I've changed the ethernet defintions from: compatible = "cdns,at32ap7000-macb", "cdns,macb"; to compatible = "cdns,at91sam9260-macb"; and everything seems to work fine now - I can finally send pings.

Re: Davicom DM9162 PHY supported in the kernel?

2016-05-25 Thread Andrew Lunn
On Wed, May 25, 2016 at 02:20:58PM +0100, Amr Bekhit wrote: > Hi Andrew, > > I've uploaded the device tree to http://pastebin.com/tNp2PnW4. This is the decompiled blob, making it hard to read. I do however notice that you have two clocks, "hclk", "pclk". The binding talks of a third optional

Re: [PATCH RESEND 7/8] pipe: account to kmemcg

2016-05-25 Thread Vladimir Davydov
On Tue, May 24, 2016 at 01:04:33PM -0700, Eric Dumazet wrote: > On Tue, 2016-05-24 at 19:13 +0300, Vladimir Davydov wrote: > > On Tue, May 24, 2016 at 05:59:02AM -0700, Eric Dumazet wrote: > > ... > > > > +static int anon_pipe_buf_steal(struct pipe_inode_info *pipe, > > > > +

Re: Davicom DM9162 PHY supported in the kernel?

2016-05-25 Thread Amr Bekhit
Hi Andrew, I've uploaded the device tree to http://pastebin.com/tNp2PnW4. On 25 May 2016 at 13:39, Andrew Lunn wrote: > On Wed, May 25, 2016 at 11:28:37AM +0100, Amr Bekhit wrote: >> Hi Andrew, >> >> I added the following line to genphy_read_status to print out the value of >>

Re: Davicom DM9162 PHY supported in the kernel?

2016-05-25 Thread Andrew Lunn
On Wed, May 25, 2016 at 11:28:37AM +0100, Amr Bekhit wrote: > Hi Andrew, > > I added the following line to genphy_read_status to print out the value of > BMCR: > > phydev->lp_advertising = 0; > > +printk(KERN_DEBUG "MII_BMCR: 0x%04X\n", phy_read(phydev, MII_BMCR)); > > if (AUTONEG_ENABLE ==

[PATCH] virtio_net: fix virtnet_open and virtnet_probe competing for try_fill_recv

2016-05-25 Thread wangyunjian
In function virtnet_open() and virtnet_probe(), func try_fill_recv() will be executed at the same time. VQ in virtqueue_add() is not protected well and BUG_ON will be triggered when virito_net.ko being removed. Test Script: for (( i=0; i<500; i=i+1 )); do rmmod virtio_net

Re: Davicom DM9162 PHY supported in the kernel?

2016-05-25 Thread Amr Bekhit
Hi Andrew, I added the following line to genphy_read_status to print out the value of BMCR: phydev->lp_advertising = 0; +printk(KERN_DEBUG "MII_BMCR: 0x%04X\n", phy_read(phydev, MII_BMCR)); if (AUTONEG_ENABLE == phydev->autoneg) { After booting up the kernel and running ifconfig eth0 up, I

[iproute2 PATCH 1/1] tc filter u32: Coding style fixes

2016-05-25 Thread Jamal Hadi Salim
From: Jamal Hadi Salim "handle" was being used several times for different things. Fix the 80 character limit abuse and other little issues while at it. Signed-off-by: Jamal Hadi Salim --- tc/f_u32.c | 66

Re: [iproute2 PATH 2/2] tc action policer: enable timestamp display

2016-05-25 Thread Jamal Hadi Salim
Stephen, This requires you pull Dave's -net headers. cheers, jamal On 16-05-25 06:05 AM, Jamal Hadi Salim wrote: From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- tc/m_police.c | 11 ++- 1 file changed, 10 insertions(+), 1

[iproute2 PATH 1/2] tc action policer: Avoid nonsensical input

2016-05-25 Thread Jamal Hadi Salim
From: Jamal Hadi Salim The user must at least specify a choice of the token bucket or ewma policing or late binding index. TB policing requires at minimal a rate and burst. In addition fix formatting issues (80 chars etc). Signed-off-by: Jamal Hadi Salim

[iproute2 PATH 2/2] tc action policer: enable timestamp display

2016-05-25 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Signed-off-by: Jamal Hadi Salim --- tc/m_police.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tc/m_police.c b/tc/m_police.c index 8752d4f..cb17c9e 100644 --- a/tc/m_police.c +++ b/tc/m_police.c @@

good news

2016-05-25 Thread I WILL LIKE TO SET UP A HUMANITERIAN FOUNDATION IN YOUR COUNTRY IN YOUR CARE CAN I TRUST YOU?
I am a Philanthropists i have been engage in Building Of Hospitals For Cancer Victims,Rehabilitation Of HIV Victims,Helping the less previleged in the society and Helping Widows i will like to set up a charity foundation in your country under your care can i trust you?contact me for more good news

[PATCH v2] net: alx: use custom skb allocator

2016-05-25 Thread Feng Tang
This patch follows Eric Dumazet's commit 7b70176421 for Atheros atl1c driver to fix one exactly same bug in alx driver, that the network link will be lost in 1-5 minutes after the device is up. My laptop Lenovo Y580 with Atheros AR8161 ethernet device hit the same problem with kernel 4.4, and it