Re: [PATCH net] bpf: fix bpf_skb_in_cgroup helper naming

2016-08-12 Thread Martin KaFai Lau
On Fri, Aug 12, 2016 at 10:17:17PM +0200, Daniel Borkmann wrote: > While hashing out BPF's current_task_under_cgroup helper bits, it came > to discussion that the skb_in_cgroup helper name was suboptimally chosen. > > Tejun says: > > So, I think in_cgroup should mean that the object is in that >

[PATCH net-next v2 10/12] Documentation: dtb: xgene: Add rxlos GPIO mapping

2016-08-12 Thread Iyappan Subramanian
Signed-off-by: Quan Nguyen Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen --- Documentation/devicetree/bindings/net/apm-xgene-enet.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/apm-xgene-enet.txt b/Documentation/devicetree/bindings/

[PATCH net-next v2 06/12] drivers: net: xgene: Change port init sequence

2016-08-12 Thread Iyappan Subramanian
This patch rearranges the port initialization sequence as recommended by hardware specification. This patch also removes, mac_init() call from xgene_enet_link_state(), as it was not required. Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen --- drivers/net/ethernet/apm/xgene/xgene_ene

[PATCH net-next v2 11/12] drivers: net: xgene: Fix backward compatibility

2016-08-12 Thread Iyappan Subramanian
This patch fixes the backward compatibility on handling phy_connect(), by iterating over the phy-handle, when new DT is used with older kernel. Signed-off-by: Iyappan Subramanian --- drivers/net/ethernet/apm/xgene/xgene_enet_hw.c | 18 +- 1 file changed, 9 insertions(+), 9 deleti

[PATCH net-next v2 07/12] drivers: net: xgene: XFI PCS reset when link is down

2016-08-12 Thread Iyappan Subramanian
This patch fixes the link recovery issue, by doing PCS reset when the link is down. Signed-off-by: Fushen Chen Signed-off-by: Iyappan Subramanian --- drivers/net/ethernet/apm/xgene/xgene_enet_hw.h| 6 drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 1 + drivers/net/ethernet/apm/x

[PATCH net-next v2 04/12] drivers: net: xgene: Fix error deconstruction path

2016-08-12 Thread Iyappan Subramanian
Since register_netdev() call in xgene_enet_probe() was moved down to the end, it doesn't properly handle errors that may occur, by deconstructing everything that was setup before the error occurred. Signed-off-by: Iyappan Subramanian --- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 27

[PATCH net-next v2 12/12] dtb: xgene: Fix backward compatibility

2016-08-12 Thread Iyappan Subramanian
This patch fixes the backward compatibility when used with older kernel. Signed-off-by: Iyappan Subramanian --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.d

[PATCH net-next v2 09/12] dtb: xgene: Add rxlos-gpios property

2016-08-12 Thread Iyappan Subramanian
Added rxlos GPIO mapping by adding rxlos-gpios property. Signed-off-by: Quan Nguyen Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen --- arch/arm64/boot/dts/apm/apm-mustang.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/apm/apm-mustang.dts b/arch/arm64/bo

[PATCH net-next v2 00/12] Fix warning and issues

2016-08-12 Thread Iyappan Subramanian
This patch set fixes the following warning and issues, 1. Fix compiler warnings - drivers: net: xgene: Fix compiler warnings 2. unmap DMA memory on xgene_Enet_delete_bufpoool() - drivers: net: xgene: fix: Add dma_unmap_single 3. Delete descriptor rings and buffer pools on er

[PATCH net-next v2 08/12] drivers: net: xgene: Poll link status via GPIO

2016-08-12 Thread Iyappan Subramanian
When 10GbE SFP+ module is not plugged in or cable is not connected, the link status register does not report the proper state due to floating signal. This patch checks the module present status via an GPIO to determine whether to ignore the link status register and report link down. Signed-off-by:

[PATCH net-next v2 01/12] drivers: net: xgene: Fix compiler warnings

2016-08-12 Thread Iyappan Subramanian
Fixed compiler warnings reported with -Wmaybe-uninitialized W=1, /drivers/net/ethernet/apm/xgene/xgene_enet_main.c: In function ‘xgene_enet_rx_frame’: ../drivers/net/ethernet/apm/xgene/xgene_enet_main.c:455:27: warning: variable ‘pdata’ set but not used [-Wunused-but-set-variable]

[PATCH net-next v2 05/12] drivers: net: xgene: Fix RSS indirection table fields

2016-08-12 Thread Iyappan Subramanian
This patch fixes FPSel and NxtFPSel fields length to 5-bit value. Signed-off-by: Quan Nguyen Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen --- drivers/net/ethernet/apm/xgene/xgene_enet_cle.c | 17 - drivers/net/ethernet/apm/xgene/xgene_enet_cle.h | 10 +++--- 2

[PATCH net-next v2 02/12] drivers: net: xgene: fix: Add dma_unmap_single

2016-08-12 Thread Iyappan Subramanian
In addition to xgene_enet_delete_bufpool() freeing skbs, their associated dma memory should also be unmapped. Signed-off-by: Iyappan Subramanian --- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/net/et

