Re: [PATCH net-next 0/5] virtio-net: Add SCTP checksum offload support

2018-04-02 Thread David Miller
From: Vladislav Yasevich Date: Mon, 2 Apr 2018 09:40:01 -0400 > Now that we have SCTP offload capabilities in the kernel, we can add > them to virtio as well. First step is SCTP checksum. Vlad, the net-next tree is closed, please resubmit this when the merge window is

[net-next PATCH v3 05/11] net: netcp: ethss: add support for handling sgmii link interface

2018-04-02 Thread Murali Karicheri
2u cpsw hardware on K2G uses sgmii link to interface with Phy. So add support for this interface in the code so that drover can be re-used for 2u hardware. Signed-off-by: Murali Karicheri --- drivers/net/ethernet/ti/netcp.h | 2 ++

Re: [PATCH net-next 0/5] virtio-net: Add SCTP checksum offload support

2018-04-02 Thread Marcelo Ricardo Leitner
On Mon, Apr 02, 2018 at 09:40:01AM -0400, Vladislav Yasevich wrote: > Now that we have SCTP offload capabilities in the kernel, we can add > them to virtio as well. First step is SCTP checksum. Thanks. > As for GSO, the way sctp GSO is currently implemented buys us nothing > in added support to

Re: [net-next PATCH v3 00/11] Add support for netcp driver on K2G SoC

2018-04-02 Thread Murali Karicheri
On 04/02/2018 10:40 AM, David Miller wrote: > > The net-next tree is closed, please resubmit this after the merge window and > the net-next tree is open back up again. > Ok. Will do. Thanks -- Murali Karicheri Linux Kernel, Keystone

RE: [PATCH v5 03/14] PCI: Add pcie_bandwidth_capable() to compute max supported link bandwidth

2018-04-02 Thread Keller, Jacob E
> -Original Message- > From: Tal Gilboa [mailto:ta...@mellanox.com] > Sent: Monday, April 02, 2018 7:34 AM > To: Bjorn Helgaas > Cc: Tariq Toukan ; Keller, Jacob E > ; Ariel Elior ; Ganesh > Goudar

general protection fault in tipc_nametbl_unsubscribe

2018-04-02 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 10b84daddbec72c6b440216a69de9a9605127f7a (Sat Mar 31 17:59:00 2018 +) Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip syzbot dashboard link:

KASAN: stack-out-of-bounds Read in xfrm_state_find (5)

2018-04-02 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 10b84daddbec72c6b440216a69de9a9605127f7a (Sat Mar 31 17:59:00 2018 +) Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip syzbot dashboard link:

[PATCH v3 2/2] net: usb: asix88179_178a: de-duplicate code

2018-04-02 Thread Alexander Kurz
Remove the duplicated code for asix88179_178a bind and reset methods. Signed-off-by: Alexander Kurz --- drivers/net/usb/ax88179_178a.c | 137 ++--- 1 file changed, 31 insertions(+), 106 deletions(-) diff --git a/drivers/net/usb/ax88179_178a.c

RE: [PATCH] net: bond: skip vlan header when do layer 3+4 hash policy

2018-04-02 Thread liujian (CE)
> -Original Message- > From: Nikolay Aleksandrov [mailto:niko...@cumulusnetworks.com] > Sent: Saturday, March 31, 2018 5:23 PM > To: liujian (CE) ; da...@davemloft.net; > j.vosbu...@gmail.com; vfal...@gmail.com; a...@greyhouse.net > Cc: netdev@vger.kernel.org;

Re: [PATCH net-next v2 1/2] fs/crashdd: add API to collect hardware dump in second kernel

2018-04-02 Thread Andrew Lunn
> >> The sysfs approach proposed here had been dropped in favour exporting > >> the dumps as ELF notes in /proc/vmcore. > >> > >> Will be posting the new patches soon. > > > >The concern was actually how you identify which device that came from. > >Where you read the identifier changes but sysfs

Re: [PATCH net-next v2 1/2] fs/crashdd: add API to collect hardware dump in second kernel

2018-04-02 Thread Rahul Lakkireddy
On Monday, April 04/02/18, 2018 at 14:41:43 +0530, Jiri Pirko wrote: > Fri, Mar 30, 2018 at 08:42:00PM CEST, ebied...@xmission.com wrote: > >Rahul Lakkireddy writes: > > > >> On Friday, March 03/30/18, 2018 at 16:09:07 +0530, Jiri Pirko wrote: > >>> Sat, Mar 24, 2018

Re: [PATCH v3 2/4] bus: fsl-mc: add restool userspace support

2018-04-02 Thread Andrew Lunn
Hi Ioana > The commands listed above are for creating/destroying DPAA2 objects > in Management Complex and not for runtime configuration where > standard userspace tools are used. Please can you explain why this is not just plumbing inside a switchdev driver? The hardware has a number of

[PATCH net-next V2 4/4] net/mlx5e: Enable adaptive-TX moderation

2018-04-02 Thread Tal Gilboa
Add support for adaptive TX moderation. This greatly reduces TX interrupt rate and increases bandwidth, mostly for TCP bandwidth over ARM architecture (below). There is a slight single stream TCP with very large message sizes degradation (x86). In this case if there's any moderation on transmitted

