[PATCH net-next] r8152: replace netdev_alloc_skb_ip_align with napi_alloc_skb

2016-06-07 Thread Hayes Wang
Replace netdev_alloc_skb_ip_align() with napi_alloc_skb() which can save several CPU cycles by avoiding having to disable and re-enable IRQs. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/driver

Re: [PATCH net-next] gue: Implement direction IP encapsulation

2016-06-07 Thread David Miller
From: Tom Herbert Date: Mon, 6 Jun 2016 16:06:02 -0700 > This patch implements direct encapsulation of IPv4 and IPv6 packets > in UDP. This is done a version "1" of GUE and as explained in I-D > draft-ietf-nvo3-gue-03. > > Changes here are only in the receive path, fou with IPxIPx already > supp

Re: [PATCH V3 2/2] vhost_net: conditionally enable tx polling

2016-06-07 Thread Jason Wang
On 2016年06月07日 20:26, Michael S. Tsirkin wrote: On Wed, Jun 01, 2016 at 01:56:34AM -0400, Jason Wang wrote: We always poll tx for socket, this is sub optimal since: - it will be only used when we exceed the sndbuf of the socket. - since we use two independent polls for tx and vq, this will sl

[PATCH v6 2/2] can: rcar_can: Move Renesas CAN driver to rcar dir

2016-06-07 Thread Ramesh Shanmugasundaram
This patch clubs the Renesas controller drivers in one rcar dir. Signed-off-by: Ramesh Shanmugasundaram --- drivers/net/can/Kconfig | 10 -- drivers/net/can/Makefile | 1 - drivers/net/can/rcar/Kconfig | 10 ++ drivers/net/can/rcar/Makefile

[PATCH v6 1/2] can: rcar_canfd: Add Renesas R-Car CAN FD driver

2016-06-07 Thread Ramesh Shanmugasundaram
This patch adds support for the CAN FD controller found in Renesas R-Car SoCs. The controller operates in CAN FD only mode by default. CAN FD mode supports both Classical CAN & CAN FD frame formats. The controller supports ISO 11898-1:2015 CAN FD format only. This controller supports two channels

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

2016-06-07 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 --- drivers/infiniband/hw/hns/hns_roce_device.h | 72 ++ drivers/infiniband/hw/hns/hns_roce_mai

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

2016-06-07 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 Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_cm

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

2016-06-07 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: Lijun Ou --- drivers/infiniband/hw/hns/hns_roce_ah.c

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

2016-06-07 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 --- drivers/infiniband/hw/hns/hns_roce_common.h | 49 +++ drivers/infinib

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

2016-06-07 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 Zhao Signed-off-by: Lijun Ou

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

2016-06-07 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 | 46 +++ 1 file changed, 46 insertions(+) diff --git a/dr

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

2016-06-07 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 --- drivers/infiniband/hw/hns/hns_roce_cmd.c| 117 drivers/infiniband/h

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

2016-06-07 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 --- drivers/infiniband/hw/hns/hns_roce_device.h | 17 drivers/infiniband/hw/hns/hns_roce_main.c

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

2016-06-07 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 Signed-off-by: Lijun Ou ---

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

2016-06-07 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 of

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

2016-06-07 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 Signed-off

[RESEND PATCH v9 00/22] Add HiSilicon RoCE driver

2016-06-07 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 versi

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

2016-06-07 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 Signed-off-by: Lijun Ou --- drivers/infiniband/hw/hns/hns_

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

2016-06-07 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 --- drivers/infiniband/hw/hns/hns_roce_device.h | 7 +++ drivers/infiniband/hw/hns/hns_roce_hw_v1.c |

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

2016-06-07 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 thr

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

2016-06-07 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: 1.

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

2016-06-07 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 Signed-off-by: Lijun Ou ---

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

2016-06-07 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 7304d2e..3de2ef0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10280,6 +10280,14 @@ W: htt

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

2016-06-07 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 Documentation/devicetree/bindings/infiniband/

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

2016-06-07 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 --- drivers/infiniband/hw/hns/hns_roce_main.c | 22 ++

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

2016-06-07 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 --- drivers/infiniband/hw/hns/hns_roce_common.h | 16 drivers/infiniband/hw/hns/hns_roce_device.h |

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

2016-06-07 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

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

2016-06-07 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 | 1 + drivers/infiniband/hw/hns/Kconfig | 10 ++ drivers/infin

Re: [PATCH net] Driver: Vmxnet3: segCnt can be 1 for LRO packets