[PATCH net-next v2 03/12] drivers: net: xgene: fix: Delete descriptor rings and buffer pools

2016-08-12 Thread Iyappan Subramanian
xgene_enet_init_hw() should delete any descriptor rings and buffer pools setup should le_ops->cle_init() return an error. Signed-off-by: Iyappan Subramanian --- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drive

Re: [PATCH net] bpf: fix bpf_skb_in_cgroup helper naming

2016-08-12 Thread David Miller
From: Daniel Borkmann Date: Fri, 12 Aug 2016 22:17:17 +0200 > While hashing out BPF's current_task_under_cgroup helper bits, it came > to discussion that the skb_in_cgroup helper name was suboptimally chosen. > > Tejun says: > > So, I think in_cgroup should mean that the object is in that >

Re: [PATCH net-next 0/3] bpf improvements

2016-08-12 Thread David Miller
From: Alexei Starovoitov Date: Thu, 11 Aug 2016 18:17:15 -0700 > Two bpf improvements: > 1. allow bpf helpers like bpf_map_lookup_elem() access packet data directly > for XDP programs > 2. enable bpf_get_prandom_u32() for tracing programs Series applied, thanks.

Re: [PATCH -next] sit: make function ipip6_valid_ip_proto() static

2016-08-12 Thread David Miller
From: Wei Yongjun Date: Sat, 13 Aug 2016 01:54:15 + > Fixes the following sparse warning: > > net/ipv6/sit.c:1129:6: warning: > symbol 'ipip6_valid_ip_proto' was not declared. Should it be static? > > Signed-off-by: Wei Yongjun Applied.

Re: [PATCH net-next v5 0/3] Add test_current_task_under_cgroup bpf helper and test

2016-08-12 Thread David Miller
From: Sargun Dhillon Date: Fri, 12 Aug 2016 08:54:35 -0700 > This patchset includes a helper and an example to determine whether the probe > is > currently executing in the context of a specific cgroup based on a cgroup bpf > map / array. The helper checks the cgroupsv2 hierarchy based on the ha

Re: [PATCH 3/5] net: add udp limit to net cgroup

2016-08-12 Thread Alexei Starovoitov
On Wed, Aug 10, 2016 at 05:53:16PM -0700, Anoop Naravaram wrote: > udp port limit > -- > This property controls the limit of udp ports that can be used by the > processes in a cgroup. The controller manages udp statistics (usage, > limit, etc) for each cgroup. Every cgroup also keeps tr

Re: [PATCH 5/5] net: add test for net cgroup

2016-08-12 Thread Alexei Starovoitov
On Wed, Aug 10, 2016 at 05:53:18PM -0700, Anoop Naravaram wrote: > Created a file scripts/cgroup/net_cgroup_test.py that tests the > functionality of the net cgroup as described in previous commit logs. > > Signed-off-by: Anoop Naravaram > --- > scripts/cgroup/net_cgroup_test.py | 359 > +++

Re: [PATCH 2/5] net: add bind/listen ranges to net cgroup

2016-08-12 Thread Alexei Starovoitov
On Wed, Aug 10, 2016 at 05:53:15PM -0700, Anoop Naravaram wrote: > bind port ranges > > This property controls which ports the processes in a cgroup are allowed > to bind to. If a process in a cgroup tries to bind a socket to a port > that is not within the range(s) permitted by th

Re: [PATCH net] sctp: fix a success return may hide an error

2016-08-12 Thread David Miller
From: Xin Long Date: Thu, 11 Aug 2016 20:52:58 +0800 > Now in the end of sctp_outq_flush, sctp calls sctp_packet_transmit > in a loop. The return of current sctp_packet_transmit always covers > the prior one's. If the last call of sctp_packet_transmit return a > success, it may hide the error tha

Re: [PATCH 00/19] pull request for net-next: batman-adv 2016-08-12

2016-08-12 Thread David Miller
From: Simon Wunderlich Date: Fri, 12 Aug 2016 10:56:36 +0200 > this is our first feature pull request for batman-adv, there are at least two > more to come (the bigger features come later). > > Please pull or let me know of any problem! Pulled, thanks.

Re: [PATCH net-next 0/6] sfc: SFN8000 support improvements

2016-08-12 Thread David Miller
From: Bert Kenward Date: Thu, 11 Aug 2016 12:59:20 +0100 > This series improves support for the recently released SFN8000 series > of adapters. Specifically, it retrieves interrupt moderation timer > settings directly from the adapter and uses those settings. It also > uses a new event queue init

Re: [PATCH net 2/4] hv_netvsc: reset vf_inject on VF removal

2016-08-12 Thread David Miller
From: Vitaly Kuznetsov Date: Thu, 11 Aug 2016 12:58:55 +0200 > We reset vf_inject on VF going down (netvsc_vf_down()) but we don't on > VF removal (netvsc_unregister_vf()) so vf_inject stays 'true' while > vf_netdev is already NULL and we're trying to inject packets into NULL > net device in netv

Re: [PATCH] net: ethernet: mediatek: enhance the locking using the lightweight ones

