Re: [PATCH net-next v2 0/7] net: unify dst caching for tunnel devices

2016-04-28 Thread Paolo Abeni
On Wed, 2016-04-27 at 16:31 -0700, Eric Dumazet wrote: > On Tue, 2016-02-16 at 20:22 -0500, David Miller wrote: > > From: Paolo Abeni > > Date: Fri, 12 Feb 2016 15:43:52 +0100 > > > > > This patch series try to unify the dst cache implementations currently > > > present in the kernel, namely in i

[PATCH nf-next] netfilter: allow logging from non-init namespaces

2016-04-28 Thread Michal Kubecek
Commit 69b34fb996b2 ("netfilter: xt_LOG: add net namespace support for xt_LOG") disabled logging packets using the LOG target from non-init namespaces. The motivation was to prevent containers from flooding kernel log of the host. The plan was to keep it that way until syslog namespace implementati

[PATCH net-next 1/2] cxgb4: Add support to enable logging of firmware mailbox commands

2016-04-28 Thread Hariprasad Shenai
Add new /sys/kernel/debug/ support to dump a firmware mailbox command issued and replies for debugging purpose. Based on original work by Casey Leedom Signed-off-by: Hariprasad Shenai --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 32 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_

[PATCH net-next 0/2] cxgb4/cxgb4vf: add support for mbox cmd logging

2016-04-28 Thread Hariprasad Shenai
Hi This patch series adds support for logging mailbox commands and replies for debugging purpose for both PF and VF driver. This patch series has been created against net-next tree and includes patches on cxgb4 and cxgb4vf driver. We have included all the maintainers of respective drivers. Kind

[PATCH net-next 2/2] cxgb4vf: Add support to enable logging of firmware mailbox commands for VF

2016-04-28 Thread Hariprasad Shenai
Add new /sys/kernel/debug/ support to dump firmware mailbox commands and replies for debugging purpose. Based on original work by Casey Leedom Signed-off-by: Hariprasad Shenai --- drivers/net/ethernet/chelsio/cxgb4vf/adapter.h | 4 + .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c| 1

Re: [nf-next, 1/2] netfilter: conntrack: cache route for forwarded connections

2016-04-28 Thread Charlemagne Lasse
2014-12-08 16:36 GMT+01:00 Florian Westphal : > ... to avoid per-packet FIB lookup if possible. > > The cached dst is re-used provided the input interface > is the same as that of the previous packet in the same direction. > > If not, the cached dst is invalidated. It looks like someone found out

Re: [PATCH net 3/3] gre: receive also TEB packets for lwtunnels

2016-04-28 Thread Jiri Benc
On Thu, 28 Apr 2016 16:49:19 +1000, Simon Horman wrote: > I have had some success wiring up Open vSwitch to use this patch for > transmit. However, I am wondering if something more is needed to allow > differentiation between packets with and without an L2 header present > on receive. The problem,

Re: [PATCH net-next 2/7] net: rtnetlink: allow only one idx saving stats attribute

2016-04-28 Thread Nikolay Aleksandrov
On 04/28/2016 07:18 AM, Roopa Prabhu wrote: > On 4/27/16, 9:18 AM, Nikolay Aleksandrov wrote: >> We can't allow more than one stats attribute which uses the local idx >> since the result will be a mess. This is a simple check to make sure >> only one is being used at a time. Later when the filter_m

Re: [PATCH net-next 0/7] bridge: per-vlan stats

2016-04-28 Thread Nikolay Aleksandrov
On 04/27/2016 06:18 PM, Nikolay Aleksandrov wrote: > Hi, > This set adds support for bridge per-vlan statistics. > In order to be able to dump statistics we need a way to continue > dumping after reaching maximum size, thus patches 01-03 extend the new > stats API with a per-device extended link st

[PATCH net] ip_tunnel: fix preempt warning in ip tunnel creation/updating

2016-04-28 Thread Paolo Abeni
After the commit e09acddf873b ("ip_tunnel: replace dst_cache with generic implementation"), a preemption debug warning is triggered on ip4 tunnels updating; the dst cache helper needs to be invoked in unpreemptible context. We don't need to load the cache on tunnel update, so this commit fixes the

Re: [PATCH net 2/3] bpf: fix check_map_func_compatibility logic

