[PATCH 2/3] xfrm: Reset encapsulation field of the skb before transformation

2016-05-03 Thread Steffen Klassert
The inner headers are invalid after a xfrm transformation. So reset the skb encapsulation field to ensure nobody tries to access the inner headers. Signed-off-by: Steffen Klassert --- net/xfrm/xfrm_output.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 1/3] flowcache: Avoid OOM condition under preasure

2016-05-03 Thread Steffen Klassert
We can hit an OOM condition if we are under presure because we can not free the entries in gc_list fast enough. So add a counter for the not yet freed entries in the gc_list and refuse new allocations if the value is too high. Signed-off-by: Steffen Klassert ---

[PATCH 3/3] vti: Add pmtu handling to vti_xmit.

2016-05-03 Thread Steffen Klassert
We currently rely on the PMTU discovery of xfrm. However if a packet is locally sent, the PMTU mechanism of xfrm tries to do local socket notification what might not work for applications like ping that don't check for this. So add pmtu handling to vti_xmit to report MTU changes immediately.

pull request (net): ipsec 2016-05-04

2016-05-03 Thread Steffen Klassert
1) The flowcache can hit an OOM condition if too many entries are in the gc_list. Fix this by counting the entries in the gc_list and refuse new allocations if the value is too high. 2) The inner headers are invalid after a xfrm transformation, so reset the skb encapsulation field to

Re: [PATCH net-next] tcp: fix lockdep splat in tcp_snd_una_update()

2016-05-03 Thread David Miller
From: Eric Dumazet Date: Tue, 03 May 2016 16:56:03 -0700 > From: Eric Dumazet > > tcp_snd_una_update() and tcp_rcv_nxt_update() call > u64_stats_update_begin() either from process context or BH handler. > > This triggers a lockdep splat on 32bit &

Re: [PATC net-next] tcp: must block bh in __inet_twsk_hashdance()