2016-08-12 Thread David Miller
From: Date: Thu, 11 Aug 2016 17:51:00 +0800 > From: Sean Wang > > Since these critical sections protected by page_lock are all entered > from the user context or bottom half context, they can be replaced > with the spin_lock() or spin_lock_bh instead of spin_lock_irqsave(). > > Signed-off-by:

[PATCH -next] sit: make function ipip6_valid_ip_proto() static

2016-08-12 Thread Wei Yongjun
Fixes the following sparse warning: net/ipv6/sit.c:1129:6: warning: symbol 'ipip6_valid_ip_proto' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- net/ipv6/sit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index 696ed

Re: [PATCH 2/9] dsa: mv88e6xxx: hide unused functions

2016-08-12 Thread David Miller
From: Arnd Bergmann Date: Wed, 10 Aug 2016 23:54:08 +0200 > When CONFIG_NET_DSA_HWMON is disabled, we get warnings about two unused > functions whose only callers are all inside of an #ifdef: > > drivers/net/dsa/mv88e6xxx.c:3257:12: 'mv88e6xxx_mdio_page_write' defined but > not used [-Werror=un

Re: [PATCH v2 1/1] VSOCK: remove more space available check filling TX vq

2016-08-12 Thread David Miller
From: ggar...@abra.uab.cat Date: Wed, 10 Aug 2016 17:24:34 +0200 > From: Gerard Garcia > > Remove unnecessary use of enable/disable callback notifications > and the incorrect more space available check. > > The virtio_transport_tx_work handles when the TX virtqueue > has more buffers available.

[PATCH v2 2/2] wcn36xx: Implement firmware assisted scan

2016-08-12 Thread Bjorn Andersson
Using the software based channel scan mechanism from mac80211 keeps us offline for 10-15 second, we should instead issue a start_scan/end_scan on each channel reducing this time. Signed-off-by: Bjorn Andersson --- It's been a while since I posted this as an RFC, I have not received any comments

[PATCH v2 1/2] wcn36xx: Transition driver to SMD client

2016-08-12 Thread Bjorn Andersson
The wcn36xx wifi driver follows the life cycle of the WLAN_CTRL SMD channel, as such it should be a SMD client. This patch makes this transition, now that we have the necessary frameworks available. Signed-off-by: Bjorn Andersson --- Resending this as the dependencies and the devicetree binding

Re: [PATCH net-next V4] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-08-12 Thread David Miller
From: Netanel Belgazal Date: Wed, 10 Aug 2016 14:03:22 +0300 > This is a driver for the ENA family of networking devices. > > Signed-off-by: Netanel Belgazal Applied, thanks.

Re: [PATCH v6 0/3] net: phy: Add xilinx gmiitorgmii converter support

2016-08-12 Thread David Miller
From: Kedareswara rao Appana Date: Wed, 10 Aug 2016 11:20:05 +0530 > The Gigabit Media Independent Interface (GMII) to Reduced Gigabit Media > Independent Interface (RGMII) core provides the RGMII between RGMII-compliant > Ethernet physical media devices (PHY) and the Gigabit Ethernet controller.

Re: [PATCH] bpf: fix size of copy_to_user in percpu map.

2016-08-12 Thread Alexei Starovoitov
On Fri, Aug 12, 2016 at 09:58:51AM -0700, William Tu wrote: > Hi, > > I've tested on ESXi version 5.5 and it seems OK. > - VM1: Ubuntu 14.04, kernel 3.19 ---> OK 3 cpu dirs, possible = 0-2 > - VM2: Centos7, kernel 3.10 ---> OK 8 cpu dirs, possible = 0-7 > > I tried another MacBook with Fusion, sa

Re: [PATCH net] bpf: fix bpf_skb_in_cgroup helper naming

2016-08-12 Thread Alexei Starovoitov
On Fri, Aug 12, 2016 at 10:17:17PM +0200, Daniel Borkmann wrote: > While hashing out BPF's current_task_under_cgroup helper bits, it came > to discussion that the skb_in_cgroup helper name was suboptimally chosen. > > Tejun says: > > So, I think in_cgroup should mean that the object is in that

Re: [iproute PATCH] ip-route: Pretty-print expired routes

