[PATCH v4 1/4] net: macb: Add support for PTP timestamps in DMA descriptors

2017-06-29 Thread Rafal Ozieblo
This patch adds support for PTP timestamps in DMA buffer descriptors. It checks capability at runtime and uses appropriate buffer descriptor. Signed-off-by: Rafal Ozieblo --- drivers/net/ethernet/cadence/Kconfig | 10 ++- drivers/net/ethernet/cadence/macb.c | 117

Re: [PATCH net-next v2 4/9] nfp: extend flower add flow offload

2017-06-29 Thread Yunsheng Lin
> + > + if (mask_basic->n_proto) { cpu_to_be16(mask_basic->n_proto) remove cpu_to_be16 in case. > + /* Ethernet type is present in the key. */ > + switch (key_basic->n_proto) { > + case cpu_to_be16(ETH_P_IP): > + key_layer |=

[PATCH v4 0/4] PTP support for macb driver

2017-06-29 Thread Rafal Ozieblo
This patch series adds support for PTP synchronization protocol in Cadence GEM driver based on PHC. v2 changes: * removed alarm's support * removed external time stamp support * removed PTP event interrupt handling * removed ptp_hw_support flag * removed all extra sanity checks * removed

[PATCH v4 2/4] net: macb: Add tsu_clk to device tree

2017-06-29 Thread Rafal Ozieblo
Signed-off-by: Rafal Ozieblo Acked-by: Rob Herring --- Documentation/devicetree/bindings/net/macb.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bindings/net/macb.txt index

[PATCH v4 4/4] net: macb: Add hardware PTP support

2017-06-29 Thread Rafal Ozieblo
This patch is based on original Harini's patch and Andrei's patch, implemented in a separate file to ease the review/maintanance and integration with other platforms. This driver supports GEM-GXL: - Register ptp clock framework - Initialize PTP related registers - HW time stamp on the PTP

Re: [net-next v2 6/6] ixgbe: Add malicious driver detection support

2017-06-29 Thread David Miller
From: Or Gerlitz Date: Wed, 28 Jun 2017 17:28:59 +0300 > On Wed, Jun 28, 2017 at 1:14 AM, Tantilov, Emil S > wrote: > >> Mainly because I am not sure that other (non-Intel) drivers will benefit from >> such an option. In normal operation this

Re: [PATCH] sctp: Add peeloff-flags socket option

2017-06-29 Thread Marcelo Ricardo Leitner
On Thu, Jun 29, 2017 at 02:13:40PM -0400, Neil Horman wrote: > Based on a request raised on the sctp devel list, there is a need to > augment the sctp_peeloff operation while specifying the O_CLOEXEC and > O_NONBLOCK flags (simmilar to the socket syscall). Since modifying the >

Re: [PATCH net] net: handle NAPI_GRO_FREE_STOLEN_HEAD case also in napi_frags_finish()

2017-06-29 Thread David Miller
From: Michal Kubecek Date: Thu, 29 Jun 2017 11:13:36 +0200 (CEST) > Recently I started seeing warnings about pages with refcount -1. The > problem was traced to packets being reused after their head was merged into > a GRO packet by skb_gro_receive(). While bisecting the issue

Re: [PATCH net-next v2 9/9] nfp: add control message passing capabilities to flower offloads

2017-06-29 Thread Simon Horman
On Thu, Jun 29, 2017 at 06:59:22PM +0300, Or Gerlitz wrote: > On Thu, Jun 29, 2017 at 6:30 PM, Simon Horman > wrote: > > On Thu, Jun 29, 2017 at 06:21:53PM +0300, Or Gerlitz wrote: > >> On Wed, Jun 28, 2017 at 11:30 PM, Simon Horman > >>

Re: [PATCH net-next 0/2] bpf: Add syscall lookup support for fd array and htab

2017-06-29 Thread David Miller
From: Martin KaFai Lau Date: Tue, 27 Jun 2017 23:08:33 -0700 > This patchset adds BPF_MAP_LOOKUP_ELEM syscall support for > BPF_MAP_TYPE_PROG_ARRAY, > BPF_MAP_TYPE_ARRAY_OF_MAPS and > BPF_MAP_TYPE_HASH_OF_MAPS Series applied, thanks.

Re: [PATCH 00/17] v2 net generic subsystem refcount conversions

2017-06-29 Thread David Miller
From: Elena Reshetova Date: Wed, 28 Jun 2017 14:54:49 +0300 > If there are no objections to the patches, please merge them via > respective trees. This doesn't apply cleanly to the net-next tree, please respin.

Re: [PATCH] amd-xgbe: fix spelling mistake: "avialable" -> "available"

2017-06-29 Thread David Miller
From: Colin King Date: Wed, 28 Jun 2017 17:51:10 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in netdev_err message > > Signed-off-by: Colin Ian King Applied, thanks Colin.

Re: [PATCH net-next] ibmvnic: Fix assignment of RX/TX IRQ's

2017-06-29 Thread David Miller
From: Thomas Falcon Date: Wed, 28 Jun 2017 19:55:54 -0500 > The driver currently creates RX/TX queues during device probe, but > assigns IRQ's to them during device open. On reset, however, > IRQ's are assigned when resetting the queues. If there is a reset > while

Re: [PATCH 1/6] net: stmmac: support future possible different internal phy mode

2017-06-29 Thread David Miller
From: Corentin Labbe Date: Thu, 29 Jun 2017 19:02:38 +0200 > On Thu, Jun 29, 2017 at 12:23:49PM -0400, David Miller wrote: >> From: Corentin Labbe >> Date: Tue, 27 Jun 2017 11:28:01 +0200 >> >> > The current way to find if the phy is

Re: BUG: Dentry ffff9f795a08fe60{i=af565f,n=lo} still in use (1) [unmount of proc proc]

2017-06-29 Thread Andrei Vagin
On Thu, Jun 29, 2017 at 12:06 PM, Eric W. Biederman wrote: > Andrei Vagin writes: > >> Hello, >> >> We run CRIU tests on linus' tree and today we found this issue. >> >> CRIU tests are the set of small programs to check checkpoint/restore >> of different

Re: [PATCH v3] datapath: Avoid using stack larger than 1024.

2017-06-29 Thread Pravin Shelar
On Wed, Jun 28, 2017 at 6:38 PM, Tonghao Zhang wrote: > When compiling OvS-master on 4.4.0-81 kernel, > there is a warning: > > CC [M] /root/ovs/datapath/linux/datapath.o > /root/ovs/datapath/linux/datapath.c: In function > 'ovs_flow_cmd_set': >

Re: [PATCH net] rocker: move dereference before free

2017-06-29 Thread David Miller
From: Dan Carpenter Date: Wed, 28 Jun 2017 14:44:21 +0300 > My static checker complains that ofdpa_neigh_del() can sometimes free > "found". It just makes sense to use it first before deleting it. > > Fixes: ecf244f753e0 ("rocker: fix maybe-uninitialized warning") >

[PATCH RFC 0/2] kproxy: Kernel Proxy

2017-06-29 Thread Tom Herbert
This is raw, minimally tested, and error hanlding needs work. Posting as RFC to get feedback on the design... Sidecar proxies are becoming quite popular on server as a means to perform layer 7 processing on application data as it is sent. Such sidecars are used for SSL proxies, application

[PATCH RFC 2/2] kproxy: Kernel proxy

2017-06-29 Thread Tom Herbert
Implement an in-kernel proxy. This patch defines a new address family for create a kproxy socket (AF_KPROXY). Two IOCTL operations are defined SIOCKPROXYJOIN and SIOCKPROXYUNJOIN. The first takes two (TCP) sockets and creates a proxy between them, the latter destroys the proxy. When the proxy is

[PATCH RFC 1/2] skbuff: Function to send an skbuf on a socket

2017-06-29 Thread Tom Herbert
Add skb_send_sock to send an skbuff on a socket within the kernel. Arguments include and offset so that an skbuf might be sent in mulitple calls (e.g. send buffer limit is hit). --- include/linux/skbuff.h | 2 ++ net/core/skbuff.c | 66 ++ 2

Re: kernel (master) build failure w. !CONFIG_NET_RX_BUSY_POLL

2017-06-29 Thread David Miller
From: Mike Galbraith Date: Wed, 28 Jun 2017 10:01:00 +0200 > Greetings network wizards, > > The latest RT explicitly disables CONFIG_NET_RX_BUSY_POLL, thus > uncovering $subject.  Below is what I did about it. > > -Mike > > net: Move napi_hash_add/del() inside

Re: [PATCH net] sfc: fix attempt to translate invalid filter ID

2017-06-29 Thread David Miller
From: Edward Cree Date: Thu, 29 Jun 2017 16:50:06 +0100 > When filter insertion fails with no rollback, we were trying to convert > EFX_EF10_FILTER_ID_INVALID to an id to store in 'ids' (which is either > vlan->uc or vlan->mc). This would WARN_ON_ONCE and then record a

[PATCH net-next v3 8/9] nfp: add a stats handler for flower offloads

2017-06-29 Thread Simon Horman
From: Pieter Jansen van Vuuren Previously there was no way of updating flow rule stats after they have been offloaded to hardware. This is solved by keeping track of stats received from hardware and providing this to the TC handler on request.

[PATCH net-next v3 9/9] nfp: add control message passing capabilities to flower offloads

2017-06-29 Thread Simon Horman
From: Pieter Jansen van Vuuren Previously the flower offloads never sends messages to the hardware, and never registers a handler for receiving messages from hardware. This patch enables the flower offloads to send control messages to hardware when adding

[PATCH net-next v3 4/9] nfp: extend flower add flow offload

2017-06-29 Thread Simon Horman
From: Pieter Jansen van Vuuren Extends the flower flow add function by calculating which match fields are present in the flower offload structure and allocating the appropriate space to describe these. Signed-off-by: Pieter Jansen van Vuuren

[PATCH net-next v3 3/9] nfp: provide infrastructure for offloading flower based TC filters

2017-06-29 Thread Simon Horman
From: Pieter Jansen van Vuuren Adds a flower based TC offload handler for representor devices, this is in addition to the bpf based offload handler. The changes in this patch will be used in a follow-up patch to add tc flower offload to the NFP. The flower

[PATCH net-next v3 7/9] nfp: add metadata to each flow offload

2017-06-29 Thread Simon Horman
From: Pieter Jansen van Vuuren Adds metadata describing the mask id of each flow and keeps track of flows installed in hardware. Previously a flow could not be removed from hardware as there was no way of knowing if that a specific flow was installed. This

[PATCH net-next v3 0/9] introduce flower offload capabilities

2017-06-29 Thread Simon Horman
Hi, this series adds flower offload to the NFP driver. It builds on recent work to add representor and a skeleton flower app - now the app does what its name says. In general the approach taken is to allow some flows within the universe of possible flower matches and tc actions to be offloaded.

Re: [PATCH NET V7 0/2] Add loopback support in phy_driver and hns ethtool fix

2017-06-29 Thread David Miller
From: Andrew Lunn Date: Thu, 29 Jun 2017 20:22:16 +0200 Is less broken a sufficient criteria for acceptance? Sometimes, it depends upon the situation. If you are continuing to resolve those issues, I'll wait and watch for future respins then.

Re: [PATCH net-next] bpf: Fix out-of-bound access on interpreters[]

2017-06-29 Thread David Miller
From: Martin KaFai Lau Date: Wed, 28 Jun 2017 10:41:24 -0700 > The index is off-by-one when fp->aux->stack_depth > has already been rounded up to 32. In particular, > if stack_depth is 512, the index will be 16. > > The fix is to round_up and then takes -1 instead of round_down.

Re: [PATCH net] bpf: prevent leaking pointer via xadd on unpriviledged

2017-06-29 Thread David Miller
From: Daniel Borkmann Date: Thu, 29 Jun 2017 03:04:59 +0200 > Leaking kernel addresses on unpriviledged is generally disallowed, > for example, verifier rejects the following: > > 0: (b7) r0 = 0 > 1: (18) r2 = 0x897e82304400 > 3: (7b) *(u64 *)(r1 +48) = r2 > R2

Re: [PATCH] net: freescale: gianfar : constify dev_pm_ops structures.

2017-06-29 Thread David Miller
From: Arvind Yadav Date: Thu, 29 Jun 2017 11:26:06 +0530 > dev_pm_ops are not supposed to change at runtime. All functions > working with dev_pm_ops provided by work with const > dev_pm_ops. So mark the non-const structs as const. > > File size before: >text

Re: [PATCH] net: bridge: constify attribute_group structures.

2017-06-29 Thread David Miller
From: Arvind Yadav Date: Thu, 29 Jun 2017 16:39:38 +0530 > attribute_groups are not supposed to change at runtime. All functions > working with attribute_groups provided by work with const > attribute_group. So mark the non-const structs as const. > > File size

Re: [PATCH] net: smc91x: constify dev_pm_ops structures.

2017-06-29 Thread David Miller
From: Arvind Yadav Date: Thu, 29 Jun 2017 11:21:00 +0530 > dev_pm_ops are not supposed to change at runtime. All functions > working with dev_pm_ops provided by work with const > dev_pm_ops. So mark the non-const structs as const. > > File size before: >text

Re: [PATCH 0/5] arcnet: Collection of latest fixes

2017-06-29 Thread David Miller
From: Michael Grzeschik Date: Wed, 28 Jun 2017 18:28:32 +0200 > Here we sum up the recent fixes I collected on the way to use and > stabilise the framework. Part of it is an possible deadlock that we > prevent as well to fix the calculation of the dev_id that can be

Re: [PATCH 0/4] arcnet: Collection of latest features

2017-06-29 Thread David Miller
From: Michael Grzeschik Date: Wed, 28 Jun 2017 18:32:17 +0200 > Here we sum up the latest features to improve the arcnet framework. One > patch is used to get feedback from the transfer queue about failed xfers > by adding the err_skb message queue. Beside that we

Re: [PATCH NET V7 0/2] Add loopback support in phy_driver and hns ethtool fix

2017-06-29 Thread David Miller
From: Lin Yun Sheng Date: Wed, 28 Jun 2017 17:13:09 +0800 > This Patch Set add set_loopback in phy_driver and use it to setup loopback > when doing ethtool phy self_test. This doesn't apply cleanly to the net-next tree, please respin. Thank you.

[PATCH] sctp: Add peeloff-flags socket option

2017-06-29 Thread Neil Horman
Based on a request raised on the sctp devel list, there is a need to augment the sctp_peeloff operation while specifying the O_CLOEXEC and O_NONBLOCK flags (simmilar to the socket syscall). Since modifying the SCTP_SOCKOPT_PEELOFF socket option would break user space ABI for existing programs,

Re: [PATCH NET V7 0/2] Add loopback support in phy_driver and hns ethtool fix

2017-06-29 Thread Andrew Lunn
On Thu, Jun 29, 2017 at 02:14:55PM -0400, David Miller wrote: > From: Lin Yun Sheng > Date: Wed, 28 Jun 2017 17:13:09 +0800 > > > This Patch Set add set_loopback in phy_driver and use it to setup loopback > > when doing ethtool phy self_test. > > This doesn't apply

Re: [PATCH] net: ipmr: Add ipmr_rtm_getroute

2017-06-29 Thread David Miller
From: Donald Sharp Date: Wed, 28 Jun 2017 13:58:57 -0400 > Add to RTNL_FAMILY_IPMR, RTM_GETROUTE the ability > to retrieve one S,G mroute from a specified table. > > *,G will return mroute information for just that > particular mroute if it exists. This is because >

Re: [PATCH net-next v4 04/16] bpf: Sample bpf program to set SYN/SYN-ACK RTOs

2017-06-29 Thread Jesper Dangaard Brouer
On Wed, 28 Jun 2017 10:31:12 -0700 Lawrence Brakmo wrote: > +++ b/samples/bpf/tcp_synrto_kern.c > @@ -0,0 +1,60 @@ > +/* Copyright (c) 2017 Facebook > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of version 2 of the GNU

Re: [PATCH] net: constify attribute_group structures.

2017-06-29 Thread David Miller
From: Arvind Yadav Date: Thu, 29 Jun 2017 16:31:26 +0530 > attribute_groups are not supposed to change at runtime. All functions > working with attribute_groups provided by work with const > attribute_group. So mark the non-const structs as const. > > File size

Re: [PATCH] net: ibm: ibmveth: constify dev_pm_ops structures.

2017-06-29 Thread David Miller
From: Arvind Yadav Date: Thu, 29 Jun 2017 11:14:50 +0530 > dev_pm_ops are not supposed to change at runtime. All functions > working with dev_pm_ops provided by work with const > dev_pm_ops. So mark the non-const structs as const. > > File size before: >text

Re: [PATCH net-next 0/2] mlx4_en dynamic TC tx queues

2017-06-29 Thread David Miller
From: Tariq Toukan Date: Thu, 29 Jun 2017 14:07:55 +0300 > This patchset from Inbar aligns the number of TX queues > to the actual need, according to the TC configuration. > > Series generated against net-next commit: > 2ee87db3a287 Merge branch >

[PATCH net-next v3 2/9] nfp: add phys_switch_id support

2017-06-29 Thread Simon Horman
Add phys_switch_id support by allowing lookup of SWITCHDEV_ATTR_ID_PORT_PARENT_ID via the nfp_repr_port_attr_get switchdev operation. This is visible to user-space in the phys_switch_id attribute of a netdev. e.g. cd /sys/devices/pci:00/:00:01.0/:01:00.0 find . -name phys_switch_id

[PATCH net-next v3 5/9] nfp: extend flower matching capabilities

2017-06-29 Thread Simon Horman
From: Pieter Jansen van Vuuren Extends matching capabilities for flower offloads to include vlan, layer 2, layer 3 and layer 4 type matches. This includes both exact and wildcard matching. Signed-off-by: Pieter Jansen van Vuuren

[PATCH net-next v3 1/9] net: switchdev: add SET_SWITCHDEV_OPS helper

2017-06-29 Thread Simon Horman
Add a helper to allow switchdev ops to be set if NET_SWITCHDEV is configured and do nothing otherwise. This allows for slightly cleaner code which uses switchdev but does not select NET_SWITCHDEV. Signed-off-by: Simon Horman --- include/net/switchdev.h | 4 1

[PATCH net-next v3 6/9] nfp: add basic action capabilities to flower offloads

2017-06-29 Thread Simon Horman
From: Pieter Jansen van Vuuren Adds push vlan, pop vlan, output and drop action capabilities to flower offloads. Signed-off-by: Pieter Jansen van Vuuren Signed-off-by: Simon Horman ---

Cycling Enthusiasts List

2017-06-29 Thread Rosy Hunter
Hi, Greetings of the day! Would you be interested in reaching out to "Cycling Enthusiasts List"from USA? We also have contacts of Health and Fitness Enthusiasts List, Running Enthusiasts List, Fishing Enthusiasts List, Hiking Enthusiasts List, Sports Enthusiasts List, Travelers List,

Re: [PATCH RFC 0/2] kproxy: Kernel Proxy

2017-06-29 Thread Willy Tarreau
Hi Tom, On Thu, Jun 29, 2017 at 11:27:03AM -0700, Tom Herbert wrote: > Sidecar proxies are becoming quite popular on server as a means to > perform layer 7 processing on application data as it is sent. Such > sidecars are used for SSL proxies, application firewalls, and L7 > load balancers. While

Re: [PATCH net-next v1 00/14] amd-xgbe: AMD XGBE driver updates 2016-06-28

2017-06-29 Thread David Miller
From: Tom Lendacky Date: Wed, 28 Jun 2017 13:41:23 -0500 > The following updates and fixes are included in this driver update series: > > - Simplify mailbox interface code > - Fix SFP supported and advertising settings > - Fix PTP initialization register usage > -

Re: [PATCH] mm: convert three more cases to kvmalloc

2017-06-29 Thread Mikulas Patocka
On Thu, 29 Jun 2017, Michal Hocko wrote: > On Wed 28-06-17 23:24:10, Mikulas Patocka wrote: > [...] > > From: Mikulas Patocka > > > > The patch a7c3e901 ("mm: introduce kv[mz]alloc helpers") converted a lot > > of kernel code to kvmalloc. This patch converts three more

[PATCH] vmalloc: respect the GFP_NOIO and GFP_NOFS flags

2017-06-29 Thread Mikulas Patocka
The __vmalloc function has a parameter gfp_mask with the allocation flags, however it doesn't fully respect the GFP_NOIO and GFP_NOFS flags. The pages are allocated with the specified gfp flags, but the pagetables are always allocated with GFP_KERNEL. This allocation can cause unexpected recursion

Re: [PATCH v1 1/2] dt-binding: ptp: add bindings document for dte based ptp clock

2017-06-29 Thread Scott Branden
Hi Rob, On 17-06-29 03:40 PM, Rob Herring wrote: On Tue, Jun 27, 2017 at 12:10 AM, Scott Branden wrote: Hi Rob/Florian, Thanks for input but still don't see any need for SoC specific compatible stings. IP revision specific yes. On 17-06-22 06:04 PM, Florian

Re: [PATCH net-next] cxgb4: Add PTP Hardware Clock (PHC) support (fwd)

2017-06-29 Thread Julia Lawall
Cc: Julia Lawall <julia.law...@lip6.fr> Subject: Re: [PATCH net-next] cxgb4: Add PTP Hardware Clock (PHC) support Hi Atul, [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Atul-Gupta/cxgb4-Add-PTP-Hardware-Clock-PHC-support/20170629-200758 ::

Re: [PATCH RFC 0/2] kproxy: Kernel Proxy

2017-06-29 Thread Thomas Graf
On 29 June 2017 at 16:21, Tom Herbert wrote: > I think the main part of that discussion was around stream parser > which is needed for message delineation. For a 1:1 proxy, KCM is > probably overkill (the whole KCM data path and lock becomes > superfluous). Also, there's no

Re: [PATCH RFC 0/2] kproxy: Kernel Proxy

2017-06-29 Thread Willy Tarreau
On Thu, Jun 29, 2017 at 04:43:28PM -0700, Tom Herbert wrote: > On Thu, Jun 29, 2017 at 1:58 PM, Willy Tarreau wrote: > > On Thu, Jun 29, 2017 at 01:40:26PM -0700, Tom Herbert wrote: > >> > In fact that's not much what I observe in field. In practice, large > >> > data streams are

Re: kernel (master) build failure w. !CONFIG_NET_RX_BUSY_POLL

2017-06-29 Thread Mike Galbraith
On Thu, 2017-06-29 at 15:35 -0400, David Miller wrote: > From: Mike Galbraith > Date: Wed, 28 Jun 2017 10:01:00 +0200 > > > Greetings network wizards, > > > > The latest RT explicitly disables CONFIG_NET_RX_BUSY_POLL, thus > > uncovering $subject.  Below is what I did about it. >

Re: [PATCH v3] datapath: Avoid using stack larger than 1024.

2017-06-29 Thread Tonghao Zhang
Thanks for your works. I send v3 for net-next and add "Acked-by". If it is applied, I will backport it to d...@openvswitch.org. On Fri, Jun 30, 2017 at 1:45 AM, Pravin Shelar wrote: > On Wed, Jun 28, 2017 at 6:38 PM, Tonghao Zhang > wrote: >> When

[PATCH net-next v3] datapath: Avoid using stack larger than 1024.

2017-06-29 Thread nickcooper-zhangtonghao
From: Tonghao Zhang When compiling OvS-master on 4.4.0-81 kernel, there is a warning: CC [M] /root/ovs/datapath/linux/datapath.o /root/ovs/datapath/linux/datapath.c: In function 'ovs_flow_cmd_set': /root/ovs/datapath/linux/datapath.c:1221:1: warning:

linux-next: manual merge of the net-next tree with Linus' tree

2017-06-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/ethernet/rocker/rocker_ofdpa.c between commit: acb4b7df48b5 ("rocker: move dereference before free") from Linus' tree and commit: 00fc0c51e35b ("rocker: Change world_ops API and implementation to be

Re: RFC: bring UP 'lo' by default after creating new netns

2017-06-29 Thread Eric W. Biederman
"Mahesh Bandewar (महेश बंडेवार)" writes: > Creation of new network namespace is almost always followed up by > bringing up the loopback device. > > ip netns add foo > ip -netns foo link set lo up > > I'm not sure if there are any consequences of bringing the

[PATCH net-next 04/11] sctp: remove the typedef sctp_cid_action_t

2017-06-29 Thread Xin Long
Remove this typedef, there is even no places using it. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/sctp.h b/include/linux/sctp.h index 6d7b884..ffdccb4 100644 ---

[PATCH net-next 03/11] sctp: remove the typedef sctp_cid_t

2017-06-29 Thread Xin Long
This patch is to remove the typedef sctp_cid_t, and replace with struct sctp_cid in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- include/net/sctp/auth.h | 6 -- include/net/sctp/constants.h | 4 ++--

[PATCH net-next 02/11] sctp: remove the typedef sctp_chunkhdr_t

2017-06-29 Thread Xin Long
This patch is to remove the typedef sctp_chunkhdr_t, and replace with struct sctp_chunkhdr in the places where it's using this typedef. It is also to fix some indents and use sizeof(variable) instead of sizeof(type)., especially in sctp_new. Signed-off-by: Xin Long ---

[PATCH net-next 00/11] sctp: remove typedefs from structures part 1

2017-06-29 Thread Xin Long
As we know, typedef is suggested not to use in kernel, even checkpatch.pl also gives warnings about it. Now sctp is using it for many structures. All this kind of typedef's using should be removed. As the 1st part, this patchset is to remove it for 11 basic structures in linux/sctp.h. It is also

[PATCH net-next 07/11] sctp: remove the typedef sctp_param_action_t

2017-06-29 Thread Xin Long
Remove this typedef, there is even no places using it. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/sctp.h b/include/linux/sctp.h index 5eecc0f..d5c0dda 100644 ---

[PATCH net-next 06/11] sctp: remove the typedef sctp_param_t

2017-06-29 Thread Xin Long
This patch is to remove the typedef sctp_param_t, and replace with struct sctp_paramhdr in the places where it's using this typedef. It is also to remove the useless declaration sctp_addip_addr_config and fix the lack of params for some other functions' declaration. Signed-off-by: Xin Long

[PATCH net-next 05/11] sctp: remove the typedef sctp_paramhdr_t

2017-06-29 Thread Xin Long
This patch is to remove the typedef sctp_paramhdr_t, and replace with struct sctp_paramhdr in the places where it's using this typedef. It is also to fix some indents and use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h

[PATCH net-next 10/11] sctp: remove the typedef sctp_inithdr_t

2017-06-29 Thread Xin Long
This patch is to remove the typedef sctp_inithdr_t, and replace with struct sctp_inithdr in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h| 6 +++--- net/netfilter/nf_conntrack_proto_sctp.c | 4 ++--

[PATCH net-next 09/11] sctp: remove the typedef sctp_data_chunk_t

2017-06-29 Thread Xin Long
This patch is to remove the typedef sctp_data_chunk_t, and replace with struct sctp_data_chunk in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- include/net/sctp/constants.h | 2 +- include/net/sctp/sm.h

[PATCH net-next 11/11] sctp: remove the typedef sctp_init_chunk_t

2017-06-29 Thread Xin Long
This patch is to remove the typedef sctp_init_chunk_t, and replace with struct sctp_init_chunk in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 6 +++--- include/net/sctp/command.h | 4 ++-- include/net/sctp/structs.h

[PATCH net-next 01/11] sctp: remove the typedef sctp_sctphdr_t

2017-06-29 Thread Xin Long
This patch is to remove the typedef sctp_sctphdr_t, and replace with struct sctphdr in the places where it's using this typedef. It is also to fix some indents and use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h

[PATCH net-next 08/11] sctp: remove the typedef sctp_datahdr_t

2017-06-29 Thread Xin Long
This patch is to remove the typedef sctp_datahdr_t, and replace with struct sctp_datahdr in the places where it's using this typedef. It is also to use izeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h| 6 +++---

Re: [PATCH net-next v4 04/16] bpf: Sample bpf program to set SYN/SYN-ACK RTOs

2017-06-29 Thread Lawrence Brakmo
On 6/29/17, 12:39 PM, "netdev-ow...@vger.kernel.org on behalf of Jesper Dangaard Brouer" wrote: On Wed, 28 Jun 2017 10:31:12 -0700 Lawrence Brakmo wrote: > +++ b/samples/bpf/tcp_synrto_kern.c >

[PATCH 00/29] Netfilter updates for net-next

2017-06-29 Thread Pablo Neira Ayuso
Hi David, The following patchset contains Netfilter updates for your net-next tree. This batch contains connection tracking updates for the cleanup iteration path, patches from Florian Westphal: X) Skip unconfirmed conntracks in nf_ct_iterate_cleanup_net(), just set dying bit to let the CPU

[PATCH 17/29] netfilter: nft_set_hash: add non-resizable hashtable implementation

2017-06-29 Thread Pablo Neira Ayuso
This patch adds a simple non-resizable hashtable implementation. If the user specifies the set size, then this new faster hashtable flavour is selected. Signed-off-by: Pablo Neira Ayuso --- net/netfilter/nft_set_hash.c | 210 +-- 1

[PATCH 14/29] netfilter: nf_tables: pass set description to ->privsize

2017-06-29 Thread Pablo Neira Ayuso
The new non-resizable hashtable variant needs this to calculate the size of the bucket array. Signed-off-by: Pablo Neira Ayuso --- include/net/netfilter/nf_tables.h | 3 ++- net/netfilter/nf_tables_api.c | 2 +- net/netfilter/nft_set_bitmap.c| 3 ++-

[PATCH 12/29] netfilter: nft_set_hash: use nft_rhash prefix for resizable set backend

2017-06-29 Thread Pablo Neira Ayuso
This patch prepares the introduction of a non-resizable hashtable implementation that is significantly faster. Signed-off-by: Pablo Neira Ayuso --- net/netfilter/nft_set_hash.c | 212 +-- 1 file changed, 106 insertions(+), 106

[PATCH 18/29] netfilter: nft_set_hash: add lookup variant for fixed size hashtable

2017-06-29 Thread Pablo Neira Ayuso
This patch provides a faster variant of the lookup function for 2 and 4 byte keys. Optimizing the one byte case is not worth, as the set backend selection will always select the bitmap set type for such case. Signed-off-by: Pablo Neira Ayuso --- net/netfilter/nft_set_hash.c

[PATCH 07/29] netfilter: conntrack: add nf_ct_iterate_destroy

2017-06-29 Thread Pablo Neira Ayuso
From: Florian Westphal sledgehammer to be used on module unload (to remove affected conntracks from all namespaces). It will also flag all unconfirmed conntracks as dying, i.e. they will not be committed to main table. Signed-off-by: Florian Westphal

[PATCH 08/29] netfilter: conntrack: restart iteration on resize

2017-06-29 Thread Pablo Neira Ayuso
From: Florian Westphal We could some conntracks when a resize occurs in parallel. Avoid this by sampling generation seqcnt and doing a restart if needed. Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso ---

[PATCH 05/29] netfilter: conntrack: rename nf_ct_iterate_cleanup

2017-06-29 Thread Pablo Neira Ayuso
From: Florian Westphal There are several places where we needlesly call nf_ct_iterate_cleanup, we should instead iterate the full table at module unload time. This is a leftover from back when the conntrack table got duplicated per net namespace. So rename nf_ct_iterate_cleanup

[PATCH 16/29] netfilter: nf_tables: allow large allocations for new sets

2017-06-29 Thread Pablo Neira Ayuso
The new fixed size hashtable backend implementation may result in a large array of buckets that would spew splats from mm. Update this code to fall back on vmalloc in case the memory allocation order is too costly. Signed-off-by: Pablo Neira Ayuso ---

[PATCH RFC 11/26] arm: Remove spin_unlock_wait() arch-specific definitions

2017-06-29 Thread Paul E. McKenney
There is no agreed-upon definition of spin_unlock_wait()'s semantics, and it appears that all callers could do just as well with a lock/unlock pair. This commit therefore removes the underlying arch-specific arch_spin_unlock_wait(). Signed-off-by: Paul E. McKenney

[PATCH RFC 06/26] ipc: Replace spin_unlock_wait() with lock/unlock pair

2017-06-29 Thread Paul E. McKenney
There is no agreed-upon definition of spin_unlock_wait()'s semantics, and it appears that all callers could do just as well with a lock/unlock pair. This commit therefore replaces the spin_unlock_wait() call in exit_sem() with spin_lock() followed immediately by spin_unlock(). This should be safe

[PATCH RFC 09/26] alpha: Remove spin_unlock_wait() arch-specific definitions

2017-06-29 Thread Paul E. McKenney
There is no agreed-upon definition of spin_unlock_wait()'s semantics, and it appears that all callers could do just as well with a lock/unlock pair. This commit therefore removes the underlying arch-specific arch_spin_unlock_wait(). Signed-off-by: Paul E. McKenney

[PATCH RFC 13/26] blackfin: Remove spin_unlock_wait() arch-specific definitions

2017-06-29 Thread Paul E. McKenney
There is no agreed-upon definition of spin_unlock_wait()'s semantics, and it appears that all callers could do just as well with a lock/unlock pair. This commit therefore removes the underlying arch-specific arch_spin_unlock_wait(). Signed-off-by: Paul E. McKenney

[PATCH RFC 07/26] drivers/ata: Replace spin_unlock_wait() with lock/unlock pair

2017-06-29 Thread Paul E. McKenney
There is no agreed-upon definition of spin_unlock_wait()'s semantics, and it appears that all callers could do just as well with a lock/unlock pair. This commit therefore eliminates the spin_unlock_wait() call and associated else-clause and hoists the then-clause's lock and unlock out of the "if"

Re: [PATCH RFC 0/2] kproxy: Kernel Proxy

2017-06-29 Thread Tom Herbert
Hi Willy, Thanks for the comments! > In fact that's not much what I observe in field. In practice, large > data streams are cheaply relayed using splice(), I could achieve > 60 Gbps of HTTP forwarding via HAProxy on a 4-core xeon 2 years ago. > And when you use SSL, the cost of the copy to/from

Re: CAN-FD Transceiver Limitations

2017-06-29 Thread Kurt Van Dijck
> >> > >> mcan@0 { > >>... > >>fixed-transceiver { > >> max-canfd-speed = <2000> > >>}; > >>... > >> }; Since when would a transceiver support different speeds for CAN & CANFD? No transceivers were available, but they are now. I see no datalink problem applying 2MBit for

Re: [PATCH RFC 0/2] kproxy: Kernel Proxy

2017-06-29 Thread Tom Herbert
On Thu, Jun 29, 2017 at 1:58 PM, Willy Tarreau wrote: > On Thu, Jun 29, 2017 at 01:40:26PM -0700, Tom Herbert wrote: >> > In fact that's not much what I observe in field. In practice, large >> > data streams are cheaply relayed using splice(), I could achieve >> > 60 Gbps of HTTP

[PATCH RFC 0/26] Remove spin_unlock_wait()

2017-06-29 Thread Paul E. McKenney
Hello! There is no agreed-upon definition of spin_unlock_wait()'s semantics, and it appears that all callers could do just as well with a lock/unlock pair. This series therefore removes spin_unlock_wait() and changes its users to instead use a lock/unlock pair. The commits are as follows, in

[PATCH RFC 03/26] sched: Replace spin_unlock_wait() with lock/unlock pair

2017-06-29 Thread Paul E. McKenney
There is no agreed-upon definition of spin_unlock_wait()'s semantics, and it appears that all callers could do just as well with a lock/unlock pair. This commit therefore replaces the spin_unlock_wait() call in do_task_dead() with spin_lock() followed immediately by spin_unlock(). This should be

[GIT] Networking

2017-06-29 Thread David Miller
1) Need to access netdev->num_rx_queues behind an accessor in netvsc driver otherwise the build breaks with some configs, from Arnd Bergmann. 2) Add dummy xfrm_dev_event() so that build doesn't fail when CONFIG_XFRM_OFFLOAD is not set. From Hangbin Liu. 3) Don't OOPS when

Re: [PATCH] sctp: Add peeloff-flags socket option

2017-06-29 Thread Al Viro
On Thu, Jun 29, 2017 at 02:13:40PM -0400, Neil Horman wrote: > diff --git a/fs/file.c b/fs/file.c > index 1c2972e..a4521da 100644 > --- a/fs/file.c > +++ b/fs/file.c > @@ -807,6 +807,7 @@ void set_close_on_exec(unsigned int fd, int flag) > __clear_close_on_exec(fd, fdt); >

[PATCH 01/29] netfilter: ctnetlink: delete extra spaces

2017-06-29 Thread Pablo Neira Ayuso
From: linzhang This patch cleans up extra spaces. Signed-off-by: linzhang Signed-off-by: Pablo Neira Ayuso --- net/netfilter/nf_conntrack_netlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 03/29] netfilter: dup: resolve warnings about missing prototypes

2017-06-29 Thread Pablo Neira Ayuso
From: stephen hemminger Missing include file causes: net/netfilter/nf_dup_netdev.c:26:6: warning: no previous prototype for ‘nf_fwd_netdev_egress’ [-Wmissing-prototypes] net/netfilter/nf_dup_netdev.c:40:6: warning: no previous prototype for ‘nf_dup_netdev_egress’

[PATCH 04/29] netfilter: nft_rt: make local functions static

2017-06-29 Thread Pablo Neira Ayuso
From: stephen hemminger Resolves warnings: net/netfilter/nft_rt.c:26:6: warning: no previous prototype for ‘nft_rt_get_eval’ [-Wmissing-prototypes] net/netfilter/nft_rt.c:75:5: warning: no previous prototype for ‘nft_rt_get_init’ [-Wmissing-prototypes]

Re: [PATCH net-next v3 0/9] introduce flower offload capabilities

2017-06-29 Thread Jakub Kicinski
On Thu, 29 Jun 2017 22:08:10 +0200, Simon Horman wrote: > Hi, > > this series adds flower offload to the NFP driver. It builds on recent > work to add representor and a skeleton flower app - now the app does what > its name says. > > In general the approach taken is to allow some flows within >

  1   2   3   >