Re: [PATCH] vlan: propagate gso_min_segs

2016-03-22 Thread Eric Dumazet
On Wed, 2016-03-23 at 09:35 +0800, Haishuang Yan wrote: > vlan drivers lack proper propagation of gso_min_segs from lower device. > > Signed-off-by: Haishuang Yan > --- The plan was to get rid of gso_min_segs, as nothing uses it. Otherwise I would have

[PATCH] vlan: propagate gso_min_segs

2016-03-22 Thread Haishuang Yan
vlan drivers lack proper propagation of gso_min_segs from lower device. Signed-off-by: Haishuang Yan --- drivers/net/ipvlan/ipvlan_main.c | 2 ++ drivers/net/macvlan.c| 1 + net/8021q/vlan.c | 1 + net/8021q/vlan_dev.c |

[PATCH] gre: fix return value of gre_rcv

2016-03-22 Thread Haishuang Yan
Dropped skb's should be documented by an appropriate return value. Use the correct NET_RX_DROP and NET_RX_SUCCESS values for that reason. Signed-off-by: Haishuang Yan --- net/ipv4/ip_gre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH net v2] xfrm: Fix crash observed during device unregistration and decryption

2016-03-22 Thread Subash Abhinov Kasiviswanathan
A crash is observed when a decrypted packet is processed in receive path. get_rps_cpus() tries to dereference the skb->dev fields but it appears that the device is freed from the poison pattern. [] get_rps_cpu+0x94/0x2f0 [] netif_rx_internal+0x140/0x1cc [] netif_rx+0x74/0x94 []

Re: [PATCH] ipv6: Fix the pmtu path for connected UDP socket

2016-03-22 Thread Eric Dumazet
On Tue, 2016-03-22 at 13:13 -0700, Cong Wang wrote: > On Tue, Mar 22, 2016 at 11:03 AM, Wei Wang wrote: > > Thanks Martin and Cong. > > > > I guess then we are going with the following fix in ip6_sk_update_pmtu(): > > 1. call ip6_upate_pmtu() as it is > > 2. do a dst_check()

[net PATCH] net: Reset encap_level to avoid resetting features on inner IP headers

2016-03-22 Thread Alexander Duyck
This patch corrects an oversight in which we were allowing the encap_level value to pass from the outer headers to the inner headers. As a result we were incorrectly identifying UDP or GRE tunnels as also making use of ipip or sit when the second header actually represented a tunnel encapsulated

[PATCH] net: mediatek: fix checking for NULL instead of IS_ERR() in .probe

2016-03-22 Thread Vladimir Zapolskiy
devm_ioremap_resource() returns ERR_PTR() value on error, it never returns NULL, fix it and propagate the returned error upwards. Fixes: 656e705243fd ("net-next: mediatek: add support for MT7623 ethernet") Signed-off-by: Vladimir Zapolskiy ---

Re: [PATCH net-next] net: Fix remote checksum offload with GUE

2016-03-22 Thread Tom Herbert
On Tue, Mar 22, 2016 at 3:09 PM, Tom Herbert wrote: > On Tue, Mar 22, 2016 at 2:45 PM, Alexander Duyck > wrote: >> On Tue, Mar 22, 2016 at 2:10 PM, Tom Herbert wrote: >>> On Tue, Mar 22, 2016 at 1:20 PM, Alexander Duyck >>>

[PATCH v2] prism54: isl_38xx: Replace 'struct timeval'

2016-03-22 Thread Tina Ruchandani
'struct timeval' uses a 32-bit seconds field which will overflow in year 2038 and beyond. This patch is part of a larger effort to remove all instances of 'struct timeval' from the kernel and replace them with 64-bit timekeeping variables. The correctness of the code isn't affected by this patch -

Re: [PATCH net-next] net: Fix remote checksum offload with GUE

2016-03-22 Thread Tom Herbert
On Tue, Mar 22, 2016 at 2:45 PM, Alexander Duyck wrote: > On Tue, Mar 22, 2016 at 2:10 PM, Tom Herbert wrote: >> On Tue, Mar 22, 2016 at 1:20 PM, Alexander Duyck >> wrote: >>> On Tue, Mar 22, 2016 at 12:19 PM, Tom

Re: [PATCH net-next] net: Fix remote checksum offload with GUE

2016-03-22 Thread Alexander Duyck
On Tue, Mar 22, 2016 at 2:10 PM, Tom Herbert wrote: > On Tue, Mar 22, 2016 at 1:20 PM, Alexander Duyck > wrote: >> On Tue, Mar 22, 2016 at 12:19 PM, Tom Herbert wrote: >>> In skb_segment the check of whether or not to

[PATCH] at803x: fix reset handling

2016-03-22 Thread Sergei Shtylyov
The driver of course "knows" that the chip's reset signal is active low, so it drives the GPIO to 0 to reset the PHY and to 1 otherwise; however all this will only work iff the GPIO is specified as active-high in the device tree! I think both the driver and the device trees (if there are any

Re: [RFC PATCH 7/9] GSO: Support partial segmentation offload

2016-03-22 Thread Alexander Duyck
On Tue, Mar 22, 2016 at 12:40 PM, Edward Cree wrote: > On 22/03/16 17:47, Alexander Duyck wrote: >> On Tue, Mar 22, 2016 at 10:00 AM, Edward Cree wrote: >>> On 18/03/16 23:25, Alexander Duyck wrote: This patch adds support for something I am