2016-08-12 Thread Phil Sutter
On Fri, Aug 12, 2016 at 12:58:15PM -0700, Stephen Hemminger wrote: > On Thu, 11 Aug 2016 15:54:50 +0200 > Phil Sutter wrote: > > > On Thu, Aug 11, 2016 at 02:46:26PM +0100, Edward Cree wrote: > > > On 10/08/16 12:14, Phil Sutter wrote: > > > > Instead of printing 'expires -23sec' for expired (b

Re: Aw: [PATCH] [v8] net: emac: emac gigabit ethernet controller driver

2016-08-12 Thread Timur Tabi
Lino Sanfilippo wrote: You can either extend the refill function by one gfp_t parameter and then call it with GFP_KERNEL for the initial rx buffer allocation when the hw is brought up and then with GFP_ATOMIC for refilling in the NAPI handler. Or simply always use GFP_ATOMIC. In the latter cas

[PATCH] net: phy: initialize rc to zero to avoid returning garbage value

2016-08-12 Thread Colin King
From: Colin Ian King In the case where phydev->interrupts is not PHY_INTERRUPT_ENABLED function vsc85xx_ack_interrupt is returning an uninitialized garbage value. Fix this by initializing rc to zero. Signed-off-by: Colin Ian King --- drivers/net/phy/mscc.c | 2 +- 1 file changed, 1 insertion(

Aw: [PATCH] [v8] net: emac: emac gigabit ethernet controller driver

2016-08-12 Thread Lino Sanfilippo
Hi, I really dont want to be a killjoy, but... > + int ret; > + > + skb = __netdev_alloc_skb_ip_align(adpt->netdev, > + adpt->rxbuf_size, GFP_KERNEL); This is also called in softirq context by the napi handler in which GFP_KER

[PATCH net] bpf: fix bpf_skb_in_cgroup helper naming

2016-08-12 Thread Daniel Borkmann
While hashing out BPF's current_task_under_cgroup helper bits, it came to discussion that the skb_in_cgroup helper name was suboptimally chosen. Tejun says: So, I think in_cgroup should mean that the object is in that particular cgroup while under_cgroup in the subhierarchy of that cgroup.

Re: [PATCH iproute v3 2/5] ila: Support for configuring ila to use netfilter hook

2016-08-12 Thread Stephen Hemminger
On Tue, 9 Aug 2016 14:41:36 -0700 Tom Herbert wrote: > Signed-off-by: Tom Herbert > --- > ip/Makefile| 2 +- > ip/ip.c| 3 +- > ip/ip_common.h | 1 + > ip/ipila.c | 268 > + > 4 files changed, 272 insertions(+), 2 de

Re: [iproute PATCH] ip-route: Pretty-print expired routes

2016-08-12 Thread Stephen Hemminger
On Thu, 11 Aug 2016 15:54:50 +0200 Phil Sutter wrote: > On Thu, Aug 11, 2016 at 02:46:26PM +0100, Edward Cree wrote: > > On 10/08/16 12:14, Phil Sutter wrote: > > > Instead of printing 'expires -23sec' for expired (but not yet garbage > > > collected) routes, print 'expired 23sec' instead. > >

Re: [PATCH iproute v3 0/5] iproute: ila and fou additions

2016-08-12 Thread Stephen Hemminger
On Tue, 9 Aug 2016 14:41:34 -0700 Tom Herbert wrote: > Patch set includes: > > - Allow configuring checksum mode for ila LWT (e.g. configure > checksum neutral > - Configuration for performing ila translations using netfilter hook > - fou encapsulation for ip6tnl and gre6 > - fou listener for

Re: [PATCH iproute2 2/2] tipc: refactor bearer identification

2016-08-12 Thread Stephen Hemminger
On Tue, 9 Aug 2016 10:34:30 +0200 Richard Alpe wrote: > Introduce a generic function (nl_add_bearer_name()) that identifies a > bearer and adds it to an existing netlink message. This reduces code > complexity and makes the code a little bit easier to maintain. > > Signed-off-by: Richard Alpe

Re: [PATCH net-next V2 08/18] liquidio: CN23XX queue manipulation

2016-08-12 Thread Joe Perches
On Fri, 2016-08-12 at 11:20 -0700, Raghu Vatsavayi wrote: > This patch adds support for cn23xx queue manipulation. trivia: > diff --git a/drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c > b/drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c [] > @@ -315,6 +315,52 @@ static void cn23

Re: [PATCH net-next V2 02/18] liquidio: Firmware version management

2016-08-12 Thread Joe Perches
On Fri, 2016-08-12 at 11:20 -0700, Raghu Vatsavayi wrote: > This patch contains changes for firmware version management. trivial note: > diff --git a/drivers/net/ethernet/cavium/liquidio/liquidio_common.h > b/drivers/net/ethernet/cavium/liquidio/liquidio_common.h [] > @@ -30,10 +30,26 @@ >   >  

Re: [PATCH net-next V2 01/18] liquidio: Consolidate common functionality

2016-08-12 Thread Joe Perches
On Fri, 2016-08-12 at 11:20 -0700, Raghu Vatsavayi wrote: > Consolidate common functionality of various devices > from different files into lio_core.c/octeon_console.c. trivial notes: > diff --git a/drivers/net/ethernet/cavium/liquidio/lio_core.c > b/drivers/net/ethernet/cavium/liquidio/lio_core

Re: PROBLEM: TPROXY and DNAT broken (bisected to 079096f103fa)

2016-08-12 Thread Florian Westphal
Brandon Cazander wrote: > Is there anything I can provide or do to help get this issue fixed? Even with > the patch provided, our application is still broken. [..] > I think that it is worth doing, as the original kernel change broke my user > space program and could do the same to others as w

Re: [PATCH RFCv2] net: ethernet: macb: Add support for rx_clk

2016-08-12 Thread Rob Herring
On Fri, Aug 12, 2016 at 03:46:19PM +0530, Shubhrajyoti Datta wrote: > Some of the platforms like zynqmp ultrascale+ has a > separate clock gate for the rx clock. Add an optional > rx_clk so that the clock can be enabled. > > Signed-off-by: Shubhrajyoti Datta > --- > v2: > fix warning > > Docume

Re: [PATCH 2/4] net: hix5hd2_gmac: add reset control and clock signals

2016-08-12 Thread Rob Herring
On Thu, Aug 11, 2016 at 05:01:53PM +0800, Dongpo Li wrote: > From: Li Dongpo > > Add three reset control signals, "mac_core_rst", "mac_ifc_rst" and > "phy_rst". > The following diagram explained how the reset signals work. > > SoC > |--

Re: [PATCH] [v8] net: emac: emac gigabit ethernet controller driver

2016-08-12 Thread Rob Herring
On Thu, Aug 11, 2016 at 04:34:05PM -0500, Timur Tabi wrote: > Add supports for ethernet controller HW on Qualcomm Technologies, Inc. SoC. > This driver supports the following features: > 1) Checksum offload. > 2) Interrupt coalescing support. > 3) SGMII phy. > 4) phylib interface for external phy >