2016-05-03 Thread David Miller
From: Eric Dumazet Date: Tue, 03 May 2016 17:10:50 -0700 > From: Eric Dumazet > > __inet_twsk_hashdance() might be called from process context, > better block BH before acquiring bind hash and established locks > > Fixes: c10d9310edf5 ("tcp: do not

Re: [PATCH next-next 2/7] gre: Move utility functions to common headers

2016-05-03 Thread David Miller
From: Jiri Benc Date: Tue, 3 May 2016 13:29:44 +0200 > How do we resolve the conflict between net and net-next? I'd prefer > gre_parse_header to return the header length. I can submit a patch for > net-next that does this; that would substantially ease the merge. Jiri, I just

[v9, 7/7] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-05-03 Thread Yangbo Lu
The eSDHC of T4240-R1.0-R2.0 has incorrect vender version and spec version. Acturally the right version numbers should be VVN=0x13 and SVN = 0x1. This patch adds the GUTS driver support for eSDHC driver to get SVR(System version register). And fix host version to avoid that incorrect version

[v9, 1/7] Documentation: DT: update Freescale DCFG compatible

2016-05-03 Thread Yangbo Lu
Update Freescale DCFG compatible with 'fsl,-dcfg' instead of 'fsl,ls1021a-dcfg' to include more chips such as ls1021a, ls1043a, and ls2080a. Signed-off-by: Yangbo Lu --- Changes for v8: - Added this patch Changes for v9: - Added a list for the possible

[v9, 6/7] MAINTAINERS: add entry for Freescale SoC driver

2016-05-03 Thread Yangbo Lu
Add maintainer entry for Freescale SoC driver including the QE library and the GUTS driver now. Also add maintainer for QE library. Signed-off-by: Yangbo Lu --- Changes for v8: - Added this patch Changes for v9: - Added linux-arm mail list - Removed

[v9, 2/7] ARM64: dts: ls2080a: add device configuration node

2016-05-03 Thread Yangbo Lu
Add the dts node for device configuration unit that provides general purpose configuration and status for the device. Signed-off-by: Yangbo Lu Acked-by: Scott Wood --- Changes for v5: - Added this patch Changes for v6: - None Changes for v7:

[v9, 3/7] soc: fsl: add GUTS driver for QorIQ platforms

2016-05-03 Thread Yangbo Lu
The global utilities block controls power management, I/O device enabling, power-onreset(POR) configuration monitoring, alternate function selection for multiplexed signals,and clock control. This patch adds GUTS driver to manage and access global utilities block. Signed-off-by: Yangbo Lu

[v9, 5/7] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-05-03 Thread Yangbo Lu
Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. It has been used for mpc85xx and it will be used for ARM-based SoC as well. Signed-off-by: Yangbo Lu Acked-by: Wolfram Sang Acked-by: Stephen Boyd

[v9, 0/7] Fix eSDHC host version register bug

2016-05-03 Thread Yangbo Lu
This patchset is used to fix a host version register bug in the T4240-R1.0-R2.0 eSDHC controller. To get the SoC version and revision, it's needed to add the GUTS driver to access the global utilities registers. So, the first four patches are to add the GUTS driver. The following patches except

[v9, 4/7] dt: move guts devicetree doc out of powerpc directory

2016-05-03 Thread Yangbo Lu
Move guts devicetree doc to Documentation/devicetree/bindings/soc/fsl/ since it's used by not only PowerPC but also ARM. And add a specification for 'little-endian' property. Signed-off-by: Yangbo Lu Acked-by: Scott Wood Acked-by: Rob Herring

RE: [PATCH] net: fec: only clear a queue's work bit if the queue was emptied

2016-05-03 Thread Fugang Duan
From: Uwe Kleine-König Sent: Tuesday, May 03, 2016 10:39 PM > To: Fugang Duan ; David S . Miller > > Cc: ker...@pengutronix.de; netdev@vger.kernel.org > Subject: [PATCH] net: fec: only clear a queue's work bit if the

Re: [PATCH net-next] tcp: fix lockdep splat in tcp_snd_una_update()

2016-05-03 Thread Fabio Estevam
On Tue, May 3, 2016 at 8:56 PM, Eric Dumazet wrote: > From: Eric Dumazet > > tcp_snd_una_update() and tcp_rcv_nxt_update() call > u64_stats_update_begin() either from process context or BH handler. > > This triggers a lockdep splat on 32bit & SMP

Re: [REGRESSION] asix: Lots of asix_rx_fixup() errors and slow transmissions

2016-05-03 Thread David B. Robins
On 2016-05-03 17:16, Dean Jenkins wrote: On 03/05/16 15:42, David B. Robins wrote: I don't think the first one is giving you problems (except as triggered by the second) but I had concerns about the second myself (and emailed the author off-list, but received no reply), and we did not take

Re: [PATCH] tcp: ensure non-empty connection request queue

2016-05-03 Thread Eric Dumazet
On Tue, 2016-05-03 at 23:54 +0200, Peter Wu wrote: > When applications use listen() with a backlog of 0, the kernel would > set the maximum connection request queue to zero. This causes false > reports of SYN flooding (if tcp_syncookies is enabled) or packet drops > otherwise. > > Prior kernels

[PATC net-next] tcp: must block bh in __inet_twsk_hashdance()

2016-05-03 Thread Eric Dumazet
From: Eric Dumazet __inet_twsk_hashdance() might be called from process context, better block BH before acquiring bind hash and established locks Fixes: c10d9310edf5 ("tcp: do not assume TCP code is non preemptible") Signed-off-by: Eric Dumazet ---

[PATCH net-next] tcp: fix lockdep splat in tcp_snd_una_update()

2016-05-03 Thread Eric Dumazet
From: Eric Dumazet tcp_snd_una_update() and tcp_rcv_nxt_update() call u64_stats_update_begin() either from process context or BH handler. This triggers a lockdep splat on 32bit & SMP builds. We could add u64_stats_update_begin_bh() variant but this would slow down 32bit

[PATCH] igb: adjust ptp timestamps for tx/rx latency

2016-05-03 Thread Nathan Sullivan
Table 7-62 on page 338 of the i210 datasheet lists TX and RX latencies for the various speeds the chip supports. To give better ptp timestamp accuracy, adjust the timestamps by the amounts Intel gives based on current link speed. Signed-off-by: Nathan Sullivan ---

[PATCH net v3 1/2] udp_tunnel: Remove redundant udp_tunnel_gro_complete().

2016-05-03 Thread Jarno Rajahalme
The setting of the UDP tunnel GSO type is already performed by udp[46]_gro_complete(). Signed-off-by: Jarno Rajahalme --- drivers/net/geneve.c | 2 -- drivers/net/vxlan.c | 2 -- include/net/udp_tunnel.h | 9 - net/ipv4/fou.c | 2 -- 4 files changed, 15

[PATCH net v3 2/2] udp_offload: Set encapsulation before inner completes.

2016-05-03 Thread Jarno Rajahalme
UDP tunnel segmentation code relies on the inner offsets being set for an UDP tunnel GSO packet, but the inner *_complete() functions will set the inner offsets only if 'encapsulation' is set before calling them. Currently, udp_gro_complete() sets 'encapsulation' only after the inner *_complete()

[PATCH 14/15] batman-adv: Merge batadv_v_ogm_orig_update into batadv_v_ogm_route_update

2016-05-03 Thread Antonio Quartulli
From: Simon Wunderlich Since batadv_v_ogm_orig_update() was only called from one place and the calling function became very short, merge these two functions together. This should also reflect the protocol description of B.A.T.M.A.N. V better. Signed-off-by: Simon

[PATCH 12/15] batman-adv: fix debuginfo macro style issue

2016-05-03 Thread Antonio Quartulli
From: Simon Wunderlich Structure initialization within the macros should follow the general coding style used in the kernel: put the initialization of the first variable and the closing brace on a separate line. Reported-by: Antonio Quartulli

[PATCH 11/15] batman-adv: Fix function names on new line starting with '*'

2016-05-03 Thread Antonio Quartulli
From: Sven Eckelmann Some really long function names in batman-adv require a newline between return type and the function name. This has lead to some lines starting with *batadv_... This * belongs to the return type and thus should be on the same line as the return type.

[PATCH 10/15] batman-adv: Add kernel-doc for batadv_interface_rx

2016-05-03 Thread Antonio Quartulli
From: Sven Eckelmann Signed-off-by: Sven Eckelmann Signed-off-by: Marek Lindner Signed-off-by: Antonio Quartulli --- net/batman-adv/soft-interface.c | 18 ++ 1 file changed, 18 insertions(+)

[PATCH 13/15] batman-adv: move and restructure batadv_v_ogm_forward

2016-05-03 Thread Antonio Quartulli
From: Simon Wunderlich To match our code better to the protocol description of B.A.T.M.A.N. V, move batadv_v_ogm_forward() out into batadv_v_ogm_process_per_outif() and move all checks directly deciding whether the OGM should be forwarded into batadv_v_ogm_forward().

[PATCH 15/15] batman-adv: Split batadv_iv_ogm_orig_del_if function

2016-05-03 Thread Antonio Quartulli
From: Sven Eckelmann batadv_iv_ogm_orig_del_if handles two different buffers bcast_own and bcast_own_sum which should be resized. The error handling two for allocating these buffers causes the complexity of this function. This can be avoided completely when the function is

[PATCH] tcp: ensure non-empty connection request queue

2016-05-03 Thread Peter Wu
When applications use listen() with a backlog of 0, the kernel would set the maximum connection request queue to zero. This causes false reports of SYN flooding (if tcp_syncookies is enabled) or packet drops otherwise. Prior kernels enforce a minimum size of 8, so do that now as well. Fixes:

Re: Cannot use NFS with linux-next 20160429

2016-05-03 Thread Eric Dumazet
ce 0:14. > > [7.680860] devtmpfs: mounted > > [7.685664] Freeing unused kernel memory: 1024K (c0c0 - c0d0) > > [7.871481] > > [7.873004] = > > [7.877381] [ INFO: inconsistent lock state ] > >

Re: Cannot use NFS with linux-next 20160429

2016-05-03 Thread Francois Romieu
memory: 1024K (c0c0 - c0d0) > [7.871481] > [7.873004] = > [7.877381] [ INFO: inconsistent lock state ] > [ 7.881760] 4.6.0-rc6-next-20160503-2-g51d9962 #351 Not tainted > [7.888043] - >

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

2016-05-03 Thread Pablo Neira Ayuso
On Thu, Apr 28, 2016 at 07:13:39PM +0200, Florian Westphal wrote: > [ CCing netdev so netns folks can have a look too ] > > This patch series removes the per-netns connection tracking tables. > All conntrack objects are then stored in one global global table. > > This avoids the infamous

Re: [PATCH nf-next 5/9] netfilter: conntrack: small refactoring of conntrack seq_printf

2016-05-03 Thread Pablo Neira Ayuso
On Tue, May 03, 2016 at 08:12:50PM +0200, Pablo Neira Ayuso wrote: > On Thu, Apr 28, 2016 at 07:13:44PM +0200, Florian Westphal wrote: > > The iteration process is lockless, so we test if the conntrack object is > > eligible for printing (e.g. is AF_INET) after obtaining the reference > > count. >

Re: [PATCH nf-next 3/9] netfilter: conntrack: don't attempt to iterate over empty table

2016-05-03 Thread Pablo Neira Ayuso
On Tue, May 03, 2016 at 07:55:59PM +0200, Florian Westphal wrote: > > Otherwise, every time we'll go container destruction path, we'll hit > > slow path, ie. scanning the full table. > > Yes, but I see no other choice. Fair enough, will place this in nf-next, thanks.

[PATCH 06/15] batman-adv: use to_delayed_work

2016-05-03 Thread Antonio Quartulli
From: Geliang Tang Use to_delayed_work() instead of open-coding it. Signed-off-by: Geliang Tang Reviewed-by: Sven Eckelmann Signed-off-by: Marek Lindner Signed-off-by: Antonio Quartulli

[PATCH 07/15] batman-adv: fix wrong names in kerneldoc

2016-05-03 Thread Antonio Quartulli
Signed-off-by: Antonio Quartulli [s...@narfation.org: Fix additional names] Signed-off-by: Sven Eckelmann Signed-off-by: Marek Lindner --- net/batman-adv/bridge_loop_avoidance.c | 2 +- net/batman-adv/distributed-arp-table.c |

[PATCH 09/15] batman-adv: Fix kerneldoc for batadv_compare_claim

2016-05-03 Thread Antonio Quartulli
From: Sven Eckelmann Signed-off-by: Sven Eckelmann Signed-off-by: Marek Lindner Signed-off-by: Antonio Quartulli --- net/batman-adv/bridge_loop_avoidance.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 08/15] batman-adv: Fix checkpatch warning about 'unsigned' type