2016-06-07 Thread Shrikrishna Khare
On Tue, 7 Jun 2016, David Miller wrote: > From: Shrikrishna Khare > Date: Tue, 7 Jun 2016 22:55:17 -0700 > > > The device emulation may send segCnt of 1 for LRO packets. > > > > Signed-off-by: Shrikrishna Khare > > Signed-off-by: Jin Heo > > Please do not capitalize subsystem prefixes in

[PATCH net v2] vmxnet3: segCnt can be 1 for LRO packets

2016-06-07 Thread Shrikrishna Khare
The device emulation may send segCnt of 1 for LRO packets. Signed-off-by: Shrikrishna Khare Signed-off-by: Jin Heo --- v2: fix subject line --- drivers/net/vmxnet3/vmxnet3_drv.c | 2 +- drivers/net/vmxnet3/vmxnet3_int.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/d

Re: [PATCH net-next] net/sched: cls_flower: Introduce support in SKIP SW flag

2016-06-07 Thread Amir Vadai
On Tue, Jun 07, 2016 at 08:37:40AM -0700, John Fastabend wrote: > On 16-06-05 07:11 AM, Amir Vadai wrote: > > From: Amir Vadai > > > > In order to make a filter processed only by hardware, skip_sw flag > > should be supplied. This is an addition to the already existing skip_hw > > flag (filter wi

Re: [PATCH net] Driver: Vmxnet3: segCnt can be 1 for LRO packets

2016-06-07 Thread David Miller
From: Shrikrishna Khare Date: Tue, 7 Jun 2016 22:55:17 -0700 > The device emulation may send segCnt of 1 for LRO packets. > > Signed-off-by: Shrikrishna Khare > Signed-off-by: Jin Heo Please do not capitalize subsystem prefixes in your Subject line, and "Driver: " is so generic that it's poi

[PATCH net] Driver: Vmxnet3: segCnt can be 1 for LRO packets

2016-06-07 Thread Shrikrishna Khare
The device emulation may send segCnt of 1 for LRO packets. Signed-off-by: Shrikrishna Khare Signed-off-by: Jin Heo --- drivers/net/vmxnet3/vmxnet3_drv.c | 2 +- drivers/net/vmxnet3/vmxnet3_int.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/vmxnet3/vmxnet3

[PATCH net-next] net/mlx4_en: fix ethtool -x

2016-06-07 Thread Eric Dumazet
From: Eric Dumazet mlx4 RSS is limited to spread incoming packets to a power of two number of queues. An uniformly distibuted traffic would be split on queues 0 to N-1, N being a power of two, each queue having a 1/N weight. If number of RX queues is not a power of two, upper RX queues do not r

[PATCH v2] udp reuseport: fix packet of same flow hashed to different socket

2016-06-07 Thread Su Xuemin
From: "Su, Xuemin" There is a corner case in which udp packets belonging to a same flow are hashed to different socket when hslot->count changes from 10 to 11: 1) When hslot->count <= 10, __udp_lib_lookup() searches udp_table->hash, and always passes 'daddr' to udp_ehashfn(). 2) When hslot->cou

Re: [PATCH net-next] net: ipv4: Add ability to have GRE ignore DF bit in IPv4 payloads

2016-06-07 Thread Philip Prindeville
> On Jun 7, 2016, at 9:22 PM, Alexander Duyck wrote: > > On Tue, Jun 7, 2016 at 12:48 PM, Philip Prindeville > wrote: >> From: Philip Prindeville >> >> In the presence of firewalls which improperly block ICMP Unreachable >> (including Fragmentation Required) messages, Path MTU Discovery is >>

Re: [PATCH net-next] net: ipv4: Add ability to have GRE ignore DF bit in IPv4 payloads

2016-06-07 Thread Alexander Duyck
On Tue, Jun 7, 2016 at 12:48 PM, Philip Prindeville wrote: > From: Philip Prindeville > > In the presence of firewalls which improperly block ICMP Unreachable > (including Fragmentation Required) messages, Path MTU Discovery is > prevented from working. > > A workaround is to handle IPv4 payloads

Re: rhashtable - rhashtable_insert_fast failed

2016-06-07 Thread Herbert Xu
On Tue, Jun 07, 2016 at 04:47:28PM +0200, Helge Deller wrote: > On 07.06.2016 16:16, Herbert Xu wrote: > > On Tue, Jun 07, 2016 at 04:13:50PM +0200, Helge Deller wrote: > >> > >> What warnings do you mean specifically? Some specific CONFIG_ option ? > > > > Look for GFP_NOWARN in lib/rhashtable.c

