[PATCH 2/2] net: thunderx: Adjust nicvf structure to reduce cache misses

2016-03-06 Thread sunil . kovvuri
From: Sunil Goutham Adjusted nicvf structure such that all elements used in hot path like napi, xmit e.t.c fall into same cache line. This reduced no of cache misses and resulted in ~2% increase in no of packets handled on a core. Also modified elements with :1 notation to boolean, to be consist

[PATCH 1/2] net: thunderx: Set recevie buffer page usage count in bulk

2016-03-06 Thread sunil . kovvuri
From: Sunil Goutham Instead of calling get_page() for every receive buffer carved out of page, set page's usage count at the end, to reduce no of atomic calls. Signed-off-by: Sunil Goutham --- drivers/net/ethernet/cavium/thunder/nic.h |1 + drivers/net/ethernet/cavium/thunder/nicv

[PATCH 0/2] net: thunderx: Performance enhancement changes

2016-03-06 Thread sunil . kovvuri
From: Sunil Goutham Below patches attempts to improve performance by reducing no of atomic operations while allocating new receive buffers and reducing cache misses by adjusting nicvf structure elements. Sunil Goutham (2): net: thunderx: Set recevie buffer page usage count in bulk net: thund

Re: [PATCH for-next 01/10] net/core: Add support for configuring VF GUIDs

2016-03-06 Thread Or Gerlitz
On Fri, Mar 4, 2016 at 4:35 PM, Doug Ledford wrote: [...] > So, at *best*, the solution you are suggesting for existing setups is a > partial solution that leaves things only half done. [...] Doug, Point/s taken, justifying the code re-route of libvirt attempting to issue set_vf_mac on the PF t

Re: [PATCH 2/2] isdn: i4l: move active-isdn drivers to staging

2016-03-06 Thread Holger Schurig
I know that in Germany a good amount of land-line telephone line are still using ISDN. Some telco company try to move people to IP only, but this is currently still a process. Especially company line are using ISDN still, and there are some Linux programs that act on then, e.g. Asterisk and derive

[PATCH] netlabel: do not initialise statics to NULL

2016-03-06 Thread Wei Tang
This patch fixes the checkpatch.pl error to netlabel_domainhash.c: ERROR: do not initialise statics to NULL Signed-off-by: Wei Tang --- net/netlabel/netlabel_domainhash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/netlabel/netlabel_domainhash.c b/net/netlabel/n

[PATCH] netlink: do not initialise statics to 0 or NULL

2016-03-06 Thread Wei Tang
This patch fixes the checkpatch.pl error to netlabel_unlabeled.c: ERROR: do not initialise statics to 0 or NULL Signed-off-by: Wei Tang --- net/netlabel/netlabel_unlabeled.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/netlabel/netlabel_unlabeled.c b/net/netlab

[PATCH net-next v3] net_sched: dsmark: use qdisc_dequeue_peeked()

2016-03-06 Thread Kyeong Yoo
This fix is for dsmark similar to commit 3557619f0f6f7496ed453d4825e249 ("net_sched: prio: use qdisc_dequeue_peeked") and makes use of qdisc_dequeue_peeked() instead of direct dequeue() call. First time, wrr peeks dsmark, which will then peek into sfq. sfq dequeues an skb and it's stored in sch->g

Re: [net-next PATCH v2] net_sched: dsmark: use qdisc_dequeue_peeked()

2016-03-06 Thread Kyeong Yoo
I will upload new patch soon. Kyeong On Sun, 2016-03-06 at 22:49 -0500, David Miller wrote: > From: Kyeong Yoo > Date: Thu, 3 Mar 2016 10:25:19 + ... > Your patch is corrupted by your email client, it has MS-DOS style > newlines, etc.

Re: [PATCH net-next 1/1] tipc: remove pre-allocated message header in link struct

2016-03-06 Thread David Miller
From: Jon Maloy Date: Thu, 3 Mar 2016 14:23:21 -0500 > Until now, we have kept a pre-allocated protocol message header > aggregated into struct tipc_link. Apart from adding unnecessary > footprint to the link instances, this requires extra code both to > initialize and re-initialize it. > > We