[PATCH net-next V2 3/4] net/dim: Support adaptive TX moderation

2018-04-02 Thread Tal Gilboa
Interrupt moderation for TX traffic requires different profiles than RX interrupt moderation. The main goal here is to reduce interrupt rate and allow better payload aggregation by keeping SKBs in the TX queue a bit longer. Ping-pong behavior would get a profile with a short timer, so latency

[PATCH net-next V2 2/4] net/dim: Add "enabled" field to net_dim struct

2018-04-02 Thread Tal Gilboa
Preparation for introducing adaptive TX to net DIM. Signed-off-by: Tal Gilboa --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 1 - drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 10 +++--- drivers/net/ethernet/mellanox/mlx5/core/en_main.c| 6

[PATCH net-next V2 1/4] net/dim: Rename *_get_profile() functions to *_get_rx_moderation()

2018-04-02 Thread Tal Gilboa
Preparation for introducing adaptive TX to net DIM. Signed-off-by: Tal Gilboa --- drivers/net/ethernet/broadcom/bcmsysport.c| 6 +++--- drivers/net/ethernet/broadcom/bnxt/bnxt_dim.c | 8 drivers/net/ethernet/broadcom/genet/bcmgenet.c| 6 +++---

[PATCH net-next V2 0/4] Introduce adaptive TX interrupt moderation to net DIM

2018-04-02 Thread Tal Gilboa
Net DIM is a library designed for dynamic interrupt moderation. It was implemented and optimized with receive side interrupts in mind, since these are usually the CPU expensive ones. This patch-set introduces adaptive transmit interrupt moderation to net DIM, complete with a usage in the mlx5e

[PATCH 11/15] dmaengine: pxa: document pxad_param

2018-04-02 Thread Robert Jarzmik
Add some documentation for the pxad_param structure, and describe the contract behind the minimal required priority of a DMA channel. Signed-off-by: Robert Jarzmik --- include/linux/dma/pxa-dma.h | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH 07/15] net: smc91x: remove the dmaengine compat need

2018-04-02 Thread Robert Jarzmik
From: Robert Jarzmik As the pxa architecture switched towards the dmaengine slave map, the old compatibility mechanism to acquire the dma requestor line number and priority are not needed anymore. This patch simplifies the dma resource acquisition, using the more

Re: [PATCH] connector: add parent pid and tgid to coredump and exit events

2018-04-02 Thread Stefan Strogin
Hi David, I don't see how it breaks UAPI. The point is that structures coredump_proc_event and exit_proc_event are members of *union* event_data, thus position of the existing data in the structure is unchanged. Furthermore, this change won't increase size of struct proc_event, because

Re: [bpf-next PATCH 4/4] bpf: sockmap, add hash map support

2018-04-02 Thread Alexei Starovoitov
On Sun, Apr 01, 2018 at 08:01:10AM -0700, John Fastabend wrote: > Sockmap is currently backed by an array and enforces keys to be > four bytes. This works well for many use cases and was originally > modeled after devmap which also uses four bytes keys. However, > this has become limiting in

Re: RFC on writel and writel_relaxed

2018-04-02 Thread Sinan Kaya
On 3/29/2018 9:40 PM, Benjamin Herrenschmidt wrote: > On Thu, 2018-03-29 at 09:56 -0400, Sinan Kaya wrote: >> On 3/28/2018 11:55 AM, David Miller wrote: >>> From: Benjamin Herrenschmidt >>> Date: Thu, 29 Mar 2018 02:13:16 +1100 >>> Let's fix all archs, it's way

[PATCH net-next 2/5] sctp: Handle sctp packets with CHECKSUM_PARTIAL

2018-04-02 Thread Vladislav Yasevich
With SCTP checksum offload available in virtio, it is now possible for virtio to receive a sctp packet with CHECKSUM_PARTIAL set (guest-to-guest traffic). SCTP doesn't really have a partial checksum like TCP does because CRC32c can't do partial additive checksumming. It's all or nothing. So an

[PATCH net-next 0/5] virtio-net: Add SCTP checksum offload support

2018-04-02 Thread Vladislav Yasevich
Now that we have SCTP offload capabilities in the kernel, we can add them to virtio as well. First step is SCTP checksum. We need a new freature in virtio to negotiate this support since SCTP is excluded with the stardard checksum and requires a little bit extra. This series proposes

[PATCH net-next 3/5] sctp: Build sctp offload support into the base kernel

2018-04-02 Thread Vladislav Yasevich
We need to take the sctp offload out of the sctp module and add it to the base kernel to support guests that can support it. This is similar to how IPv6 offloads are done and works around kernels that exclude sctp protocol support. Signed-off-by: Vladislav Yasevich ---

[PATCH net-next 4/5] tun: Add support for SCTP checksum offload

2018-04-02 Thread Vladislav Yasevich
Adds a new tun offload flag to allow for SCTP checksum offload. The flag has to be set by the user and defaults to "no offload". Signed-off-by: Vladislav Yasevich --- drivers/net/tun.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/tun.c

