[PATCH v2 1/2] net: thunderx: HW TSO support for pass-2 hardware

2015-12-09 Thread Sunil Goutham
From: Sunil Goutham This adds support for offloading TCP segmentation to HW in pass-2 revision of hardware. Both driver level SW TSO for pass1.x chips and HW TSO for pass-2 chip will co-exist. Modified SQ descriptor structures to reflect pass-2 hw implementation. Signed-off-by: Sunil Goutham --

[PATCH v2 0/2] net: thunderx: Support for pass-2 hw features

2015-12-09 Thread Sunil Goutham
From: Sunil Goutham This patch set adds support for new features added in pass-2 revision of hardware like TSO and count based interrupt coalescing. Changes from v1: - Addressed comments received regarding boolean bit field changes by excluding them from this patch. Will submit a seperate p

Re: [PATCH] net/macb: add support for resetting PHY using GPIO

2015-12-09 Thread Sascha Hauer
Hi Gregory, On Wed, Dec 09, 2015 at 06:49:43PM +0100, Gregory CLEMENT wrote: > With device tree it is no more possible to reset the PHY at board > level. Furthermore, doing in the driver allow to power down the PHY when > the network interface is no more used. > > The patch introduces a new optio

Re: [RFC PATCHv2 net-next 1/2] tcp: RTO Restart (RTOR)

2015-12-09 Thread Per Hurtig
> On 08 Dec 2015, at 14:47, Eric Dumazet wrote: > > On Tue, 2015-12-08 at 10:19 +0100, Per Hurtig wrote: > >> +static u32 tcp_unsent_pkts(const struct sock *sk, u32 ulimit) >> +{ >> +struct sk_buff *skb = tcp_send_head(sk); >> +u32 pkts = 0; >> + >> +if (skb) >> +tcp_for

Re: [PATCH (net-next.git) 13/18] stmmac: perf, remove modulo in stmmac_rx()

2015-12-09 Thread Giuseppe CAVALLARO
On 12/10/2015 6:11 AM, Giuseppe CAVALLARO wrote: On 12/9/2015 6:21 PM, David Laight wrote: From: Giuseppe Cavallaro Sent: 09 December 2015 08:38 The indexes into the ring buffer are always incremented, and the entry is accessed via doing a modulo to find the "real" index. Modulo is an expensive

Re: [PATCH (net-next.git) 13/18] stmmac: perf, remove modulo in stmmac_rx()

2015-12-09 Thread Giuseppe CAVALLARO
On 12/9/2015 6:21 PM, David Laight wrote: From: Giuseppe Cavallaro Sent: 09 December 2015 08:38 The indexes into the ring buffer are always incremented, and the entry is accessed via doing a modulo to find the "real" index. Modulo is an expensive operation. This patch replaces the modulo with a

linux-next: manual merge of the akpm-current tree with the net-next tree

2015-12-09 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: include/net/sock.h between commits: 297dbde19cf6 ("netprio_cgroup: limit the maximum css->id to USHRT_MAX") 2a56a1fec290 ("net: wrap sock->sk_cgrp_prioidx and ->sk_classid inside a struct") from the net-next

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

2015-12-09 Thread Timur Tabi
Gilad Avidov wrote: pointer math on void* ? what is the size of void ? I'm talking about adding and subtracting pointer values, so u32 pkt_len =((void *)ip_hdr(skb) - skb->data) -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of

Re: [PATCH net-next v4 12/19] net: fcoe: use __ethtool_get_ksettings

2015-12-09 Thread David Decotigny
apologies, forgot to make allyesconfig/allmodconfig this time. Fixed in my local copy. Will be part of v5 after other feedback on this v4. On Wed, Dec 9, 2015 at 11:18 AM, kbuild test robot wrote: > Hi David, > > [auto build test ERROR on net-next/master] > > url: > https://github.com/0day-ci

[PATCH] drivers: net: cpsw: fix RMII/RGMII mode when used with fixed-link PHY

2015-12-09 Thread David Rivshin (Allworx)
Commit 1f71e8c96fc654724723ce987e0a8b2aeb81746d ("drivers: net: cpsw: Add support for fixed-link PHY") used a 'goto no_phy_slave' to skip over the processing of the mutually-exclusive "phy_id" property. Unfortunately that also skipped the "phy-mode" property processing, leaving slave_data->phy_if w

Re: [PATCH v5 0/4] stmmac: Fixed Phy & PTP fixes

2015-12-09 Thread David Miller
Please fix the date and time on your computer. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH bluetooth-next 10/10] ipv6: add ipv6_addr_prefix_copy

2015-12-09 Thread David Miller
From: Marcel Holtmann Date: Wed, 9 Dec 2015 14:28:38 -1000 > if there are no objections, I would like to take this change through the > bluetooth-next tree. No problem: Acked-by: David S. Miller -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to m

Re: [patch -next] VSOCK: signedness bug in virtio_transport_dgram_enqueue()

2015-12-09 Thread Stefan Hajnoczi
On Wed, Dec 09, 2015 at 01:27:13PM +0300, Dan Carpenter wrote: > "written" has to be signed for the error handling to work. > trans->ops->send_pkt() returns an int so that's fine. > > Fixes: 80a19e338d45 ('VSOCK: Introduce virtio-vsock-common.ko') > Signed-off-by: Dan Carpenter > > diff --git a/