RE: [bug discuss] fjes driver call trace warning, "PNP0C02" used in fjes seems like a bug,

2016-06-07 Thread Izumi, Taku
Dear Gab, > > > > I think that "PNP0C02" should be used to mark any motherboard > > reserved > > > > resource and not a specific network driver. > > > > It seems like a bug in the "fjes" driver. > > > > Extended Socket network device is a shared memory based high-speed > > network interface be

Re: [PATCH] ping: ICMP error replies while errno < 0 is a hard error

2016-06-07 Thread YOSHIFUJI Hideaki
Hi, Jason A. Donenfeld wrote: > There are some odd conditions in which a device will return an error for > sendto, while at the same time an ICMP error response is generated. In > this case, with the current code, the packet is retransmitted in a > flood, which is not what anybody wants. In fact,

[net-next:master 105/106] DockBook: net/core/gen_stats.c:168: warning: No description found for parameter 'running'

2016-06-07 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: 34fe76abbea5174e532681e420fb31139909efb4 commit: edb09eb17ed89eaa82a52dd306beac93e292b485 [105/106] net: sched: do not acquire qdisc spinlock in qdisc/class stats dump reproduce: make htmldocs All warnings

linux-next: manual merge of the net-next tree with the net tree

2016-06-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/sched/act_police.c between commit: 53eb440f4ada ("net sched actions: introduce timestamp for firsttime use") from the net tree and commit: a03e6fe56971 ("act_police: fix a crash during removal") from the net-n

[net-next:master 104/106] DockBook: include/linux/netdevice.h:1867: warning: No description found for parameter 'qdisc_running_key'

2016-06-07 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: 34fe76abbea5174e532681e420fb31139909efb4 commit: f9eb8aea2a1e12fc2f584d1627deeb957435a801 [104/106] net_sched: transform qdisc running bit into a seqcount reproduce: make htmldocs All warnings (new ones pre

Re: [PATCH][RT] netpoll: Always take poll_lock when doing polling

2016-06-07 Thread Alison Chaiken
I wrote: >>We've applied Sebastian's commit "softirq: split timer softirqs out of >>ksoftirqd," which improved event loop stability substantially when we Sebastian Andrzej Siewior replied: >Why did you apply that one? You have 4.1.18-ti-rt so I don't know how >that works but v4.1.15-rt18 had this

Re: [PATCH 0/2] Netfilter/IPVS fixes for net

2016-06-07 Thread David Miller
From: Pablo Neira Ayuso Date: Tue, 7 Jun 2016 00:38:15 +0200 > The following patchset contains two Netfilter/IPVS fixes for your net > tree, they are: > > 1) Fix missing alignment in next offset calculation for standard >targets, introduced in the previous merge window, patch from >Flor

Re: [PATCH net] tcp: record TLP and ER timer stats in v6 stats

2016-06-07 Thread David Miller
From: Yuchung Cheng Date: Mon, 6 Jun 2016 15:07:18 -0700 > The v6 tcp stats scan do not provide TLP and ER timer information > correctly like the v4 version . This patch fixes that. > > Fixes: 6ba8a3b19e76 ("tcp: Tail loss probe (TLP)") > Fixes: eed530b6c676 ("tcp: early retransmit") > Signed-o

Re: [PATCH -next] cbq: remove only caller of qdisc->drop()

2016-06-07 Thread David Miller
From: Florian Westphal Date: Mon, 6 Jun 2016 23:20:27 +0200 > since initial revision of cbq in 2004 iproute2 never implemented > support for TCA_CBQ_OVL_STRATEGY, which is what needs to be set to > activate the class->drop() call (TC_CBQ_OVL_DROP strategy must be > set by userspace). > > So let

Re: [PATCH net] net: sched: fix tc_should_offload for specific clsact classes

2016-06-07 Thread David Miller
From: Daniel Borkmann Date: Mon, 6 Jun 2016 22:50:39 +0200 > When offloading classifiers such as u32 or flower to hardware, and the > qdisc is clsact (TC_H_CLSACT), then we need to differentiate its classes, > since not all of them handle ingress, therefore we must leave those in > software path

Re: [PATCH net-next 2/2] net: sched: do not acquire qdisc spinlock in qdisc/class stats dump

2016-06-07 Thread Cong Wang
On Mon, Jun 6, 2016 at 4:53 PM, Eric Dumazet wrote: > Really sounds overkill to care about these, as probably no one needs to > get a 'consistent view of all these counters in a snapshot'. > > Even as of today, the qlen/backlog pair is wrong. No one ever used these > values in an SNMP agent. > > N