Re: [PATCH v5 03/14] PCI: Add pcie_bandwidth_capable() to compute max supported link bandwidth

2018-04-02 Thread Bjorn Helgaas
On Mon, Apr 02, 2018 at 10:34:58AM +0300, Tal Gilboa wrote: > On 4/2/2018 3:40 AM, Bjorn Helgaas wrote: > > On Sun, Apr 01, 2018 at 11:38:53PM +0300, Tal Gilboa wrote: > > > On 3/31/2018 12:05 AM, Bjorn Helgaas wrote: > > > > From: Tal Gilboa > > > > > > > > Add

Re: [PATCH net-next V2 4/4] net/mlx5e: Enable adaptive-TX moderation

2018-04-02 Thread David Miller
From: Tal Gilboa Date: Mon, 2 Apr 2018 16:59:34 +0300 > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_dim.c > b/drivers/net/ethernet/mellanox/mlx5/core/en_dim.c > index 1b286e1..9cec351 100644 > --- a/drivers/net/ethernet/mellanox/mlx5/core/en_dim.c > +++

Re: [PATCH v5 03/14] PCI: Add pcie_bandwidth_capable() to compute max supported link bandwidth

2018-04-02 Thread Tal Gilboa
On 4/2/2018 5:05 PM, Bjorn Helgaas wrote: On Mon, Apr 02, 2018 at 10:34:58AM +0300, Tal Gilboa wrote: On 4/2/2018 3:40 AM, Bjorn Helgaas wrote: On Sun, Apr 01, 2018 at 11:38:53PM +0300, Tal Gilboa wrote: On 3/31/2018 12:05 AM, Bjorn Helgaas wrote: From: Tal Gilboa Add

[PATCH 00/15] ARM: pxa: switch to DMA slave maps

2018-04-02 Thread Robert Jarzmik
Hi, This serie is aimed at removing the dmaengine slave compat use, and transfer knowledge of the DMA requestors into architecture code. This was discussed/advised by Arnd a couple of years back, it's almost time. The serie is divided in 3 phasees : - phase 1 : patch 1/15 and patch 2/15 =>

[PATCH 02/15] ARM: pxa: add dma slave map

2018-04-02 Thread Robert Jarzmik
In order to remove the specific knowledge of the dma mapping from PXA drivers, add a default slave map for pxa architectures. This is the first step, and once all drivers are converted, pxad_filter_fn() will be made static, and the DMA resources removed from device.c. Signed-off-by: Robert

Re: [net-next PATCH v3 00/11] Add support for netcp driver on K2G SoC

2018-04-02 Thread David Miller
The net-next tree is closed, please resubmit this after the merge window and the net-next tree is open back up again.

Re: [PATCH v3 0/2] net: mvneta: improve suspend/resume

2018-04-02 Thread David Miller
From: Jisheng Zhang Date: Mon, 2 Apr 2018 11:22:29 +0800 > This series tries to optimize the mvneta's suspend/resume > implementation by only taking necessary actions. > > Since v2: > - keep rtnl lock when calling mvneta_start_dev() and mvneta_stop_dev() >Thank

Re: [PATCH net-next] net: ipv6/gre: Add GRO support

2018-04-02 Thread Tariq Toukan
On 02/04/2018 6:19 PM, Eric Dumazet wrote: On 04/02/2018 08:00 AM, Eran Ben Elisha wrote: Seems good, but why isn't this handled directly in GRO native layer ? ip6_tunnel and ip6_gre do not share initialization flow functions (unlike ipv4). Changing the ipv6 init infrastructure should not

RE: [PATCH v5 12/14] fm10k: Report PCIe link properties with pcie_print_link_status()

2018-04-02 Thread Keller, Jacob E
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Friday, March 30, 2018 2:06 PM > To: Tal Gilboa > Cc: Tariq Toukan ; Keller, Jacob E > ; Ariel Elior ; Ganesh > Goudar

RE: [PATCH v3 2/4] bus: fsl-mc: add restool userspace support

2018-04-02 Thread Ioana Ciornei
> > > I'm still not convinced either way (high-level or low-level > > interface), but I think this needs to be discussed with the networking > > maintainers. Given the examples on the github page you linked to, the > > high-level user space commands based on these ioctls > > > >ls-addni #

[PATCH net v5 3/3] ipv6: udp6: set dst cache for a connected sk if current not valid

2018-04-02 Thread Alexey Kodanev
A new RTF_CACHE route can be created between ip6_sk_dst_lookup_flow() and ip6_dst_store() calls in udpv6_sendmsg(), when datagram sending results to ICMPV6_PKT_TOOBIG error: udp_v6_send_skb(), for example with vti6 tunnel: vti6_xmit(), get ICMPV6_PKT_TOOBIG error

[PATCH net v5 2/3] ipv6: allow to cache dst for a connected sk in ip6_sk_dst_lookup_flow()

2018-04-02 Thread Alexey Kodanev
Add 'connected' argument to ip6_sk_dst_lookup_flow() and update the cache only if ip6_sk_dst_check() returns NULL and a socket is connected. The function is used as before, the new behavior for UDP sockets in udpv6_sendmsg() will be enabled in the next patch. Signed-off-by: Alexey Kodanev