[PATCH net] net: Flush local routes when device changes vrf association

2015-12-09 Thread David Ahern
The VRF driver cycles netdevs when an interface is enslaved or released: the down event is used to flush neighbor and route tables and the up event (if the interface was already up) effectively moves local and connected routes to the proper table. As of 4f823defdd5b the local route is left hanging

[PATCH v5 3/4] stmmac: Fix calculations for ptp counters when clock input = 50Mhz.

2015-12-09 Thread Phil Reid
stmmac_config_sub_second_increment set the sub second increment to 20ns. Driver is configured to use the fine adjustment method where the sub second register is incremented when the acculumator incremented by the addend register wraps overflows. This accumulator is update on every ptp clk cycle. If

[PATCH v5 0/4] stmmac: Fixed Phy & PTP fixes

2015-12-09 Thread Phil Reid
Provide ability to specify a fixed phy in the device tree and retain the mdio bus if no phy is found. This is needed where a dsa is connected via a fixed phy and uses the mdio bus for config. Fixed ptp ref clock calculatins for the stmmac when ptp ref clock is running at <= 50Mhz. Also add device

[PATCH v5 4/4] stmmac: socfpga: Provide dt node to config ptp clk source.

2015-12-09 Thread Phil Reid
Provides an options to use the ptp clock routed from the Altera FPGA fabric. Instead of the defalt eosc1 clock connected to the ARM HPS core. This setting affects all emacs in the core as the ptp clock is common. Acked-by: Rob Herring Signed-off-by: Phil Reid --- Documentation/devicetree/bindin

[PATCH v5 2/4] stmmac: Correct documentation on stmmac clocks.

2015-12-09 Thread Phil Reid
devm_get_clk looks in clock-name property for matching clock. the ptp_ref_clk property is ignored. Acked-by: Rob Herring Signed-off-by: Phil Reid --- Documentation/devicetree/bindings/net/stmmac.txt | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Documentat

[PATCH v5 1/4] stmmac: create of compatible mdio bus for stmacc driver

2015-12-09 Thread Phil Reid
The DSA driver needs to be passed a reference to an mdio bus. Typically the mac is configured to use a fixed link but the mdio bus still needs to be registered so that it con configure the switch. This patch follows the same process as the altera tse ethernet driver for creation of the mdio bus. A

Re: local route left hanging around in wrong table

2015-12-09 Thread David Ahern
On 12/9/15 4:32 PM, David Ahern wrote: At this point I don't see a simple solution to fix this for v4.4 hence this email -- any thoughts? never mind. As soon as you send up the flares you solve problem. patch coming soon. -- To unsubscribe from this list: send the line "unsubscribe netdev" in

[PATCH net v2 4/4] bnxt_en: Implement missing tx timeout reset logic.

2015-12-09 Thread Michael Chan
The reset logic calls bnxt_close_nic() and bnxt_open_nic() under rtnl_lock from bnxt_sp_task. BNXT_STATE_IN_SP_TASK must be cleared before calling bnxt_close_nic() to avoid deadlock. v2: Fixed white space error. Thanks Dave. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/b

[PATCH net v2 0/4] bnxt_en: Bug fix and add tx timeout recovery.

2015-12-09 Thread Michael Chan
Fix a bitmap declaration bug and add missing tx timeout recovery. v2: Fixed white space error. Thanks Dave. Michael Chan (4): bnxt_en: Fix bitmap declaration to work on 32-bit arches. bnxt_en: Change bp->state to bitmap. bnxt_en: Don't cancel sp_task from bnxt_close_nic(). bnxt_en: Imple

[PATCH net v2 2/4] bnxt_en: Change bp->state to bitmap.

2015-12-09 Thread Michael Chan
This allows multiple independent bits to be set for various states. Subsequent patches to implement tx timeout reset will require this. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 8 drivers/net/ethernet/broadcom/bnxt/bnxt.h | 5 ++--- drivers

[PATCH net v2 3/4] bnxt_en: Don't cancel sp_task from bnxt_close_nic().

2015-12-09 Thread Michael Chan
When implementing driver reset from tx_timeout in the next patch, bnxt_close_nic() will be called from the sp_task workqueue. Calling cancel_work() on sp_task will hang the workqueue. Instead, set a new bit BNXT_STATE_IN_SP_TASK when bnxt_sp_task() is running. bnxt_close_nic() will wait for BNXT_

[PATCH net v2 1/4] bnxt_en: Fix bitmap declaration to work on 32-bit arches.

2015-12-09 Thread Michael Chan
The declaration of the bitmap vf_req_snif_bmap using fixed array of unsigned long will only work on 64-bit archs. Use DECLARE_BITMAP instead which will work on all archs. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 11 +-- 1 file changed, 5 insertions(+),

Re: [PATCH bluetooth-next 10/10] ipv6: add ipv6_addr_prefix_copy

2015-12-09 Thread Marcel Holtmann
Hi Dave, > This patch adds a static inline function ipv6_addr_prefix_copy which > copies a ipv6 address prefix(argument pfx) into the ipv6 address prefix. > The prefix len is given by plen as bits. This function mainly based on > ipv6_addr_prefix which copies one address prefix from address into a

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