Re: [PATCH net v1 1/1] tipc: fix nullptr crash during subscription cancel

2016-03-06 Thread David Miller
From: Parthasarathy Bhuvaragan Date: Thu, 3 Mar 2016 17:54:54 +0100 > commit 4d5cfcba2f6e ('tipc: fix connection abort during subscription > cancel'), removes the check for a valid subscription before calling > tipc_nametbl_subscribe(). > > This will lead to a nullptr exception when we process a

Re: [PATCH] net/ethoc: do not free array priv->mdio->irq

2016-03-06 Thread David Miller
From: Colin King Date: Thu, 3 Mar 2016 13:43:34 + > From: Colin Ian King > > priv->mdio->irq used to be allocated and required freeing, but it > is now a fixed sized array and should no longer be free'd. > > Issue detected using static analysis with CoverityScan > > Fixes: e7f4dc3536a400

Re: [PATCH] net: eth: altera: do not free array priv->mdio->irq

2016-03-06 Thread David Miller
From: Colin King Date: Thu, 3 Mar 2016 13:47:18 + > From: Colin Ian King > > priv->mdio->irq used to be allocated and required freeing, but it > is now a fixed sized array and should no longer be free'd. > > Issue detected using static analysis with CoverityScan > > Fixes: e7f4dc3536a400

Re: [PATCH net-next v1 4/4] tipc: make sure required IPv6 addresses are scoped

2016-03-06 Thread David Miller
From: Richard Alpe Date: Thu, 3 Mar 2016 14:20:43 +0100 > Make sure the user has provided a scope for multicast and link local > addresses used locally by a UDP bearer. > > Signed-off-by: Richard Alpe > Acked-by: Jon Maloy > Reviewed-by: Erik Hugne Applied.

Re: [net PATCH] net: sched: fix act_ipt for LOG target

2016-03-06 Thread David Miller
From: Phil Sutter Date: Thu, 3 Mar 2016 14:34:14 +0100 > From: Phil Sutter > > Before calling the destroy() or target() callbacks, the family parameter > field has to be initialized. Otherwise at least the LOG target will > refuse to work and upon removal oops the kernel. > > Cc: Jamal Hadi S

Re: [PATCH net-next v1 3/4] tipc: safely copy UDP netlink data from user

2016-03-06 Thread David Miller
From: Richard Alpe Date: Thu, 3 Mar 2016 14:20:42 +0100 > The netlink policy for TIPC_NLA_UDP_LOCAL and TIPC_NLA_UDP_REMOTE > is of type binary with a defined length. This causes the policy > framework to threat the defined length as maximum length. > > There is however no protection against a u

Re: [PATCH] asix: do not free array priv->mdio->irq

2016-03-06 Thread David Miller
From: Colin King Date: Thu, 3 Mar 2016 13:27:56 + > From: Colin Ian King > > Used to be allocated and required freeing, but now > priv->mdio->irq is now a fixed sized array and should no longer be > free'd. > > Issue detected using static analysis with CoverityScan > > Fixes: e7f4dc3536a

Re: [PATCH net-next v1 2/4] tipc: don't check link reset on non existing link

2016-03-06 Thread David Miller
From: Richard Alpe Date: Thu, 3 Mar 2016 14:20:41 +0100 > Make sure we have a link before checking if it has been reset or not. > > Prior to this patch tipc_link_is_reset() could be called with a non > existing link, resulting in a null pointer dereference. > > Signed-off-by: Richard Alpe > Ac

Re: [PATCH net-next v1 1/4] tipc: add net device to skb before UDP xmit

2016-03-06 Thread David Miller
From: Richard Alpe Date: Thu, 3 Mar 2016 14:20:40 +0100 > Prior to this patch enabling a IPv4 UDP bearer caused a null pointer > dereference in iptunnel_xmit_stats(), when it tried to dereference the > net device from the skb. To resolve this we now point the skb device > to the net device resolv

Re: [net-next PATCH v2] net_sched: dsmark: use qdisc_dequeue_peeked()