Re: [Patch net v2] act_police: fix a crash during removal

2016-06-07 Thread David Miller
From: Cong Wang Date: Mon, 6 Jun 2016 09:54:30 -0700 > The police action is using its own code to initialize tcf hash > info, which makes us to forgot to initialize a->hinfo correctly. > Fix this by calling the helper function tcf_hash_create() directly. > > This patch fixed the following crash

Re: [PATCH net-next 0/2] net: sched: faster stats gathering

2016-06-07 Thread David Miller
From: Eric Dumazet Date: Mon, 6 Jun 2016 09:37:14 -0700 > A while back, I sent one RFC patch using lockless stats gathering > on 64bit arches. > > This patch series does it more cleanly, using a seqcount. > > Since qdisc/class stats are written at dequeue() time, > we can ask the dequeue to ch

[PATCH net-next v4 3/6] net: dsa: Provide a slave MII bus if needed

2016-06-07 Thread Florian Fainelli
Mimic what net/dsa/dsa.c does and provide a slave MII bus by default which will be created if the driver implements a phy_read method. Reviewed-by: Andrew Lunn Reviewed-by: Vivien Didelot Signed-off-by: Florian Fainelli --- net/dsa/dsa2.c | 15 +++ 1 file changed, 15 insertions(+)

[PATCH net-next v4 2/6] net: dsa: Initialize ds->enabled_port_mask and ds->phys_mii_mask

2016-06-07 Thread Florian Fainelli
Some drivers rely on these two bitmasks to contain the correct values for them to successfully probe and initialize at drv->setup() time, calculate correct values to put in both masks as early as possible in dsa_get_ports_dn(). Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli --- net/ds

[PATCH net-next v4 1/6] net: dsa: Provide unique DSA slave MII bus names

2016-06-07 Thread Florian Fainelli
In case we have multiples trees and switches with the same index, we need to add another discriminating id: the switch tree. Reviewed-by: Andrew Lunn Reviewed-by: Vivien Didelot Signed-off-by: Florian Fainelli --- net/dsa/slave.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --

[PATCH net-next v4 0/6] net: dsa: misc improvements

2016-06-07 Thread Florian Fainelli
Hi all, This patch series builds on top of Andrew's "New DSA bind, switches as devices" patch set and does the following: - add a few helper functions/goodies for net/dsa/dsa2.c to be as close as possible from net/dsa/dsa.c in terms of what drivers can expect, in particular the slave MDIO b

[PATCH net-next v4 4/6] net: dsa: Add initialization helper for CPU port ethtool_ops

2016-06-07 Thread Florian Fainelli
Add a helper function: dsa_cpu_port_ethtool_init() which initializes a custom ethtool_ops structure with custom DSA ethtool operations for CPU ports. This is a preliminary change to move the initialization outside of net/dsa/slave.c. Reviewed-by: Vivien Didelot Signed-off-by: Florian Fainelli --

[PATCH net-next v4 6/6] net: dsa: bcm_sf2: Register our slave MDIO bus

2016-06-07 Thread Florian Fainelli
Register a slave MDIO bus which allows us to divert problematic read/writes towards conflicting pseudo-PHY address (30). Do no longer rely on DSA's slave_mii_bus, but instead provide our own implementation which offers more flexibility as to what to do, and when to register it. We need to register

[PATCH net-next v4 5/6] net: dsa: Initialize CPU port ethtool ops per tree

2016-06-07 Thread Florian Fainelli
Now that we can properly support multiple distinct trees in the system, using a global variable: dsa_cpu_port_ethtool_ops is getting clobbered as soon as the second switch tree gets probed, and we don't want that. We need to move this to be dynamically allocated, and since we can't really be compa

Re: [PATCH net] fq_codel: return non zero qlen in class dumps