2016-05-03 Thread Antonio Quartulli
From: Sven Eckelmann checkpatch.pl warns about the use of 'unsigned' as a short form for 'unsigned int'. Signed-off-by: Sven Eckelmann Signed-off-by: Marek Lindner Signed-off-by: Antonio Quartulli ---

[PATCH 05/15] batman-adv: use list_for_each_entry_safe

2016-05-03 Thread Antonio Quartulli
From: Geliang Tang Use list_for_each_entry_safe() instead of list_for_each_safe() to simplify the code. Signed-off-by: Geliang Tang Acked-by: Antonio Quartulli Reviewed-by: Sven Eckelmann Signed-off-by: Marek

[PATCH 01/15] MAINTAINERS: Mark BATMAN ADVANCED mailing list as moderated

2016-05-03 Thread Antonio Quartulli
From: Sven Eckelmann The mailing list of b.a.t.m@lists.open-mesh.org is moderated for non-subscribers and non-whitelisted addresses. Such mails will be delayed but the sender will not be informed about the moderation. Signed-off-by: Sven Eckelmann

[PATCH 03/15] batman-adv: Start new development cycle

2016-05-03 Thread Antonio Quartulli
From: Simon Wunderlich Signed-off-by: Simon Wunderlich Signed-off-by: Antonio Quartulli --- net/batman-adv/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/main.h