2016-04-28 Thread Jann Horn
On Thu, Apr 28, 2016 at 3:56 AM, Alexei Starovoitov wrote: > The commit 35578d798400 ("bpf: Implement function bpf_perf_event_read() that > get the selected hardware PMU conuter") > introduced clever way to check bpf_helper<->map_type compatibility. > Later on commit a43eec304259 ("bpf: introduce

[PATCH net-next] vxlan: fix ethernet address initialization

2016-04-28 Thread Nicolas Dichtel
Since commit 0c867c9bf84c, when the user specifies an ethernet address with IFLA_ADDRESS, it's overridden by vxlan_ether_setup() (rtnl_link_ops->setup is called in rtnetlink.c before handling IFLA_ADDRESS). To test it: ip link add name vxlan1 address de:ad:de:4c:0f:c2 type vxlan id 1 group 239.0.

Re: [PATCH net v3 4/5] dt: cpsw: phy-handle, phy_id, and fixed-link are mutually exclusive

2016-04-28 Thread Mugunthan V N
On Thursday 28 April 2016 07:12 AM, David Rivshin (Allworx) wrote: > From: David Rivshin > > The phy-handle, phy_id, and fixed-link properties are mutually exclusive, > and only one need be specified. Make this clear in the binding doc. > > Also mark the phy_id property as deprecated, as phy-han

Re: [PATCH net-next] vxlan: fix ethernet address initialization

2016-04-28 Thread Jiri Benc
On Thu, 28 Apr 2016 12:04:16 +0200, Nicolas Dichtel wrote: > Since commit 0c867c9bf84c, when the user specifies an ethernet address with > IFLA_ADDRESS, it's overridden by vxlan_ether_setup() (rtnl_link_ops->setup > is called in rtnetlink.c before handling IFLA_ADDRESS). > > To test it: > ip link

Re: [PATCH 3.2 085/115] veth: don’t modify ip_summed; doing so treats packets with bad checksums as good.

2016-04-28 Thread Sabrina Dubroca
Hello, 2016-04-27, 17:14:44 -0700, Ben Greear wrote: > On 04/27/2016 05:00 PM, Hannes Frederic Sowa wrote: > > Hi Ben, > > > > On Wed, Apr 27, 2016, at 20:07, Ben Hutchings wrote: > > > On Wed, 2016-04-27 at 08:59 -0700, Ben Greear wrote: > > > > On 04/26/2016 04:02 PM, Ben Hutchings wrote: > > >

Re: [PATCHv2 bluetooth-next 00/10] 6lowpan: introduce basic 6lowpan-nd

2016-04-28 Thread Alexander Aring
Hi, can I get your acks for this patch serie? It's okay that these patches goes through bluetooth-next? - Alex

Re: [PATCH v6 4/6] ARM: STM32: Enable Ethernet in stm32_defconfig

2016-04-28 Thread Maxime Coquelin
Hi Alex, 2016-04-25 13:54 GMT+02:00 Alexandre TORGUE : > Enable basic Ethernet support (IPV4) for stm32 defconfig. > > Signed-off-by: Alexandre TORGUE Acked-by: Maxime Coquelin Thanks! Maxime

Re: [PATCH net-next] drivers/net: add 6WIND SHULTI support

2016-04-28 Thread Nicolas Dichtel
Le 27/04/2016 18:55, David Miller a écrit : > From: Jiri Pirko [snip] >> The difference is that it this tries to allow userspace crap to mirror >> setting user does for bridge/ovs. Basically this looks to me like an >> attempt to enable userspace SDKs and such. > > +1 I don't think so because a u

Re: [PATCH net-next] drivers/net: add 6WIND SHULTI support

2016-04-28 Thread Nicolas Dichtel
Le 27/04/2016 19:07, Stephen Hemminger a écrit : [snip] > Also it has a bunch of device specific generic netlink which was > a red flag for me. > Ok, I will rework this part.

[PATCH v6 21/21] MAINTAINERS: Add maintainers for HiSilicon RoCE driver

2016-04-28 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 1d5b4be..e7f5284 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10012,6 +10012,14 @@ W: htt

[PATCH v6 18/21] IB/hns: Add CQ operations support

2016-04-28 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

Re: [PATCH net-next 00/17] net: snmp: update SNMP methods

2016-04-28 Thread Eric Dumazet
On Thu, 2016-04-28 at 12:05 +0200, Nicolas Dichtel wrote: > Le 28/04/2016 01:44, Eric Dumazet a écrit : > > In the old days (before linux-3.0), SNMP counters were duplicated, > > one set for user context, and anther one for BH context. > > > > After commit 8f0ea0fe3a03 ("snmp: reduce percpu needs

[PATCH v6 07/21] IB/hns: Add event queue support

2016-04-28 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

[PATCH v6 13/21] IB/hns: Add interface of the protocol stack registration

2016-04-28 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

[PATCH v6 11/21] IB/hns: Add IB device registration

2016-04-28 Thread Lijun Ou
This patch registered IB device 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 | 48 +++ 1 file changed, 48 insertions(+) diff --git a/drivers/infinib

[PATCH v6 17/21] IB/hns: Add QP operations support

2016-04-28 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.

[PATCH v6 05/21] IB/hns: Add initial profile resource

2016-04-28 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 | 24 + drivers/infiniband/hw/hns

[PATCH v6 09/21] IB/hns: Add hca support

2016-04-28 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 ---

Re: [PATCH v6 6/6] ARM: dts: stm32f429: Update Ethernet node on Eval board

2016-04-28 Thread Maxime Coquelin
2016-04-25 13:54 GMT+02:00 Alexandre TORGUE : > Update new pinctrl phandle name and use new node name. > > Signed-off-by: Alexandre TORGUE > > diff --git a/arch/arm/boot/dts/stm32429i-eval.dts > b/arch/arm/boot/dts/stm32429i-eval.dts Acked-by: Maxime Coquelin Thanks! Maxime

[PATCH v6 01/21] net: hns: Add reset function support for RoCE driver

2016-04-28 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

[PATCH v6 15/21] IB/hns: Add PD operations support

2016-04-28 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

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

2016-04-28 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 | 49 drivers/infiniband/hw/hns/hns_roce_main.

[PATCH v6 14/21] IB/hns: Add operations support for IB device and port

2016-04-28 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 ---

[PATCH v6 20/21] IB/hns: Kconfig and Makefile for RoCE module

2016-04-28 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

[PATCH v6 19/21] IB/hns: Add memory region operations support

2016-04-28 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 v6 00/21] Add HiSilicon RoCE driver

2016-04-28 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

[PATCH v6 10/21] IB/hns: Add process flow to init RoCE engine

2016-04-28 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_

[PATCH v6 08/21] IB/hns: Add icm support

2016-04-28 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

[PATCH v6 04/21] IB/hns: Add RoCE engine reset function

2016-04-28 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_device.h | 7 drivers/infiniband/hw/hns/hns_

[PATCH v6 12/21] IB/hns: Set mtu and gid support

2016-04-28 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 |

Re: [PATCH v6 5/6] ARM: dts: stm32f429: Align Ethernet node with new bindings properties

2016-04-28 Thread Maxime Coquelin
Hi Alex, 2016-04-25 13:54 GMT+02:00 Alexandre TORGUE : > This patch aligns clocks names and node reference according to new > stm32-dwmac glue binding. It also renames Ethernet pinctrl phandle > (indeed there is no need to add 0 as Ethernet instance as there is only > one IP in SOC). > > Signed-of

[PATCH v6 16/21] IB/hns: Add ah operations support

2016-04-28 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

[PATCH v6 06/21] IB/hns: Add initial cmd operation

2016-04-28 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| 96 + drivers/infiniband/h

[PATCH v6 02/21] devicetree: bindings: IB: Add binding document for HiSilicon RoCE

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

Re: [PATCH net] ip_tunnel: fix preempt warning in ip tunnel creation/updating

2016-04-28 Thread Eric Dumazet
On Thu, 2016-04-28 at 11:04 +0200, Paolo Abeni wrote: > After the commit e09acddf873b ("ip_tunnel: replace dst_cache with generic > implementation"), a preemption debug warning is triggered on ip4 > tunnels updating; the dst cache helper needs to be invoked in unpreemptible > context. > > We don't

Re: iproute2: bash completion function for tc

2016-04-28 Thread Quentin Monnet
Hi Alexei, Stephen, 2016-04-27 (22:13 UTC-0700) ~ Stephen Hemminger: > On Wed, 27 Apr 2016 20:19:26 -0700 > Alexei Starovoitov wrote: > >> On Tue, Apr 26, 2016 at 09:28:17AM +0200, Quentin Monnet wrote: >>> Hi Jamal, Stephen, >>> >>> I searched for a function providing auto-completion for `tc` u

Re: [PATCH net-next 00/17] net: snmp: update SNMP methods

2016-04-28 Thread Nicolas Dichtel
Le 28/04/2016 14:00, Eric Dumazet a écrit : [snip] > Hi Nicolas, thanks for testing. > > Oh right, I shouldn't have changed the BH disabling of 64bit stats on > 32bit arches, of course. > > Can you double check this will fix the problem ? Thanks ! Thank you for the quick fix! Tested-by: Nicolas

[net-next PATCH V4 0/5] samples/bpf: Improve user experience

2016-04-28 Thread Jesper Dangaard Brouer
It is a steep learning curve getting started with using the eBPF examples in samples/bpf/. There are several dependencies, and specific versions of these dependencies. Invoking make in the correct manor is also slightly obscure. This patchset cleanup, document and hopefully improves the first ti

[net-next PATCH V4 1/5] samples/bpf: add back functionality to redefine LLC command

2016-04-28 Thread Jesper Dangaard Brouer
It is practical to be-able-to redefine the location of the LLVM command 'llc', because not all distros have a LLVM version with bpf target support. Thus, it is sometimes required to compile LLVM from source, and sometimes it is not desired to overwrite the distros default LLVM version. This featu

[net-next PATCH V4 4/5] samples/bpf: allow make to be run from samples/bpf/ directory

2016-04-28 Thread Jesper Dangaard Brouer
It is not intuitive that 'make' must be run from the top level directory with argument "samples/bpf/" to compile these eBPF samples. Introduce a kbuild make file trick that allow make to be run from the "samples/bpf/" directory itself. It basically change to the top level directory and call "make

[net-next PATCH V4 3/5] samples/bpf: add a README file to get users started

2016-04-28 Thread Jesper Dangaard Brouer
Getting started with using examples in samples/bpf/ is not straightforward. There are several dependencies, and specific versions of these dependencies. Just compiling the example tool is also slightly obscure, e.g. one need to call make like: make samples/bpf/ Do notice the "/" slash after th

[net-next PATCH V4 5/5] samples/bpf: like LLC also verify and allow redefining CLANG command

2016-04-28 Thread Jesper Dangaard Brouer
Users are likely to manually compile both LLVM 'llc' and 'clang' tools. Thus, also allow redefining CLANG and verify command exist. Makefile implementation wise, the target that verify the command have been generalized. Signed-off-by: Jesper Dangaard Brouer Acked-by: Alexei Starovoitov --- sa

[net-next PATCH V4 2/5] samples/bpf: Makefile verify LLVM compiler avail and bpf target is supported

2016-04-28 Thread Jesper Dangaard Brouer
Make compiling samples/bpf more user friendly, by detecting if LLVM compiler tool 'llc' is available, and also detect if the 'bpf' target is available in this version of LLVM. Signed-off-by: Jesper Dangaard Brouer Acked-by: Alexei Starovoitov --- samples/bpf/Makefile | 18 ++

[PATCH v5 0/2] Add CAN FD driver support to r8a7795 SoC

2016-04-28 Thread Ramesh Shanmugasundaram
Hi All, This patch is based on commit "885cc17abad6" of can-next/testing branch Changes since v4: * Rebased to latest can-next/testing branch * Addressed Marc K review comments on v2 patch * Use clk_get_rate() to find ext clock availability. Refer thread (https:

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

2016-04-28 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 v5 1/2] can: rcar_canfd: Add Renesas R-Car CAN FD driver

2016-04-28 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

RE: [PATCH v2] can: rcar_canfd: Add Renesas R-Car CAN FD driver

2016-04-28 Thread Ramesh Shanmugasundaram
Hi Oliver, Thanks :-) Actually it will be v5 patch set & I have sent it now. Marc comments were on old v2 patch. Thanks, Ramesh > -Original Message- > From: Oliver Hartkopp [mailto:socket...@hartkopp.net] > Sent: 28 April 2016 07:28 > To: Ramesh Shanmugasundaram ; > w...@grandegger.com;