2015-12-09 Thread Gilad Avidov
Thank you Timur for the good review. On Wed, 9 Dec 2015 14:09:27 -0600 Timur Tabi wrote: > So first of all, thanks for posting this. I know it's missing a bunch > of stuff that's necessary for Qualcomm's Server chip, but it's a > start. > > Unfortunately, 6,000 lines is a lot to review at once

Re: [PATCH net 2/2] openvswitch: Respect conntrack zone even if invalid

2015-12-09 Thread Pravin Shelar
On Wed, Dec 9, 2015 at 2:07 PM, Joe Stringer wrote: > If userspace executes ct(zone=1), and the connection tracker determines > that the packet is invalid, then the ct_zone flow key field is populated > with the default zone rather than the zone that was specified. Even > though connection trackin

Re: [PATCH net 1/2] openvswitch: Fix helper reference leak

2015-12-09 Thread Pravin Shelar
On Wed, Dec 9, 2015 at 3:10 PM, Joe Stringer wrote: > On 9 December 2015 at 14:50, Pravin Shelar wrote: >> On Wed, Dec 9, 2015 at 2:07 PM, Joe Stringer wrote: >>> If the actions (re)allocation fails, or the actions list is larger than the >>> maximum size, and the conntrack action is the last ac

local route left hanging around in wrong table

2015-12-09 Thread David Ahern
The VRF driver cycles netdevs (down then up) when an interface is enslaved or released -- the down event is used to flush neighbor and route tables and the up event effectively moves local and connected routes to the proper table. As of 4f823defdd5b ("ipv4: fix to not remove local route on l

Re: [PATCH] mm: memcontrol: only manage socket pressure for CONFIG_INET

2015-12-09 Thread Andrew Morton
On Wed, 9 Dec 2015 18:05:05 -0500 Johannes Weiner wrote: > On Wed, Dec 09, 2015 at 02:28:36PM -0800, Andrew Morton wrote: > > On Wed, 9 Dec 2015 13:58:58 -0500 Johannes Weiner > > wrote: > > > The calls to tcp_init_cgroup() appear earlier in the series than "mm: > > > memcontrol: hook up vmpres

Re: Checksum offload queries

2015-12-09 Thread Thomas Graf
On 12/09/15 at 02:51pm, Tom Herbert wrote: > I'm sorry, I still don't understand your point. What is "automatic > nested checksum filling" and how does this relate to RX (e.g. > CHECSUM_COMPLETE). Too much compression ;-) My understanding of the thread was that the desired state is no checksum v

Re: [PATCH net 1/2] openvswitch: Fix helper reference leak

2015-12-09 Thread Joe Stringer
On 9 December 2015 at 14:50, Pravin Shelar wrote: > On Wed, Dec 9, 2015 at 2:07 PM, Joe Stringer wrote: >> If the actions (re)allocation fails, or the actions list is larger than the >> maximum size, and the conntrack action is the last action when these >> problems are hit, then references to he

Re: [PATCH] mm: memcontrol: only manage socket pressure for CONFIG_INET

2015-12-09 Thread Johannes Weiner
On Wed, Dec 09, 2015 at 02:28:36PM -0800, Andrew Morton wrote: > On Wed, 9 Dec 2015 13:58:58 -0500 Johannes Weiner wrote: > > > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > > > index 6faea81e66d7..73cd572167bb 100644 > > > --- a/mm/memcontrol.c > > > +++ b/mm/memcontrol.c > > > @@ -4220,13

Re: [PATCH net-next v3] net: Add fib rules at vrf device create

2015-12-09 Thread David Ahern
On 12/9/15 3:22 PM, David Miller wrote: Just write a script already... Why do you think this took so long to bubble up? I wrote a script back in July -- well before VRF was accepted into your tree -- that I use for testing. This request comes from other users starting to work with VRFs. --

Re: [PATCH net-next] ip_tunnel: Move stats update to iptunnel_xmit()

2015-12-09 Thread Pravin Shelar
On Tue, Dec 8, 2015 at 7:41 PM, David Miller wrote: > From: Pravin B Shelar > Date: Tue, 8 Dec 2015 19:22:34 -0800 > >> By moving stats update into iptunnel_xmit(), we can simplify >> iptunnel_xmit() usage. With this change there is no need to >> call another function (iptunnel_xmit_stats()) to

Re: Checksum offload queries

2015-12-09 Thread Tom Herbert
On Wed, Dec 9, 2015 at 2:29 PM, Thomas Graf wrote: > On 12/09/15 at 08:08am, Tom Herbert wrote: >> On Tue, Dec 8, 2015 at 5:56 PM, Thomas Graf wrote: >> > If I understood Edward correctly, his proposal would be for the >> > card to provide both, the csum as for CHECKSUM_COMPLETE plus the >> > val

Re: [PATCH net 1/2] openvswitch: Fix helper reference leak

2015-12-09 Thread Pravin Shelar
On Wed, Dec 9, 2015 at 2:07 PM, Joe Stringer wrote: > If the actions (re)allocation fails, or the actions list is larger than the > maximum size, and the conntrack action is the last action when these > problems are hit, then references to helper modules may be leaked. Fix > the issue. > > Fixes:

Re: Checksum offload queries