Re: [PATCH] macb: fix PHY reset

2016-03-22 Thread Sergei Shtylyov
On 03/22/2016 11:07 PM, David Miller wrote: On 03/22/2016 10:27 PM, Sergei Shtylyov wrote: The driver calls gpiod_set_value() with GPIOD_OUT_* instead of 0 and 1, as a result the PHY isn't really put back into reset state in macb_remove(). Moreover, the driver assumes that something else has

Re: [PATCH net] ipv4: initialize flowi4_flags before calling fib_lookup()

2016-03-22 Thread Cong Wang
On Tue, Mar 22, 2016 at 2:02 PM, David Ahern wrote: > On 3/22/16 2:45 PM, Cong Wang wrote: >> >> @@ -1426,7 +1426,7 @@ int fib_table_lookup(struct fib_table *tb, const >> struct flowi4 *flp, >> nh->nh_flags & RTNH_F_LINKDOWN && >>

Re: [PATCH net-next] net: Fix remote checksum offload with GUE

2016-03-22 Thread Tom Herbert
On Tue, Mar 22, 2016 at 1:20 PM, Alexander Duyck wrote: > On Tue, Mar 22, 2016 at 12:19 PM, Tom Herbert wrote: >> In skb_segment the check of whether or not to perform the checksum on >> host was changed to not consider rather remote checksum

Re: [PATCH] macb: fix PHY reset

2016-03-22 Thread Sergei Shtylyov
On 03/22/2016 11:07 PM, David Miller wrote: The driver calls gpiod_set_value() with GPIOD_OUT_* instead of 0 and 1, as a result the PHY isn't really put back into reset state in macb_remove(). Moreover, the driver assumes that something else has set the GPIO direction to output, so if it has

Re: [PATCH net] ipv4: initialize flowi4_flags before calling fib_lookup()

2016-03-22 Thread David Ahern
On 3/22/16 2:45 PM, Cong Wang wrote: @@ -1426,7 +1426,7 @@ int fib_table_lookup(struct fib_table *tb, const struct flowi4 *flp, nh->nh_flags & RTNH_F_LINKDOWN && !(fib_flags & FIB_LOOKUP_IGNORE_LINKSTATE))

Re: [PATCH net] ipv4: initialize flowi4_flags before calling fib_lookup()

2016-03-22 Thread Cong Wang
On Tue, Mar 22, 2016 at 11:29 AM, David Ahern wrote: > On 3/22/16 9:31 AM, Lance Richardson wrote: >> >> Field fl4.flowi4_flags is not initialized in fib_compute_spec_dst() >> before calling fib_lookup(), which means fib_table_lookup() is >> using non-deterministic data

Re: [PATCH net-next] net: Fix remote checksum offload with GUE

2016-03-22 Thread Alexander Duyck
On Tue, Mar 22, 2016 at 12:19 PM, Tom Herbert wrote: > In skb_segment the check of whether or not to perform the checksum on > host was changed to not consider rather remote checksum offload is > in use. In the case that can_checksum_protocol fails the checksum > is computed

Re: [PATCH v3 0/2] AF_VSOCK: Shrink the area influenced by prepare_to_wait

2016-03-22 Thread David Miller
From: Claudio Imbrenda Date: Tue, 22 Mar 2016 17:05:50 +0100 > This patchset applies on net-next. > > I think I found a problem with the patch submitted by Laura Abbott > ( https://lkml.org/lkml/2016/2/4/711 ): we might miss wakeups. > Since the condition is not

Re: [RFC PATCH 7/9] GSO: Support partial segmentation offload

2016-03-22 Thread David Miller
From: Jesse Gross Date: Tue, 22 Mar 2016 13:11:21 -0700 > Features that have been designed this way in the past are usually > pretty fragile. Not only would you have to track changes in the > routing table but you could have bridges, tc, vlan devices, etc. all > of which might

Re: [PATCH net] ipv4: initialize flowi4_flags before calling fib_lookup()

2016-03-22 Thread Eric Dumazet
On Tue, 2016-03-22 at 13:00 -0600, David Ahern wrote: > On 3/22/16 12:56 PM, Lance Richardson wrote: > > > > Fixes: 58189ca7b2741 ("net: Fix vti use case with oif in dst lookups") > DaveM: this should go into stable releases back to v4.3. > The 'Fixes' tag tells this already ;) $ git describe

Re: [PATCH] ipv6: Fix the pmtu path for connected UDP socket

2016-03-22 Thread Cong Wang
On Tue, Mar 22, 2016 at 11:03 AM, Wei Wang wrote: > Thanks Martin and Cong. > > I guess then we are going with the following fix in ip6_sk_update_pmtu(): > 1. call ip6_upate_pmtu() as it is > 2. do a dst_check() > 3. re-lookup() if it is invalid > 4. and then do a

Re: [RFC PATCH 7/9] GSO: Support partial segmentation offload

2016-03-22 Thread Jesse Gross
On Tue, Mar 22, 2016 at 12:40 PM, Edward Cree wrote: > On 22/03/16 17:47, Alexander Duyck wrote: >> On Tue, Mar 22, 2016 at 10:00 AM, Edward Cree wrote: >>> On 18/03/16 23:25, Alexander Duyck wrote: This patch adds support for something I am

Re: [PATCH] macb: fix PHY reset

2016-03-22 Thread David Miller
From: Sergei Shtylyov Date: Tue, 22 Mar 2016 22:34:05 +0300 > On 03/22/2016 10:27 PM, Sergei Shtylyov wrote: > >> The driver calls gpiod_set_value() with GPIOD_OUT_* instead of 0 and >> 1, as >> a result the PHY isn't really put back into reset state in >>

Re: [PATCH net] ipv4: initialize flowi4_flags before calling fib_lookup()

2016-03-22 Thread David Miller
From: Lance Richardson Date: Tue, 22 Mar 2016 14:58:59 -0400 (EDT) > Apologies, that should have been [PATCH v2 net]. No worries. Applied and queued up for -stable, thanks.

Re: [PATCH] fsl/fman: Workaround for Errata A-007273

2016-03-22 Thread David Miller
From: Date: Mon, 21 Mar 2016 23:08:11 +0200 > From: Igal Liberman > > Errata A-007273 (For FMan V3 devices only): > FMan soft reset is not finished properly if one > of the Ethernet MAC clocks is disabled > > Workaround: > Re-enable

Re: [PATCH v8 net-next] ravb: Add dma queue interrupt support

2016-03-22 Thread David Miller
From: Yoshihiro Kaneko Date: Wed, 23 Mar 2016 00:22:00 +0900 > From: Kazuya Mizuguchi > > This patch supports the following interrupts. > > - One interrupt for multiple (timestamp, error, gPTP) > - One interrupt for emac > - Four

Re: [PATCH net v2] ipv4: fix broadcast packets reception

2016-03-22 Thread David Miller
From: Paolo Abeni Date: Tue, 22 Mar 2016 09:19:38 +0100 > Currently, ingress ipv4 broadcast datagrams are dropped since, > in udp_v4_early_demux(), ip_check_mc_rcu() is invoked even on > bcast packets. > > This patch addresses the issue, invoking ip_check_mc_rcu() > only for

Re: [PATCH V2 net 00/10] net: hns: bugs fixed for hns

2016-03-22 Thread David Miller
From: Yisen Zhuang Date: Tue, 22 Mar 2016 16:06:21 +0800 > This series includes some bug fixes and updates for hns driver. > >>from Daode, one fix about mss. > >>from Kejian, one fix about ping6 issue, one fix about mac address setting, > two fix for RSS setting, two

Re: [PATCH 4/5] net: sxgbe: fix error paths in sxgbe_platform_probe()

2016-03-22 Thread Rasmus Villemoes
ping^2 On Tue, Mar 08 2016, Rasmus Villemoes wrote: > ping > > On Tue, Feb 09 2016, Rasmus Villemoes wrote: > >> We need to use post-decrement to ensure that irq_dispose_mapping is >> also called on priv->rxq[0]->irq_no; moreover, if one of

Re: [RFC PATCH 7/9] GSO: Support partial segmentation offload

2016-03-22 Thread Edward Cree
On 22/03/16 17:47, Alexander Duyck wrote: > On Tue, Mar 22, 2016 at 10:00 AM, Edward Cree wrote: >> On 18/03/16 23:25, Alexander Duyck wrote: >>> This patch adds support for something I am referring to as GSO partial. >>> The basic idea is that we can support a broader range

Re: [PATCH] net: phy: at803x: don't depend on GPIOLIB

2016-03-22 Thread Uwe Kleine-König
Hello Sebastian, On Tue, Mar 22, 2016 at 03:34:23PM +0100, Sebastian Frias wrote: > I think we are in a deadlock :-) > I'm going to reply inline below, but I will also send a different email > to Daniel with a small recap. > I think he should share the intent of the "reset" mechanism he >