Re: [net-next PATCH V4 1/5] samples/bpf: add back functionality to redefine LLC command

2016-04-28 Thread Naveen N. Rao
On 2016/04/28 02:20PM, Jesper Dangaard Brouer wrote: > It is practical to be-able-to redefine the location of the LLVM > command 'llc', because not all distros have a LLVM version with bpf > target support. Thus, it is sometimes required to compile LLVM from > source, and sometimes it is not desir

Re: [net-next PATCH 6/8] mlx4: Add support for inner IPv6 checksum offloads and TSO

2016-04-28 Thread Tariq Toukan
On 27/04/2016 9:05 PM, Alexander Duyck wrote: On 04/27/2016 08:39 AM, Tariq Toukan wrote: On 27/04/2016 12:01 AM, Alexander Duyck wrote: On Tue, Apr 26, 2016 at 1:23 PM, Saeed Mahameed wrote: On Tue, Apr 26, 2016 at 6:50 PM, Alex Duyck wrote: The setup is pretty straight forward. Basica

[PATCH net-next] net: snmp: fix 64bit stats on 32bit arches

2016-04-28 Thread Eric Dumazet
From: Eric Dumazet I accidentally replaced BH disabling by preemption disabling in SNMP_ADD_STATS64() and SNMP_UPD_PO_STATS64() on 32bit builds. For 64bit stats on 32bit arch, we really need to disable BH, since the "struct u64_stats_sync syncp" might be manipulated both from process and BH cont