pull request: batman-adv 20160504

2016-05-03 Thread Antonio Quartulli
Hello David, this is a pull request intended for net-next. In this batch you don't have any patch that depends on our fixes, therefore you can safely merge it even if the net tree has not been merged yet. In this patchset you basically have some cleanup work, code refactoring, style fixes and

[PATCH 04/15] batman-adv: use static string for table headers

2016-05-03 Thread Antonio Quartulli
Use a static string when showing table headers rather then a nonsense parametric one with fixed arguments. It is easier to grep and it does not need to be recomputed at runtime each time. Reported-by: Joe Perches Signed-off-by: Antonio Quartulli

Re: [PATCH] fix infoleak in wireless

2016-05-03 Thread Greg Kroah-Hartman
A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I

Re: [PATCH] fix infoleak in wireless

2016-05-03 Thread Greg Kroah-Hartman
On Tue, May 03, 2016 at 05:11:07PM -0400, Kangjie Lu wrote: > Opps, I did not notice the patch is not attached. > > From 34a82a734388d07eb10f91770f86938e38f7575a Mon Sep 17 00:00:00 2001 > From: Kangjie Lu > Date: Tue, 3 May 2016 14:15:18 -0400 > Subject: [PATCH] fix infoleak in

Re: [REGRESSION] asix: Lots of asix_rx_fixup() errors and slow transmissions

2016-05-03 Thread Dean Jenkins
On 03/05/16 15:42, David B. Robins wrote: I don't think the first one is giving you problems (except as triggered by the second) but I had concerns about the second myself (and emailed the author off-list, but received no reply), and we did not take that commit for our own product. Sorry,

[no subject]

2016-05-03 Thread t...@a.microletter.net
�S著中��的高速�l展,不少企�I都在��子商�者@��行�I�l展�_�恚�市�龈�得非常激烈。 此�r,如何及�r�蚀_的找到客�粜畔�,��於企�I�碚f��得��常重要,因�檫@不�H可以���s�r�g成本,更重要的是可以��占先�C。 如果你缺少客�簦�也�]有客�糍Y料,那�N你已��慢你的同行一步了。 �]有捷�剑�只有付出汗水,天�崃四闳绾稳フ铱��簦� 很多人�x�窳穗���,�Q定付出自己的口舌,但�Y料�哪��恚}又出�F了,又一次迷失在了�ふ铱��舻碾��F中。

Re: [PATCH] fix infoleak in wireless

2016-05-03 Thread Greg Kroah-Hartman
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Tue, May 03, 2016 at 04:47:16PM -0400, Kangjie Lu wrote: > Hi Greg, > > Could you please take a look at this issue. > mac_addr is not initialized is some implementations of dump_station(), which >

[PATCH] fix infoleak in rtnetlink