2015-12-09 Thread Thomas Graf
On 12/09/15 at 02:42pm, Tom Herbert wrote: > csum_start and csum_offset together occupy 32 bits. As demonstrated in > VXLAN RCO we can compress csum_start/csum_offset down to 8 bits which > means if necessary we could get up to four pairs in an sk_buff without > increasing its size. If you need mor

Re: [PATCH v2] r8169: Don't claim WoL works if LanWake flag is not set

2015-12-09 Thread Francois Romieu
Corinna Vinschen : [...] > This patch is supposed to fix this behaviour. If LanWake is 0, the > function now returns 0. Thus ethtool correctly reports "Wake-on: d". Can you turn it into a DMI controlled one (something like drivers/net/ethernet/marvell/skge.c use of dmi_check_system) in order to

Re: Checksum offload queries

2015-12-09 Thread Tom Herbert
On Wed, Dec 9, 2015 at 2:21 PM, Thomas Graf wrote: > On 12/09/15 at 10:00am, Tom Herbert wrote: >> On Wed, Dec 9, 2015 at 9:28 AM, Edward Cree wrote: >> > Which only pushes the problem onto when someone wants to nest >> > encapsulations. (I heard you like tunnels, so I put a tunnel in your >> >

Re: [PATCH] mm: memcontrol: only manage socket pressure for CONFIG_INET

2015-12-09 Thread Andrew Morton
On Wed, 9 Dec 2015 13:58:58 -0500 Johannes Weiner wrote: > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > > index 6faea81e66d7..73cd572167bb 100644 > > --- a/mm/memcontrol.c > > +++ b/mm/memcontrol.c > > @@ -4220,13 +4220,13 @@ mem_cgroup_css_online(struct cgroup_subsys_state > > *css) > >

Re: Checksum offload queries

2015-12-09 Thread Thomas Graf
On 12/09/15 at 08:08am, Tom Herbert wrote: > On Tue, Dec 8, 2015 at 5:56 PM, Thomas Graf wrote: > > If I understood Edward correctly, his proposal would be for the > > card to provide both, the csum as for CHECKSUM_COMPLETE plus the > > validation yes/no hint. It would be up to the kernel to decid

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-12-09 Thread Thomas Graf
On 12/09/15 at 05:21pm, David Miller wrote: > It is clearly the most appropriate middle layer representation. > > The fact that BPF could be generated from any P4 program, yet the > reverse is not true, tells me everything I need to know. > > I'm sorry if you have either a mental or a time invens

Re: bpf/asan related lockup

2015-12-09 Thread Daniel Borkmann
On 12/04/2015 08:06 PM, Alexei Starovoitov wrote: On Fri, Dec 04, 2015 at 01:23:33PM -0500, Dave Jones wrote: Trinity had aparently created a bpf program that upset things greatly. I guess I need to find a way to make it record those somewhere for replaying later. Alexei, any ideas ?

Re: [PATCH net-next v3] net: Add fib rules at vrf device create

2015-12-09 Thread David Miller
From: David Ahern Date: Wed, 9 Dec 2015 15:05:06 -0700 > On 12/9/15 1:13 PM, David Miller wrote: >> The new attributes make things more complex, because ever _VALID_ tool >> much accomodate the existing situation and be able to perform all of >> the commands above if they are executed on an older

Re: Checksum offload queries

2015-12-09 Thread Thomas Graf
On 12/09/15 at 10:00am, Tom Herbert wrote: > On Wed, Dec 9, 2015 at 9:28 AM, Edward Cree wrote: > > Which only pushes the problem onto when someone wants to nest > > encapsulations. (I heard you like tunnels, so I put a tunnel in your > > tunnel so you can encapsulate while you encapsulate.) > >

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-12-09 Thread David Miller
From: Thomas Graf Date: Wed, 9 Dec 2015 23:03:39 +0100 > On 12/09/15 at 09:38am, Alexei Starovoitov wrote: >> On Wed, Dec 09, 2015 at 01:58:57PM +0100, Thomas Graf wrote: >> > >> > So if the goal is to make the intent available to the hardware in >> > a format which both the kernel and the hardw

[PATCH net 1/2] openvswitch: Fix helper reference leak

2015-12-09 Thread Joe Stringer
If the actions (re)allocation fails, or the actions list is larger than the maximum size, and the conntrack action is the last action when these problems are hit, then references to helper modules may be leaked. Fix the issue. Fixes: cae3a2627520 ("openvswitch: Allow attaching helpers to ct action

[PATCH net 2/2] openvswitch: Respect conntrack zone even if invalid

2015-12-09 Thread Joe Stringer
If userspace executes ct(zone=1), and the connection tracker determines that the packet is invalid, then the ct_zone flow key field is populated with the default zone rather than the zone that was specified. Even though connection tracking failed, this field should be updated with the value that th

Re: [PATCH net-next v3] net: Add fib rules at vrf device create

2015-12-09 Thread David Ahern
On 12/9/15 1:13 PM, David Miller wrote: The new attributes make things more complex, because ever _VALID_ tool much accomodate the existing situation and be able to perform all of the commands above if they are executed on an older kernel. So the new attributes make things worse, not better. D

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-12-09 Thread Thomas Graf
On 12/09/15 at 09:38am, Alexei Starovoitov wrote: > On Wed, Dec 09, 2015 at 01:58:57PM +0100, Thomas Graf wrote: > > > > So if the goal is to make the intent available to the hardware in > > a format which both the kernel and the hardware can draw the same > > conclusions from, wouldn't something

Re: [PATCHv2 net] phy: micrel: Fix finding PHY properties in MAC node.

2015-12-09 Thread Andrew Lunn
> >-if (!of_node && dev->parent->of_node) > >-of_node = dev->parent->of_node; > >+/* The Micrel driver has a deprecated option to place phy OF > >+ * properties in the MAC node. Walk up the tree of devices to > >+ * find a device with an OF node. > >+ */ > >+dev_

Re: [PATCH] I.MX6: Fix Ethernet PHY mode on Ventana boards

2015-12-09 Thread Tim Harvey
On Tue, Dec 8, 2015 at 9:50 PM, Krzysztof HaƂasa wrote: > David Miller writes: > >> Since this only touched DT files in the ARM platform code, maybe >> the ARM tree is the best path for this patch rather than mine? > > I think so. > > Tim, would you like to handle this patch yourself, or should I

[PATCH bluetooth-next 08/10] 6lowpan: add lowpan dev register helpers

2015-12-09 Thread Alexander Aring
This patch introduces register and unregister functionality for lowpan interfaces. While register a lowpan interface there are several things which need to be initialize by the 6lowpan subsystem. Upcoming functionality need to register/unregister per interface components e.g. debugfs entry. Review

[PATCH bluetooth-next 06/10] 6lowpan: add nhc module for GHC fragmentation extension header detection

2015-12-09 Thread Alexander Aring
From: Stefan Schmidt Acked-by: Jukka Rissanen Signed-off-by: Stefan Schmidt Signed-off-by: Alexander Aring --- net/6lowpan/Kconfig| 6 ++ net/6lowpan/Makefile | 1 + net/6lowpan/nhc_ghc_ext_frag.c | 28 3 files changed, 35 insertions(+)

[PATCH bluetooth-next 04/10] 6lowpan: add nhc module for GHC ICMPv6 detection

2015-12-09 Thread Alexander Aring
From: Stefan Schmidt Acked-by: Jukka Rissanen Signed-off-by: Stefan Schmidt Signed-off-by: Alexander Aring --- net/6lowpan/Kconfig | 5 + net/6lowpan/Makefile | 1 + net/6lowpan/nhc_ghc_icmpv6.c | 27 +++ 3 files changed, 33 insertions(+) create

[PATCH bluetooth-next 07/10] 6lowpan: add nhc module for GHC routing extension header detection

2015-12-09 Thread Alexander Aring
From: Stefan Schmidt Acked-by: Jukka Rissanen Signed-off-by: Stefan Schmidt Signed-off-by: Alexander Aring --- net/6lowpan/Kconfig | 6 ++ net/6lowpan/Makefile| 1 + net/6lowpan/nhc_ghc_ext_route.c | 27 +++ 3 files changed, 34 insertions(

[PATCH bluetooth-next 02/10] 6lowpan: add nhc module for GHC hop-by-hopextension header detection

2015-12-09 Thread Alexander Aring
From: Stefan Schmidt Acked-by: Jukka Rissanen Signed-off-by: Stefan Schmidt Signed-off-by: Alexander Aring --- net/6lowpan/Kconfig | 6 ++ net/6lowpan/Makefile | 3 +++ net/6lowpan/nhc_ghc_ext_hop.c | 27 +++ 3 files changed, 36 insertions(+)

[PATCH bluetooth-next 09/10] 6lowpan: add debugfs support

2015-12-09 Thread Alexander Aring
This patch will introduce a 6lowpan entry into the debugfs if enabled. Inside this 6lowpan directory we create a subdirectories of all 6lowpan interfaces to offer a per interface debugfs support. Reviewed-by: Stefan Schmidt Signed-off-by: Alexander Aring --- include/net/6lowpan.h | 3 +++ ne

[PATCH bluetooth-next 03/10] 6lowpan: add nhc module for GHC UDP detection

2015-12-09 Thread Alexander Aring
From: Stefan Schmidt Acked-by: Jukka Rissanen Signed-off-by: Stefan Schmidt Signed-off-by: Alexander Aring --- net/6lowpan/Kconfig | 5 + net/6lowpan/Makefile | 1 + net/6lowpan/nhc_ghc_udp.c | 27 +++ 3 files changed, 33 insertions(+) create mode 100

[PATCH bluetooth-next 01/10] 6lowpan: clarify Kconfig entries for upcoming GHC support

2015-12-09 Thread Alexander Aring
From: Stefan Schmidt Acked-by: Jukka Rissanen Signed-off-by: Stefan Schmidt Signed-off-by: Alexander Aring --- net/6lowpan/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/6lowpan/Kconfig b/net/6lowpan/Kconfig index 7fa0f38..6af7a46 100644 --- a/net/6lowpan

[PATCH bluetooth-next 05/10] 6lowpan: add nhc module for GHC destination extension header detection

2015-12-09 Thread Alexander Aring
From: Stefan Schmidt Acked-by: Jukka Rissanen Signed-off-by: Stefan Schmidt Signed-off-by: Alexander Aring --- net/6lowpan/Kconfig| 6 ++ net/6lowpan/Makefile | 1 + net/6lowpan/nhc_ghc_ext_dest.c | 27 +++ 3 files changed, 34 insertions(+)

[PATCH bluetooth-next 10/10] ipv6: add ipv6_addr_prefix_copy

2015-12-09 Thread Alexander Aring
This patch adds a static inline function ipv6_addr_prefix_copy which copies a ipv6 address prefix(argument pfx) into the ipv6 address prefix. The prefix len is given by plen as bits. This function mainly based on ipv6_addr_prefix which copies one address prefix from address into a new ipv6 address

[PATCH bluetooth-next 00/10] 6lowpan: pending patches

2015-12-09 Thread Alexander Aring
Hi, these are the current pending patches for 6lowpan based on bluetooth-next. It contains the following new features: - per interface debugfs support, useful to add settings to offers a fast/simple userspace api for debugging. - register of available NHC compression by IANA, see [0]. - Addi

Re: [PATCH net-next] Doc: Micrel-ksz90x1.txt: Document deprecated MAC OF properties

2015-12-09 Thread Florian Fainelli
On December 9, 2015 10:39:03 AM PST, Andrew Lunn wrote: >Phy properties are expected to be found in the PHY OF node. However >this Micrel driver also allows them to be placed into the MAC OF node. >This is deprecated. Document it as such, and remove the example using >the deprecated method to prev

Re: [PATCHv2 net] phy: micrel: Fix finding PHY properties in MAC node.

2015-12-09 Thread Florian Fainelli
On December 9, 2015 10:56:31 AM PST, Andrew Lunn wrote: >commit 8b63ec1837fa ("phylib: Make PHYs children of their MDIO bus, >not the bus' parent.") changed the parenting of PHY devices, making >them a child of the MDIO bus, instead of the MAC device. This broken >the Micrel PHY driver which ha

Re: [PATCH bluetooth-next 00/10] 6lowpan: pending patches

2015-12-09 Thread Alexander Aring
Hi, sorry for the noise, I got a at PATCH 02/10: "4.7.0 Temporary System Problem. Try again later " from git send-email. I will look into this issue right now by doing some private testing and if it seems to run fine I will try again. - Alex -- To unsubscribe from this list: send the line

[PATCH bluetooth-next 01/10] 6lowpan: clarify Kconfig entries for upcoming GHC support

2015-12-09 Thread Alexander Aring
From: Stefan Schmidt Acked-by: Jukka Rissanen Signed-off-by: Stefan Schmidt Signed-off-by: Alexander Aring --- net/6lowpan/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/6lowpan/Kconfig b/net/6lowpan/Kconfig index 7fa0f38..6af7a46 100644 --- a/net/6lowpan

[PATCH bluetooth-next 00/10] 6lowpan: pending patches

2015-12-09 Thread Alexander Aring
Hi, these are the current pending patches for 6lowpan based on bluetooth-next. It contains the following new features: - per interface debugfs support, useful to add settings to offers a fast/simple userspace api for debugging. - register of available NHC compression by IANA, see [0]. - Addi

Re: [PATCH] mm: memcontrol: MEMCG no longer works with SLOB

2015-12-09 Thread Arnd Bergmann
On Wednesday 09 December 2015 15:01:07 Johannes Weiner wrote: > On Wed, Dec 09, 2015 at 05:32:39PM +0100, Arnd Bergmann wrote: > > The change to move the kmem accounting into the normal memcg > > code means we can no longer use memcg with slob, which lacks > > the memcg_params member in its struct

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

2015-12-09 Thread David Miller
From: Fabio Estevam Date: Wed, 9 Dec 2015 18:37:35 -0200 > On Wed, Dec 9, 2015 at 6:09 PM, Timur Tabi wrote: > >>> +/* set MAC address */ >>> +void emac_mac_addr_clear(struct emac_adapter *adpt, u8 *addr) >>> +{ >>> + u32 sta; >>> + >>> + /* for example: 00-A0-C6-11-22-33 >>> +

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

2015-12-09 Thread Fabio Estevam
On Wed, Dec 9, 2015 at 6:09 PM, Timur Tabi wrote: >> +/* set MAC address */ >> +void emac_mac_addr_clear(struct emac_adapter *adpt, u8 *addr) >> +{ >> + u32 sta; >> + >> + /* for example: 00-A0-C6-11-22-33 >> +* 0<-->C6112233, 1<-->00A0. >> +*/ > > /* > * Multi-line c

Re: [PATCH net-next 0/2] mlx5 minor SRIOV fixes

2015-12-09 Thread David Miller
From: Saeed Mahameed Date: Wed, 9 Dec 2015 13:39:32 +0200 > On Wed, Dec 9, 2015 at 4:41 AM, David Miller wrote: >> >> Don't do this, submitting two disconnected patch series for the same >> driver (mlx5), for the same tree (net-next). >> > for next time ? or you want me to re-submit those two pa

Re: [PATCH 1/2] net: thunderx: HW TSO support for pass-2 hardware

2015-12-09 Thread David Miller
From: Pavel Fedin Date: Wed, 09 Dec 2015 15:05:01 +0300 > Hello! > >> -Original Message- >> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On >> Behalf Of Sunil >> Goutham >> Sent: Wednesday, December 09, 2015 2:38 PM >> To: netdev@vger.kernel.org >> Cc: linux

Re: [PATCH v3 0/4] Add virtio transport for AF_VSOCK

2015-12-09 Thread Michael S. Tsirkin
On Wed, Dec 09, 2015 at 08:03:49PM +0800, Stefan Hajnoczi wrote: > Note: the virtio-vsock device specification is currently under review but not > yet finalized. Please review this code but don't merge until I send an update > when the spec is finalized. Thanks! Yes, this should have RFC in the

Re: [PATCH net-next v3] net: Add fib rules at vrf device create

2015-12-09 Thread David Miller
From: David Ahern Date: Wed, 9 Dec 2015 09:43:32 -0800 > VRFs require ip rules for route lookups to work properly. Currently > creating a VRF means instantiating a device and then adding the 4 ip > and ip6 rules: > > ip link add vrf-${VRF} type vrf table ${TBID} > ip link set vrf-${VRF}

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

2015-12-09 Thread Timur Tabi
So first of all, thanks for posting this. I know it's missing a bunch of stuff that's necessary for Qualcomm's Server chip, but it's a start. Unfortunately, 6,000 lines is a lot to review at once. Any chance you can break up the next version into smaller patches? On Mon, Dec 7, 2015 at 4:58 PM,

Re: [PATCHv2 net] phy: micrel: Fix finding PHY properties in MAC node.

2015-12-09 Thread Dinh Nguyen
On 12/09/2015 12:56 PM, Andrew Lunn wrote: > commit 8b63ec1837fa ("phylib: Make PHYs children of their MDIO bus, > not the bus' parent.") changed the parenting of PHY devices, making > them a child of the MDIO bus, instead of the MAC device. This broken > the Micrel PHY driver which has a deprecat

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-12-09 Thread David Miller
From: Alexei Starovoitov Date: Wed, 9 Dec 2015 09:38:44 -0800 > p4 is a high level language and absolutely not suitable for such purpose. > bpf as intermediate representation can be generated from p4 or C or other > language. There is room to innovate in the language definition on top > and in HW

Re: [PATCH net-next] cgroup: fix sock_cgroup_data initialization on earlier compilers

2015-12-09 Thread David Miller
From: Tejun Heo Date: Wed, 9 Dec 2015 12:30:46 -0500 > sock_cgroup_data is a struct containing an anonymous union. > sock_cgroup_set_prioidx() and sock_cgroup_set_classid() were > initializing a field inside the anonymous union as follows. > > struct sock_ccgroup_data skcd_buf = { .val = VAL };

Re: [PATCH] mm: memcontrol: MEMCG no longer works with SLOB

2015-12-09 Thread Johannes Weiner
On Wed, Dec 09, 2015 at 05:32:39PM +0100, Arnd Bergmann wrote: > The change to move the kmem accounting into the normal memcg > code means we can no longer use memcg with slob, which lacks > the memcg_params member in its struct kmem_cache: > > ../mm/slab.h: In function 'is_root_cache': > ../mm/sl

Re: [PATCH net] ipv6: sctp: clone options to avoid use after free

2015-12-09 Thread Daniel Borkmann
On 12/09/2015 06:11 PM, Marcelo Ricardo Leitner wrote: Em 09-12-2015 14:31, David Laight escreveu: From: Eric Dumazet [mailto:eric.duma...@gmail.com] Sent: 09 December 2015 16:00 On Wed, 2015-12-09 at 15:49 +, David Laight wrote: SCTP is lacking proper np->opt cloning at accept() time. TC

Re: [PATCH net-next v4 12/19] net: fcoe: use __ethtool_get_ksettings

2015-12-09 Thread kbuild test robot
Hi David, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/David-Decotigny/RFC-new-ETHTOOL_GSETTINGS-SSETTINGS-API/20151210-022123 config: i386-randconfig-b0-12100240 (attached as .config) reproduce: # save the attached .config to linux build tr

Re: [PATCH 1/3] ser_gigaset: fix up NULL checks

2015-12-09 Thread Paul Bolle
On wo, 2015-12-09 at 12:12 +, One Thousand Gnomes wrote: > On Wed, 9 Dec 2015 11:45:57 +0100 > Tilman Schmidt wrote: > Want a patch on top of Paul's change or a single > patch including both and crediting him ? There's no change that can be attributed to me, I think. We're discussing a series

Re: [PATCH net] phy: micrel: Fix finding PHY properties in MAC node.

2015-12-09 Thread David Daney
On 12/09/2015 10:37 AM, Andrew Lunn wrote: commit 8b63ec1837fa ("phylib: Make PHYs children of their MDIO bus, not the bus' parent.") changed the parenting of PHY devices, making them a child of the MDIO bus, instead of the MAC device. This broken the Micrel PHY driver which has a deprecated fea

Re: [PATCH] net/macb: add support for resetting PHY using GPIO

2015-12-09 Thread kbuild test robot
Hi Gregory, [auto build test ERROR on net-next/master] [also build test ERROR on v4.4-rc4 next-20151209] url: https://github.com/0day-ci/linux/commits/Gregory-CLEMENT/net-macb-add-support-for-resetting-PHY-using-GPIO/20151210-015931 config: x86_64-acpi-redef (attached as .config) reproduce

Re: [PATCH net] phy: micrel: Fix finding PHY properties in MAC node.

2015-12-09 Thread David Daney
On 12/09/2015 10:37 AM, Andrew Lunn wrote: commit 8b63ec1837fa ("phylib: Make PHYs children of their MDIO bus, not the bus' parent.") changed the parenting of PHY devices, making them a child of the MDIO bus, instead of the MAC device. This broken the Micrel PHY driver which has a deprecated fea

Re: forwarding of ipv4 link local addresses

2015-12-09 Thread David Ahern
On 12/9/15 6:44 AM, Thomas Graf wrote: On 12/03/15 at 02:35pm, David Miller wrote: From: David Ahern Date: Tue, 1 Dec 2015 13:35:58 -0800 RFC 3927 states that packets from/to IPv4 link-local addresses (169.254/16) should not be forwarded, yet the Linux networking stack happily forwards them.

Re: [PATCH] mm: memcontrol: only manage socket pressure for CONFIG_INET

2015-12-09 Thread Johannes Weiner
On Wed, Dec 09, 2015 at 05:32:16PM +0100, Arnd Bergmann wrote: > When IPV4 support is disabled, the memcg->socket_pressure field is > not defined and we get a build error from the vmpressure code: > > mm/vmpressure.c: In function 'vmpressure': > mm/vmpressure.c:287:9: error: 'struct mem_cgroup' ha

[PATCHv2 net] phy: micrel: Fix finding PHY properties in MAC node.

2015-12-09 Thread Andrew Lunn
commit 8b63ec1837fa ("phylib: Make PHYs children of their MDIO bus, not the bus' parent.") changed the parenting of PHY devices, making them a child of the MDIO bus, instead of the MAC device. This broken the Micrel PHY driver which has a deprecated feature of allowing PHY properties to be placed

Re: [PATCH net] phy: micrel: Fix finding PHY properties in MAC node.

2015-12-09 Thread Andrew Lunn
> >diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c > >index cf6312fafea5..2493d7c035f2 100644 > >--- a/drivers/net/phy/micrel.c > >+++ b/drivers/net/phy/micrel.c > >@@ -26,6 +26,7 @@ > > #include > > #include > > #include > >+#include > > No new types are introduced by the

[PATCH net-next] Doc: Micrel-ksz90x1.txt: Document deprecated MAC OF properties

2015-12-09 Thread Andrew Lunn
Phy properties are expected to be found in the PHY OF node. However this Micrel driver also allows them to be placed into the MAC OF node. This is deprecated. Document it as such, and remove the example using the deprecated method to prevent people copying it into new device tree files. Signed-off

[PATCH net] phy: micrel: Fix finding PHY properties in MAC node.

2015-12-09 Thread Andrew Lunn
commit 8b63ec1837fa ("phylib: Make PHYs children of their MDIO bus, not the bus' parent.") changed the parenting of PHY devices, making them a child of the MDIO bus, instead of the MAC device. This broken the Micrel PHY driver which has a deprecated feature of allowing PHY properties to be placed

Re: bpf: undefined shift in __bpf_prog_run

2015-12-09 Thread Daniel Borkmann
On 12/04/2015 08:10 PM, Alexei Starovoitov wrote: On Fri, Dec 04, 2015 at 08:03:47PM +0100, Dmitry Vyukov wrote: is it with some random seccomp program? If normal libseccomp generates such programs than it needs to be fixed. Yes, it is with completely random seccomp program. Such shifts have

Re: [PATCH] net/macb: add support for resetting PHY using GPIO

2015-12-09 Thread Moritz Fischer
Hi Gregory, so far dealt with this in u-boot. The power down the PHY part makes sense, though. Minor nit down inline. Will need to test on hardware (Zynq). On Wed, Dec 9, 2015 at 9:49 AM, Gregory CLEMENT wrote: > With device tree it is no more possible to reset the PHY at board > level. Furtherm

[PATCH net-next v4 09/19] net: ipvlan: use __ethtool_get_ksettings

2015-12-09 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/ipvlan/ipvlan_main.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c index a9268db..63b3aa5 100644 --- a/drivers/net/ipvlan/ipvlan

[PATCH net-next v4 06/19] tx4939: use __ethtool_get_ksettings

2015-12-09 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- arch/mips/txx9/generic/setup_tx4939.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/mips/txx9/generic/setup_tx4939.c b/arch/mips/txx9/generic/setup_tx4939.c index e3733cd..4a3ebf6 100644 --- a/arch/mips/

[PATCH net-next v4 13/19] net: rdma: use __ethtool_get_ksettings

2015-12-09 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- include/rdma/ib_addr.h | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/include/rdma/ib_addr.h b/include/rdma/ib_addr.h index 1152859..1820f26 100644 --- a/include/rdma/ib_addr.h +++ b/include/rdma/ib_add

[PATCH net-next v4 17/19] net: ethtool: remove unused __ethtool_get_settings

2015-12-09 Thread David Decotigny
From: David Decotigny replaced by __ethtool_get_ksettings. Signed-off-by: David Decotigny --- include/linux/ethtool.h | 4 net/core/ethtool.c | 45 ++--- 2 files changed, 14 insertions(+), 35 deletions(-) diff --git a/include/linux/ethtool.h

  1   2   3   >