[PATCH net-next V2 00/18] liquidio CN23XX support

2016-08-12 Thread Raghu Vatsavayi
Dave, Following patchset adds support for new device CN23XX in liquidio family of adapters. This V2 patch also resolved all the comments from previous submission: 1) All cross compile issues reported by kbuild on SPARC, Tile, ARM platfroms. 2) Refcount issue reported by kbuild. 3) Some minor is

[PATCH net-next V2 17/18] liquidio: CN23XX napi support

2016-08-12 Thread Raghu Vatsavayi
This patch adds NAPI related support for cn23xx device. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- drivers/net/ethernet/cavium/liquidio/lio_main.c | 10 ++ drivers/net/ethernet/cavium/liquidio/octeo

[PATCH net-next V2 14/18] liquidio: CN23XX octeon3 instruction

2016-08-12 Thread Raghu Vatsavayi
Adds support for data path related changes based on octeon3 instruction header(ih3) for cn23xx. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- drivers/net/ethernet/cavium/liquidio/lio_main.c| 35 +++-- .../net/

[PATCH net-next V2 12/18] liquidio: RX control commands

2016-08-12 Thread Raghu Vatsavayi
Adds support for RX control commands on cn23xx device. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- drivers/net/ethernet/cavium/liquidio/lio_main.c| 100 ++--- .../net/ethernet/cavium/liquidio/

[PATCH net-next V2 18/18] liquidio:CN23XX pause frame support

2016-08-12 Thread Raghu Vatsavayi
Adds support for pause frame and priv flag for cn23xx device. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- drivers/net/ethernet/cavium/liquidio/lio_ethtool.c | 110 + drivers/net/ethernet/caviu

[PATCH net-next V2 13/18] liquidio: CN23XX IQ access

2016-08-12 Thread Raghu Vatsavayi
Adds support for Instruction Queue(IQ) index manipulation routines through bar1 of cn23xx. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- .../ethernet/cavium/liquidio/cn23xx_pf_device.c| 66 +

[PATCH net-next V2 01/18] liquidio: Consolidate common functionality

2016-08-12 Thread Raghu Vatsavayi
Consolidate common functionality of various devices from different files into lio_core.c/octeon_console.c. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- drivers/net/ethernet/cavium/liquidio/Makefile | 23 +-

Re: [PATCH v1 1/1] pptp: Refactor the struct and macros of PPTP codes

2016-08-12 Thread Philp Prindeville
On 08/12/2016 10:30 AM, f...@48lvckh6395k16k5.yundunddos.com wrote: From: Gao Feng 1. Use struct gre_base_hdr directly in pptp_gre_header instead of duplicated members; 2. Use existing macros like GRE_KEY, GRE_SEQ, and so on instead of duplicated macros defined by PPTP; 3. Add new macros like

[PATCH net-next V2 08/18] liquidio: CN23XX queue manipulation

2016-08-12 Thread Raghu Vatsavayi
This patch adds support for cn23xx queue manipulation. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- .../ethernet/cavium/liquidio/cn23xx_pf_device.c| 193 + drivers/net/ethernet/cavium/liqui

[PATCH net-next V2 16/18] liquidio: CN23XX health monitoring

2016-08-12 Thread Raghu Vatsavayi
Adds support for watchdog based health monitoring of octeon cores on cn23xx device. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- drivers/net/ethernet/cavium/liquidio/lio_main.c| 124 - .../

[PATCH net-next V2 02/18] liquidio: Firmware version management

2016-08-12 Thread Raghu Vatsavayi
This patch contains changes for firmware version management. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- drivers/net/ethernet/cavium/liquidio/lio_main.c| 12 ++-- .../net/ethernet/cavium/liquidio/liqu

Re: PROBLEM: TPROXY and DNAT broken (bisected to 079096f103fa)

2016-08-12 Thread Brandon Cazander
Is there anything I can provide or do to help get this issue fixed? Even with the patch provided, our application is still broken. -Brandon From: Brandon Cazander Sent: Wednesday, August 3, 2016 8:47 AM To: Florian Westphal Cc: netdev@vger.kernel.org Subject: Re: PROBLEM: TPROXY and DNAT broken

[PATCH net-next V2 11/18] liquidio: link and control commands