2016-05-03 Thread Kangjie Lu
The stack object “map” has a total size of 32 bytes. Its last 4 bytes are padding generated by compiler. These padding bytes are not initialized and sent out via “nla_put”. Signed-off-by: Kangjie Lu --- net/core/rtnetlink.c | 18 ++ 1 file changed, 10

Re: [PATCH] fix infoleak in wireless

2016-05-03 Thread Johannes Berg
On Tue, 2016-05-03 at 16:40 -0400, Kangjie Lu wrote: > The 6-bytes array “mac_addr” is not initialized in the dump_station > implementations of > “drivers/staging/wilc1000/wilc_wfi_cfgoperations.c” > and “drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c”, so all 6 > bytes may be leaked. Like I

[GIT] Networking

2016-05-03 Thread David Miller
Some straggler bug fixes: 1) Batman-adv DAT must consider VLAN IDs when choosing candidate nodes, from Antonio Quartulli. 2) Fix botched reference counting of vlan objects and neigh nodes in batman-adv, from Sven Eckelmann. 3) netem can crash when it sees GSO packets, the fix is to

[PATCH] fix infoleak in wireless

2016-05-03 Thread Kangjie Lu
The 6-bytes array “mac_addr” is not initialized in the dump_station implementations of “drivers/staging/wilc1000/wilc_wfi_cfgoperations.c” and “drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c”, so all 6 bytes may be leaked. Signed-off-by: Kangjie Lu --- net/wireless/nl80211.c

[PATCH] fix infoleak in llc

2016-05-03 Thread Kangjie Lu
The stack object “info” has a total size of 12 bytes. Its last byte is padding which is not initialized and leaked via “put_cmsg”. Signed-off-by: Kangjie Lu --- net/llc/af_llc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c index

[PATCH net] bridge: fix igmp / mld query parsing

2016-05-03 Thread Linus Lüssing
With the newly introduced helper functions the skb pulling is hidden in the checksumming function - and undone before returning to the caller. The IGMP and MLD query parsing functions in the bridge still assumed that the skb is pointing to the beginning of the IGMP/MLD message while it is now

Re: [PATCH net] bridge: fix igmp / mld query parsing

2016-05-03 Thread Stephen Hemminger
On Tue, 3 May 2016 22:18:54 +0200 Linus Lüssing wrote: > diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c > index 03661d9..7105cdf 100644 > --- a/net/bridge/br_multicast.c > +++ b/net/bridge/br_multicast.c > @@ -1271,6 +1271,7 @@ static int

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

2016-05-03 Thread David Miller
From: Nicolas Dichtel Date: Tue, 3 May 2016 09:58:27 +0200 > The handler 'ila_fill_encap_info' adds one attribute: ILA_ATTR_LOCATOR. > > Fixes: 65d7ab8de582 ("net: Identifier Locator Addressing module") > CC: Tom Herbert > Signed-off-by:

Re: [PATCH net-next] tcp: guarantee forward progress in tcp_sendmsg()

2016-05-03 Thread David Miller
From: Eric Dumazet Date: Mon, 02 May 2016 21:49:25 -0700 > From: Eric Dumazet > > Under high rx pressure, it is possible tcp_sendmsg() never has a > chance to allocate an skb and loop forever as sk_flush_backlog() > would always return true. > >

Re: [PATCH net-next v2] ipv6: add new struct ipcm6_cookie

2016-05-03 Thread David Miller
From: Wei Wang Date: Mon, 2 May 2016 21:40:07 -0700 > From: Wei Wang > > In the sendmsg function of UDP, raw, ICMP and l2tp sockets, we use local > variables like hlimits, tclass, opt and dontfrag and pass them to > corresponding > functions like

[PATCH] mdio_bus: don't return NULL from mdiobus_scan()

2016-05-03 Thread Sergei Shtylyov
I've finally noticed that mdiobus_scan() also returns either NULL or error value on failure. Return ERR_PTR(-ENODEV) instead of NULL since this is the error value already filtered out by the callers that want to ignore the MDIO address scan failure... Signed-off-by: Sergei Shtylyov

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

2016-05-03 Thread David Miller
From: Marcel Holtmann Date: Mon, 2 May 2016 16:17:41 -0700 >> My proposal would be that the IPv6 patches go via net-next to reduce >> merge conflicts with maybe upcoming changes. If they are split up, they >> seem very much self contained and easy to review. The rest seems

Re: [PATCH net] net: macb: Probe MDIO bus before registering netdev

2016-05-03 Thread David Miller
From: Florian Fainelli Date: Mon, 2 May 2016 18:38:45 -0700 > The current sequence makes us register for a network device prior to > registering and probing the MDIO bus which could lead to some unwanted > consequences, like a thread of execution calling into ndo_open

Re: [PATCH net v2 0/2] RDS: TCP: sychronization during connection startup