[PATCH net v5 1/3] ipv6: add a wrapper for ip6_dst_store() with flowi6 checks

2018-04-02 Thread Alexey Kodanev
Move commonly used pattern of ip6_dst_store() usage to a separate function - ip6_sk_dst_store_flow(), which will check the addresses for equality using the flow information, before saving them. There is no functional changes in this patch. In addition, it will be used in the next patch, in

[PATCH net v5 0/3] ipv6: udp6: set dst cache for a connected sk if current not valid

2018-04-02 Thread Alexey Kodanev
A new RTF_CACHE route can be created with the socket's dst cache update between the below calls in udpv6_sendmsg(), when datagram sending results to ICMPV6_PKT_TOOBIG error: dst = ip6_sk_dst_lookup_flow(...) ... release_dst: if (dst) { if (connected) {

Re: [PATCH net-next] ipv6: frags: fix /proc/sys/net/ipv6/ip6frag_low_thresh

2018-04-02 Thread David Miller
From: Eric Dumazet Date: Sun, 1 Apr 2018 21:57:59 -0700 > I forgot to change ip6frag_low_thresh proc_handler > from proc_dointvec_minmax to proc_doulongvec_minmax > > Fixes: 3e67f106f619 ("inet: frags: break the 2GB limit for frags storage") > Signed-off-by: Eric Dumazet

[PATCH 10/15] ata: pata_pxa: remove the dmaengine compat need

2018-04-02 Thread Robert Jarzmik
As the pxa architecture switched towards the dmaengine slave map, the old compatibility mechanism to acquire the dma requestor line number and priority are not needed anymore. This patch simplifies the dma resource acquisition, using the more generic function dma_request_slave_channel().

[PATCH 15/15] ARM: pxa: change SSP DMA channels allocation

2018-04-02 Thread Robert Jarzmik
Now the dma_slave_map is available for PXA architecture, switch the SSP device to it. This specifically means that : - for platform data based machines, the DMA requestor channels are extracted from platform data and passed further to the SSP user, ie. usually the pxa-pcm-audio driver - for

[PATCH 12/15] dmaengine: pxa: make the filter function internal

2018-04-02 Thread Robert Jarzmik
As the pxa architecture and all its related drivers do not rely anymore on the filter function, thanks to the slave map conversion, make pxad_filter_fn() static, and remove it from the global namespace. Signed-off-by: Robert Jarzmik --- drivers/dma/pxa_dma.c | 5

[net-next PATCH v3 07/11] net: netcp: ethss: map vlan priorities to zero flow

2018-04-02 Thread Murali Karicheri
The driver currently support only vlan priority zero. So map the vlan priorities to zero flow in hardware. Signed-off-by: Murali Karicheri --- drivers/net/ethernet/ti/netcp_ethss.c | 9 + 1 file changed, 9 insertions(+) diff --git

[net-next PATCH v3 01/11] soc: ti: K2G: enhancement to support QMSS in K2G NAVSS

2018-04-02 Thread Murali Karicheri
Navigator Subsystem (NAVSS) available on K2G SoC has a cut down version of QMSS with less number of queues, internal linking ram with lesser number of buffers etc. It doesn't have status and explicit push register space as in QMSS available on other K2 SoCs. So define reg indices specific to QMSS

[net-next PATCH v3 08/11] net: netcp: ethss: re-use stats handling code for 2u hardware

2018-04-02 Thread Murali Karicheri
The stats block in 2u cpsw hardware is similar to the one on nu and hence handle it in a similar way by using a macro that includes 2u hardware as well. Signed-off-by: Murali Karicheri --- drivers/net/ethernet/ti/netcp_ethss.c | 2 +- 1 file changed, 1 insertion(+), 1

[net-next PATCH v3 03/11] net: netcp: ethss: use macro for checking ss_version consistently