Re: [net-next PATCH V4 3/5] samples/bpf: add a README file to get users started

2016-04-28 Thread Naveen N. Rao
On 2016/04/28 02:21PM, Jesper Dangaard Brouer wrote: > Getting started with using examples in samples/bpf/ is not > straightforward. There are several dependencies, and specific > versions of these dependencies. > > Just compiling the example tool is also slightly obscure, e.g. one > need to call

Re: [PATCH 3.2 085/115] veth: don’t modify ip_summed; doing so treats packets with bad checksums as good.

2016-04-28 Thread Ben Greear
On 04/28/2016 03:29 AM, Sabrina Dubroca wrote: Hello, 2016-04-27, 17:14:44 -0700, Ben Greear wrote: On 04/27/2016 05:00 PM, Hannes Frederic Sowa wrote: Hi Ben, On Wed, Apr 27, 2016, at 20:07, Ben Hutchings wrote: On Wed, 2016-04-27 at 08:59 -0700, Ben Greear wrote: On 04/26/2016 04:02 PM,

[PATCH net-next] net: ethernet: stmmac: update MDIO support for GMAC4

2016-04-28 Thread Alexandre TORGUE
On new GMAC4 IP, MAC_MDIO_address register has been updated, and bitmaps changed. This patch takes into account those changes. Signed-off-by: Alexandre TORGUE diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c index 06704ca..3f83c3