2016-05-03 Thread David Miller
From: Sowmini Varadhan Date: Mon, 2 May 2016 11:24:50 -0700 > This patch series ensures that the passive (accept) side of the > TCP connection used for RDS-TCP is correctly synchronized with > any concurrent active (connect) attempts for a given pair of peers. > >

Re: [PATCH net-next] net: add __sock_wfree() helper

2016-05-03 Thread David Miller
From: Eric Dumazet Date: Mon, 02 May 2016 10:56:27 -0700 > From: Eric Dumazet > > Hosts sending lot of ACK packets exhibit high sock_wfree() cost > because of cache line miss to test SOCK_USE_WRITE_QUEUE > > We could move this flag close to

Re: [net-next PATCH v3 0/8] Fix Tunnel features and enable GSO partial for several drivers

2016-05-03 Thread David Miller
From: Alexander Duyck Date: Mon, 02 May 2016 09:38:06 -0700 > v3: Moved 2 patches into series for net as they were generic fixes. > Added patch to disable GSO partial if frame is less than 2x size of MSS I'll therefore apply this series after my next net --> net-next

Re: [net PATCH 0/2] Fixes for tunnel checksum and segmentation offloads

2016-05-03 Thread David Miller
From: Alexander Duyck Date: Mon, 02 May 2016 09:25:04 -0700 > This patch series is a subset of patches I had submitted for net-next. I > plan to drop these two patches from the v3 of "Fix Tunnel features and > enable GSO partial for several drivers" and I am instead

Re: [PATCH net-next 0/3] tipc: redesign socket-level flow control

2016-05-03 Thread David Miller
From: Jon Maloy Date: Mon, 2 May 2016 10:22:33 -0400 > The socket-level flow control in TIPC has long been due for a major > overhaul. This series fixes this. Series applied, thanks Jon.

Re: [PATCH 1/3] brcm80211: correct speed testing

2016-05-03 Thread David Miller
From: Oliver Neukum Date: Mon, 2 May 2016 13:06:12 +0200 > Allow for SS+ USB > > Signed-off-by: Oliver Neukum Applied.

Re: [PATCH 2/3] usbnet: correct speed testing

2016-05-03 Thread David Miller
From: Oliver Neukum Date: Mon, 2 May 2016 13:06:13 +0200 > Allow for SS+ USB > > Signed-off-by: Oliver Neukum Applied.

Re: [PATCH 3/3] rtl8152: correct speed testing

2016-05-03 Thread David Miller
From: Oliver Neukum Date: Mon, 2 May 2016 13:06:14 +0200 > Allow for SS+ USB > > Signed-off-by: Oliver Neukum Applied.

Re: [PATCH net-next 1/1] qed: Apply tunnel configurations after PF start

2016-05-03 Thread David Miller
From: Manish Chopra Date: Mon, 2 May 2016 06:16:04 -0400 > Configure and enable various tunnels on the > adapter after PF start. > > This change was missed as a part of > 'commit 464f664501816ef5fbbc00b8de96f4ae5a1c9325 > ("qed: Add infrastructure support for

Re: Cannot use NFS with linux-next 20160429

2016-05-03 Thread Fabio Estevam
[7.606456] #0: wm8962-audio [7.672659] VFS: Mounted root (nfs filesystem) readonly on device 0:14. [7.680860] devtmpfs: mounted [7.685664] Freeing unused kernel memory: 1024K (c0c0 - c0d0) [7.871481] [7.873004] = [7.877381]

Re: [PATCH v2] net: mvneta: Remove superfluous SMP function call

2016-05-03 Thread David Miller
From: Anna-Maria Gleixner Date: Mon, 2 May 2016 11:02:51 +0200 > Since commit 3b9d6da67e11 ("cpu/hotplug: Fix rollback during error-out > in __cpu_disable()") it is ensured that callbacks of CPU_ONLINE and > CPU_DOWN_PREPARE are processed on the hotplugged CPU. Due to

Re: [net-next PATCH v2 0/5] stmmac: dwmac-socfpga refactor+cleanup

2016-05-03 Thread David Miller
From: Joachim Eastwood Date: Sun, 1 May 2016 22:58:18 +0200 > This patch aims to remove the init/exit callbacks from the dwmac- > socfpga driver and instead use standard PM callbacks. Doing this > will also allow us to cleanup the driver. > > Eventually the init/exit

Re: [PATCH 2/2] mac80211_hwsim: Allow managing radios from non-initial namespaces