2016-08-12 Thread Raghu Vatsavayi
This patch adds work queue support for link status and control commands. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- drivers/net/ethernet/cavium/liquidio/lio_core.c| 5 +- drivers/net/ethernet/cavium/liquidi

Re: [PATCH 1/4] net: hix5hd2_gmac: add tx scatter-gather feature

2016-08-12 Thread Rob Herring
On Thu, Aug 11, 2016 at 05:01:52PM +0800, Dongpo Li wrote: > From: Li Dongpo > > The "hix5hd2" is SoC name, add the generic ethernet driver name. > The "hisi-gemac-v1" is the basic version and "hisi-gemac-v2" adds > the SG/TXCSUM/TSO/UFO features. > This patch only adds the SG(scatter-gather) dri

Re: [PATCH 1/3] net: stmmac: dwmac-rk: add rk3366 & rk3399 specific data

2016-08-12 Thread Rob Herring
On Thu, Aug 11, 2016 at 10:12:44AM +0200, Heiko Stübner wrote: > Hi Roger, > > Am Donnerstag, 11. August 2016, 15:24:46 schrieb Roger Chen: > > Add constants and callback functions for the dwmac on rk3228/rk3229 socs. > > As can be seen, the base structure is the same, only registers and the > > b

[PATCH net-next V2 15/18] liquidio: ethtool and led control support

2016-08-12 Thread Raghu Vatsavayi
This patch adds support for LED identification and ethtool based statistics for cn23xx device. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- .../ethernet/cavium/liquidio/cn23xx_pf_device.h| 2 + drivers/net/e

[PATCH net-next V2 05/18] liquidio: CN23XX queue definitions

2016-08-12 Thread Raghu Vatsavayi
Add support for cn23xx specific queue definitions and features. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- drivers/net/ethernet/cavium/Kconfig| 4 +- .../ethernet/cavium/liquidio/cn23xx_pf_devi

[PATCH net-next V2 06/18] liquidio: CN23XX device init and sriov config

2016-08-12 Thread Raghu Vatsavayi
Add support for cn23xx device init and sriov queue config. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- drivers/net/ethernet/cavium/liquidio/Makefile | 1 + .../ethernet/cavium/liquidio/cn23xx_pf_device.c

[PATCH net-next V2 10/18] liquidio: CN23XX firmware download

2016-08-12 Thread Raghu Vatsavayi
Add firmware download support for cn23xx device. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- .../ethernet/cavium/liquidio/cn23xx_pf_device.c| 40 +++ .../ethernet/cavium/liquidio/cn23xx_pf_device.h|

[PATCH net-next V2 07/18] liquidio: CN23XX register setup

2016-08-12 Thread Raghu Vatsavayi
Adds support for initializing cn23xx device registers related to mac, input/output and pf global config. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- .../ethernet/cavium/liquidio/cn23xx_pf_device.c| 295 ++

[PATCH net-next V2 09/18] liquidio: MSIX support for CN23XX

2016-08-12 Thread Raghu Vatsavayi
This patch adds support msix interrupt for cn23xx device. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- .../ethernet/cavium/liquidio/cn23xx_pf_device.c| 174 -- .../net/ethernet/cavium/liquidio/cn66

[PATCH net-next V2 04/18] liquidio: CN23XX register definitions

2016-08-12 Thread Raghu Vatsavayi
This patch adds register definitions and structures for new device cn23xx. Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- .../net/ethernet/cavium/liquidio/cn23xx_pf_regs.h | 602 + 1 file change

[PATCH net-next V2 03/18] liquidio: Common enable irq function

2016-08-12 Thread Raghu Vatsavayi
Add support of common irq enable functionality for both iq(instruction queue) and oq(output queue). Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla Signed-off-by: Felix Manlunas Signed-off-by: Raghu Vatsavayi --- drivers/net/ethernet/cavium/liquidio/lio_main.c| 1 + .../net/e

[PATCH] rhashtable: fix shift by 64 when shrinking

2016-08-12 Thread Vegard Nossum
I got this: UBSAN: Undefined behaviour in ./include/linux/log2.h:63:13 shift exponent 64 is too large for 64-bit type 'long unsigned int' CPU: 1 PID: 721 Comm: kworker/1:1 Not tainted 4.8.0-rc1+ #87

Re: [PATCH net v2] gre: set inner_protocol on xmit

2016-08-12 Thread pravin shelar
On Fri, Aug 12, 2016 at 8:14 AM, Simon Horman wrote: > Ensure that the inner_protocol is set on transmit so that GSO segmentation, > which relies on that field, works correctly. > > I have observed this is not the case when OvS transmits GRE using > lwtunnel metadata (which it always does). > > Fi

[PATCH 6/6] net: virtio-net: Convert to hotplug state machine

2016-08-12 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. The driver supports multiple instances and therefore the new cpuhp_state_add_instance_nocalls() infrastrucure is used. The driver currently uses get_online_cpus() to avoid missing a CPU hotplug event while invoking virtnet_set_affinity(). This could be a

Re: [PATCH -next] qed: Fix possible memory leak in qed_dcbnl_get_ieee_pfc()