Re: [PATCH net-next] drivers/net: add 6WIND SHULTI support

2016-04-28 Thread Or Gerlitz
On Thu, Apr 28, 2016, Nicolas Dichtel wrote: > Le 27/04/2016 18:55, David Miller a écrit : >> From: Jiri Pirko >>> The difference is that it this tries to allow userspace crap to mirror >>> setting user does for bridge/ovs. Basically this looks to me like an >>> attempt to enable userspace SDKs

Re: [PATCH net] ip_tunnel: fix preempt warning in ip tunnel creation/updating

2016-04-28 Thread Paolo Abeni
On Thu, 2016-04-28 at 05:09 -0700, Eric Dumazet wrote: > On Thu, 2016-04-28 at 11:04 +0200, Paolo Abeni wrote: > > After the commit e09acddf873b ("ip_tunnel: replace dst_cache with generic > > implementation"), a preemption debug warning is triggered on ip4 > > tunnels updating; the dst cache helpe

[PATCH] net: macb: do not scan PHYs manually

2016-04-28 Thread Nathan Sullivan
Since of_mdiobus_register and mdiobus_register will scan automatically, do not manually scan for PHY devices in the macb ethernet driver. Doing so will result in many nonexistent PHYs on the MDIO bus if the MDIO lines are floating or grounded, such as when they are not used. Signed-off-by: Nathan

Re: [PATCH net v3 0/5] drivers: net: cpsw: phy-handle fixes

2016-04-28 Thread Tony Lindgren
* David Rivshin (Allworx) [160427 18:13]: > From: David Rivshin > > This series fixes a number of related issues around using phy-handle > properties in cpsw emac nodes. > > Patch 1 fixes a bug if more than one slave is used, and either > slave uses the phy-handle property in the devicetree. >

[PATCH net-next] vxlan: fix initialization with custom link parameters

2016-04-28 Thread Jiri Benc
Commit 0c867c9bf84c ("vxlan: move Ethernet initialization to a separate function") changed initialization order and as an unintended result, when the user specifies additional link parameters (such as IFLA_ADDRESS) while creating vxlan interface, those are overwritten by vxlan_ether_setup later. I

Re: [PATCH] net: macb: do not scan PHYs manually

2016-04-28 Thread kbuild test robot
Hi, [auto build test WARNING on v4.6-rc5] [cannot apply to net-next/master next-20160428] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Nathan-Sullivan/net-macb-do-not-scan-PHYs-manually

Re: [net-next PATCH V4 1/5] samples/bpf: add back functionality to redefine LLC command