2016-03-06 Thread David Miller
From: Kyeong Yoo Date: Thu, 3 Mar 2016 10:25:19 + > This fix is for dsmark similar to commit 3557619f0f6f7496ed453d4825e249 > ("net_sched: prio: use qdisc_dequeue_peeked") > and makes use of qdisc_dequeue_peeked() instead of direct dequeue() call. > > First time, wrr peeks dsmark, which will

Re: [PATCH] net: fec: Rename "phy-reset-active-low" property

2016-03-06 Thread David Miller
From: Bernhard Walle Date: Thu, 3 Mar 2016 10:15:55 +0100 > From the perspective of RESET, the meaning of the new property > is actually "active high". Thanks for Troy Kisky for pointing > that out. > > Since the patch is in linux-next, this patch is incremental and doesn't > replace the origin

Re: [PATCH] stmmac: fix noderef.cocci warnings

2016-03-06 Thread David Miller
From: kbuild test robot Date: Thu, 3 Mar 2016 09:55:19 +0800 > drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:115:15-21: ERROR: > application of sizeof to pointer > > sizeof when applied to a pointer typed expression gives the size of > the pointer > > Generated by: scripts/coccinelle

Re: [PATCH] gianfar: Enable eTSEC-106 erratum w/a for MPC8548E Rev2

2016-03-06 Thread David Miller
From: Atsushi Nemoto Date: Thu, 3 Mar 2016 09:07:51 +0900 > Enable workaround for MPC8548E erratum eTSEC 106, > "Excess delays when transmitting TOE=1 large frames". > (see commit 53fad77375ce "gianfar: Enable eTSEC-20 erratum w/a > for P2020 Rev1") > > This erratum was fixed in Rev 3.1.x. > >

Re: [Patch net-next] act_ife: fix a typo in kmemdup() parameters

2016-03-06 Thread David Miller
From: Cong Wang Date: Wed, 2 Mar 2016 11:20:36 -0800 > Cc: Jamal Hadi Salim > Signed-off-by: Cong Wang Applied, thanks.

Re: [PATCH net-next] ipv4: properly apply change to ignore_routes_on_linkdown to all interfaces

2016-03-06 Thread David Miller
From: Andy Gospodarek Date: Wed, 2 Mar 2016 11:43:06 -0500 > Any change to sysctl net.ipv4.conf.all.ignore_routes_with_linkdown does > not result in a change to all interfaces on the system. This means that > any devices initialized before sysctl settings are applied on boot do > not see a chan

[GIT PULL v2 0/4] IPVS Fixes for v4.5

2016-03-06 Thread Simon Horman
Hi Pablo, please consider these IPVS fixes for v4.5 or if it is too late please consider them for v4.6. * Arnd Bergman has corrected an error whereby the SIP persistence engine may incorrectly access protocol fields * Julian Anastasov has corrected a problem reported by Jiri Bohac with the co

[PATCH 2/4] ipvs: drop first packet to redirect conntrack

2016-03-06 Thread Simon Horman
From: Julian Anastasov Jiri Bohac is reporting for a problem where the attempt to reschedule existing connection to another real server needs proper redirect for the conntrack used by the IPVS connection. For example, when IPVS connection is created to NAT-ed real server we alter the reply direct

[PATCH 1/4] ipvs: handle ip_vs_fill_iph_skb_off failure

2016-03-06 Thread Simon Horman
From: Arnd Bergmann ip_vs_fill_iph_skb_off() may not find an IP header, and gcc has determined that ip_vs_sip_fill_param() then incorrectly accesses the protocol fields: net/netfilter/ipvs/ip_vs_pe_sip.c: In function 'ip_vs_sip_fill_param': net/netfilter/ipvs/ip_vs_pe_sip.c:76:5: error: 'iph.pro

[PATCH 3/4] ipvs: allow rescheduling after RST

2016-03-06 Thread Simon Horman
From: Julian Anastasov "RFC 5961, 4.2. Mitigation" describes a mechanism to request client to confirm with RST the restart of TCP connection before resending its SYN. As result, IPVS can see SYNs for existing connection in CLOSE state. Add check to allow rescheduling in this state. Signed-off-by

[PATCH 4/4] ipvs: correct initial offset of Call-ID header search in SIP persistence engine

