Re: [ethtool PATCH v3 09/12] internal.h: fix build for latest ethtool-copy.h

2016-03-07 Thread Ben Hutchings
On Fri, 2016-03-04 at 16:42 -0800, David Decotigny wrote: > From: David Decotigny > > > Signed-off-by: David Decotigny > --- >  internal.h | 4 +++- >  1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/internal.h b/internal.h > index

Re: [PATCH] netlabel: do not initialise statics to NULL

2016-03-07 Thread David Miller
From: Wei Tang Date: Mon, 7 Mar 2016 14:29:53 +0800 > This patch fixes the checkpatch.pl error to netlabel_domainhash.c: > > ERROR: do not initialise statics to NULL > > Signed-off-by: Wei Tang Applied.

Re: [ethtool PATCH v3 08/12] ethtool-copy.h: sync with net-next

2016-03-07 Thread Ben Hutchings
On Fri, 2016-03-04 at 16:42 -0800, David Decotigny wrote: > From: David Decotigny > > This cover changes up to: > >   commit 3f1ac7a700d039c61d8d8b99f28d605d489a60cf >   Author: David Decotigny >   Date:   Wed Feb 24 10:57:59 2016 -0800 > >   net:

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

2016-03-07 Thread David Miller
From: Wei Tang Date: Mon, 7 Mar 2016 14:25:10 +0800 > 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 Applied.

Re: [ethtool PATCH v3 07/12] test-features.c: add braces around array initialization

2016-03-07 Thread Ben Hutchings
On Fri, 2016-03-04 at 16:42 -0800, David Decotigny wrote: > From: Maciej Żenczykowski > > This fixes: >   test-features.c:21:1: error: missing braces around initializer > [-Werror=missing-braces] >    cmd_gssetinfo = { { ETHTOOL_GSSET_INFO, 0, 1ULL << ETH_SS_FEATURES }, 34 }; >

Re: [ethtool PATCH v3 05/12] marvell.c: fix strict alias warnings

2016-03-07 Thread Ben Hutchings
On Fri, 2016-03-04 at 16:42 -0800, David Decotigny wrote: > From: Maciej Żenczykowski > > Addresses the following warnings: >   marvell.c:426:2: error: dereferencing type-punned pointer will break > strict-aliasing rules [-Werror=strict-aliasing] >   marvell.c:427:2: error:

Re: [ethtool PATCH v3 06/12] test-common.c: fix test_realloc(NULL, ...)

2016-03-07 Thread Ben Hutchings
On Fri, 2016-03-04 at 16:42 -0800, David Decotigny wrote: > From: Maciej Żenczykowski > > This fixes: >   test-common.c: In function 'test_realloc': >   test-common.c:109:8: error: 'block' may be used uninitialized in this > function [-Werror=maybe-uninitialized] > block =

Re: [ethtool PATCH v3 04/12] ethtool.c: do_seeprom checks for params & stdin sanity

2016-03-07 Thread Ben Hutchings
On Fri, 2016-03-04 at 16:42 -0800, David Decotigny wrote: > From: David Decotigny > > Tested: >   On qemu e1000: >   $ dd if=/dev/zero bs=2 count=5 | /mnt/ethtool -E eth0 length 9 >   too much data from stdin >   $ dd if=/dev/zero bs=2 count=5 | /mnt/ethtool -E eth0 length 11

Re: [ethtool PATCH v3 03/12] ethtool.c: fix dump_regs heap corruption

2016-03-07 Thread Ben Hutchings
On Fri, 2016-03-04 at 16:42 -0800, David Decotigny wrote: > From: David Decotigny > > The 'regs' pointer is owned by do_gregs(), but updated internally inside > dump_regs() without propagating it back to do_gregs(): later free(regs) > in do_gregs() reclaims the wrong area.

Re: [ethtool PATCH v3 02/12] ethtool.c: don't ignore fread() return value