2016-06-07 Thread David Miller
From: Eric Dumazet Date: Mon, 06 Jun 2016 09:12:39 -0700 > From: Eric Dumazet > > We properly scan the flow list to count number of packets, > but John passed 0 to gnet_stats_copy_queue() so we report > a zero value to user space instead of the result. > > Fixes: 640158536632 ("net: sched: res

Re: [PATCH net 0/2] cls_u32 hardware offload fixes

2016-06-07 Thread David Miller
From: Jakub Kicinski Date: Mon, 6 Jun 2016 16:16:46 +0100 > This set fixes two small issues with error codes I noticed > in cls_u32. Second patch could be viewed as user space API > change but that portion of API is not part of any release, > yet. > > Compile tested only. Applied, thanks.

Re: [PATCH][RESEND] gtp: #define _UAPI_LINUX_GTP_H_ and not _UAPI_LINUX_GTP_H__

2016-06-07 Thread David Miller
From: Colin King Date: Mon, 6 Jun 2016 16:08:41 +0100 > From: Colin Ian King > > Fix clang build warning: > > ./include/uapi/linux/gtp.h:1:9: warning: '_UAPI_LINUX_GTP_H_' is > used as a header guard here, followed by #define of a different > macro [-Wheader-guard] > > fix by defining _UAPI

Re: [PATCH 01/12] net: mediatek: fix DQL support

2016-06-07 Thread Tom Herbert
On Tue, Jun 7, 2016 at 4:01 PM, David Miller wrote: > From: John Crispin > Date: Mon, 6 Jun 2016 08:43:13 +0200 > >> i think one solution would be to add some code to have 2 devices share >> the same dql instance. would that be an acceptable solution ? > > You still need to address the issue of s

Re: [PATCH net] l2tp: fix configuration passed to setup_udp_tunnel_sock()

2016-06-07 Thread David Miller
From: Guillaume Nault Date: Mon, 6 Jun 2016 13:48:02 +0200 > @@ -1581,7 +1581,7 @@ int l2tp_tunnel_create(struct net *net, int fd, int > version, u32 tunnel_id, u32 > /* Mark socket as an encapsulation socket. See net/ipv4/udp.c */ > tunnel->encap = encap; > if (encap == L2TP_E

Re: [net-next PATCH 0/3] be2net: patch set

2016-06-07 Thread David Miller
From: Sathya Perla Date: Mon, 6 Jun 2016 07:22:07 -0400 > Hi David, the following patch set contains three non-critical fixes that > can go into the net-next tree. > > Patch 1 fixes the logic for provisioning queue pairs on VFs to take into > account the limit on number of TXQs too as in some p

Re: [PATCH][V2] net: fec: fix spelling mistakes and add missing newline

2016-06-07 Thread David Miller
From: Colin King Date: Mon, 6 Jun 2016 09:21:44 +0100 > From: Colin Ian King > > trivial fix to spelling mistakes and add missing newline in pr_err > messages > > Signed-off-by: Colin Ian King Applied.

[PATCH net-next] ila: Perform only one translation in forwarding path

2016-06-07 Thread Tom Herbert
When setting up ILA in a router we noticed that the the encapsulation is invoked twice: once in the route input path and again upon route output. To resolve this we add a flag set_csum_neutral for the ila_update_ipv6_locator. If this flag is set and the checksum neutral bit is also set we assume th

Terveisiä

2016-06-07 Thread Aspire Money Loan
Terveisiä,   Olen rouva Annie Ethan yksityiseltä lainanantajayhtiöllä tunnetaan Aspire Money Loan®. Tarjoamme kaikenlaisia laina 3% korolla. Jos olet tarvitsevat lainaa ystävällisesti yhteyttä kanssa alla tiedot. Koko nimi: sukupuoli: Maa: Osoite: Lainan määrä: Kesto: Puh: Odotamme vastau

Re: [PATCH] netfilter/nflog: nflog-range does not truncate packets

2016-06-07 Thread Vishwanath Pai
On 06/06/2016 06:31 PM, Pablo Neira Ayuso wrote: > On Wed, Jun 01, 2016 at 08:23:54PM -0400, Vishwanath Pai wrote: >> netfilter/nflog: nflog-range does not truncate packets >> >> The --nflog-range parameter from userspace is ignored in the kernel and >> the entire packet is sent to the userspace. T

[PATCH iproute2] tc: f_u32: Add support for skip_hw and skip_sw flags

2016-06-07 Thread Sridhar Samudrala
On devices that support TC U32 offloads, these flags enable a filter to be added only to HW or only to SW. skip_sw and skip_hw are mutually exclusive flags. By default without any flags, the filter is added to both HW and SW, but no error checks are done in case of failure to add to HW. With skip-s

Re: [PATCH net 0/3] bnxt_en: Bug fixes.

2016-06-07 Thread David Miller
From: Michael Chan Date: Mon, 6 Jun 2016 02:37:13 -0400 > Fix a race condition and VLAN rx acceleration logic. Series applied.

Re: [PATCH 01/12] net: mediatek: fix DQL support

2016-06-07 Thread David Miller
From: John Crispin Date: Mon, 6 Jun 2016 08:43:13 +0200 > i think one solution would be to add some code to have 2 devices share > the same dql instance. would that be an acceptable solution ? You still need to address the issue of synchronization. dql purposefully doesn't use locking, always b

Re: [ldv-project] [net] libertas: potential race condition

2016-06-07 Thread James Cameron
On Tue, Jun 07, 2016 at 09:39:55AM -0500, Dan Williams wrote: > On Tue, 2016-06-07 at 13:30 +0400, Pavel Andrianov wrote: > > Hi! > > > > There is a potential race condition in  > > drivers/net/wireless/libertas/libertas.ko. > > In the function lbs_hard_start_xmit(..), line 159, a socket buffer >

Re: [Patch v3 2/5] fsl/qe: setup clock source for TDM mode

2016-06-07 Thread David Miller
From: Zhao Qiang Date: Mon, 6 Jun 2016 14:29:59 +0800 > Add tdm clock configuration in both qe clock system and ucc > fast controller. > > Signed-off-by: Zhao Qiang Applied.

Re: [Patch v3 1/5] fsl/qe: add rx_sync and tx_sync for TDM mode

2016-06-07 Thread David Miller
From: Zhao Qiang Date: Mon, 6 Jun 2016 14:29:58 +0800 > Rx_sync and tx_sync are used by QE-TDM mode, > add them to struct ucc_fast_info. > > Signed-off-by: Zhao Qiang Applied.

Re: [Patch v3 3/5] fsl/qe: Make regs resouce_size_t

2016-06-07 Thread David Miller
From: Zhao Qiang Date: Mon, 6 Jun 2016 14:30:00 +0800 > Signed-off-by: Zhao Qiang Applied.

Re: [Patch v3 4/5] fsl/qe: Add QE TDM lib

2016-06-07 Thread David Miller
From: Zhao Qiang Date: Mon, 6 Jun 2016 14:30:01 +0800 > QE has module to support TDM, some other protocols > supported by QE are based on TDM. > add a qe-tdm lib, this lib provides functions to the protocols > using TDM to configurate QE-TDM. > > Signed-off-by: Zhao Qiang Applied.

Re: [Patch v3 5/5] drivers/net: support hdlc function for QE-UCC

2016-06-07 Thread David Miller
From: Zhao Qiang Date: Mon, 6 Jun 2016 14:30:02 +0800 > The driver add hdlc support for Freescale QUICC Engine. > It support NMSI and TSA mode. > > Signed-off-by: Zhao Qiang Applied.

Re: [PATCH 6/6] ppc: ebpf/jit: Implement JIT compiler for extended BPF

2016-06-07 Thread Alexei Starovoitov
On Tue, Jun 07, 2016 at 07:02:23PM +0530, Naveen N. Rao wrote: > PPC64 eBPF JIT compiler. > > Enable with: > echo 1 > /proc/sys/net/core/bpf_jit_enable > or > echo 2 > /proc/sys/net/core/bpf_jit_enable > > ... to see the generated JIT code. This can further be processed with > tools/net/bpf_jit_d

Re: [PATCH net-next v3 4/6] net: dsa: Add initialization helper for CPU port ethtool_ops

2016-06-07 Thread Vivien Didelot
Florian Fainelli writes: > Add a helper function: dsa_cpu_port_ethtool_init() which initializes a > custom ethtool_ops structure with custom DSA ethtool operations for CPU > ports. This is a preliminary change to move the initialization outside > of net/dsa/slave.c. > > Signed-off-by: Florian Fai

Re: [PATCH v2 net-next 0/3] net sched action timestamp improvements

2016-06-07 Thread David Miller
From: Jamal Hadi Salim Date: Mon, 6 Jun 2016 06:32:52 -0400 > From: Jamal Hadi Salim > > Various aggregations of duplicated code, fixes and introduction of firstused > timestamp > > v2: add const for source time info per suggestion from Cong Series applied.

Re: [PATCH net-next v3 3/6] net: dsa: Provide a slave MII bus if needed

2016-06-07 Thread Vivien Didelot
Florian Fainelli writes: > Mimic what net/dsa/dsa.c does and provide a slave MII bus by default > which will be created if the driver implements a phy_read method. > > Signed-off-by: Florian Fainelli Reviewed-by: Vivien Didelot

Re: [PATCH net-next] net/sched: cls_flower: Introduce support in SKIP SW flag

2016-06-07 Thread David Miller
From: Amir Vadai Date: Sun, 5 Jun 2016 17:11:18 +0300 > From: Amir Vadai > > In order to make a filter processed only by hardware, skip_sw flag > should be supplied. This is an addition to the already existing skip_hw > flag (filter will be processed by software only). If no flag is > specifie

Re: [PATCH net-next v10 4/5] openvswitch: add layer 3 flow/port support

2016-06-07 Thread pravin shelar
On Mon, Jun 6, 2016 at 7:46 PM, Simon Horman wrote: > On Thu, Jun 02, 2016 at 03:02:18PM -0700, pravin shelar wrote: >> On Wed, Jun 1, 2016 at 11:24 PM, Simon Horman >> wrote: > > [...] > >> > diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c >> > index 15f130e4c22b..5567529904fa

Re: [PATCH net-next v10 3/5] openvswitch: add support to push and pop mpls for layer3 packets

2016-06-07 Thread pravin shelar
On Mon, Jun 6, 2016 at 7:51 PM, Simon Horman wrote: > On Thu, Jun 02, 2016 at 03:02:00PM -0700, pravin shelar wrote: >> On Wed, Jun 1, 2016 at 11:24 PM, Simon Horman >> wrote: >> > Allow push and pop mpls actions to act on layer 3 packets by teaching >> > them not to access non-existent L2 header

Re: [PATCH net-next v10 2/5] openvswitch: set skb protocol and mac_len when receiving on internal device

2016-06-07 Thread pravin shelar
On Mon, Jun 6, 2016 at 8:08 PM, Simon Horman wrote: > On Thu, Jun 02, 2016 at 03:01:47PM -0700, pravin shelar wrote: >> On Wed, Jun 1, 2016 at 11:24 PM, Simon Horman >> wrote: >> > * Set skb protocol based on contents of packet. I have observed this is >> > necessary to get actual protocol of a

Re: [PATCH net-next 0/6] qed: IOV series - relax firmware requirements

2016-06-07 Thread David Miller
From: Yuval Mintz Date: Sun, 5 Jun 2016 13:11:10 +0300 > In order for VFs to work, current implementation demands that the VF's > requried storm firmware would be exactly the version that was loaded by > the PF, which is a very harsh requirement. > This patch series is intended to relax this - >

Re: [PATCH v2 net] fq_codel: fix NET_XMIT_CN behavior

2016-06-07 Thread David Miller
From: Eric Dumazet Date: Sat, 04 Jun 2016 12:55:13 -0700 > From: Eric Dumazet > > My prior attempt to fix the backlogs of parents failed. > > If we return NET_XMIT_CN, our parents wont increase their backlog, > so our qdisc_tree_reduce_backlog() should take this into account. > > v2: Florian

Re: [PATCH net-next] net: get rid of spin_trylock() in net_tx_action()

2016-06-07 Thread David Miller
From: Eric Dumazet Date: Sat, 04 Jun 2016 20:02:28 -0700 > From: Eric Dumazet > > Note: Tom Herbert posted almost same patch 3 months back, but for > different reasons. > > The reasons we want to get rid of this spin_trylock() are : > > 1) Under high qdisc pressure, the spin_trylock() has alm

Re: [PATCHv3 net 3/3] net: cls_u32: catch all hardware offload errors

2016-06-07 Thread Samudrala, Sridhar
On 6/7/2016 3:17 PM, Jakub Kicinski wrote: Errors reported by u32_replace_hw_hnode() were not propagated. Signed-off-by: Jakub Kicinski Reviewed-by: Dinan Gunawardena --- v3: - new patch Acked-by: Sridhar Samudrala net/sched/cls_u32.c | 8 +++- 1 file changed, 7 insertions(+),

Re: [PATCHv3 net 2/3] net: cls_u32: be more strict about skip-sw flag

2016-06-07 Thread Samudrala, Sridhar
On 6/7/2016 3:17 PM, Jakub Kicinski wrote: Return an error if user requested skip-sw and the underlaying hardware cannot handle tc offloads (or offloads are disabled). Signed-off-by: Jakub Kicinski Reviewed-by: Dinan Gunawardena Reviewed-by: Simon Horman --- v2: - handle both knode and h

Re: [PATCH] rxrpc: fix ptr_ret.cocci warnings

2016-06-07 Thread David Miller
From: kbuild test robot Date: Sun, 5 Jun 2016 07:17:19 +0800 > net/rxrpc/rxkad.c:1165:1-3: WARNING: PTR_ERR_OR_ZERO can be used > > > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > CC: David Howells > Signed-off-by: Fengg

Re: [PATCH net-next] net: ipv4: Add ability to have GRE ignore DF bit in IPv4 payloads

2016-06-07 Thread Philip Prindeville
On 06/07/2016 04:23 PM, Hannes Frederic Sowa wrote: On 07.06.2016 22:42, Philip Prindeville wrote: On 06/07/2016 02:23 PM, Hannes Frederic Sowa wrote: On Tue, Jun 7, 2016, at 21:48, Philip Prindeville wrote: static struct rtnl_link_ops ipgre_link_ops __read_mostly = { diff --git a/net/ipv

Re: [PATCH net-next v3 5/6] net: dsa: Initialize CPU port ethtool ops per tree

2016-06-07 Thread Andrew Lunn
On Tue, Jun 07, 2016 at 03:13:35PM -0700, Florian Fainelli wrote: > On 06/07/2016 02:51 PM, Andrew Lunn wrote: > >> +int dsa_cpu_port_ethtool_setup(struct dsa_switch_tree *dst, > >> + struct dsa_switch *ds) > >> +{ > >> + struct net_device *master; > >> + struct ethtool_op

Re: [PATCH net-next] net: ipv4: Add ability to have GRE ignore DF bit in IPv4 payloads

2016-06-07 Thread Hannes Frederic Sowa
On 07.06.2016 22:42, Philip Prindeville wrote: > On 06/07/2016 02:23 PM, Hannes Frederic Sowa wrote: >> >> On Tue, Jun 7, 2016, at 21:48, Philip Prindeville wrote: >>> static struct rtnl_link_ops ipgre_link_ops __read_mostly = { >>> diff --git a/net/ipv4/ip_tunnel.c b/net/ipv4/ip_tunnel.c >>> ind

[PATCHv3 net 3/3] net: cls_u32: catch all hardware offload errors

2016-06-07 Thread Jakub Kicinski
Errors reported by u32_replace_hw_hnode() were not propagated. Signed-off-by: Jakub Kicinski Reviewed-by: Dinan Gunawardena --- v3: - new patch net/sched/cls_u32.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c index 0fc1d4

[PATCHv3 net 0/3] cls_u32 hardware offload fixes

2016-06-07 Thread Jakub Kicinski
Hi! This set fixes three small issues with error codes I noticed in cls_u32. Second patch could be viewed as user space API change but that portion of API is not part of any release, yet. Very lightly tested. Jakub Kicinski (3): net: cls_u32: fix error code for invalid flags net: cls_u32: b

[PATCHv3 net 1/3] net: cls_u32: fix error code for invalid flags

2016-06-07 Thread Jakub Kicinski
'err' variable is not set in this test, we would return whatever previous test set 'err' to. Signed-off-by: Jakub Kicinski Reviewed-by: Dinan Gunawardena Reviewed-by: Simon Horman Acked-by: Sridhar Samudrala Acked-by: John Fastabend --- net/sched/cls_u32.c | 2 +- 1 file changed, 1 insertion

[PATCHv3 net 2/3] net: cls_u32: be more strict about skip-sw flag

2016-06-07 Thread Jakub Kicinski
Return an error if user requested skip-sw and the underlaying hardware cannot handle tc offloads (or offloads are disabled). Signed-off-by: Jakub Kicinski Reviewed-by: Dinan Gunawardena Reviewed-by: Simon Horman --- v2: - handle both knode and hnodes --- net/sched/cls_u32.c | 58

Re: [PATCH net-next v3 5/6] net: dsa: Initialize CPU port ethtool ops per tree

2016-06-07 Thread Florian Fainelli
On 06/07/2016 02:51 PM, Andrew Lunn wrote: >> +int dsa_cpu_port_ethtool_setup(struct dsa_switch_tree *dst, >> + struct dsa_switch *ds) >> +{ >> +struct net_device *master; >> +struct ethtool_ops *cpu_ops; >> + >> +master = ds->dst->master_netdev; > > You pass

Re: [PATCH net 0/3] RDS: TCP: socket locking RDS packet assembly fixes

2016-06-07 Thread David Miller
From: Sowmini Varadhan Date: Sat, 4 Jun 2016 13:59:57 -0700 > This three part patchset fixes bugs in synchronization between > rds_tcp_accept_one() and the rds-tcp send/recv path. > > Patch 1 ensures that the lock_sock() is taken appropriately > and the RDS datagram reassembly state is reset t

  1   2   3   >