2016-04-28 Thread Jesper Dangaard Brouer
On Thu, 28 Apr 2016 18:51:33 +0530 "Naveen N. Rao" wrote: > > Add this features back. Note that it is possible to redefine the LLC > > on the make command like: > > > > make samples/bpf/ LLC=~/git/llvm/build/bin/llc > > I don't have an objection to this patch, but you didn't explain why/how

Re: [RFC PATCH V2 2/2] vhost: device IOTLB API

2016-04-28 Thread Michael S. Tsirkin
On Thu, Apr 28, 2016 at 02:37:16PM +0800, Jason Wang wrote: > > > On 04/27/2016 07:45 PM, Michael S. Tsirkin wrote: > > On Fri, Mar 25, 2016 at 10:34:34AM +0800, Jason Wang wrote: > >> This patch tries to implement an device IOTLB for vhost. This could be > >> used with for co-operation with user

[PATCH v2] net: macb: do not scan PHYs manually

2016-04-28 Thread Nathan Sullivan
Since of_mdiobus_register and mdiobus_register will scan automatically, do not manually scan for PHY devices in the macb ethernet driver. Doing so will result in many nonexistent PHYs on the MDIO bus if the MDIO lines are floating or grounded, such as when they are not used. Signed-off-by: Nathan

Re: [net-next PATCH V4 1/5] samples/bpf: add back functionality to redefine LLC command

2016-04-28 Thread Naveen N. Rao
On 2016/04/28 04:40PM, Jesper Dangaard Brouer wrote: > On Thu, 28 Apr 2016 18:51:33 +0530 > "Naveen N. Rao" wrote: > > > > Add this features back. Note that it is possible to redefine the LLC > > > on the make command like: > > > > > > make samples/bpf/ LLC=~/git/llvm/build/bin/llc > > > > I

Re: [PATCH] ip: add udp_csum, udp6_csum_tx, udp6_csum_rx control flags to ip l2tp add tunnel

2016-04-28 Thread James Chapman
Yes, that looks like the problem. The comments in l2tp.h which indicate that the csum attributes are u8 values are wrong. Code in net/l2tp/l2tp_netlink.c accesses these attributes using nla_get_flag(). Please submit a patch to fix l2tp_tunnel_sock_create(). Include good change notes and your sign

Re: [PATCH net-next] vxlan: fix initialization with custom link parameters

2016-04-28 Thread Nicolas Dichtel
Le 28/04/2016 16:36, Jiri Benc a écrit : > Commit 0c867c9bf84c ("vxlan: move Ethernet initialization to a separate > function") changed initialization order and as an unintended result, when the > user specifies additional link parameters (such as IFLA_ADDRESS) while > creating vxlan interface, tho

Re: [PATCH net-next] vxlan: fix ethernet address initialization

2016-04-28 Thread Nicolas Dichtel
Le 28/04/2016 12:04, Nicolas Dichtel a écrit : > Since commit 0c867c9bf84c, when the user specifies an ethernet address with > IFLA_ADDRESS, it's overridden by vxlan_ether_setup() (rtnl_link_ops->setup > is called in rtnetlink.c before handling IFLA_ADDRESS). > > To test it: > ip link add name vxl

Re: [PATCH] net: macb: do not scan PHYs manually