2016-03-07 Thread Ben Hutchings
On Fri, 2016-03-04 at 16:42 -0800, David Decotigny wrote: > From: David Decotigny > > This addresses: >   ethtool.c:1116:8: warning: ignoring return value of ‘fread’, declared with > attribute warn_unused_result [-Wunused-result] > > > Signed-off-by: David Decotigny

Re: [ethtool PATCH v3 01/12] internal.h: change to new sane powerpc64 kernel headers

2016-03-07 Thread Ben Hutchings
On Fri, 2016-03-04 at 16:42 -0800, David Decotigny wrote: [...] > --- a/internal.h > +++ b/internal.h > @@ -3,6 +3,13 @@ >  #ifndef ETHTOOL_INTERNAL_H__ >  #define ETHTOOL_INTERNAL_H__ >   > +#ifdef __powerpc64__ > +/* Powerpc needs __SANE_USERSPACE_TYPES__ before to select > + * 'int-ll64.h' and

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-07 Thread Giuseppe CAVALLARO
On 3/7/2016 4:46 PM, Andreas Färber wrote: Hi Peppe, Am 07.03.2016 um 16:09 schrieb Giuseppe CAVALLARO: On 3/7/2016 3:27 PM, Andreas Färber wrote: Indeed, reverting Gabriel's commit fixes the observed error messages [...] However, I am unable to ping any hosts on the network now. hmm,

Re: Softirq priority inversion from "softirq: reduce latencies"

2016-03-07 Thread Sebastian Andrzej Siewior
On 02/27/2016 07:19 PM, Peter Hurley wrote: > Hi Eric, Hi Peter, > Because both the uart driver (omap8250) and the dmaengine driver > (edma) were (relatively) new, we assumed there was some race between > starting a new rx DMA and processing the previous one. Now after digesting the whole

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-07 Thread Andreas Färber
Hi Peppe, Am 07.03.2016 um 16:09 schrieb Giuseppe CAVALLARO: > On 3/7/2016 3:27 PM, Andreas Färber wrote: >> Indeed, reverting Gabriel's commit fixes the observed error messages [...] >> However, I am unable to ping any hosts on the network now. > > hmm, this could be another problem. I wonder

Tool for sampling /proc/net/softnet_stat statistics

2016-03-07 Thread Jesper Dangaard Brouer
Hi Google, While playing with RPS, I needed to read stats from /proc/net/softnet_stat and the tools I could find [1] and [2] was not very good. I lack of better, I coded up my own tool softnet_stat.pl here: https://github.com/netoptimizer/network-testing/blob/master/bin/softnet_stat.pl The

Re: Softirq priority inversion from "softirq: reduce latencies"

2016-03-07 Thread Sebastian Andrzej Siewior
On 02/29/2016 05:58 AM, Mike Galbraith wrote: > WRT -rt: if dma tasklets really do have hard (ish) constraints, -rt > recently "broke" in the same way.. of all softirqs which are deferred > to kthread context, due to a recent change, only timer/hrtimer are > executed at realtime priority by

RE: [PATCH 2/2] bnx2x:Fix error handling for functions in bnx2x_link.c

2016-03-07 Thread Ariel Elior
> -Original Message- > From: Nicholas Krause [mailto:xerofo...@gmail.com] > Sent: Monday, March 07, 2016 4:12 AM > To: Ariel Elior > Cc: netdev ; linux-kernel > > Subject: [PATCH 2/2] bnx2x:Fix error handling

Re: [RFC/RFT] mac80211: implement fq_codel for software queuing