2016-03-06 Thread Simon Horman
From: Marco Angaroni The IPVS SIP persistence engine is not able to parse the SIP header "Call-ID" when such header is inserted in the first positions of the SIP message. When IPVS is configured with "--pe sip" option, like for example: ipvsadm -A -u 1.2.3.4:5060 -s rr --pe sip -p 120 -o some pa

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

2016-03-06 Thread Stephen Rothwell
Hi Herbert, Today's linux-next merge of the crypto tree got a conflict in: net/rxrpc/rxkad.c between commit: 0d12f8a4027d ("rxrpc: Keep the skb private record of the Rx header in host byte order") from the net-next tree and commit: 1afe593b4239 ("rxrpc: Use skcipher") from the crypto

[PATCH net-next 8/9] samples/bpf: add bpf map stress test

2016-03-06 Thread Alexei Starovoitov
this test calls bpf programs from different contexts: from inside of slub, from rcu, from pretty much everywhere, since it kprobes all spin_lock functions. It stresses the bpf hash and percpu map pre-allocation, deallocation logic and call_rcu mechanisms. User space part adding more stress by walki

[PATCH net-next 5/9] samples/bpf: move ksym_search() into library

2016-03-06 Thread Alexei Starovoitov
move ksym search from offwaketime into library to be reused in other tests Signed-off-by: Alexei Starovoitov --- samples/bpf/bpf_load.c | 62 ++ samples/bpf/bpf_load.h | 6 samples/bpf/offwaketime_user.c | 67 +

[PATCH net-next 4/9] samples/bpf: make map creation more verbose

2016-03-06 Thread Alexei Starovoitov
map creation is typically the first one to fail when rlimits are too low, not enough memory, etc Make this failure scenario more verbose Signed-off-by: Alexei Starovoitov --- samples/bpf/bpf_load.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/bpf/bpf_load.c b/s

[PATCH net-next 1/9] bpf: prevent kprobe+bpf deadlocks

2016-03-06 Thread Alexei Starovoitov
if kprobe is placed within update or delete hash map helpers that hold bucket spin lock and triggered bpf program is trying to grab the spinlock for the same bucket on the same cpu, it will deadlock. Fix it by extending existing recursion prevention mechanism. Note, map_lookup and other tracing he

[PATCH net-next 9/9] samples/bpf: add map performance test

2016-03-06 Thread Alexei Starovoitov
performance tests for hash map and per-cpu hash map with and without pre-allocation Signed-off-by: Alexei Starovoitov --- samples/bpf/Makefile | 4 + samples/bpf/map_perf_test_kern.c | 100 + samples/bpf/map_perf_test_user.c | 155 +++

[PATCH net-next 6/9] samples/bpf: add map_flags to bpf loader

2016-03-06 Thread Alexei Starovoitov
note old loader is compatible with new kernel. map_flags are optional Signed-off-by: Alexei Starovoitov --- samples/bpf/bpf_helpers.h | 1 + samples/bpf/bpf_load.c | 3 ++- samples/bpf/fds_example.c | 2 +- samples/bpf/libbpf.c| 5 +++-- samples/bpf/libbpf.h| 2 +-

[PATCH net-next 3/9] bpf: pre-allocate hash map elements

2016-03-06 Thread Alexei Starovoitov
If kprobe is placed on spin_unlock then calling kmalloc/kfree from bpf programs is not safe, since the following dead lock is possible: kfree->spin_lock(kmem_cache_node->lock)...spin_unlock->kprobe-> bpf_prog->map_update->kmalloc->spin_lock(of the same kmem_cache_node->lock) and deadlocks. The fol

[PATCH net-next 7/9] samples/bpf: test both pre-alloc and normal maps

2016-03-06 Thread Alexei Starovoitov
extend test coveraged to include pre-allocated and run-time alloc maps Signed-off-by: Alexei Starovoitov --- samples/bpf/test_maps.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/samples/bpf/test_maps.c b/samples/bpf/test_maps.c index af02f7518c0a..d1e63f48e39c 10

[PATCH net-next 0/9] bpf: hash map pre-alloc