2016-04-28 Thread Josh Cartwright
On Thu, Apr 28, 2016 at 09:19:47AM -0500, Nathan Sullivan wrote: > Since of_mdiobus_register and mdiobus_register will scan automatically, This is only partially true. of_mdiobus_register() only scans for PHYs with device tree presence (starting with nodes which specify an address, then continuin

Re: [PATCH v2] net: macb: do not scan PHYs manually

2016-04-28 Thread Nicolas Ferre
Le 28/04/2016 16:46, Nathan Sullivan a écrit : > Since of_mdiobus_register and mdiobus_register will scan automatically, > do not manually scan for PHY devices in the macb ethernet driver. Doing > so will result in many nonexistent PHYs on the MDIO bus if the MDIO > lines are floating or grounded,

[PATCH net-next v2 2/5] net: rtnetlink: add linkxstats callbacks and attribute

2016-04-28 Thread Nikolay Aleksandrov
Add callbacks to calculate the size and fill link extended statistics which can be split into multiple messages and are dumped via the new rtnl stats API (RTM_GETSTATS) with the IFLA_STATS_LINK_XSTATS attribute. Also add that attribute to the idx mask check since it is expected to be able to save s

[PATCH net-next v2 1/5] net: rtnetlink: allow rtnl_fill_statsinfo to save private state counter

2016-04-28 Thread Nikolay Aleksandrov
The new prividx argument allows the current dumping device to save a private state counter which would enable it to continue dumping from where it left off. And the idxattr is used to save the current idx user so multiple prividx using attributes can be requested at the same time as suggested by Ro

[PATCH net-next v2 3/5] bridge: vlan: RCUify pvid

2016-04-28 Thread Nikolay Aleksandrov
Make pvid a pointer to a vlan struct and RCUify the access to it. Vlans are already RCU-protected so the pvid vlan entry cannot disappear without being initialized to NULL and going through a grace period first. This change is necessary for the upcoming vlan counters and also would serve to later m

[PATCH net-next v2 5/5] bridge: netlink: export per-vlan stats

2016-04-28 Thread Nikolay Aleksandrov
Add a new LINK_XSTATS_TYPE_BRIDGE attribute and implement the RTM_GETSTATS callbacks for IFLA_STATS_LINK_XSTATS (fill_linkxstats and get_linkxstats_size) in order to export the per-vlan stats. The paddings were added because soon these fields will be needed for per-port per-vlan stats (or something

[PATCH net-next v2 0/5] bridge: per-vlan stats

2016-04-28 Thread Nikolay Aleksandrov
Hi, This set adds support for bridge per-vlan statistics. In order to be able to dump statistics for many vlans we need a way to continue dumping after reaching maximum size, thus patches 01 and 02 extend the new stats API with a per-device extended link stats attribute and callback which can save

[PATCH net-next v2 4/5] bridge: vlan: learn to count

2016-04-28 Thread Nikolay Aleksandrov
Add support for per-VLAN Tx/Rx statistics. Every global vlan context gets allocated a per-cpu stats which is then set in each per-port vlan context for quick access. The br_allowed_ingress() common function is used to account for Rx packets and the br_handle_vlan() common function is used to accoun

Re: [PATCH net-next] drivers/net: add 6WIND SHULTI support

2016-04-28 Thread David Miller
From: Nicolas Dichtel Date: Thu, 28 Apr 2016 13:59:34 +0200 > Le 27/04/2016 18:55, David Miller a écrit : >> From: Jiri Pirko > [snip] >>> The difference is that it this tries to allow userspace crap to mirror >>> setting user does for bridge/ovs. Basically this looks to me like an >>> attempt t

[PATCH v4 net-next 0/2] ppp: add rtnetlink support

2016-04-28 Thread Guillaume Nault
PPP devices lack the ability to be customised at creation time. In particular they can't be created in a given netns or with a particular name. Moving or renaming the device after creation is possible, but creates undesirable transient effects on servers where PPP devices are constantly created and

[PATCH v4 net-next 1/2] ppp: define reusable device creation functions

2016-04-28 Thread Guillaume Nault
Move PPP device initialisation and registration out of ppp_create_interface(). This prepares code for device registration with rtnetlink. While there, simplify the prototype of ppp_create_interface(): * Since ppp_dev_configure() takes care of setting file->private_data, there's no need to r

[PATCH v4 net-next 2/2] ppp: add rtnetlink device creation support

2016-04-28 Thread Guillaume Nault
Define PPP device handler for use with rtnetlink. The only PPP specific attribute is IFLA_PPP_DEV_FD. It is mandatory and contains the file descriptor of the associated /dev/ppp instance (the file descriptor which would have been used for ioctl(PPPIOCNEWUNIT) in the ioctl-based API). The PPP device

Re: [PATCH net-next] net: snmp: fix 64bit stats on 32bit arches

2016-04-28 Thread David Miller
From: Eric Dumazet Date: Thu, 28 Apr 2016 06:33:24 -0700 > From: Eric Dumazet > > I accidentally replaced BH disabling by preemption disabling > in SNMP_ADD_STATS64() and SNMP_UPD_PO_STATS64() on 32bit builds. > > For 64bit stats on 32bit arch, we really need to disable BH, > since the "struct

Re: [PATCH net v3 0/5] drivers: net: cpsw: phy-handle fixes

2016-04-28 Thread Grygorii Strashko
On 04/28/2016 04:10 AM, David Rivshin (Allworx) wrote: From: David Rivshin This series fixes a number of related issues around using phy-handle properties in cpsw emac nodes. Patch 1 fixes a bug if more than one slave is used, and either slave uses the phy-handle property in the devicetree. P

Re: [PATCH v2] net: macb: do not scan PHYs manually

2016-04-28 Thread Nathan Sullivan
On Thu, Apr 28, 2016 at 05:44:14PM +0200, Nicolas Ferre wrote: > Le 28/04/2016 16:46, Nathan Sullivan a écrit : > > Since of_mdiobus_register and mdiobus_register will scan automatically, > > do not manually scan for PHY devices in the macb ethernet driver. Doing > > so will result in many nonexist

[PATCH net-next] net: constify is_skb_forwardable's arguments

2016-04-28 Thread Nikolay Aleksandrov
is_skb_forwardable is not supposed to change anything so constify its arguments Signed-off-by: Nikolay Aleksandrov --- Hit this while working on the bridge per-vlan stats and needed to pass a constified skb down. skb_is_gso() already takes a const skb. include/linux/netdevice.h | 3 ++- net/cor

Re: [RFC PATCH net] ipv6/ila: fix nlsize calculation for lwtunnel

2016-04-28 Thread Tom Herbert
On Wed, Apr 27, 2016 at 12:20 PM, David Miller wrote: > From: Nicolas Dichtel > Date: Fri, 22 Apr 2016 17:58:02 +0200 > >> The handler 'ila_fill_encap_info' adds one attribute: ILA_ATTR_LOCATOR. >> >> Fixes: 65d7ab8de582 ("net: Identifier Locator Addressing module") >> CC: Tom Herbert >> Signed-

Re: [RFC PATCH net] ipv6/ila: fix nlsize calculation for lwtunnel

2016-04-28 Thread David Miller
From: Tom Herbert Date: Thu, 28 Apr 2016 09:07:25 -0700 > On Wed, Apr 27, 2016 at 12:20 PM, David Miller wrote: >> From: Nicolas Dichtel >> Date: Fri, 22 Apr 2016 17:58:02 +0200 >> >>> The handler 'ila_fill_encap_info' adds one attribute: ILA_ATTR_LOCATOR. >>> >>> Fixes: 65d7ab8de582 ("net: Ide

Re: [PATCH v2] net: macb: do not scan PHYs manually

2016-04-28 Thread Andrew Lunn
> Hmm, are AT91 platforms special in this regard? As far as I can tell, this > driver (macb) and Marvell PXA are the only ethernet drivers that call > mdiobus_scan directly, and PXA does it on a known address. I do see that there > are trees that use macb and don't have a phy listed, which is unfor

Re: [PATCH net-next] macvtap: add namespace support to the sysfs device class

2016-04-28 Thread Marc Angel
On Mon, Apr 25, 2016 at 8:12 PM, Eric W. Biederman wrote: >> The 'net' device class is isolated between network namespaces so each >> one has its own hierarchy of net devices. >> This isn't the case for the 'macvtap' device class. >> The problem occurs half-way through the netdev registration, whe

Re: [net-next PATCH V4 3/5] samples/bpf: add a README file to get users started

2016-04-28 Thread Alexei Starovoitov
On Thu, Apr 28, 2016 at 02:21:04PM +0200, Jesper Dangaard Brouer wrote: > Getting started with using examples in samples/bpf/ is not > straightforward. There are several dependencies, and specific > versions of these dependencies. > > Just compiling the example tool is also slightly obscure, e.g.

Re: iproute2: bash completion function for tc

2016-04-28 Thread Alexei Starovoitov
On Thu, Apr 28, 2016 at 02:15:29PM +0200, Quentin Monnet wrote: > Hi Alexei, Stephen, > > 2016-04-27 (22:13 UTC-0700) ~ Stephen Hemminger: > > On Wed, 27 Apr 2016 20:19:26 -0700 > > Alexei Starovoitov wrote: > > > >> On Tue, Apr 26, 2016 at 09:28:17AM +0200, Quentin Monnet wrote: > >>> Hi Jamal,

Re: [RFC 07/20] net: dsa: list ports in switch\\

2016-04-28 Thread Florian Fainelli
On 27/04/16 16:15, Andrew Lunn wrote: > On Wed, Apr 27, 2016 at 06:30:04PM -0400, Vivien Didelot wrote: >> List DSA port structures in their switch structure, so that drivers can >> iterate on them to retrieve information such as their ports membership. > > And this would be so much easier using a

[PATCH nf-next 0/9] netfilter: remove per-netns conntrack tables, part 1

2016-04-28 Thread Florian Westphal
[ CCing netdev so netns folks can have a look too ] This patch series removes the per-netns connection tracking tables. All conntrack objects are then stored in one global global table. This avoids the infamous 'vmalloc' when lots of namespaces are used: We no longer allocate a new conntrack tabl

  1   2   3   >