2016-03-07 Thread Felix Fietkau
On 2016-03-07 15:05, Avery Pennarun wrote: > On Fri, Mar 4, 2016 at 1:32 AM, Michal Kazior wrote: >> On 4 March 2016 at 03:48, Tim Shepard wrote: >> [...] >>> (I am interested in knowing what other mac80211 drivers have been >>> modified to use the

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-07 Thread Giuseppe CAVALLARO
to PHY (error: -19) Still with us in next-20160307. CC'ing stmmac maintainers. peppe do you remember from what revision you rebased away from, when it was still working (as a known-good state)? Hm, next-20160111 possibly... leaving all the 5 days and 4 days ago changes as candidates

RE: [PATCH 1/2] bnx2x:Fix error handling for the function bnx2x_set_mutl_gpio

2016-03-07 Thread Ariel Elior
> -Original Message- > From: Nicholas Krause [mailto:xerofo...@gmail.com] > Sent: Monday, March 07, 2016 4:05 AM > To: Ariel Elior > Cc: netdev ; linux-kernel > > Subject: [PATCH 1/2] bnx2x:Fix error handling

[PATCH 02/11] rxrpc: Do procfs lists through objcache

2016-03-07 Thread David Howells
Use the object cache primary hash to provide lists of RxRPC objects through /proc/net/ for all caches where desired. Each user of the cache just needs to provide a show function in its objcache struct and register the proc file with objcache_seq_fops as its file operations. Signed-off-by: David

[PATCH 01/11] rxrpc: Add a common object cache

2016-03-07 Thread David Howells
Add a common object cache implementation for RxRPC. This will be used to cache objects of various types (calls, connections, local and remote endpoint records). Each object that would be cached must contain an obj_node struct for the cache to use. The object's usage count and link pointers are

[PATCH 03/11] rxrpc: Separate local endpoint object handling out into its own file

2016-03-07 Thread David Howells
Separate local endpoint object handling out into its own file preparatory to overhauling it to use the new object cache. The original file is then be used exclusively for the local endpoint packet and event handling. Signed-off-by: David Howells --- net/rxrpc/Makefile

[PATCH 04/11] rxrpc: Implement local endpoint cache

2016-03-07 Thread David Howells
Implement the local RxRPC endpoint cache. Only the primary cache is used. This is indexed on the following details: - Local network transport family - currently only AF_INET. - Local network transport type - currently only UDP. - Local network transport address. The hash isn't very big

[PATCH 08/11] rxrpc: Implement peer endpoint cache

2016-03-07 Thread David Howells
Implement the peer RxRPC endpoint cache. Only the primary cache is used. This is indexed on the following details: - Network transport family - currently only AF_INET. - Network transport type - currently only UDP. - Peer network transport address. We use the RCU read lock to handle

[PATCH 06/11] rxrpc: Rename ar-local.c to local-event.c

2016-03-07 Thread David Howells
Rename ar-local.c to local-event.c. What's left in the file is the local endpoint event/packet handling code after the object management has been separated out. Signed-off-by: David Howells --- net/rxrpc/Makefile |2 - net/rxrpc/ar-internal.h | 10 ++--

[PATCH 09/11] rxrpc: Add /proc/net/rxrpc_peers to display the known remote endpoints

2016-03-07 Thread David Howells
Add /proc/net/rxrpc_peers to display the remote endpoint records that are resident in the peer cache. Signed-off-by: David Howells --- net/rxrpc/af_rxrpc.c|3 +++ net/rxrpc/peer-object.c | 32 2 files changed, 35 insertions(+)

[PATCH 10/11] rxrpc: Rename ar-error.c to peer-event.c

2016-03-07 Thread David Howells
Rename ar-error.c to peer-event.c. This will form the core of the peer event handling code. Signed-off-by: David Howells --- net/rxrpc/Makefile |2 net/rxrpc/ar-error.c| 281 --- net/rxrpc/ar-internal.h | 12 +-

[PATCH 05/11] rxrpc: procfs file to list local endpoints

2016-03-07 Thread David Howells
Add a proc file to list local rxrpc endpoints using the object cache facility to do much of the work. Signed-off-by: David Howells --- net/rxrpc/af_rxrpc.c |3 +++ net/rxrpc/local-object.c | 29 + 2 files changed, 32 insertions(+)

[PATCH 11/11] rxrpc: Rename rxrpc_UDP_error_report() to rxrpc_error_report()

2016-03-07 Thread David Howells
Rename rxrpc_UDP_error_report() to rxrpc_error_report() as it might get called for something other than UDP. Signed-off-by: David Howells --- net/rxrpc/ar-internal.h |2 +- net/rxrpc/local-object.c |2 +- net/rxrpc/peer-event.c |2 +- 3 files changed, 3

[PATCH 07/11] rxrpc: Rename ar-peer.c to peer-object.c

2016-03-07 Thread David Howells
Rename ar-peer.c to peer-object.c for consistency (to be) with the other new object cache management files. It will be modified in a later commit. Signed-off-by: David Howells --- net/rxrpc/Makefile |4 - net/rxrpc/ar-internal.h | 16 +- net/rxrpc/ar-peer.c

[PATCH 00/11] RxRPC: Rewrite part 2

2016-03-07 Thread David Howells
http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=rxrpc-rewrite Tagged thusly: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git rxrpc-rewrite-20160307 This is based on net-next/master David --- David Howells (11): rxrpc: Add a

Re: [patch net 2/2] mlxsw: pci: Correctly determine if descriptor queue is full

2016-03-07 Thread Ido Schimmel
Mon, Mar 07, 2016 at 04:04:59PM IST, sergei.shtyl...@cogentembedded.com wrote: >Hello. > >On 3/7/2016 11:24 AM, Jiri Pirko wrote: > >> From: Ido Schimmel >> >> The descriptor queues for sending (SDQs) and receiving (RDQs) packets >> are managed by two counters - producer and

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-07 Thread Andreas Färber
able to ping any hosts on the network now. Regards, Andreas >>>>> eth0: Could not attach to PHY >>>>> stmmac_open: Cannot attach to PHY (error: -19) >>>> >>>> Still with us in next-20160307. CC'ing stmmac maintainers. > > peppe > >>

[patch net v2 2/2] mlxsw: pci: Correctly determine if descriptor queue is full

2016-03-07 Thread Jiri Pirko
From: Ido Schimmel The descriptor queues for sending (SDQs) and receiving (RDQs) packets are managed by two counters - producer and consumer - which are both 16-bit in size. A queue is considered full when the difference between the two equals the queue's maximum number of

[patch net v2 1/2] mlxsw: spectrum: Always decrement bridge's ref count

2016-03-07 Thread Jiri Pirko
From: Ido Schimmel Since we only support one VLAN filtering bridge we need to associate a reference count with it, so that when the last port netdev leaves it, we would know that a different bridge can be offloaded to hardware. When a LAG device is memeber in a bridge and

[patch net v2 0/2] mlxsw: couple of fixes

2016-03-07 Thread Jiri Pirko
From: Jiri Pirko Couple of fixes from Ido. Ido Schimmel (2): mlxsw: spectrum: Always decrement bridge's ref count mlxsw: pci: Correctly determine if descriptor queue is full drivers/net/ethernet/mellanox/mlxsw/pci.c | 2 +-

Re: [RFC/RFT] mac80211: implement fq_codel for software queuing

2016-03-07 Thread Avery Pennarun
On Fri, Mar 4, 2016 at 1:32 AM, Michal Kazior wrote: > On 4 March 2016 at 03:48, Tim Shepard wrote: > [...] >> (I am interested in knowing what other mac80211 drivers have been >> modified to use the mac80211 intermediate software queues. I know >>

Re: [patch net 2/2] mlxsw: pci: Correctly determine if descriptor queue is full

2016-03-07 Thread Sergei Shtylyov
Hello. On 3/7/2016 11:24 AM, Jiri Pirko wrote: From: Ido Schimmel The descriptor queues for sending (SDQs) and receiving (RDQs) packets are managed by two counters - producer and consumer - which are both 16-bit in size. A queue is considered full when the difference

RE: [PATCH v5 net-next] net: Implement fast csum_partial for x86_64

2016-03-07 Thread David Laight
From: Alexander Duyck ... > Actually probably the easiest way to go on x86 is to just replace the > use of len with (len >> 6) and use decl or incl instead of addl or > subl, and lea instead of addq for the buff address. None of those > instructions effect the carry flag as this is how such

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-07 Thread Giuseppe CAVALLARO
maybe the patch from Gabriel is not actually necessary. eth0: Could not attach to PHY stmmac_open: Cannot attach to PHY (error: -19) Still with us in next-20160307. CC'ing stmmac maintainers. peppe do you remember from what revision you rebased away from, when it was still working (as a known

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

2016-03-07 Thread Andy Gospodarek
On Sun, Mar 06, 2016 at 10:38:21PM -0500, David Miller wrote: > 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

Re: [iproute PATCH 3/3] tc: pedit: Fix retain value for ihl adjustments

2016-03-07 Thread Phil Sutter
Hi, On Mon, Mar 07, 2016 at 06:21:17AM -0500, Jamal Hadi Salim wrote: > On 16-03-03 09:32 AM, Phil Sutter wrote: > >> The patches look good to me. Phil, maybe get rid of that comment at the > >> top which was worrying about endianness. I think you fixed it. > > > > I'm not so sure. The kernel

Re: [V3] mt7601u: do not free dma_buf when ivp allocation fails

2016-03-07 Thread Kalle Valo
> From: Colin Ian King > > If the allocation of ivp fails the error handling attempts to > free an uninitialized dma_buf; this data structure just contains > garbage on the stack, so the freeing will cause issues when the > urb, buf and dma fields are free'd. Fix this

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-07 Thread Andreas Färber
t; >>> libphy: PHY stmmac-0: not found >>> eth0: Could not attach to PHY >>> stmmac_open: Cannot attach to PHY (error: -19) >> >> Still with us in next-20160307. CC'ing stmmac maintainers. > > do you remember from what revision you rebased away from,

Re: rt2x00: add new rt2800usb device Buffalo WLI-UC-G450

2016-03-07 Thread Kalle Valo
> Add USB ID 0411:01fd for Buffalo WLI-UC-G450 wireless adapter, > RT chipset 3593 > > Signed-off-by: Anthony Wong > Cc: sta...@vger.kernel.org > Acked-by: Stanislaw Gruszka Thanks, applied to wireless-drivers-next.git. Kalle Valo

Re: [V2] rtlwifi: pass struct rtl_stats by reference as it is moreefficient

2016-03-07 Thread Kalle Valo
> From: Colin Ian King > > passing rtl_stats by value is inefficient; the structure is over 300 > bytes in size and generally just one field (packet_report_type) > is being accessed, so the pass by value is a relatively large overhead. > This change just affects just

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-07 Thread Heiko Stübner
gt; eth0: Could not attach to PHY > > stmmac_open: Cannot attach to PHY (error: -19) > > Still with us in next-20160307. CC'ing stmmac maintainers. do you remember from what revision you rebased away from, when it was still working (as a known-good state)? Heiko > > http://git.kerne

Re: mwifiex: Use to_delayed_work()

2016-03-07 Thread Kalle Valo
> Introduce the use of to_delayed_work() helper function instead of open > coding it with container_of() > > A simplified version of the Coccinelle semantic patch used to make > this change is: > > // > @@ > expression a; > symbol work; > @@ > - container_of(a, struct delayed_work, work) > +

Re: [iproute PATCH 06/12] man: Add a man page for the police action

2016-03-07 Thread Jamal Hadi Salim
On 16-03-04 07:11 AM, Phil Sutter wrote: Cc: Alexey Kuznetsov Signed-off-by: Phil Sutter --- man/man8/tc-police.8 | 127 +++ 1 file changed, 127 insertions(+) create mode 100644 man/man8/tc-police.8 diff

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-07 Thread Andreas Färber
Am 06.03.2016 um 20:53 schrieb Andreas Färber: > On next-20160304 the GMAC seems to have regressed, it no longer finds the PHY: > > libphy: PHY stmmac-0: not found > eth0: Could not attach to PHY > stmmac_open: Cannot attach to PHY (error: -19) Still with us in next-2

Re: [iproute PATCH 03/12] man: Add a man page for the mirred action

2016-03-07 Thread Jamal Hadi Salim
BTW, thanks for putting in this effort. On 16-03-04 07:11 AM, Phil Sutter wrote: Signed-off-by: Phil Sutter --- man/man8/tc-mirred.8 | 89 1 file changed, 89 insertions(+) create mode 100644 man/man8/tc-mirred.8 diff

Re: [iproute PATCH 02/12] man: Add a man page for the csum action.

2016-03-07 Thread Jamal Hadi Salim
On 16-03-04 07:11 AM, Phil Sutter wrote: Cc: Gregoire Baron Signed-off-by: Phil Sutter --- man/man8/tc-csum.8 | 54 ++ 1 file changed, 54 insertions(+) create mode 100644 man/man8/tc-csum.8 diff --git

Re: [iproute PATCH 01/12] man: Add a man page for the connmark action

2016-03-07 Thread Jamal Hadi Salim
Phil, Not sure how your mailer works - I am assuming these are the same patches i got CCed on. On 16-03-04 07:11 AM, Phil Sutter wrote: Cc: Felix Fietkau Signed-off-by: Phil Sutter --- man/man8/tc-connmark.8 | 55

Re: [PATCH RESEND] 8021q:Add missing statements to switch case in the function, register_vlan_device

2016-03-07 Thread Patrick McHardy
On 06.03, Nicholas Krause wrote: > This adds the proper snprintf and break statement for formatting > the vlan_net structure pointer, vn's name using snprintf for if > the switch case, VLAN_NAME_TYPE_PLUS_VID occurs for this particular > switch statement inside the function, register_vlan_device.

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

2016-03-07 Thread Daniel Borkmann
On 03/07/2016 02:58 AM, Alexei Starovoitov wrote: [...] --- include/linux/bpf.h | 1 + include/uapi/linux/bpf.h | 3 + kernel/bpf/hashtab.c | 264 ++- kernel/bpf/syscall.c | 2 +- 4 files changed, 196 insertions(+), 74

Re: [iproute PATCH v2 06/20] iproute: TYPE keyword is not optional, fix help text accordingly

2016-03-07 Thread Jamal Hadi Salim
On 16-03-03 10:05 AM, Phil Sutter wrote: On Thu, Mar 03, 2016 at 09:21:55AM -0500, Jamal Hadi Salim wrote: On 16-03-02 01:19 PM, Phil Sutter wrote: + fprintf(stderr, " unreachable | prohibit | blackhole | nat }\n"); Dont think nat exists anymore... But iproute2 seems to

Re: [iproute PATCH 3/3] tc: pedit: Fix retain value for ihl adjustments

2016-03-07 Thread Jamal Hadi Salim
On 16-03-03 09:32 AM, Phil Sutter wrote: Hi, The patches look good to me. Phil, maybe get rid of that comment at the top which was worrying about endianness. I think you fixed it. I'm not so sure. The kernel explicitly takes care to get the bit ordering right: [..] act_pedit though

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

2016-03-07 Thread David Howells
Stephen Rothwell wrote: > 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:

Re: 4.4.3: OOPS when running "stress-ng --sock 5"

2016-03-07 Thread Tetsuo Handa
Holger Schurig wrote: > So I did an "arm-linux-gnueabihf-objdump -Sgd linux/vmlinux", not sure > if that helps: > > c00972ec <__rmqueue>: > * Do the hard work of removing an element from the buddy allocator. > * Call me with the zone->lock already held. > */ > static struct page

[PATCH] usbnet: cleanup after bind() in probe()

2016-03-07 Thread Oliver Neukum
In case bind() works, but a later error forces bailing in probe() in error cases work and a timer may be scheduled. They must be killed. This fixes an error case related to the double free reported in http://www.spinics.net/lists/netdev/msg367669.html and needs to go on top of Linus' fix to

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

2016-03-07 Thread Daniel Borkmann
On 03/07/2016 02:58 AM, Alexei Starovoitov wrote: 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

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

2016-03-07 Thread Nikolay Aleksandrov
Recently a new temp router port mode was added and with it the dumped information was extended similar to how mdb entries were done. This patch adds support to dump the new information by using the "-s" switch. Example: $ bridge -d -s mdb show dev br0 port eth1 grp ff02::1:ffbf:5716 temp 234.39

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

2016-03-07 Thread Daniel Borkmann
On 03/07/2016 02:58 AM, Alexei Starovoitov wrote: 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

Re: 4.4.3: OOPS when running "stress-ng --sock 5"

2016-03-07 Thread Holger Schurig
I have rejoiced prematurely, it just now took way longer I hit the segfault. Previously 1m or at max 2m was enough. root@ptxc:~# stress-ng --sock 20 stress-ng: info: [359] dispatching hogs: 0 I/O-Sync, 0 CPU, 0 VM-mmap, 0 HDD-Write, 0 Fork, 0 Context-switch, 0 Pipe, 0 Cache, 20 Socket, 0 Yield,

Re: [PATCH] rt2x00: add new rt2800usb device Buffalo WLI-UC-G450

2016-03-07 Thread Stanislaw Gruszka
On Tue, Feb 23, 2016 at 11:09:22PM +0800, Anthony Wong wrote: > Add USB ID 0411:01fd for Buffalo WLI-UC-G450 wireless adapter, > RT chipset 3593 > > Signed-off-by: Anthony Wong > Cc: sta...@vger.kernel.org Acked-by: Stanislaw Gruszka

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

2016-03-07 Thread Nikolay Aleksandrov
Recently a new temp router port mode was added and with it the dumped information was extended similar to how mdb entries were done. This patch adds support to dump the new information by using the "-s" switch. Example: $ bridge -d -s mdb show dev br0 port eth1 grp ff02::1:ffbf:5716 temp 234.39

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

2016-03-07 Thread Ramesh Shanmugasundaram
Hi Rob, Thanks for the review comments. > On Thu, Mar 03, 2016 at 03:38:35PM +, Ramesh Shanmugasundaram wrote: > > This patch adds support for the CAN FD controller found in Renesas > > R-Car SoCs. The controller operates in CAN FD mode by default. > > > > CAN FD mode supports both Classical

Re: [PATCH v4 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-03-07 Thread Alexandre Torgue
Hi Rob, 2016-03-05 5:31 GMT+01:00 Rob Herring : > On Fri, Mar 04, 2016 at 04:58:04PM +0100, Alexandre TORGUE wrote: >> Signed-off-by: Alexandre TORGUE >> >> diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt >>

Re: 4.4.3: OOPS when running "stress-ng --sock 5"

2016-03-07 Thread Holger Schurig
I compared my config with imx_v6_v7_defconfig which didn't segfault. After I turned on CONFIG_SWAP, my segfault vanished. I did turn off CONFIG_SWAP because my device only has SD-Card and eMMC. So I never intended to create a swap partition. And thought "why compile it in the kernel when I never

Re: Possible double-free in the usbnet driver

2016-03-07 Thread Dmitry Vyukov
On Fri, Mar 4, 2016 at 11:43 PM, Linus Torvalds wrote: > On Fri, Mar 4, 2016 at 2:26 PM, Andrey Konovalov wrote: >> >> and when I run the vm and connect the device I get: >> >> [ 23.672662] cdc_ncm 1-1:1.6: bind() failure >> [ 23.673447]

[PATCH V4 2/4] net-next: mediatek: add support for MT7623 ethernet

2016-03-07 Thread John Crispin
Add ethernet support for MediaTek SoCs from the MT7623 family. These have dual GMAC. Depending on the exact version, there might be a built-in Gigabit switch (MT7530). The core does not have the typical DMA ring setup. Instead there is a linked list that we add descriptors to. There is only one

[PATCH V4 3/4] net-next: mediatek: add Kconfig and Makefile

2016-03-07 Thread John Crispin
This patch adds the Makefile and Kconfig required to make the driver build. Signed-off-by: John Crispin --- drivers/net/ethernet/Kconfig |1 + drivers/net/ethernet/Makefile |1 + drivers/net/ethernet/mediatek/Kconfig | 17 +

[PATCH V4 1/4] net-next: mediatek: document MediaTek SoC ethernet binding

2016-03-07 Thread John Crispin
This adds the binding documentation for the MediaTek Ethernet controller. Signed-off-by: John Crispin Acked-by: Rob Herring Cc: devicet...@vger.kernel.org --- .../devicetree/bindings/net/mediatek-net.txt | 77 1 file changed, 77

[PATCH V4 4/4] net-next: mediatek: add an entry to MAINTAINERS

2016-03-07 Thread John Crispin
Add myself and Felix as the Maintainers for the MediaTek ethernet driver. Signed-off-by: Felix Fietkau Signed-off-by: John Crispin --- MAINTAINERS |7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH V4 0/4] net-next: mediatek: add ethernet driver

2016-03-07 Thread John Crispin
This series adds support for the Mediatek ethernet core found on current ARM based SoCs. The driver works on MT2701 and MT7623 SoCs Instead of trying to upstream everything at once I decided to concentrate on the important parts required to make current generation silicon work. The V3 series only

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

2016-03-07 Thread Paul Bolle
On za, 2016-03-05 at 14:08 +0100, Tilman Schmidt wrote: > As a consequence, owners of HiSAX type adapters are in fact stuck with > the old hisax driver if they want to continue using i4l userspace > tools. Do you know whether or not mISDN tools offer functionality comparable to i4l tools? Paul

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

2016-03-07 Thread Paul Bolle
On vr, 2016-03-04 at 17:32 +0100, Arnd Bergmann wrote: > A third patch moves the capidrv source from drivers/isdn/capi/ > into the i4l directory. I see. Why exactly? Thanks, Paul Bolle

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

2016-03-07 Thread Ramesh Shanmugasundaram
Hi Marc, > On 03/07/2016 09:02 AM, Ramesh Shanmugasundaram wrote: > > Hi Oliver, > > > > Thanks for the review comments. > > > >> On 03/03/2016 04:38 PM, Ramesh Shanmugasundaram wrote: > >> > >>> Changes since v1: > >>> * Removed testmodes & debugfs code (suggested by Oliver H) > >>> * Fixed

[patch net 2/2] mlxsw: pci: Correctly determine if descriptor queue is full

2016-03-07 Thread Jiri Pirko
From: Ido Schimmel The descriptor queues for sending (SDQs) and receiving (RDQs) packets are managed by two counters - producer and consumer - which are both 16-bit in size. A queue is considered full when the difference between the two equals the queue's maximum number of

[patch net 1/2] mlxsw: spectrum: Always decrement bridge's ref count

2016-03-07 Thread Jiri Pirko
From: Ido Schimmel Since we only support one VLAN filtering bridge we need to associate a reference count with it, so that when the last port netdev leaves it, we would know that a different bridge can be offloaded to hardware. When a LAG device is memeber in a bridge and

[patch net 0/2] mlxsw: couple of fixes

2016-03-07 Thread Jiri Pirko
From: Jiri Pirko Couple of fixes from Ido. Ido Schimmel (2): mlxsw: spectrum: Always decrement bridge's ref count mlxsw: pci: Correctly determine if descriptor queue is full drivers/net/ethernet/mellanox/mlxsw/pci.c | 2 +-

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

2016-03-07 Thread Gregory CLEMENT
Hi Marcin, On dim., mars 06 2016, Marcin Wojtas wrote: > 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(_pool->lock, flags);

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

2016-03-07 Thread Marc Kleine-Budde
On 03/07/2016 09:02 AM, Ramesh Shanmugasundaram wrote: > Hi Oliver, > > Thanks for the review comments. > >> 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

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

2016-03-07 Thread Ramesh Shanmugasundaram
Hi Oliver, Thanks for the review comments. > 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

<    1   2   3