2016-03-06 Thread Alexei Starovoitov
Hi, this path set switches bpf hash map to use pre-allocation by default and introduces BPF_F_NO_PREALLOC flag to keep old behavior for cases where full map pre-allocation is too memory expensive. Some time back Daniel Wagner reported crashes when bpf hash map is used to compute time intervals be

[PATCH net-next 2/9] bpf: introduce percpu_freelist

2016-03-06 Thread Alexei Starovoitov
Introduce simple percpu_freelist to keep single list of elements spread across per-cpu singly linked lists. /* push element into the list */ void pcpu_freelist_push(struct pcpu_freelist *, struct pcpu_freelist_node *); /* pop element from the list */ struct pcpu_freelist_node *pcpu_freelist_pop(s

Re: Computer fails to resume from suspend unless I rmmod jme before initiating the suspend

2016-03-06 Thread Diego Viola
On Wed, Mar 2, 2016 at 2:04 AM, Guo-Fu Tseng wrote: > Dear Diego and who concerns about this driver: > > Thanks for reporting it. I can still provide some help, but it's just I'm > quite busy. > So that you have not seem me sending patch for a long time. > > I wrote this driver when I wan an inte

Re: PHY hardware reset

2016-03-06 Thread Florian Fainelli
Le 05/03/2016 14:09, Sergei Shtylyov a écrit : > Hello. > >I have a need to de-assert the active-low PHY hardware reset signal > (mapped to a GPIO) before the MDIO bus scansince it's left asserted by > the bootloader (U-Boot). I have a device tree probed MAX driver (ravb) > and I'm somewhat at

Re: [PATCH net] sctp: use gfp insteaad of GFP_NOWAIT in idr_alloc_cyclic when sctp_assoc_set_id

2016-03-06 Thread Eric Dumazet
On dim., 2016-03-06 at 13:52 +0800, Xin Long wrote: > On Sun, Mar 6, 2016 at 12:42 AM, Eric Dumazet wrote: > > On sam., 2016-03-05 at 23:59 +0800, Xin Long wrote: > > > > Are you sure idr_alloc(... GFP_KERNEL) makes sense inside spin_lock_bh() > > section ? > > > > idr_alloc() has : > > > > might_

Re: [PATCH iproute2 net-next] bridge: mdb: add support for extended router port information

2016-03-06 Thread Nikolay Aleksandrov
On 03/06/2016 09:56 PM, Stephen Hemminger wrote: > On Thu, 3 Mar 2016 16:19:34 +0100 > Nikolay Aleksandrov wrote: > >> +static int is_temp_mcast_rtr(__u8 type) >> { >> +if (type == MDB_RTR_TYPE_TEMP_QUERY || type == MDB_RTR_TYPE_TEMP) >> +return 1; >> +else >> +r

Re: [PATCH iproute2 net-next] bridge: mdb: add support for extended router port information

2016-03-06 Thread Stephen Hemminger
On Thu, 3 Mar 2016 16:19:34 +0100 Nikolay Aleksandrov wrote: > +static int is_temp_mcast_rtr(__u8 type) > { > + if (type == MDB_RTR_TYPE_TEMP_QUERY || type == MDB_RTR_TYPE_TEMP) > + return 1; > + else > + return 0; > +} > + Minor style issues, why not much simpl

Re: [PATCH v4 net-next 7/9] net: mvneta: bm: add support for hardware buffer management

2016-03-06 Thread kbuild test robot
-CLEMENT/API-set-for-HW-Buffer-management/20160306-064411 config: arm-allmodconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached

Re: [iproute PATCH] ifstat, nstat: fix daemon mode

2016-03-06 Thread Stephen Hemminger
On Wed, 2 Mar 2016 16:56:27 +0100 Phil Sutter wrote: > Since the relevant code (and it's bugs) is identical in both files, fix > them in one go. This patch fixes multiple issues: > > * Using 'int' for the 'tdiff' variable does not suffice on 64bit > systems, the assigned initial time differen

Re: [patch iproute2-net-next] bridge: mdb: add support for offloaded mdb entries

2016-03-06 Thread Stephen Hemminger
On Mon, 22 Feb 2016 15:26:13 +0100 Jiri Pirko wrote: > From: Elad Raz > > Mark MDB entries which are offloaded to HW with "offload" flag > > Signed-off-by: Elad Raz > Signed-off-by: Jiri Pirko > --- > bridge/mdb.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Applied, took s

Re: [PATCH v4 net-next 2/9] ARM: dts: armada-38x: enable buffer manager support on Armada 38x boards

2016-03-06 Thread Russell King - ARM Linux
On Sat, Mar 05, 2016 at 11:38:20PM +0100, Gregory CLEMENT wrote: > From: Marcin Wojtas > > Since mvneta driver supports using hardware buffer management (BM), in > order to use it, board files have to be adjusted accordingly. This commit > enables BM on: > * A385-DB-AP - each port has its own poo

[RFC] net: macb: Attempt to make fixed link working on macb

2016-03-06 Thread Moritz Fischer
Signed-off-by: Moritz Fischer --- drivers/net/ethernet/cadence/macb.c | 63 - drivers/net/ethernet/cadence/macb.h | 1 + 2 files changed, 43 insertions(+), 21 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c

[RFC] Attempt to add fixed link functionality to macb

2016-03-06 Thread Moritz Fischer
Hi all, I'm trying to make the dt 'fixed-link' work with the Zynq's GEM on my board. The endgoal will be to hook it up to an ethernet switch in the PL (FPGA) logic. Does the attached patch look halfway reasonable? Note the code is pretty hacky, and it's not 100% working, so I'm more looking for p

Re: [PATCH v4 net-next 8/9] net: add a hardware buffer management helper API

2016-03-06 Thread Marcin Wojtas
Hi Gregory, > +int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num, gfp_t gfp) > +{ > + int err, i; > + unsigned long flags; > + > + spin_lock_irqsave(&bm_pool->lock, flags); > + if (bm_pool->buf_num == bm_pool->size) { 'size' field is used as a 'frag_size'

[PATCH net] tcp: fix tcpi_segs_in after connection establishment

2016-03-06 Thread Eric Dumazet
From: Eric Dumazet If final packet (ACK) of 3WHS is lost, it appears we do not properly account the following incoming segment into tcpi_segs_in While we are at it, starts segs_in with one, to count the SYN packet. We do not yet count number of SYN we received for a request sock, we might add t

Re: [RFC] net: ipv4 -- Introduce ifa limit per net

2016-03-06 Thread Cyrill Gorcunov
On Sun, Mar 06, 2016 at 08:23:12AM -0800, Eric Dumazet wrote: > On dim., 2016-03-06 at 13:09 +0300, Cyrill Gorcunov wrote: > > > Anyway, then I run this script for 255 as parameter > > in one pass which gen. requests to create 65025 addresses > > and kernel start complaining: > > > > Perf output

RE: [PATCH RESEND] net:fec:Fix error checking in the function fec_enet_init

2016-03-06 Thread Fugang Duan
From: nick Sent: Sunday, March 06, 2016 11:50 AM > To: Fugang Duan ; da...@davemloft.net > Cc: b38...@freescale.com; and...@lunn.ch; fabio.este...@freescale.com; > l.st...@pengutronix.de; rmk+ker...@arm.linux.org.uk; trem...@gmail.com; > johan...@sipsolutions.net; u.kleine-koe...@pengutronix.de; >

Re: [RFC] net: ipv4 -- Introduce ifa limit per net

2016-03-06 Thread Eric Dumazet
On dim., 2016-03-06 at 13:09 +0300, Cyrill Gorcunov wrote: > Anyway, then I run this script for 255 as parameter > in one pass which gen. requests to create 65025 addresses > and kernel start complaining: > > Perf output > --- > 24.95% [kernel] [k] __local_bh_enabl

Re: [PATCH 1/4] net: hns: add Hisilicon RoCE support(the dependent routine)

2016-03-06 Thread Leon Romanovsky
Please rewrite your title to be without (...). On Fri, Mar 04, 2016 at 04:41:14PM +0800, Wei Hu(Xavier) wrote: > It added hns_dsaf_roce_reset routine 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 in

Re: [PATCH 0/4] infiniband: hns: Hisilicon RoCE support

2016-03-06 Thread Leon Romanovsky
On Fri, Mar 04, 2016 at 04:41:13PM +0800, Wei Hu(Xavier) wrote: > The Hisilicon Network Substem(hns) is a long term evolution IP which is > supposed to be used in Hisilicon ICT SoC. RoCE is a feature of hns. > The driver for Hisilicon RoCE engine is a platform driver. > The driver will support muli

Re: [PATCH 4/4] infiniband: hns: add Hisilicon RoCE support(Kconfig)

2016-03-06 Thread Leon Romanovsky
On Fri, Mar 04, 2016 at 04:41:17PM +0800, Wei Hu(Xavier) wrote: > This submit add Kconfig. It needs be part of previous patch. > > Signed-off-by: Wei Hu(Xavier) > Signed-off-by: oulijun ^^^.. -- Is this first name or second name? > --- > drivers/infiniband/Kconfig |

Re: [PATCH net-next 3/8] bnxt_en: Use common function to get ethtool supported flags.

2016-03-06 Thread Sergei Shtylyov
Hello. On 3/6/2016 10:01 AM, Michael Chan wrote: The supported bits and advertising bits in ethtool have the same definitions. The same is true for the firmware bits. So use the common function to handle the conversion for both supported and advertising bits. Signed-off-by: Michael Chan ---

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

2016-03-06 Thread Oliver Hartkopp
On 03/03/2016 04:38 PM, Ramesh Shanmugasundaram wrote: > Changes since v1: > * Removed testmodes & debugfs code (suggested by Oliver H) > * Fixed tx path race issue by introducing lock (suggested by Marc K) > * Removed __maybe_unused attribute of rcar_canfd_of_table > > obj-$

Re: [PATCH RESEND] net:fec:Fix error checking in the function fec_enet_init

2016-03-06 Thread Uwe Kleine-König
Hello Nicholas, On Fri, Mar 04, 2016 at 03:00:14PM -0500, Nicholas Krause wrote: > This fixes error checking in the function fec_enet_init to properly > check if the internal call to the function fec_enet_alloc_queue fails > and if so immediately return the error code to the caller for it to > han

Re: [Patch] rose_route_frame() NULL pointer dereference kernel panic

2016-03-06 Thread f6bvp
François, Thank you for providing information about rose_rebuild_header history. I was not able to find Jonathan Naylor G4KLX email. However as rose_xmit() has been recently changed by Eric Biederman, he may have more precise information about rose_route_frame() NULL argument. Meanwhile, I browse

Re: [RFC] net: ipv4 -- Introduce ifa limit per net

2016-03-06 Thread Cyrill Gorcunov
On Sat, Mar 05, 2016 at 09:44:59PM +0300, Cyrill Gorcunov wrote: > On Sat, Mar 05, 2016 at 11:33:12AM -0500, David Miller wrote: > ... > > > > Probably the same optimization can be applied there, see patch below. > > And if that doesn't do it, there is a really easy way to batch the > > delete by

Re: [PATCH net-next V2 01/10] net/flower: Introduce hardware offload support

2016-03-06 Thread Amir Vadai
On Fri, Mar 04, 2016 at 09:01:39AM -0800, John Fastabend wrote: > On 16-03-03 06:55 AM, Amir Vadai wrote: > > This patch is based on a patch made by John Fastabend. > > It adds support for offloading cls_flower. > > when NETIF_F_HW_TC is on: > > flags = 0 => Rule will be processed twice - b

Re: [PATCH net-next V2 03/10] net/sched: Macro instead of CONFIG_NET_CLS_ACT ifdef

2016-03-06 Thread Amir Vadai
On Fri, Mar 04, 2016 at 10:20:18AM -0800, Cong Wang wrote: > On Thu, Mar 3, 2016 at 11:51 AM, Amir Vadai wrote: > > On Thu, Mar 03, 2016 at 09:45:28AM -0800, Cong Wang wrote: > >> > >> So why? > > The struct will not be used, and without exposing it, the compiler will > > complain on code like I h