2016-08-12 Thread David Miller
From: Sudarsana Kalluru Date: Fri, 12 Aug 2016 05:00:40 + > Thanks for the patch. > > Acked-by: Sudarsana Reddy Kalluru Please do not quote patches like this, and top-post your Ack. Please instead use canonical quoting, with some kind of delimiter in the first column of the quoted materia

Re: [PATCH] net: ipv6: Do not keep IPv6 addresses when IPv6 is disabled

2016-08-12 Thread David Ahern
On 8/12/16 5:02 AM, Mike Manning wrote: > If IPv6 is disabled when the option is set to keep IPv6 > addresses on link down, userspace is unaware of this as > there is no such indication via netlink. The solution is to > remove the IPv6 addresses in this case, which results in > netlink messages ind

Re: [PATCH] bpf: fix size of copy_to_user in percpu map.

2016-08-12 Thread William Tu
Hi, I've tested on ESXi version 5.5 and it seems OK. - VM1: Ubuntu 14.04, kernel 3.19 ---> OK 3 cpu dirs, possible = 0-2 - VM2: Centos7, kernel 3.10 ---> OK 8 cpu dirs, possible = 0-7 I tried another MacBook with Fusion, same issue happens, the cpu[0-9] dirs are not equal to /sys/devices/system/c

[PATCH v1 1/1] pptp: Refactor the struct and macros of PPTP codes

2016-08-12 Thread fgao
From: Gao Feng 1. Use struct gre_base_hdr directly in pptp_gre_header instead of duplicated members; 2. Use existing macros like GRE_KEY, GRE_SEQ, and so on instead of duplicated macros defined by PPTP; 3. Add new macros like GRE_IS_ACK/SEQ and so on instead of PPTP_GRE_IS_A/S and so on; Signed-

Re: [PATCH net-next v5 2/3] bpf: Add bpf_current_task_under_cgroup helper

2016-08-12 Thread Daniel Borkmann
On 08/12/2016 05:56 PM, Sargun Dhillon wrote: This adds a bpf helper that's similar to the skb_in_cgroup helper to check whether the probe is currently executing in the context of a specific subset of the cgroupsv2 hierarchy. It does this based on membership test for a cgroup arraymap. It is inva

[PATCH net v2] net: ipv6: Fix ping to link-local addresses.

2016-08-12 Thread Lorenzo Colitti
ping_v6_sendmsg does not set flowi6_oif in response to sin6_scope_id or sk_bound_dev_if, so it is not possible to use these APIs to ping an IPv6 address on a different interface. Instead, it sets flowi6_iif, which is incorrect but harmless. Stop setting flowi6_iif, and support various ways of sett

Re: [PATCH net-next v5 3/3] samples/bpf: Add test_current_task_under_cgroup test

2016-08-12 Thread Alexei Starovoitov
On Fri, Aug 12, 2016 at 08:57:04AM -0700, Sargun Dhillon wrote: > This test has a BPF program which writes the last known pid to call the > sync syscall within a given cgroup to a map. > > The user mode program creates its own mount namespace, and mounts the > cgroupsv2 hierarchy in there, as on

Re: [PATCH net] net: ipv6: Fix ping to link-local addresses.