2016-05-03 Thread Johannes Berg
On Tue, 2016-05-03 at 08:53 +0200, Martin Willi wrote: >  > +static __net_init int hwsim_init_net(struct net *net) > +{ > + struct mac80211_hwsim_data *data; > + bool exists = true; > + int netgroup = 0; > + > + spin_lock_bh(_radio_lock); > + while (exists) { > +

Re: [PATCH] macb: fix mdiobus_scan() error check

2016-05-03 Thread David Miller
From: Sergei Shtylyov Date: Sun, 01 May 2016 01:47:36 +0300 > Now mdiobus_scan() returns ERR_PTR(-ENODEV) instead of NULL if the PHY > device ID was read as all ones. As this was not an error before, this > value should be filtered out now in this driver. >

Re: [PATCH] pxa168_eth: fix mdiobus_scan() error check

2016-05-03 Thread David Miller
From: Sergei Shtylyov Date: Sat, 30 Apr 2016 23:35:11 +0300 > Since mdiobus_scan() returns either an error code or NULL on error, the > driver should check for both, not only for NULL, otherwise a crash is > imminent... > > Reported-by: Arnd Bergmann

Re: [PATCH v6 00/21] Add HiSilicon RoCE driver

2016-05-03 Thread Leon Romanovsky
On Thu, Apr 28, 2016 at 08:09:35PM +0800, Lijun Ou wrote: > The HiSilicon Network Substem is a long term evolution IP which is > supposed to be used in HiSilicon ICT SoCs. HNS (HiSilicon Network > Sybsystem) also has a hardware support of performing RDMA with > RoCEE. > The driver for HiSilicon

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

2016-05-03 Thread Marc Angel
When creating macvtaps that are expected to have the same ifindex in different network namespaces, only the first one will succeed. The others will fail with a sysfs_warn_dup warning due to them trying to create the following sysfs link (with 'NN' the ifindex of macvtapX):

Re: [PATCHv2 bluetooth-next 05/10] ndisc: add addr_len parameter to ndisc_opt_addr_data

2016-05-03 Thread Stefan Schmidt
Hello. On 20/04/16 10:19, Alexander Aring wrote: This patch makes the address length as argument for the ndisc_opt_addr_data function. This is necessary to handle addresses which don't use dev->addr_len as address length. Cc: David S. Miller Cc: Alexey

Re: [PATCHv2 bluetooth-next 07/10] ipv6: introduce neighbour discovery ops

2016-05-03 Thread Stefan Schmidt
Hello. On 02/05/16 21:36, Hannes Frederic Sowa wrote: On 20.04.2016 10:19, Alexander Aring wrote: This patch introduces neighbour discovery ops callback structure. The structure contains at first receive and transmit handling for NS/NA and userspace option field functionality. These callback

Re: [PATCHv2 bluetooth-next 06/10] ndisc: add addr_len parameter to ndisc_fill_addr_option

2016-05-03 Thread Stefan Schmidt
Hello. On 20/04/16 10:19, Alexander Aring wrote: This patch makes the address length as argument for the ndisc_fill_addr_option function. This is necessary to handle addresses which don't use dev->addr_len as address length. Cc: David S. Miller Cc: Alexey

Re: [PATCHv2 bluetooth-next 04/10] ndisc: add addr_len parameter to ndisc_opt_addr_space

2016-05-03 Thread Stefan Schmidt
Hello. On 20/04/16 10:19, Alexander Aring wrote: This patch makes the address length as argument for the ndisc_opt_addr_space function. This is necessary to handle addresses which don't use dev->addr_len as address length. Cc: David S. Miller Cc: Alexey

Re: [PATCHv2 bluetooth-next 03/10] 6lowpan: remove ipv6 module request

2016-05-03 Thread Stefan Schmidt
Hello. On 20/04/16 10:19, Alexander Aring wrote: Since we use exported function from ipv6 kernel module we don't need to request the module anymore to have ipv6 functionality. Signed-off-by: Alexander Aring --- net/6lowpan/core.c | 2 -- 1 file changed, 2 deletions(-)

Re: [PATCHv2 bluetooth-next 02/10] 6lowpan: add 802.15.4 short addr slaac

2016-05-03 Thread Stefan Schmidt
Hello. On 20/04/16 10:19, Alexander Aring wrote: This patch adds the autoconfiguration if a valid 802.15.4 short address is available for 802.15.4 6LoWPAN interfaces. Cc: David S. Miller Cc: Alexey Kuznetsov Cc: James Morris Cc:

Re: [PATCHv2 bluetooth-next 01/10] 6lowpan: add private neighbour data

2016-05-03 Thread Stefan Schmidt
Hello. On 20/04/16 10:19, Alexander Aring wrote: This patch will introduce a 6lowpan neighbour private data. Like the interface private data we handle private data for generic 6lowpan and for link-layer specific 6lowpan. The current first use case if to save the short address for a 802.15.4

Re: [PATCH v1 net] net/mlx4: Avoid wrong virtual mappings

2016-05-03 Thread Or Gerlitz
On Tue, May 3, 2016, David Miller wrote: > From: Or Gerlitz >> The patch changes the driver to do single allocation for potentially >> very large HW WQE descriptor buffers such as those used by the RDMA >> (mlx5_ib) driver. > I know exactly what this

Re: [PATCH nf-next 5/9] netfilter: conntrack: small refactoring of conntrack seq_printf

2016-05-03 Thread Pablo Neira Ayuso
On Thu, Apr 28, 2016 at 07:13:44PM +0200, Florian Westphal wrote: > The iteration process is lockless, so we test if the conntrack object is > eligible for printing (e.g. is AF_INET) after obtaining the reference > count. > > Once we put all conntracks into same hash table we might see more >

Re: [PATCH nf-next 3/9] netfilter: conntrack: don't attempt to iterate over empty table

2016-05-03 Thread Florian Westphal
Pablo Neira Ayuso wrote: > > I was thinking of the cleanup we do in the netns exit path > > (in nf_conntrack_cleanup_net_list() ). > > Right, but in that path we still have entries in the table. Not necessarily, they might have already been removed (timeout, close). > > If

Re: [PATCH nf-next 3/9] netfilter: conntrack: don't attempt to iterate over empty table

2016-05-03 Thread Pablo Neira Ayuso
On Tue, May 03, 2016 at 07:17:44PM +0200, Florian Westphal wrote: > Pablo Neira Ayuso wrote: > > On Thu, Apr 28, 2016 at 07:13:42PM +0200, Florian Westphal wrote: > > > Once we place all conntracks into same table iteration becomes more > > > costly because the table contains

[PATCH v2 net-next] dmfe: kill DEVICE define

2016-05-03 Thread Florian Westphal
use net_device directly. Compile tested, objdiff shows no changes. Signed-off-by: Florian Westphal --- resending this separately as it's not related to the rest of the dev->trans_start removal series. drivers/net/ethernet/dec/tulip/dmfe.c | 39

Re: [PATCH net 0/4] Mellanox 100G mlx5 fixes for 4.6-rc

2016-05-03 Thread David Miller
From: Saeed Mahameed Date: Sun, 1 May 2016 22:59:53 +0300 > This small series provides some bug fixes for mlx5 driver. > > A small bug fix for iounmap of a null pointer, which dumps a warning on some > archs. > > One patch to fix the VXLAN/MLX5_EN dependency issue

Re: [PATCH nf-next 3/9] netfilter: conntrack: don't attempt to iterate over empty table

2016-05-03 Thread Florian Westphal
Pablo Neira Ayuso wrote: > On Thu, Apr 28, 2016 at 07:13:42PM +0200, Florian Westphal wrote: > > Once we place all conntracks into same table iteration becomes more > > costly because the table contains conntracks that we are not interested > > in (belonging to other netns).

Re: [PATCH] drivers: net: xgene: constify xgene_cle_ops structure

2016-05-03 Thread David Miller
From: Julia Lawall Date: Sun, 1 May 2016 14:36:28 +0200 > The xgene_cle_ops structure is never modified, so declare it as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Applied.

Re: [PATCH nf-next 3/9] netfilter: conntrack: don't attempt to iterate over empty table

2016-05-03 Thread Pablo Neira Ayuso
On Thu, Apr 28, 2016 at 07:13:42PM +0200, Florian Westphal wrote: > Once we place all conntracks into same table iteration becomes more > costly because the table contains conntracks that we are not interested > in (belonging to other netns). > > So don't bother scanning if the current namespace

Re: [PATCH 2/4] net: ethernet: ucc: move to new ethtool api {get|set}_link_ksettings

2016-05-03 Thread David Miller
From: Philippe Reynes Date: Sun, 1 May 2016 17:08:09 +0200 > The ethtool api {get|set}_settings is deprecated. > We move the ucc driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH 1/4] net: ethernet: gianfar: move to new ethtool api {get|set}_link_ksettings

2016-05-03 Thread David Miller
From: Philippe Reynes Date: Sun, 1 May 2016 17:08:08 +0200 > The ethtool api {get|set}_settings is deprecated. > We move the gianfar driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH 4/4] net: ethernet: fec_mpc52xx: move to new ethtool api {get|set}_link_ksettings

2016-05-03 Thread David Miller
From: Philippe Reynes Date: Sun, 1 May 2016 17:08:11 +0200 > The ethtool api {get|set}_settings is deprecated. > We move the fec_mpc52xx driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH RFT 1/2] phylib: add device reset GPIO support

2016-05-03 Thread Rob Herring
On Fri, Apr 29, 2016 at 01:12:54AM +0300, Sergei Shtylyov wrote: > The PHY devices sometimes do have their reset signal (maybe even power > supply?) tied to some GPIO and sometimes it also does happen that a boot > loader does not leave it deasserted. So far this issue has been attacked > from (as

  1   2   >