[PATCH] macb: fix PHY reset

2016-03-22 Thread Sergei Shtylyov
The driver calls gpiod_set_value() with GPIOD_OUT_* instead of 0 and 1, as a result the PHY isn't really put back into reset state in macb_remove(). Moreover, the driver assumes that something else has set the GPIO direction to output, so if it has not, the PHY wouldn't be taken out of reset in

[PATCH net-next] net: Fix remote checksum offload with GUE

2016-03-22 Thread Tom Herbert
In skb_segment the check of whether or not to perform the checksum on host was changed to not consider rather remote checksum offload is in use. In the case that can_checksum_protocol fails the checksum is computed regardless. __skb_udp_tunnel_segment was modified in a related patch to add

Re: [PATCH net] ipv4: initialize flowi4_flags before calling fib_lookup()

2016-03-22 Thread David Ahern
On 3/22/16 12:56 PM, Lance Richardson wrote: Field fl4.flowi4_flags is not initialized in fib_compute_spec_dst() before calling fib_lookup(), which means fib_table_lookup() is using non-deterministic data at this line: if (!(flp->flowi4_flags & FLOWI_FLAG_SKIP_NH_OIF)) { Fix by

Re: [PATCH net] ipv4: initialize flowi4_flags before calling fib_lookup()

2016-03-22 Thread Lance Richardson
Apologies, that should have been [PATCH v2 net]. - Original Message - > From: "Lance Richardson" > To: netdev@vger.kernel.org > Cc: d...@cumulusnetworks.com > Sent: Tuesday, March 22, 2016 2:56:57 PM > Subject: [PATCH net] ipv4: initialize flowi4_flags before calling

[PATCH net] ipv4: initialize flowi4_flags before calling fib_lookup()

2016-03-22 Thread Lance Richardson
Field fl4.flowi4_flags is not initialized in fib_compute_spec_dst() before calling fib_lookup(), which means fib_table_lookup() is using non-deterministic data at this line: if (!(flp->flowi4_flags & FLOWI_FLAG_SKIP_NH_OIF)) { Fix by initializing the entire fl4 structure, which will

Re: [PATCH v4 2/3] IB/hns: Add HiSilicon RoCE driver support

2016-03-22 Thread Christoph Hellwig
> drivers/infiniband/Kconfig |1 + > drivers/infiniband/hw/Makefile |1 + > drivers/infiniband/hw/hisilicon/hns/Kconfig| 10 + To fit in with the other drivers drop the hisilicon level of the directory hierarchy. Haven't had time to

Re: [PATCH net] ipv4: initialize flowi4_flags before calling fib_lookup()

2016-03-22 Thread Lance Richardson
- Original Message - > From: "David Ahern" > To: "Lance Richardson" , netdev@vger.kernel.org > Sent: Tuesday, March 22, 2016 2:29:02 PM > Subject: Re: [PATCH net] ipv4: initialize flowi4_flags before calling > fib_lookup() > > On 3/22/16

[iproute PATCH 2/7] ipaddress: colorize peer, broadcast and anycast addresses as well

2016-03-22 Thread Phil Sutter
Signed-off-by: Phil Sutter --- ip/ipaddress.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 7aab8e781eae8..90d7b1096c3aa 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -862,7 +862,8 @@

[iproute PATCH 1/7] color: introduce color helpers and COLOR_CLEAR

2016-03-22 Thread Phil Sutter
This adds two helper functions which map a given data field to a color, so color_fprintf() statements don't have to be duplicated with only a different color value depending on that data field's value. In order for this to work in a generic way, COLOR_CLEAR has been added to serve as a fallback

[iproute PATCH 7/7] lib/ll_addr: improve ll_addr_n2a() a bit

2016-03-22 Thread Phil Sutter
Apart from making the code a bit more compact and efficient, this also prevents a potential buffer overflow if the passed buffer is really too small: Although correctly decrementing the size parameter passed to snprintf, it could become negative which would then wrap since snprintf uses (unsigned)

[iproute PATCH 4/7] utils: make rt_addr_n2a() non-reentrant by default

2016-03-22 Thread Phil Sutter
There is only a single user who needs it to be reentrant (not really, but it's safer like this), add rt_addr_n2a_r() for it to use. Signed-off-by: Phil Sutter --- include/utils.h | 3 ++- ip/ip6tunnel.c| 2 +- ip/iplink_bond.c | 5 + ip/ipmroute.c

[iproute PATCH 6/7] lib/utils: introduce rt_addr_n2a_rta()

2016-03-22 Thread Phil Sutter
This simple macro eases calling rt_addr_n2a() with data from an rt_attr pointer. Signed-off-by: Phil Sutter --- include/utils.h | 2 ++ ip/iplink_bond.c | 4 +--- ip/ipmroute.c | 8 ++-- ip/ipprefix.c | 14 +++--- ip/iproute.c | 20

[iproute PATCH 3/7] make format_host non-reentrant by default

2016-03-22 Thread Phil Sutter
There are only three users which require it to be reentrant, the rest is fine without. Instead, provide a reentrant format_host_r() for users which need it. Signed-off-by: Phil Sutter --- bridge/fdb.c | 4 +--- include/utils.h | 3 ++- ip/ip6tunnel.c| 2 +-

[iproute PATCH 0/7] Refactor some internal library functions

2016-03-22 Thread Phil Sutter
The following series is a result of reviewing color output support and some formatting helpers usually used with struct rtattr fields. Phil Sutter (7): color: introduce color helpers and COLOR_CLEAR ipaddress: colorize peer, broadcast and anycast addresses as well make format_host

Re: [PATCH net] ipv4: initialize flowi4_flags before calling fib_lookup()

2016-03-22 Thread David Ahern
On 3/22/16 9:31 AM, Lance Richardson wrote: Field fl4.flowi4_flags is not initialized in fib_compute_spec_dst() before calling fib_lookup(), which means fib_table_lookup() is using non-deterministic data at this line: if (!(flp->flowi4_flags & FLOWI_FLAG_SKIP_NH_OIF)) { Fix by

[iproute PATCH 5/7] lib/utils: introduce format_host_rta()

2016-03-22 Thread Phil Sutter
This simple macro eases calling format_host() with data from an rt_attr pointer. Signed-off-by: Phil Sutter --- include/utils.h | 2 ++ ip/ipaddress.c| 20 ip/ipaddrlabel.c | 5 ++--- ip/ipneigh.c | 4 +--- ip/iproute.c |

Re: [PATCH] ipv6: Fix the pmtu path for connected UDP socket

2016-03-22 Thread Cong Wang
On Tue, Mar 22, 2016 at 10:39 AM, Martin KaFai Lau wrote: > On Tue, Mar 22, 2016 at 09:53:35AM -0700, Cong Wang wrote: >> On Mon, Mar 21, 2016 at 11:02 PM, Martin KaFai Lau wrote: >> > In term of difference, AFAICT, the current patch is an optimization in the >> >

Re: [PATCH] ipv6: Fix the pmtu path for connected UDP socket

2016-03-22 Thread Martin KaFai Lau
On Tue, Mar 22, 2016 at 11:03:29AM -0700, Wei Wang wrote: > But one thing here, we will have to generate the same flowi6 in both > ip6_sk_update_pmtu() as well as ip6_update_pmtu(). Is this considered > as a not clean enough fix? If they share common codes to build flowi6, can the common codes be

Re: [PATCH] ipv6: Fix the pmtu path for connected UDP socket

2016-03-22 Thread Wei Wang
Thanks Martin and Cong. I guess then we are going with the following fix in ip6_sk_update_pmtu(): 1. call ip6_upate_pmtu() as it is 2. do a dst_check() 3. re-lookup() if it is invalid 4. and then do a ip6_dst_store()/dst_set But one thing here, we will have to generate the same flowi6 in both

Re: [RFC PATCH 7/9] GSO: Support partial segmentation offload

2016-03-22 Thread Alexander Duyck
On Tue, Mar 22, 2016 at 10:00 AM, Edward Cree wrote: > On 18/03/16 23:25, Alexander Duyck wrote: >> This patch adds support for something I am referring to as GSO partial. >> The basic idea is that we can support a broader range of devices for >> segmentation if we use fixed

Re: [PATCH] ipv6: Fix the pmtu path for connected UDP socket

2016-03-22 Thread Martin KaFai Lau
On Tue, Mar 22, 2016 at 09:53:35AM -0700, Cong Wang wrote: > On Mon, Mar 21, 2016 at 11:02 PM, Martin KaFai Lau wrote: > > In term of difference, AFAICT, the current patch is an optimization in the > > sense that the update_pmtu() code path does not have to do a dst_check to > >

Re: [PATCH] ath9k: fix checkpatch.pl identation and sapce errors.

2016-03-22 Thread Joe Perches
On Tue, 2016-03-22 at 12:23 +0530, Ashwini Singh wrote: > Signed-off-by: Ashwini Singh It might be better to break this into a few different patches. o Remove trailing whitespace o Fix vertical line / brace location o Multi-line statement parenthesis alignment o Space

Re: ip-token: unable to remove a token & multi-token handling & concurrent use w/ EUI64/privacy

2016-03-22 Thread Daniel Borkmann
Hi Robin, On 03/19/2016 07:53 PM, Robin H. Johnson wrote: [...] Playing around with IPv6 tokens, I ran into a problem: Once you have a token set on an interface, it's impossible to remove it! # ip token set :: dev eth0 RTNETLINK answers: Invalid argument I'll have a look into a fix, I think

Re: [RFC PATCH 7/9] GSO: Support partial segmentation offload

2016-03-22 Thread Edward Cree
On 18/03/16 23:25, Alexander Duyck wrote: > This patch adds support for something I am referring to as GSO partial. > The basic idea is that we can support a broader range of devices for > segmentation if we use fixed outer headers and have the hardware only > really deal with segmenting the inner

Re: [PATCH 3/3] libceph: use KMEM_CACHE macro

2016-03-22 Thread Ilya Dryomov
On Sun, Mar 13, 2016 at 8:18 AM, Geliang Tang wrote: > Use KMEM_CACHE() instead of kmem_cache_create() to simplify the code. > > Signed-off-by: Geliang Tang > --- > net/ceph/messenger.c | 10 ++ > net/ceph/osd_client.c | 5 + > 2 files

Re: [PATCH] ipv6: Fix the pmtu path for connected UDP socket

2016-03-22 Thread Cong Wang
On Mon, Mar 21, 2016 at 11:02 PM, Martin KaFai Lau wrote: > I think Cong Wang is suggesting, in ip6_sk_update_pmtu(): > 1. call ip6_upate_pmtu() as it is > 2. do a dst_check() > 3. re-lookup() if it is invalid > 4. and then do a ip6_dst_store()/dst_set > > The above is exactly what

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

2016-03-22 Thread Chen-Yu Tsai
On Mon, Mar 21, 2016 at 10:02 PM, Giuseppe CAVALLARO wrote: > On 3/21/2016 11:45 AM, Alexandre Torgue wrote: >> >> Hi, >> >> 2016-03-18 17:00 GMT+01:00 Chen-Yu Tsai : >>> >>> Hi, >>> >>> On Fri, Mar 18, 2016 at 11:37 PM, Alexandre TORGUE >>>

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

2016-03-22 Thread Alexandre Torgue
Hi guys, I will fix typo issues (s/vesrion/version and ethernet @). Concerning compatible string. For sure "snps,dwmac-3.50a" string is not used inside glue driver. I perfere to keep it for information but if you really want that I remove it I will not block ;) 2016-03-21 16:36 GMT+01:00

[PATCH v3 1/2] Revert "vsock: Fix blocking ops call in prepare_to_wait"

2016-03-22 Thread Claudio Imbrenda
This reverts commit 5988818008257ca42010d6b43a3e0e48afec9898 ("vsock: Fix blocking ops call in prepare_to_wait") The commit reverted with this patch caused us to potentially miss wakeups. Since the condition is not checked between the prepare_to_wait and the schedule(), if a wakeup happens after

[PATCH v3 2/2] AF_VSOCK: Shrink the area influenced by prepare_to_wait

2016-03-22 Thread Claudio Imbrenda
When a thread is prepared for waiting by calling prepare_to_wait, sleeping is not allowed until either the wait has taken place or finish_wait has been called. The existing code in af_vsock imposed unnecessary no-sleep assumptions to a broad list of backend functions. This patch shrinks the

[PATCH v3 0/2] AF_VSOCK: Shrink the area influenced by prepare_to_wait

2016-03-22 Thread Claudio Imbrenda
This patchset applies on net-next. I think I found a problem with the patch submitted by Laura Abbott ( https://lkml.org/lkml/2016/2/4/711 ): we might miss wakeups. Since the condition is not checked between the prepare_to_wait and the schedule(), if a wakeup happens after the condition is

[iproute PATCH v3] Use ARRAY_SIZE macro everywhere

2016-03-22 Thread Phil Sutter
This patch was generated by the following semantic patch (a trimmed down version of what is shipped with Linux sources): @@ type T; T[] E; @@ ( - (sizeof(E)/sizeof(*E)) + ARRAY_SIZE(E) | - (sizeof(E)/sizeof(E[...])) + ARRAY_SIZE(E) | - (sizeof(E)/sizeof(T)) + ARRAY_SIZE(E) ) The only manual

Re: [PATCH] lan78xx: Protect runtime_auto check by #ifdef CONFIG_PM

2016-03-22 Thread Oliver Neukum
On Tue, 2016-03-22 at 11:13 -0400, Alan Stern wrote: > > Indeed. In that case the point is moot. But it is correct to ask > > the core whether the device is autosuspended at that point rather > > than keep a private flag if you can. > > That's why we have pm_runtime_status_suspended(). I guess

[PATCH net] ipv4: initialize flowi4_flags before calling fib_lookup()

2016-03-22 Thread Lance Richardson
Field fl4.flowi4_flags is not initialized in fib_compute_spec_dst() before calling fib_lookup(), which means fib_table_lookup() is using non-deterministic data at this line: if (!(flp->flowi4_flags & FLOWI_FLAG_SKIP_NH_OIF)) { Fix by initializing fl4.flowi4_flags to zero. Signed-off-by:

Re: net/sctp: stack-out-of-bounds in sctp_getsockopt

2016-03-22 Thread Marcelo Ricardo Leitner
On Tue, Mar 22, 2016 at 08:21:28AM -0700, Eric Dumazet wrote: > On Tue, 2016-03-22 at 23:08 +0800, Baozeng Ding wrote: > > Hi all, > > > > The following program triggers an out-of-bounds bug in > > sctp_getsockopt. The kernel version is 4.5 (on Mar 16 > > commit

Re: net/sctp: stack-out-of-bounds in sctp_getsockopt

2016-03-22 Thread Eric Dumazet
On Tue, 2016-03-22 at 08:21 -0700, Eric Dumazet wrote: > On Tue, 2016-03-22 at 23:08 +0800, Baozeng Ding wrote: > > Hi all, > > > > The following program triggers an out-of-bounds bug in > > sctp_getsockopt. The kernel version is 4.5 (on Mar 16 > > commit

[PATCH v8 net-next] ravb: Add dma queue interrupt support

2016-03-22 Thread Yoshihiro Kaneko
From: Kazuya Mizuguchi This patch supports the following interrupts. - One interrupt for multiple (timestamp, error, gPTP) - One interrupt for emac - Four interrupts for dma queue (best effort rx/tx, network control rx/tx) This patch improve efficiency of the

Re: net/sctp: stack-out-of-bounds in sctp_getsockopt

2016-03-22 Thread Eric Dumazet
On Tue, 2016-03-22 at 23:08 +0800, Baozeng Ding wrote: > Hi all, > > The following program triggers an out-of-bounds bug in > sctp_getsockopt. The kernel version is 4.5 (on Mar 16 > commit 09fd671ccb2475436bd5f597f751ca4a7d177aea). > >

Re: [PATCH] lan78xx: Protect runtime_auto check by #ifdef CONFIG_PM

2016-03-22 Thread Alan Stern
On Tue, 22 Mar 2016, Oliver Neukum wrote: > On Tue, 2016-03-22 at 10:21 -0400, Alan Stern wrote: > > I don't see any point in resuming the device just in order to collect > > operating statistics. If it was already suspended then it wasn't > > operating, so there will be no statistics to

net/sctp: stack-out-of-bounds in sctp_getsockopt

2016-03-22 Thread Baozeng Ding
Hi all, The following program triggers an out-of-bounds bug in sctp_getsockopt. The kernel version is 4.5 (on Mar 16 commit 09fd671ccb2475436bd5f597f751ca4a7d177aea). == BUG: KASAN: stack-out-of-bounds in string+0x1ef/0x200 at addr

Re: [PATCH] net: phy: at803x: don't depend on GPIOLIB

2016-03-22 Thread Sebastian Frias
Hi, On 03/21/2016 09:41 PM, Uwe Kleine-König wrote: >>My patch basically gets rid of all this code. The thing that worries me >> is that the driver assumes that the reset singal is active low, despite what >> the GPIO specifier in the device tree has for the GPIO polarity. In fact, it >> will

[iproute PATCH v2 8/8] man: tc-vlan.8: Describe CONTROL option

2016-03-22 Thread Phil Sutter
This should be made generic and part of a common tc-actions man page. Though leave it here for now to not confuse readers of the example which uses it. Signed-off-by: Phil Sutter --- man/man8/tc-vlan.8 | 56 +- 1 file changed, 55

[iproute PATCH v2 0/8] Follow-up to my action man pages series

2016-03-22 Thread Phil Sutter
The following patch series aims at addressing feedback provided by Jamal and Alexei. Thanks a lot for your input! Changes since v1: - Rebased onto current master. - Dropped some leftover TODO note from tc-skbedit.8 Phil Sutter (8): doc/tc-filters.tex: Drop overly subjective paragraphs tc:

[iproute PATCH v2 1/8] doc/tc-filters.tex: Drop overly subjective paragraphs

2016-03-22 Thread Phil Sutter
Cc: Alexei Starovoitov Signed-off-by: Phil Sutter --- doc/tc-filters.tex | 23 --- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/doc/tc-filters.tex b/doc/tc-filters.tex index 59127d6672ed7..54cc0c9920ce2 100644 ---

[iproute PATCH v2 6/8] man: tc-skbedit.8: Elaborate a bit on TX queues

2016-03-22 Thread Phil Sutter
Signed-off-by: Phil Sutter --- man/man8/tc-skbedit.8 | 12 1 file changed, 12 insertions(+) diff --git a/man/man8/tc-skbedit.8 b/man/man8/tc-skbedit.8 index b585a4d4253ba..e6902960eee27 100644 --- a/man/man8/tc-skbedit.8 +++ b/man/man8/tc-skbedit.8 @@ -17,6 +17,18 @@

[iproute PATCH v2 4/8] man: tc-mirred.8: Reword man page a bit, add generic mirror example

2016-03-22 Thread Phil Sutter
Signed-off-by: Phil Sutter --- man/man8/tc-mirred.8 | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/man/man8/tc-mirred.8 b/man/man8/tc-mirred.8 index 52d98bc416563..bba96e0e5d8c0 100644 --- a/man/man8/tc-mirred.8 +++

[iproute PATCH v2 2/8] tc: connmark, pedit: Rename BRANCH to CONTROL

2016-03-22 Thread Phil Sutter
As Jamal suggested, BRANCH is the wrong name, as these keywords go beyond simple branch control - e.g. loops are possible, too. Therefore rename the non-terminal to CONTROL instead which should be more appropriate. Signed-off-by: Phil Sutter --- man/man8/tc-connmark.8 | 6 +++---

[iproute PATCH v2 7/8] tc/m_vlan.c: mention CONTROL option in help text

2016-03-22 Thread Phil Sutter
Signed-off-by: Phil Sutter --- tc/m_vlan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tc/m_vlan.c b/tc/m_vlan.c index 8d97963f351bc..3233d207375bf 100644 --- a/tc/m_vlan.c +++ b/tc/m_vlan.c @@ -22,9 +22,10 @@ static void explain(void) {

[iproute PATCH v2 5/8] man: tc-police.8: Emphasize on the two rate control mechanisms

2016-03-22 Thread Phil Sutter
As Jamal pointed out, there are two different approaches to bandwidth measurement. Try to make this clear by separating them in synopsis and also documenting the way to fine-tune avrate. Signed-off-by: Phil Sutter --- man/man8/tc-police.8 | 29 + 1 file

[iproute PATCH v2 3/8] man: tc-csum.8: Add an example

2016-03-22 Thread Phil Sutter
Signed-off-by: Phil Sutter --- man/man8/tc-csum.8 | 15 +++ 1 file changed, 15 insertions(+) diff --git a/man/man8/tc-csum.8 b/man/man8/tc-csum.8 index 9d00aae346af0..3a64c82f09ba8 100644 --- a/man/man8/tc-csum.8 +++ b/man/man8/tc-csum.8 @@ -49,6 +49,21 @@ UDPLite

Re: [PATCH] net: phy: at803x: don't depend on GPIOLIB

2016-03-22 Thread Sebastian Frias
Hi Sergei, On 03/21/2016 09:15 PM, Sergei Shtylyov wrote: > >Do you have the PHY that requires the GPIO reset workaround? Unfortunately (or luckily :-) ) I don't have the faulty PHY, sorry. Best regards, Sebastian

Re: [PATCH] net: phy: at803x: don't depend on GPIOLIB

2016-03-22 Thread Sebastian Frias
Hi Daniel, Would you mind commenting on this thread? Uwe and I are in a sort of deadlock because we each have a different understanding of the intention of your commit 13a56b449325. Basically the questions are: - What is the intention of 13a56b449325? - Did you mean for "reset" to be mandatory

Re: [PATCH] net: phy: at803x: don't depend on GPIOLIB

2016-03-22 Thread Sebastian Frias
Hi Uwe, I think we are in a deadlock :-) I'm going to reply inline below, but I will also send a different email to Daniel with a small recap. I think he should share the intent of the "reset" mechanism he introduced, in particular if it is mandatory. On 03/21/2016 09:12 PM, Uwe Kleine-König

Re: [PATCH] lan78xx: Protect runtime_auto check by #ifdef CONFIG_PM

2016-03-22 Thread Oliver Neukum
On Tue, 2016-03-22 at 10:21 -0400, Alan Stern wrote: > I don't see any point in resuming the device just in order to collect > operating statistics. If it was already suspended then it wasn't > operating, so there will be no statistics to collect. Indeed. In that case the point is moot. But it

Re: [PATCH] lan78xx: Protect runtime_auto check by #ifdef CONFIG_PM

2016-03-22 Thread Alan Stern
On Tue, 22 Mar 2016, Oliver Neukum wrote: > On Mon, 2016-03-21 at 15:30 -0400, Alan Stern wrote: > > On Mon, 21 Mar 2016, Oliver Neukum wrote: > > > > > > We have an autosuspend timeout because we think that IO, if it will > > > come at all, is likeliest to come soon. If, however, the IO is > >

[PATCH] fsl/fman: Workaround for Errata A-007273

2016-03-22 Thread igal.liberman
From: Igal Liberman Errata A-007273 (For FMan V3 devices only): FMan soft reset is not finished properly if one of the Ethernet MAC clocks is disabled Workaround: Re-enable all disabled MAC clocks through the DCFG_CCSR_DEVDISR2 register prior to issuing an FMAN soft

[iproute PATCH v2 3/4] tc: pedit: Fix raw op

2016-03-22 Thread Phil Sutter
The retain value was wrong for u16 and u8 types. Signed-off-by: Phil Sutter --- tc/m_pedit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tc/m_pedit.c b/tc/m_pedit.c index 30a6f3673e896..8ccec8bc4a99f 100644 --- a/tc/m_pedit.c +++ b/tc/m_pedit.c @@

[iproute PATCH v2 4/4] testsuite: add a test for tc pedit action

2016-03-22 Thread Phil Sutter
This is not a full test, since kernel functionality is not actually tested. It only compares that the kernel returned values when listing the action are what one expects them to be. Since this test succeeded on both a little-endian and a big-endian system, it shows that any endianness issues have

[iproute PATCH v2 0/4] tc: pedit: further fixes

2016-03-22 Thread Phil Sutter
The following series was created after testing pedit on a big-endian system. It starts with a minor patch fixing coding style in tc/p_ip.c, then the actual big-endian fixup, a fix for raw op discovered when writing the pedit test for testsuite and finally a testsuite addon to verify pedit

[iproute PATCH v2 2/4] tc: pedit: Fix for big-endian systems

2016-03-22 Thread Phil Sutter
This was tricky to get right: - The 'stride' value used for 8 and 16 bit values must behave inverse to the value's intra word offset to work correctly with big-endian data act_pedit is editing. - The 'm' array's values are in host byte order, so they have to be converted as well (and the

[iproute PATCH v2 1/4] tc/p_ip.c: Minor coding style cleanup

2016-03-22 Thread Phil Sutter
Break overlong function definitions and remove one extraneous whitespace. Signed-off-by: Phil Sutter --- tc/p_ip.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tc/p_ip.c b/tc/p_ip.c index 53dfb2693d47e..535151e5d7668 100644 --- a/tc/p_ip.c +++

[PATCH v4 3/3] IB/hns: Add binding document for HiSilicon RoCE driver

2016-03-22 Thread Lijun Ou
This patch adds related DTS binding document for HiSilicon RoCE driver. Signed-off-by: Lijun Ou Signed-off-by: Wei Hu(Xavier) --- .../bindings/infiniband/hisilicon-hns-roce.txt | 107 + 1 file changed, 107 insertions(+)

[PATCH v4 0/3] IB/hns: Add HiSilicon RoCE driver

2016-03-22 Thread Lijun Ou
The HiSilicon Network Substem is a long term evolution IP which is supposed to be used in HiSilicon ICT SoC. RoCE is a feature of hns. The driver for HiSilicon RoCE engine is a platform driver. The driver will support mulitple versions of hns. Currently only "v1" for hip06 SoC is supported.

[PATCH v4 1/3] net: hns: Add reset function support for RoCE driver

2016-03-22 Thread Lijun Ou
It added reset function for RoCE driver. RoCE is a feature of hns. In hip06 SoC, in RoCE reset process, it's needed to configure dsaf channel reset, port and sl map info. Reset function of RoCE is located in dsaf module, we only call it in RoCE driver when needed. Signed-off-by: Lijun Ou

[PATCH iproute2 v1 1/1] lib/utils: fix get_addr() and get_prefix() error messages

2016-03-22 Thread Varlese, Marco
An attempt to add invalid address to interface would print "???" string instead of the address family name. For example: $ ip address add 256.10.166.1/24 dev ens8 Error: ??? prefix is expected rather than "256.10.166.1/24". $ ip neighbor add proxy 2001:db8::g dev ens8 Error: ??? address is

Re: net/bluetooth: workqueue destruction WARNING in hci_unregister_dev

2016-03-22 Thread Dmitry Vyukov
On Tue, Mar 22, 2016 at 9:09 AM, Jiri Slaby wrote: > On 03/21/2016, 04:58 PM, Jiri Slaby wrote: >> Hello, >> >> On 03/18/2016, 09:52 PM, Tejun Heo wrote: >>> On Thu, Mar 17, 2016 at 01:00:13PM +0100, Jiri Slaby wrote: >> I have not done that yet, but today, I see: >>

  1   2   >