2016-08-12 Thread David Ahern
On 8/12/16 9:45 AM, Lorenzo Colitti wrote: > On Wed, Aug 10, 2016 at 7:44 AM, YOSHIFUJI Hideaki > wrote: >> I could see a point of view that says when bound_if is in play sending to destinations on/via other interfaces--by any mechanism--should effectively get ENETUNREACH (or someth

[PATCH net-next v5 0/3] Add test_current_task_under_cgroup bpf helper and test

2016-08-12 Thread Sargun Dhillon
This patchset includes a helper and an example to determine whether the probe is currently executing in the context of a specific cgroup based on a cgroup bpf map / array. The helper checks the cgroupsv2 hierarchy based on the handle in the map and if the current cgroup is equal to it, or a descend

Re: [4.4-RT PATCH RFC/RFT] drivers: net: cpsw: mark rx/tx irq as IRQF_NO_THREAD

2016-08-12 Thread Grygorii Strashko
Hi Sebastian, On 08/12/2016 11:32 AM, Sebastian Andrzej Siewior wrote: > On 2016-08-11 19:15:40 [+0300], Grygorii Strashko wrote: >> Mark CPSW Rx/Tx IRQs as IRQF_NO_THREAD and avoid double scheduling on -RT >> where this IRQs are forced threaded: >> rx-irq >> |- schedule threaded rx-irq handler

[PATCH net-next v5 3/3] samples/bpf: Add test_current_task_under_cgroup test

2016-08-12 Thread Sargun Dhillon
This test has a BPF program which writes the last known pid to call the sync syscall within a given cgroup to a map. The user mode program creates its own mount namespace, and mounts the cgroupsv2 hierarchy in there, as on all current test systems (Ubuntu 16.04, Debian), the cgroupsv2 vfs is unmo

[PATCH net-next v5 2/3] bpf: Add bpf_current_task_under_cgroup helper

2016-08-12 Thread Sargun Dhillon
This adds a bpf helper that's similar to the skb_in_cgroup helper to check whether the probe is currently executing in the context of a specific subset of the cgroupsv2 hierarchy. It does this based on membership test for a cgroup arraymap. It is invalid to call this in an interrupt, and it'll retu

[PATCH net-next v5 1/3] cgroup: Add task_under_cgroup_hierarchy cgroup inline function to headers

2016-08-12 Thread Sargun Dhillon
This commit adds an inline function to cgroup.h to check whether a given task is under a given cgroup hierarchy. This is to avoid having to put ifdefs in .c files to gate access to cgroups. When cgroups are disabled this always returns true. Signed-off-by: Sargun Dhillon Cc: Alexei Starovoitov C

[PATCH -next] net: dsa: b53: remove .owner and .bus fields for driver

2016-08-12 Thread Wei Yongjun
Remove .owner and .bus fields since module_spi_driver() is used which set them automatically. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Wei Yongjun --- drivers/net/dsa/b53/b53_spi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/dsa/b53/b5

Re: [PATCH net] net: ipv6: Fix ping to link-local addresses.

2016-08-12 Thread Lorenzo Colitti
On Wed, Aug 10, 2016 at 7:44 AM, YOSHIFUJI Hideaki wrote: > > >> I could see a point of view that says when bound_if is in play sending > >> to destinations on/via other interfaces--by any mechanism--should > >> effectively get ENETUNREACH (or something). > > > > VRF uses this capability to send o

[PATCH -next] net: macb: add missing free_netdev() on error in macb_probe()

2016-08-12 Thread Wei Yongjun
Add the missing free_netdev() before return from function macb_probe() in the platform_get_irq() error handling case. Fixes: c69618b3e4f2 ("net/macb: fix probe sequence to setup clocks earlier") Signed-off-by: Wei Yongjun --- drivers/net/ethernet/cadence/macb.c | 2 +- 1 file changed, 1 insertio

Re: [PATCH iproute2] ip route: restore_handler should check tb[RTA_PREFSRC] for local networks

2016-08-12 Thread Phil Sutter
On Sun, Aug 07, 2016 at 05:12:30PM +0800, Xin Long wrote: > Prior to this patch, If one route entry's RTA_PREFSRC and RTA_GATEWAY > both were NULL, it was supposed to be restored ONLY as a local address. > > But as it didn't check tb[RTA_PREFSRC] when restoring local networks, > rtattr_cmp would r

Re: [PATCH net-next v4 2/3] bpf: Add bpf_current_task_under_cgroup helper

2016-08-12 Thread Tejun Heo
Hello, Alexei. On Fri, Aug 12, 2016 at 08:21:21AM -0700, Alexei Starovoitov wrote: > > lol I should have read the whole thread before replying twice. Sorry > > about that. Yeah, if we can still rename it, let's do "under". It's > > more intuitive and gives us the room to implement the real "in"

Re: [PATCH net-next v4 2/3] bpf: Add bpf_current_task_under_cgroup helper

2016-08-12 Thread Alexei Starovoitov
On Fri, Aug 12, 2016 at 09:29:35AM -0400, Tejun Heo wrote: > Hello, > > On Fri, Aug 12, 2016 at 09:40:39AM +0200, Daniel Borkmann wrote: > > > I actually wish we could rename skb_in_cgroup to skb_under_cgroup. If we > > > ever > > > introduced a check for absolute membership versus ancestral memb

Re: [PATCH/RFC net] gre: set inner_protocol on xmit

2016-08-12 Thread Simon Horman
On Fri, Aug 12, 2016 at 08:07:00AM -0700, Alexander Duyck wrote: > On Fri, Aug 12, 2016 at 2:46 AM, Simon Horman > wrote: > > Ensure that the inner_protocol is set on transmit so that GSO segmentation, > > which relies on that field, works correctly. > > > > I have observed this is not the case wh

[PATCH net v2] gre: set inner_protocol on xmit

2016-08-12 Thread Simon Horman
Ensure that the inner_protocol is set on transmit so that GSO segmentation, which relies on that field, works correctly. I have observed this is not the case when OvS transmits GRE using lwtunnel metadata (which it always does). Fixes: 38720352412a ("gre: Use inner_proto to obtain inner header pr

Re: [PATCH/RFC net] gre: set inner_protocol on xmit

2016-08-12 Thread Alexander Duyck
On Fri, Aug 12, 2016 at 2:46 AM, Simon Horman wrote: > Ensure that the inner_protocol is set on transmit so that GSO segmentation, > which relies on that field, works correctly. > > I have observed this is not the case when OvS transmits GRE using > lwtunnel metadata (which it always does). > > Fi

Re: [PATCH net 2/4] hv_netvsc: reset vf_inject on VF removal

2016-08-12 Thread Stephen Hemminger
On Thu, 11 Aug 2016 14:09:53 +0200 Vitaly Kuznetsov wrote: > Yuval Mintz writes: > > >> +static void netvsc_inject_enable(struct net_device_context > >> +*net_device_ctx) { > >> + net_device_ctx->vf_inject = true; > >> +} > >> + > >> +static void netvsc_inject_disable(struct net_device_context

  1   2   >