2018-04-02 Thread Murali Karicheri
Driver currently uses macro for NU and XBE hardwrae, while other places for older hardware such as that on K2H/K SoC (version 1.4 of the cpsw hardware, it explicitly check for the ss_version inline. Add a new macro for version 1.4 and use it to customize code in the driver. While at it also fix

[net-next PATCH v3 02/11] soc: ti: K2G: provide APIs to support driver probe deferral

2018-04-02 Thread Murali Karicheri
This patch provide APIs to allow client drivers to support probe deferral. On K2G SoC, devices can be probed only after the ti_sci_pm_domains driver is probed and ready. As drivers may get probed at different order, any driver that depends on knav dma and qmss drivers, for example netcp network

[net-next PATCH v3 00/11] Add support for netcp driver on K2G SoC

2018-04-02 Thread Murali Karicheri
K2G SoC is another variant of Keystone family of SoCs. This patch series add support for NetCP driver on this SoC. The QMSS found on K2G SoC is a cut down version of the QMSS found on other keystone devices with less number of queues, internal link ram etc. The patch series has 2 patch sets that

[net-next PATCH v3 09/11] net: netcp: ethss: use of_get_phy_mode() to support different RGMII modes

2018-04-02 Thread Murali Karicheri
The phy used for K2G allows for internal delays to be added optionally to the clock circuitry based on board desing. To add this support, enhance the driver to use of_get_phy_mode() to read the phy-mode from the phy device and pass the same to phy through of_phy_connect(). Signed-off-by: Murali

Re: [PATCH net-next] net: ipv6/gre: Add GRO support

2018-04-02 Thread Eran Ben Elisha
>>> Seems good, but why isn't this handled directly in GRO native layer ? >> ip6_tunnel and ip6_gre do not share initialization flow functions (unlike >> ipv4). >> Changing the ipv6 init infrastructure should not be part of this >> patch. we prefer to keep this one minimal, simple and safe. > > >

Re: [PATCH net v5 2/3] ipv6: allow to cache dst for a connected sk in ip6_sk_dst_lookup_flow()

2018-04-02 Thread David Miller
From: Alexey Kodanev Date: Mon, 2 Apr 2018 17:00:34 +0300 > +++ b/net/ipv6/ip6_output.c > @@ -1105,23 +1105,32 @@ struct dst_entry *ip6_dst_lookup_flow(const struct > sock *sk, struct flowi6 *fl6, > * @sk: socket which provides the dst cache and route info > *

Re: [PATCH v3 2/2] net: usb: asix88179_178a: de-duplicate code

2018-04-02 Thread Alexander Kurz
Hi Marc, David, with the v2 patch ("net: usb: asix88179_178a: de-duplicate code") I made an embarrasly stupid mistake of removing the wrong function. The v2 patch accidentially changed ax88179_link_reset() instead of ax88179_reset(). Hunk 6 of v2 ("net: usb: asix88179_178a: de-duplicate code")

[RFC] vhost: introduce mdev based hardware vhost backend

2018-04-02 Thread Tiwei Bie
This patch introduces a mdev (mediated device) based hardware vhost backend. This backend is an abstraction of the various hardware vhost accelerators (potentially any device that uses virtio ring can be used as a vhost accelerator). Some generic mdev parent ops are provided for accelerator

Re: [PATCH net-next] bridge: Allow max MTU when multiple VLANs present

2018-04-02 Thread Chas Williams
On Mon, Apr 2, 2018 at 11:08 AM, Roopa Prabhu wrote: > On Fri, Mar 30, 2018 at 12:54 PM, Chas Williams <3ch...@gmail.com> wrote: >> On Thu, Mar 29, 2018 at 9:02 PM, Toshiaki Makita >> wrote: >>> On 2018/03/30 1:49, Roopa Prabhu wrote:

Re: [BUG/Q] can_pernet_exit() leaves devices on dead net

2018-04-02 Thread Kirill Tkhai
Hi, Oliver, On 02.04.2018 18:28, Oliver Hartkopp wrote: > Hi Kirill, Marc, > > I checked the code once more and added some debug output to the other parts > in CAN notifier code. > > In fact the code pointed to by both of you seems to be obsolete as I only > wanted to be 'really sure' that no

Re: [PATCH 0/4] RFC: Realtek 83xx SMI driver core

2018-04-02 Thread Carl-Daniel Hailfinger
Hi Linus, did you make any progress with this? I noticed that the Vodafone Easybox 904xdsl/904lte models both make use of the RTL8367 switch. About one million of these routers have been deployed in Germany. There is an OpenWrt fork at

[PATCH net-next 5/5] macvlan/macvtap: Add support for SCTP checksum offload.

2018-04-02 Thread Vladislav Yasevich
Since we now have support for software CRC32c offload, turn it on for macvlan and macvtap devices so that guests can take advantage of offload SCTP checksums to the host or host hardware. Signed-off-by: Vladislav Yasevich --- drivers/net/macvlan.c | 5 +++--

[PATCH net-next 1/5] virtio: Add support for SCTP checksum offloading

2018-04-02 Thread Vladislav Yasevich
To support SCTP checksum offloading, we need to add a new feature to virtio_net, so we can negotiate support between the hypervisor and the guest. The signalling to the guest that an alternate checksum needs to be used is done via a new flag in the virtio_net_hdr. If the flag is set, the host

Re: [PATCH net-next V2 0/4] Introduce adaptive TX interrupt moderation to net DIM

2018-04-02 Thread David Miller
From: Tal Gilboa Date: Mon, 2 Apr 2018 16:59:30 +0300 > Net DIM is a library designed for dynamic interrupt moderation. It was > implemented and optimized with receive side interrupts in mind, since these > are usually the CPU expensive ones. This patch-set introduces

[PATCH 03/15] mmc: pxamci: remove the dmaengine compat need

2018-04-02 Thread Robert Jarzmik
As the pxa architecture switched towards the dmaengine slave map, the old compatibility mechanism to acquire the dma requestor line number and priority are not needed anymore. This patch simplifies the dma resource acquisition, using the more generic function dma_request_slave_channel().

[PATCH 08/15] ASoC: pxa: remove the dmaengine compat need

2018-04-02 Thread Robert Jarzmik
As the pxa architecture switched towards the dmaengine slave map, the old compatibility mechanism to acquire the dma requestor line number and priority are not needed anymore. This patch simplifies the dma resource acquisition, using the more generic function dma_request_slave_channel().

[PATCH 06/15] net: smc911x: remove the dmaengine compat need

2018-04-02 Thread Robert Jarzmik
From: Robert Jarzmik As the pxa architecture switched towards the dmaengine slave map, the old compatibility mechanism to acquire the dma requestor line number and priority are not needed anymore. This patch simplifies the dma resource acquisition, using the more

[PATCH 01/15] dmaengine: pxa: use a dma slave map

2018-04-02 Thread Robert Jarzmik
In order to remove the specific knowledge of the dma mapping from PXA drivers, add a default slave map for pxa architectures. This won't impact MMP architecture, but is aimed only at all PXA boards. This is the first step, and once all drivers are converted, pxad_filter_fn() will be made static,

[PATCH 04/15] media: pxa_camera: remove the dmaengine compat need

2018-04-02 Thread Robert Jarzmik
From: Robert Jarzmik As the pxa architecture switched towards the dmaengine slave map, the old compatibility mechanism to acquire the dma requestor line number and priority are not needed anymore. This patch simplifies the dma resource acquisition, using the more

[net-next PATCH v3 11/11] net: netcp: support probe deferral

2018-04-02 Thread Murali Karicheri
The netcp driver shouldn't proceed until the knav qmss and dma devices are ready. So return -EPROBE_DEFER if these devices are not ready. Signed-off-by: Murali Karicheri --- drivers/net/ethernet/ti/netcp_core.c | 4 1 file changed, 4 insertions(+) diff --git

[net-next PATCH v3 04/11] net: netcp: ethss: make call to gbe_sgmii_config() conditional

2018-04-02 Thread Murali Karicheri
As a preparatory patch to add support for 2u cpsw hardware found on K2G SoC, make call to gbe_sgmii_config() conditional. This is required since 2u uses RGMII interface instead of SGMII and to allow for driver re-use. Signed-off-by: Murali Karicheri ---

[net-next PATCH v3 10/11] Revert "net: netcp: remove dead code from the driver"

2018-04-02 Thread Murali Karicheri
As the probe sequence is not guaranteed contrary to the assumption of the commit 2d8e276a9030, same has to be reverted. commit 2d8e276a9030 ("net: netcp: remove dead code from the driver") Signed-off-by: Murali Karicheri --- drivers/net/ethernet/ti/netcp_core.c | 9

Re: [PATCH net-next V2 0/4] Introduce adaptive TX interrupt moderation to net DIM

2018-04-02 Thread Tal Gilboa
On 4/2/2018 5:27 PM, David Miller wrote: From: Tal Gilboa Date: Mon, 2 Apr 2018 16:59:30 +0300 Net DIM is a library designed for dynamic interrupt moderation. It was implemented and optimized with receive side interrupts in mind, since these are usually the CPU expensive

Re: [PATCH] net: implement IP_RECVHDRS option to get full headers through recvmsg cmsg.

2018-04-02 Thread David Miller
From: Maciej Żenczykowski Date: Sat, 31 Mar 2018 22:43:14 -0700 > From: Luigi Rizzo > > We have all sorts of different ways to fetch pre-UDP payload metadata: > IP_RECVTOS > IP_RECVTTL > IP_RECVOPTS > IP_RETOPTS > > But nothing generic which

Re: [PATCH net-next] net: ipv6/gre: Add GRO support

2018-04-02 Thread Eric Dumazet
On 04/02/2018 05:40 AM, Eran Ben Elisha wrote: > On Sun, Apr 1, 2018 at 7:35 PM, Eric Dumazet wrote: >> >> >> On 04/01/2018 06:17 AM, Tariq Toukan wrote: >>> From: Eran Ben Elisha >>> >>> Add GRO capability for IPv6 GRE tunnel and ip6erspan tap, via

Re: [PATCH v3 2/2] net: usb: asix88179_178a: de-duplicate code

2018-04-02 Thread David Miller
From: Marc Zyngier Date: Mon, 02 Apr 2018 10:45:40 +0100 > What has changed between this patch and the previous one? Having a bit > of a change-log would certainly help. Also, I would have appreciated a > reply to the questions I had on v2 before you posted a third version.

[PATCH 13/15] ARM: pxa: remove the DMA IO resources

2018-04-02 Thread Robert Jarzmik
As the last driver using the former mechanism to acquire the DMA requestor line has be converted to the dma_slave_map, remove all these resources from the PXA devices. Signed-off-by: Robert Jarzmik --- arch/arm/mach-pxa/devices.c | 136

[PATCH 09/15] net: irda: pxaficp_ir: remove the dmaengine compat need

2018-04-02 Thread Robert Jarzmik
As the pxa architecture switched towards the dmaengine slave map, the old compatibility mechanism to acquire the dma requestor line number and priority are not needed anymore. This patch simplifies the dma resource acquisition, using the more generic function dma_request_slave_channel().

[PATCH 14/15] ARM: pxa: change SSP devices allocation

2018-04-02 Thread Robert Jarzmik
In order to prepare for the dma_slave_map change for SSP DMA channels allocation, the SSP platform devices will now include a platform data structure which in turn selects which dma channel has to be used for data transfers, especially the PCM ones. Signed-off-by: Robert Jarzmik

[PATCH 05/15] mtd: nand: pxa3xx: remove the dmaengine compat need

2018-04-02 Thread Robert Jarzmik
From: Robert Jarzmik As the pxa architecture switched towards the dmaengine slave map, the old compatibility mechanism to acquire the dma requestor line number and priority are not needed anymore. This patch simplifies the dma resource acquisition, using the more

[net-next PATCH v3 06/11] net: netcp: ethss: use rgmii link status for 2u cpsw hardware

2018-04-02 Thread Murali Karicheri
Introduce rgmii link status to handle link state events for 2u cpsw hardware on K2G. Signed-off-by: Murali Karicheri --- drivers/net/ethernet/ti/netcp_ethss.c | 34 +++--- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git

Re: [PATCH net-next] bridge: Allow max MTU when multiple VLANs present

2018-04-02 Thread Roopa Prabhu
On Fri, Mar 30, 2018 at 12:54 PM, Chas Williams <3ch...@gmail.com> wrote: > On Thu, Mar 29, 2018 at 9:02 PM, Toshiaki Makita > wrote: >> On 2018/03/30 1:49, Roopa Prabhu wrote: >>> On Thu, Mar 22, 2018 at 9:53 PM, Roopa Prabhu >>> wrote:

Re: [PATCH net-next] net: ipv6/gre: Add GRO support

2018-04-02 Thread Eric Dumazet
On 04/02/2018 08:00 AM, Eran Ben Elisha wrote: Seems good, but why isn't this handled directly in GRO native layer ? >>> ip6_tunnel and ip6_gre do not share initialization flow functions (unlike >>> ipv4). >>> Changing the ipv6 init infrastructure should not be part of this >>> patch. we

Re: [BUG/Q] can_pernet_exit() leaves devices on dead net

2018-04-02 Thread Oliver Hartkopp
Hi Kirill, Marc, I checked the code once more and added some debug output to the other parts in CAN notifier code. In fact the code pointed to by both of you seems to be obsolete as I only wanted to be 'really sure' that no leftovers of the CAN filters at module unloading. Yes, this one

[net-next 1/2] net: netcp: add api to support set rx mode in netcp modules

2018-04-02 Thread Murali Karicheri
From: WingMan Kwok This patch adds an API to support setting rx mode in netcp modules. If a netcp module needs to be notified when upper layer transitions from one rx mode to another and react accordingly, such a module will implement the new API set_rx_mode added in this patch.

Re: linux-next: Signed-off-by missing for commits in the net-next tree

2018-04-02 Thread Stephen Rothwell
Hi Johan, On Mon, 2 Apr 2018 08:38:03 +0300 Johan Hedberg wrote: > > On Mon, Apr 02, 2018, Stephen Rothwell wrote: > > 45a42bc9cc65 ("Bluetooth: hci_bcm: Remove DMI quirk for the MINIX Z83-4") > > f9b95db0165a ("Bluetooth: btrsi: remove unused including > > ") > >

Re: [PATCH] net: improve ipv4 performances

2018-04-02 Thread kbuild test robot
/commits/Anton-Gary-Ceph/net-improve-ipv4-performances/20180402-103807 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> net/bridge/br_private.h:690:15: sparse: restr

KASAN: use-after-free Read in ccid2_hc_tx_packet_recv

2018-04-02 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda (Sun Apr 1 21:20:27 2018 +) Linux 4.16 syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=554ccde221001ab5479a Unfortunately, I don't have any reproducer for this crash yet. Raw

Re: [PATCH V5 net-next 06/14] net/tls: Add generic NIC offload infrastructure

2018-04-02 Thread Boris Pismenny
Hi Kirill, On 3/28/2018 6:11 PM, Kirill Tkhai wrote: On 28.03.2018 02:56, Saeed Mahameed wrote: From: Ilya Lesokhin This patch adds a generic infrastructure to offload TLS crypto to a network device. It enables the kernel TLS socket to skip encryption and authentication

WARNING in add_uevent_var

2018-04-02 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 10b84daddbec72c6b440216a69de9a9605127f7a (Sat Mar 31 17:59:00 2018 +) Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip syzbot dashboard link:

Re: [PATCH v5 03/14] PCI: Add pcie_bandwidth_capable() to compute max supported link bandwidth

2018-04-02 Thread Tal Gilboa
On 4/2/2018 3:40 AM, Bjorn Helgaas wrote: On Sun, Apr 01, 2018 at 11:38:53PM +0300, Tal Gilboa wrote: On 3/31/2018 12:05 AM, Bjorn Helgaas wrote: From: Tal Gilboa Add pcie_bandwidth_capable() to compute the max link bandwidth supported by a device, based on the max link

Re: [patch iproute2-next] man: fix devlink object list

2018-04-02 Thread Jiri Pirko
Fri, Mar 30, 2018 at 06:43:33PM CEST, dsah...@gmail.com wrote: >On 3/29/18 8:26 AM, Jiri Pirko wrote: >> From: Jiri Pirko >> >> Signed-off-by: Jiri Pirko >> --- >> man/man8/devlink.8 | 10 +- >> 1 file changed, 9 insertions(+), 1 deletion(-) >> >

Re: [PATCH v3 2/2] net: usb: asix88179_178a: de-duplicate code

2018-04-02 Thread Marc Zyngier
On Mon, 02 Apr 2018 08:43:49 +0100, Alexander Kurz wrote: Alexander, > > Remove the duplicated code for asix88179_178a bind and reset methods. > > Signed-off-by: Alexander Kurz > --- > drivers/net/usb/ax88179_178a.c | 137 > ++--- > 1 file

Re: [PATCH v2 0/7] net: thunderx: implement DMAC filtering support

2018-04-02 Thread Vadim Lomovtsev
On Sat, Mar 31, 2018 at 10:07:30PM -0400, David Miller wrote: > From: Vadim Lomovtsev > Date: Fri, 30 Mar 2018 04:59:46 -0700 > > > From: Vadim Lomovtsev > > > > By default CN88XX BGX accepts all incoming multicast and broadcast >

Re: [PATCH net-next] net: ipv6/gre: Add GRO support

2018-04-02 Thread Eran Ben Elisha
On Sun, Apr 1, 2018 at 7:35 PM, Eric Dumazet wrote: > > > On 04/01/2018 06:17 AM, Tariq Toukan wrote: >> From: Eran Ben Elisha >> >> Add GRO capability for IPv6 GRE tunnel and ip6erspan tap, via gro_cells >> infrastructure. >> >> Performance testing:

[PATCH v3 1/2] net: usb: asix88179_178a: set permanent address once only

2018-04-02 Thread Alexander Kurz
The permanent address of asix88179_178a devices is read at probe time and should not be overwritten later. Otherwise it may be overwritten unintentionally with a configured address. Signed-off-by: Alexander Kurz --- drivers/net/usb/ax88179_178a.c | 1 - 1 file changed, 1

possible deadlock in skb_queue_tail

2018-04-02 Thread syzbot
Hello, syzbot hit the following crash on net-next commit 06b19fe9a6df7aaa423cd8404ebe5ac9ec4b2960 (Sun Apr 1 03:37:33 2018 +) Merge branch 'chelsio-inline-tls' syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=6b495100f17ca8554ab9 Unfortunately, I don't have any reproducer

Re: [net-next 0/2] Add promiscous mode support in k2g network driver

2018-04-02 Thread David Miller
From: Murali Karicheri Date: Mon, 2 Apr 2018 12:17:17 -0400 > This patch adds support for promiscuous mode in network driver for K2G > SoC. This depends on v3 of my series at > https://www.spinics.net/lists/kernel/msg2765942.html The net-next tree is closed, please resubmit

Re: [PATCH v15 ] net/veth/XDP: Line-rate packet forwarding in kernel

2018-04-02 Thread Stephen Hemminger
On Sun, 1 Apr 2018 20:47:28 -0400 "Md. Islam" wrote: > This patch implements IPv4 forwarding on xdp_buff. I added a new > config option XDP_ROUTER. Kernel would forward packets through fast > path when this option is enabled. But it would require driver support. > Currently it

Re: [PATCH net 0/2] net: bgmac: Couple of sparse warnings

2018-04-02 Thread David Miller
From: Florian Fainelli Date: Mon, 2 Apr 2018 10:17:36 -0700 > On 04/01/2018 07:21 PM, David Miller wrote: >> From: Florian Fainelli >> Date: Sun, 1 Apr 2018 10:26:28 -0700 >> >>> This patch series fixes a couple of warnings reported by sparse,

Re: [PATCH net-next v1] ipvs: add consistent source hashing scheduling

2018-04-02 Thread Vincent Bernat
❦ 2 avril 2018 10:33 -0700, Eric Dumazet  : >> +static inline u32 >> +ip_vs_csh_permutation(struct ip_vs_dest *d, int j) >> +{ >> +u32 offset, skip; >> +__be32 addr_fold = d->addr.ip; >> + >> +#ifdef CONFIG_IP_VS_IPV6 >> +if (d->af == AF_INET6) >> +

[Patch net] af_unix: remove redundant lockdep class

2018-04-02 Thread Cong Wang
After commit 581319c58600 ("net/socket: use per af lockdep classes for sk queues") sock queue locks now have per-af lockdep classes, including unix socket. It is no longer necessary to workaround it. I noticed this while looking at a syzbot deadlock report, this patch itself doesn't fix it (this

[GIT] Networking

2018-04-02 Thread David Miller
1) Fix RCU locking in xfrm_local_error(), from Taehee Yoo. 2) Fix return value assignments and thus error checking in iwl_mvm_start_ap_ibss(), from Johannes Berg. 3) Don't count header length twice in vti4, from Stefano Brivio. 4) Fix deadlock in rt6_age_examine_exception, from Eric

  1   2   >