[PATCH net-next v2 2/5] tipc: make cluster size threshold for monitoring configurable

2016-07-25 Thread Parthasarathy Bhuvaragan
In this commit, we introduce support to configure the minimum threshold to activate the new link monitoring algorithm. Reviewed-by: Jon Maloy Signed-off-by: Parthasarathy Bhuvaragan --- include/uapi/linux/tipc_netlink.h | 11 +++ net/tipc/monitor.c| 12 net/

[PATCH net-next v2 0/5] tipc: netlink updates for neighbour monitor

2016-07-25 Thread Parthasarathy Bhuvaragan
This series contains the updates to configure and read the attributes for neighbour monitor. v2: rebase on top of net-next Parthasarathy Bhuvaragan (5): tipc: introduce constants for tipc address validation tipc: make cluster size threshold for monitoring configurable tipc: get monitor thre

[PATCH net-next v2 5/5] tipc: dump monitor attributes

2016-07-25 Thread Parthasarathy Bhuvaragan
In this commit, we dump the monitor attributes when queried. The link monitor attributes are separated into two kinds: 1. general attributes per bearer 2. specific attributes per node/peer This style resembles the socket attributes and the nametable publications per socket. Reviewed-by: Jon Maloy

[PATCH net-next v2 4/5] tipc: add a function to get the bearer name

2016-07-25 Thread Parthasarathy Bhuvaragan
Introduce a new function to get the bearer name from its id. This is used in subsequent commit. Reviewed-by: Jon Maloy Signed-off-by: Parthasarathy Bhuvaragan --- net/tipc/bearer.c | 21 + net/tipc/bearer.h | 1 + 2 files changed, 22 insertions(+) diff --git a/net/tipc/bea

[PATCH net-next v2 1/5] tipc: introduce constants for tipc address validation

2016-07-25 Thread Parthasarathy Bhuvaragan
In this commit, we introduce defines for tipc address size, offset and mask specification for Zone.Cluster.Node. There is no functional change in this commit. Reviewed-by: Jon Maloy Signed-off-by: Parthasarathy Bhuvaragan --- include/uapi/linux/tipc.h | 30 ++ net/ti

[PATCH net-next v2 3/5] tipc: get monitor threshold for the cluster

2016-07-25 Thread Parthasarathy Bhuvaragan
In this commit, we add support to fetch the configured cluster monitoring threshold. Reviewed-by: Jon Maloy Signed-off-by: Parthasarathy Bhuvaragan --- include/uapi/linux/tipc_netlink.h | 1 + net/tipc/monitor.c| 7 ++ net/tipc/monitor.h| 2 ++ net/tipc/ne

[PATCH v2] net: neigh: disallow transition to NUD_STALE if lladdr is unchanged in neigh_update()

2016-07-25 Thread Chunhui He
NUD_STALE is used when the caller(e.g. arp_process()) can't guarantee neighbour reachability. If the entry was NUD_VALID and lladdr is unchanged, the entry state should not be changed. Currently the code puts an extra "NUD_CONNECTED" condition. So if old state was NUD_DELAY or NUD_PROBE (they are

Re: mlx5 SRIOV VLAN support

2016-07-25 Thread domingo montoya
Hello, I was trying to understand which flow tables/groups/rules enable the successful transfer of VLAN tagged packets from the VF. My current understanding is the PF driver creates and configures only two flow tables: 1. FDB flow table (for regular forwarding of traffic) 2. ACL Ingress and Eg

Re: [PATCH v2 09/10] netns: Add a limit on the number of net namespaces

2016-07-25 Thread Andrei Vagin
On Thu, Jul 21, 2016 at 9:40 AM, Eric W. Biederman wrote: > Signed-off-by: "Eric W. Biederman" > --- > include/linux/user_namespace.h | 1 + > kernel/user_namespace.c| 1 + > net/core/net_namespace.c | 15 +++ > 3 files changed, 17 insertions(+) > > diff --git a/inclu

RE: [PATCH v18 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-25 Thread Dexuan Cui
> From: David Miller [mailto:da...@davemloft.net] > ... > From: Dexuan Cui > Date: Tue, 26 Jul 2016 03:09:16 + > > > BTW, during the past month, at least 7 other people also reviewed > > the patch and gave me quite a few good comments, which have > > been addressed. > > Correction: Several p

Re: PROBLEM: network data corruption (bisected to e5a4b0bb803b)

2016-07-25 Thread alexmcwhirter
Thanks for the detailed bug-report. I looked around the web to see if it was already reported or not. If found that this issue was reported before: [0], [1] and [2] by the same person (CC'ed). One difference is that the reporter had this issue with rsync on multiple SPARC systems. I ran a git gr

Re: PROBLEM: network data corruption (bisected to e5a4b0bb803b)

2016-07-25 Thread Alan Curry
Al Viro wrote: > On Sun, Jul 24, 2016 at 07:45:13PM +0200, Christian Lamparter wrote: > > > > The symptom is that downloaded files (http, ftp, and probably other > > > protocols) have small corrupted segments (about 1-2 kilobytes long) in > > > random locations. Only downloads that sustain a high

Re: [PATCH net-next v7 00/12] drivers: net: xgene: Fix module crash and 1G hot-plug

2016-07-25 Thread David Miller
From: Iyappan Subramanian Date: Mon, 25 Jul 2016 17:12:35 -0700 > This patchset addresses the following issues, > > 1. Fixes the kernel crash when the driver loaded as an kernel module > - by fixing hardware cleanups and rearrange kernel API calls > > 2. Hot-plug issue on the SGMII 1G int

Re: [Patch net-next v2 0/2] net_sched: refactor tc action structures

2016-07-25 Thread David Miller
From: Cong Wang Date: Mon, 25 Jul 2016 16:09:40 -0700 > These two patches factor out the struct tcf_common. > > v2: fix a compile warning Series applied.

Re: [PATCH next] ipvlan: Scrub skb before crossing the namespace boundry

2016-07-25 Thread David Miller
From: Mahesh Bandewar Date: Mon, 25 Jul 2016 14:38:16 -0700 > From: Mahesh Bandewar > > The earlier patch c3aaa06d5a63 (ipvlan: scrub skb before routing > in L3 mode.) did this but only for TX path in L3 mode. This > patch extends it for both the modes for TX/RX path. > > Signed-off-by: Mahesh

Re: [PATCH 1/3] net: asix: Add in_pm parameter

2016-07-25 Thread David Miller
Please correct the problems Grant Grundler mentioned in all of these patches, and resubmit this entire series freshly. Also, please include a proper "[PATCH 0/3] ..." introduction posting for the series which explains what this series is about, how it implements what it is doing, and why it is do

Re: [PATCH net-next v2 0/3] bnxt_en: Improve ntuple filters and add new IDs.

2016-07-25 Thread David Miller
From: Michael Chan Date: Mon, 25 Jul 2016 12:33:34 -0400 > Improve ntuple filters and add some new PCI device IDs. Please review > for net-next. Series applied, thanks.

Re: [PATCH net] qed: Fix setting/clearing bit in completion bitmap

2016-07-25 Thread David Miller
From: Yuval Mintz Date: Mon, 25 Jul 2016 19:07:46 +0300 > From: Manish Chopra > > Slowpath completion handling is incorrectly changing > SPQ_RING_SIZE bits instead of a single one. > > Fixes: 76a9a3642a0b ("qed: fix handling of concurrent ramrods") > Signed-off-by: Manish Chopra > Signed-off-

Re: [PATCH net-next] udp: use sk_filter_trim_cap for udp{,6}_queue_rcv_skb

2016-07-25 Thread David Miller
From: Daniel Borkmann Date: Mon, 25 Jul 2016 18:06:12 +0200 > After a612769774a3 ("udp: prevent bugcheck if filter truncates packet > too much"), there followed various other fixes for similar cases such > as f4979fcea7fd ("rose: limit sk_filter trim to payload"). > > Latter introduced a new hel

Re: [PATCH] caif-hsi: Remove deprecated create_singlethread_workqueue

2016-07-25 Thread David Miller
From: Bhaktipriya Shridhar Date: Mon, 25 Jul 2016 18:40:57 +0530 > alloc_workqueue replaces deprecated create_singlethread_workqueue(). > > A dedicated workqueue has been used since the workitems are being used > on a packet tx/rx path. Hence, WQ_MEM_RECLAIM has been set to guarantee > forward p

Re: [PATCH v18 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-25 Thread David Miller
From: Dexuan Cui Date: Tue, 26 Jul 2016 03:09:16 + > BTW, during the past month, at least 7 other people also reviewed > the patch and gave me quite a few good comments, which have > been addressed. Correction: Several people gave coding style and simple corrections to your patch. Very few

Re: PROBLEM: network data corruption (bisected to e5a4b0bb803b)

2016-07-25 Thread Alan Curry
Christian Lamparter wrote: > > As for carl9170: I'm not sure what the driver or firmware can do about > this at this time. You can try to disable the hardware crypto by setting > nohwcrypt via the module option. However, this might not do anything at all. The nohwcrypt parameter didn't make any d

Re: [PATCH v2 02/10] userns: Add per user namespace sysctls.

2016-07-25 Thread Eric W. Biederman
David Miller writes: > From: ebied...@xmission.com (Eric W. Biederman) > Date: Mon, 25 Jul 2016 19:44:50 -0500 > >> User namespaces have enabled unprivileged users access to a lot more >> data structures and so to catch programs that go crazy we need a lot >> more limits. I believe some of those

[e1000_netpoll] BUG: sleeping function called from invalid context at kernel/irq/manage.c:110

2016-07-25 Thread Fengguang Wu
Greetings, This BUG message can be found in recent kernels as well as v4.4 and linux-stable. It happens when running modprobe netconsole netconsole=@/,$port@$server/ [ 39.937534] 22 Jul 13:30:40 ntpdate[440]: step time server 192.168.1.1 offset -673.833841 sec [ 39.943285] netpoll:

Re: [PATCH v3 3/3] mac80211: mesh: fixed HT ies in beacon template

2016-07-25 Thread Masashi Honma
On 2016年07月22日 14:26, Masashi Honma wrote: > On 2016年07月14日 05:07, Yaniv Machani wrote: >> + >> +/* if channel width is 20MHz - configure HT capab accordingly*/ >> +if (sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_20) { >> +cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; >> +

RE: [PATCH v18 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-25 Thread Dexuan Cui
> From: David Miller [mailto:da...@davemloft.net] > > From: Dexuan Cui > Date: Sat, 23 Jul 2016 01:35:51 + > > > +static struct sock *hvsock_create(struct net *net, struct socket *sock, > > + gfp_t priority, unsigned short type) > > +{ > > + struct hvsock_sock *

Re: [PATCH v2 02/10] userns: Add per user namespace sysctls.

2016-07-25 Thread David Miller
From: ebied...@xmission.com (Eric W. Biederman) Date: Mon, 25 Jul 2016 19:44:50 -0500 > User namespaces have enabled unprivileged users access to a lot more > data structures and so to catch programs that go crazy we need a lot > more limits. I believe some of those limits make sense per namespac

Re: [RFC PATCH] xfrm: Add option to reset oif in xfrm lookup

2016-07-25 Thread David Ahern
On 7/25/16 6:34 PM, Subash Abhinov Kasiviswanathan wrote: We are seeing incorrect routing when tunneling packets over an interface and sending it over another interface. This scenario worked on 3.18 (and earlier) and failed on 4.4 kernel. The rules / routes / policies were the same across kernels

Re: [PATCH net-next v7 0/2] bpf: add bpf_probe_write_user helper & example

2016-07-25 Thread David Miller
From: Sargun Dhillon Date: Mon, 25 Jul 2016 05:54:29 -0700 > This patch series contains two patches that add support for a probe_write > helper to BPF programs. This allows them to manipulate user memory during > the course of tracing. The second patch in the series has an example that > uses it,

Re: [PATCH] gtp: #define #define _GTP_H_ and not #define _GTP_H

2016-07-25 Thread David Miller
From: Colin King Date: Sun, 24 Jul 2016 19:24:09 +0100 > From: Colin Ian King > > Fix clang build warning: > > ./include/net/gtp.h:1:9: warning: '_GTP_H_' is used as a header > guard here, followed by #define of a different macro [-Wheader-guard] > > fix by defining _GTP_H_ and not _GTP_H >

Re: [PATCH net] net/mlx4_core: Check device state before unregistering it

2016-07-25 Thread David Miller
From: Tariq Toukan Date: Mon, 25 Jul 2016 15:42:13 +0300 > From: Alex Vesker > > Verify that the device state is registered before un-registering it. > This check is required to prevent an OOPS on flows that do > re-registration of the device and its previous state was > unregistered. > > Fixe

Re: [PATCH v2 02/10] userns: Add per user namespace sysctls.

2016-07-25 Thread Eric W. Biederman
David Miller writes: > From: ebied...@xmission.com (Eric W. Biederman) > Date: Mon, 25 Jul 2016 19:02:01 -0500 > >>Which means this change gets has to wait for next cycle. > > Ok. For clarity I intend to merge these changes through the userns tree, when the issues are resolved. I Cc

Re: [PATCH v2] net: davinci_cpdma: remove excessive dump of register values to kernel log

2016-07-25 Thread David Miller
From: Uwe Kleine-König Date: Mon, 25 Jul 2016 11:54:45 +0200 > Such a big dump of register values is hardly useful on a production > system. > > Another downside of the now removed functions is that calling > emac_dump_regs resulted in at least 87 calls to dev_info while holding a > spinlock and

Re: [PATCH net-next] mlxsw: spectrum: Fix compilation error when CLS_ACT isn't set

2016-07-25 Thread David Miller
From: Ido Schimmel Date: Mon, 25 Jul 2016 13:12:33 +0300 > When CONFIG_NET_CLS_ACT isn't set 'struct tcf_exts' has no member named > 'actions' and we therefore must not access it. Otherwise compilation > fails. > > Fix this by introducing a new macro similar to tc_no_actions(), which > always re

Re: [PATCH net-next V2 0/2] Mellanox 100G mlx5 minimum inline header mode

2016-07-25 Thread David Miller
From: Saeed Mahameed Date: Sun, 24 Jul 2016 16:12:38 +0300 > This small series from Hadar adds the support for minimum inline > header mode query in mlx5e NIC driver. > > Today on TX the driver copies to the HW descriptor only up to L2 > header which is the default required mode and sufficient f

Re: [PATCH] net/sctp: terminate rhashtable walk correctly

2016-07-25 Thread David Miller
From: Vegard Nossum Date: Sat, 23 Jul 2016 09:42:35 +0200 > I was seeing a lot of these: ... > Apparently we always need to call rhashtable_walk_stop(), even when > rhashtable_walk_start() fails: > > * rhashtable_walk_start - Start a hash table walk > * @iter: Hash table iterator > * >

Re: [v3] UCC_GETH/UCC_FAST: Use IS_ERR_VALUE_U32 API to avoid IS_ERR_VALUE abuses.

2016-07-25 Thread David Miller
From: Arvind Yadav Date: Sat, 23 Jul 2016 23:35:51 +0530 > However, anything that passes an 'unsigned short' or 'unsigned int' > argument into IS_ERR_VALUE() is guaranteed to be broken, as are > 8-bit integers and types that are wider than 'unsigned long'. ... > Passing value in IS_ERR_VALUE() i

[RFC PATCH] xfrm: Add option to reset oif in xfrm lookup

2016-07-25 Thread Subash Abhinov Kasiviswanathan
We are seeing incorrect routing when tunneling packets over an interface and sending it over another interface. This scenario worked on 3.18 (and earlier) and failed on 4.4 kernel. The rules / routes / policies were the same across kernels. Commit 42a7b32b73d6 ("xfrm: Add oif to dst lookups") allo

Re: [PATCH v18 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-25 Thread David Miller
From: Dexuan Cui Date: Sat, 23 Jul 2016 01:35:51 + > +static struct sock *hvsock_create(struct net *net, struct socket *sock, > + gfp_t priority, unsigned short type) > +{ > + struct hvsock_sock *hvsk; > + struct sock *sk; > + > + sk = sk_alloc(net, A

Re: [PATCH v2 02/10] userns: Add per user namespace sysctls.

2016-07-25 Thread David Miller
From: ebied...@xmission.com (Eric W. Biederman) Date: Mon, 25 Jul 2016 19:02:01 -0500 >Which means this change gets has to wait for next cycle. Ok.

[PATCH net-next v7 11/12] Documentation: dtb: xgene: Add MDIO node

2016-07-25 Thread Iyappan Subramanian
Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen Tested-by: Toan Le Acked-by: Rob Herring --- .../devicetree/bindings/net/apm-xgene-mdio.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/apm-xgene-mdio.txt

[PATCH net-next v7 07/12] drivers: net: xgene: Enable MDIO driver

2016-07-25 Thread Iyappan Subramanian
This patch enables MDIO driver by, - Selecting MDIO_XGENE - Changed open and close to use phy_start and phy_stop - Changed to use mac_ops->tx(rx)_enable and tx(rx)_disable Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen Tested-by: Toan Le --- drivers/net/ethernet/apm/xgene/Kconfig

[PATCH net-next v7 10/12] dtb: xgene: Add MDIO node

2016-07-25 Thread Iyappan Subramanian
Added mdio node for mdio driver. Also added phy-handle reference to the ethernet nodes. Removed unused clock node from storm sgenet1. Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen Tested-by: Toan Le --- arch/arm64/boot/dts/apm/apm-merlin.dts | 6 ++ arch/arm64/boot/dts/a

[PATCH net-next v7 00/12] drivers: net: xgene: Fix module crash and 1G hot-plug

2016-07-25 Thread Iyappan Subramanian
This patchset addresses the following issues, 1. Fixes the kernel crash when the driver loaded as an kernel module - by fixing hardware cleanups and rearrange kernel API calls 2. Hot-plug issue on the SGMII 1G interface - by adding a driver for MDIO management Signed-off-by: Iyap

[PATCH net-next v7 06/12] drivers: net: xgene: Add backward compatibility

2016-07-25 Thread Iyappan Subramanian
This patch adds xgene_enet_check_phy_hanlde() function that checks whether MDIO driver is probed successfully and sets pdata->mdio_driver to true. If MDIO driver is not probed, ethernet driver falls back to backward compatibility mode. Since enum xgene_enet_cmd is used by MDIO driver, removing thi

[PATCH net-next v7 12/12] MAINTAINERS: xgene: Add driver and documentation path

2016-07-25 Thread Iyappan Subramanian
Added path to the MDIO driver and Documentation file. Signed-off-by: Iyappan Subramanian --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index dc3481d..a9bdba0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -839,7 +839,9 @@ M: Iyappan Subramanian

[PATCH net-next v7 03/12] drivers: net: xgene: Fix module unload crash - change sw sequence

2016-07-25 Thread Iyappan Subramanian
When the driver is configured as kernel module and when it gets unloaded and reloaded, kernel crash was observed. This patch addresses the software cleanup by doing the following, - Moved register_netdev call after hardware is ready - Since ndev is not ready, added set_irq_name to set irq name -

[PATCH net-next v7 09/12] drivers: net: xgene: ethtool: Use phy_ethtool_gset and sset

2016-07-25 Thread Iyappan Subramanian
Changed SGMII 1G get_settings to use phy_ethtool_gset. Changed SGMII 1G set_settings to use phy_ethtool_sset. Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen Tested-by: Toan Le --- .../net/ethernet/apm/xgene/xgene_enet_ethtool.c| 22 +++--- 1 file changed, 19 inse

[PATCH net-next v7 08/12] drivers: net: xgene: Use exported functions

2016-07-25 Thread Iyappan Subramanian
This patch reuses the mdio read/write and phy_register functions and removed the local definitions. Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen Tested-by: Toan Le --- drivers/net/ethernet/apm/xgene/xgene_enet_hw.c | 97 +++--- 1 file changed, 9 insertions(+),

[PATCH net-next v7 04/12] drivers: net: xgene: Fix module unload crash - clkrst sequence

2016-07-25 Thread Iyappan Subramanian
This patch fixes clock reset sequence. - Added clock reset sequence for ACPI - Added delay in clock reset sequence to make sure pulse is generated - Added clk_unprepare_disable() in port shutdown to make sure clock increment/decrement counts are matching - Removed MII_MGMT_CONFIG programming, si

[PATCH net-next v7 02/12] drivers: net: xgene: Fix module unload crash - hw resource cleanup

2016-07-25 Thread Iyappan Subramanian
When the driver is configured as kernel module and when it gets unloaded and reloaded, kernel crash was observed. This patch address the hardware resource cleanups by doing the following, - Added mac_ops->clear() to do prefetch buffer clean up - Fixed delete freepool buffers logic - Reordered mac

Re: [PATCH v2 02/10] userns: Add per user namespace sysctls.

2016-07-25 Thread Eric W. Biederman
"Eric W. Biederman" writes: > Limit per userns sysctls to only be opened for write by a holder > of CAP_SYS_RESOURCE. > > Add all of the necessary boilerplate for having per user namespace > sysctls. > @@ -141,6 +215,7 @@ void free_user_ns(struct user_namespace *ns) > > do { >

[PATCH net-next v7 01/12] drivers: net: xgene: Separate set_speed from mac_init

2016-07-25 Thread Iyappan Subramanian
Since mac_init is too heavy to be called when the link changes, moved the speed_set configuration to a new function and added mac_ops->set_speed function pointer. This function will be called from adjust_link callback. Added cases for 10/100 support for SGMII based 1G interface. Signed-off-by: I

[PATCH net-next v7 05/12] drivers: net: phy: xgene: Add MDIO driver

2016-07-25 Thread Iyappan Subramanian
Currently, SGMII based 1G rely on the hardware registers for link state and sometimes it's not reliable. To get most accurate link state, this interface has to use the MDIO bus to poll the PHY. In X-Gene SoC, MDIO bus is shared across RGMII and SGMII based 1G interfaces, so adding this driver to

Re: [PATCH v2 10/10] mntns: Add a limit on the number of mount namespaces.

2016-07-25 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > Signed-off-by: "Eric W. Biederman" Acked-by: Serge Hallyn Thanks, Eric. > --- > fs/namespace.c | 19 ++- > include/linux/user_namespace.h | 1 + > kernel/user_namespace.c| 1 + > 3 files changed, 20

Re: [PATCH v2 09/10] netns: Add a limit on the number of net namespaces

2016-07-25 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > Signed-off-by: "Eric W. Biederman" Acked-by: Serge Hallyn > --- > include/linux/user_namespace.h | 1 + > kernel/user_namespace.c| 1 + > net/core/net_namespace.c | 15 +++ > 3 files changed, 17 insertions(+) > >

Re: [PATCH v2 08/10] cgroupns: Add a limit on the number of cgroup namespaces

2016-07-25 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > Signed-off-by: "Eric W. Biederman" Acked-by: Serge Hallyn > --- > include/linux/user_namespace.h | 1 + > kernel/cgroup.c| 15 +++ > kernel/user_namespace.c| 1 + > 3 files changed, 17 insertions(+) > >

Re: [PATCH v2 07/10] ipcns: Add a limit on the number of ipc namespaces

2016-07-25 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > Signed-off-by: "Eric W. Biederman" Acked-by: Serge Hallyn > --- > include/linux/user_namespace.h | 1 + > ipc/namespace.c| 42 > +++--- > kernel/user_namespace.c| 1 + > 3 files

Re: [PATCH v2 06/10] utsns: Add a limit on the number of uts namespaces

2016-07-25 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > Signed-off-by: "Eric W. Biederman" Acked-by: Serge Hallyn > --- > include/linux/user_namespace.h | 1 + > kernel/user_namespace.c| 1 + > kernel/utsname.c | 31 ++- > 3 files changed, 28 in

Re: [PATCH v2 05/10] pidns: Add a limit on the number of pid namespaces

2016-07-25 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > Signed-off-by: "Eric W. Biederman" Acked-by: Serge Hallyn > --- > include/linux/user_namespace.h | 1 + > kernel/pid_namespace.c | 22 ++ > kernel/user_namespace.c| 1 + > 3 files changed, 20 insertions(

[Patch net-next v2 2/2] net_sched: get rid of struct tcf_common

2016-07-25 Thread Cong Wang
After the previous patch, struct tc_action should be enough to represent the generic tc action, tcf_common is not necessary any more. This patch gets rid of it to make tc action code more readable. Cc: Jamal Hadi Salim Signed-off-by: Cong Wang --- include/net/act_api.h| 63

[Patch net-next v2 0/2] net_sched: refactor tc action structures

2016-07-25 Thread Cong Wang
These two patches factor out the struct tcf_common. v2: fix a compile warning Cong Wang (2): net_sched: move tc_action into tcf_common net_sched: get rid of struct tcf_common include/net/act_api.h| 91 +++--- include/net/tc_act/tc_bpf.h | 5 +- include/net/tc_act

Re: [PATCH v2 04/10] userns: Generalize the user namespace count into ucount

2016-07-25 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > The same kind of recursive sane default limit and policy > countrol that has been implemented for the user namespace > is desirable for the other namespaces, so generalize > the user namespace refernce count into a ucount. > > Signed-off-by: "Er

[Patch net-next v2 1/2] net_sched: move tc_action into tcf_common

2016-07-25 Thread Cong Wang
struct tc_action is confusing, currently we use it for two purposes: 1) Pass in arguments and carry out results from helper functions 2) A generic representation for tc actions The first one is error-prone, since we need to make sure we don't miss anything. This patch aims to get rid of this use,

Re: [PATCH v2 03/10] userns: Add a limit on the number of user namespaces

2016-07-25 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > Export the export the maximum number of user namespaces as ^ note if you resend, duplicate "export the" > /proc/sys/userns/max_user_namespaces. > > Signed-off-by: "Eric W. Biederman" Acked-by: Serge Hallyn > --- > include/linux/user_names

[NetDev] [ANNOUNCE] Netdev 1.2 updates (Tokyo, Japan, October 5-7)

2016-07-25 Thread Hajime Tazaki
Hello, We'd like to share the interesting updates of coming netdev 1.2, held in Tokyo, Japan on October 5-7. We have already accepted a great series of sessions and more to coming soon. http://netdevconf.org/1.2/accepted-sessions.html * Workshop - XDP workshop: Introduction, experience, and f

Re: [PATCH 3/3] net: asix: Fix AX88772x resume failures

2016-07-25 Thread Grant Grundler
Robert, This patch content LGTM but isn't including the correct "meta data" regarding it's origin. On Mon, Jul 25, 2016 at 10:40 AM, wrote: > From: WK Tsai WK Tsai is not the author of this patch. I believe Allan Chou is the author. > The change fixes AX88772x resume failure by > - Restore i

[PATCH next] ipvlan: Scrub skb before crossing the namespace boundry

2016-07-25 Thread Mahesh Bandewar
From: Mahesh Bandewar The earlier patch c3aaa06d5a63 (ipvlan: scrub skb before routing in L3 mode.) did this but only for TX path in L3 mode. This patch extends it for both the modes for TX/RX path. Signed-off-by: Mahesh Bandewar --- drivers/net/ipvlan/ipvlan_core.c | 39 ++

Re: [PATCH 2/3] net: asix: Avoid looping when the device is disconnected

2016-07-25 Thread Grant Grundler
On Mon, Jul 25, 2016 at 10:40 AM, wrote: > From: Vincent Palatin > > Check the answers from the USB stack and avoid re-sending multiple times > the request if the device has disappeared. > > Signed-off-by: Vincent Palatin The original chromium.org code review: https://chromium-review.googl

Re: [PATCH 1/3] net: asix: Add in_pm parameter

2016-07-25 Thread Grant Grundler
[as plain text this time...] Robert, On Mon, Jul 25, 2016 at 10:40 AM, wrote: > From: Grant Grundler For the record, I believe I am not the author of these patches. I believe the original author is Signed-off-by: Freddy Xin as recorded in the following code reviews (and testing) that I

Re: [net-next 00/14][pull request] 10GbE Intel Wired LAN Driver Updates 2016-07-22

2016-07-25 Thread Jeff Kirsher
On Mon, 2016-07-25 at 11:28 -0700, David Miller wrote: > From: Jeff Kirsher > Date: Fri, 22 Jul 2016 23:49:37 -0700 > > > This series contains updates to ixgbe and ixgbevf only. > > Pulled, please address Joe's feedback on patch #14. Yep, on it.  Thanks! signature.asc Description: This is a di

Re: [PATCH v2 1/5] ethernet: add sun8i-emac driver

2016-07-25 Thread Maxime Ripard
On Wed, Jul 20, 2016 at 10:03:16AM +0200, LABBE Corentin wrote: > This patch add support for sun8i-emac ethernet MAC hardware. > It could be found in Allwinner H3/A83T/A64 SoCs. > > It supports 10/100/1000 Mbit/s speed with half/full duplex. > It can use an internal PHY (MII 10/100) or an external

Re: [PATCH] net: neigh: disallow state transition DELAY->STALE in neigh_update()

2016-07-25 Thread Julian Anastasov
Hello, On Mon, 25 Jul 2016, 吉藤英明 wrote: > OK, following blocks are "no-op" and we will get same result. > > Well, please do not try changing several things at the same time and > you could say: > > if (ladder == neigh->ha && new == NUD_STALE && > !(flags & NUD_UPDATE_F_ADMIN)) >

Re: [PATCH] caif-hsi: Remove deprecated create_singlethread_workqueue

2016-07-25 Thread Tejun Heo
On Mon, Jul 25, 2016 at 06:40:57PM +0530, Bhaktipriya Shridhar wrote: > alloc_workqueue replaces deprecated create_singlethread_workqueue(). > > A dedicated workqueue has been used since the workitems are being used > on a packet tx/rx path. Hence, WQ_MEM_RECLAIM has been set to guarantee > forwar

Re: [net-next 00/14][pull request] 10GbE Intel Wired LAN Driver Updates 2016-07-22

2016-07-25 Thread David Miller
From: Jeff Kirsher Date: Fri, 22 Jul 2016 23:49:37 -0700 > This series contains updates to ixgbe and ixgbevf only. Pulled, please address Joe's feedback on patch #14. Thanks.

Re: [PATCH net-next] sctp: also point GSO head_skb to the sk when it's available

2016-07-25 Thread David Miller
From: Marcelo Ricardo Leitner Date: Sat, 23 Jul 2016 00:33:44 -0300 > The head skb for GSO packets won't travel through the inner depths of > SCTP stack as it doesn't contain any chunks on it. That means skb->sk > doesn't get set and then when sctp_recvmsg() calls > sctp_inet6_skb_msgname() on th

Re: [PATCH] net/irda: fix NULL pointer dereference on memory allocation failure

2016-07-25 Thread David Miller
From: Vegard Nossum Date: Sat, 23 Jul 2016 07:43:50 +0200 > I ran into this: ... > The problem is that irda_open_tsap() can fail and leave self->tsap = NULL, > and then irttp_connect_request() almost immediately dereferences it. > > Cc: sta...@vger.kernel.org > Signed-off-by: Vegard Nossum Ap

Re: [PATCH net] sctp: fix BH handling on socket backlog

2016-07-25 Thread David Miller
From: Marcelo Ricardo Leitner Date: Sat, 23 Jul 2016 00:32:48 -0300 > Now that the backlog processing is called with BH enabled, we have to > disable BH before taking the socket lock via bh_lock_sock() otherwise > it may dead lock: ... > Fixes: 860fbbc343bf ("sctp: prepare for socket backlog beh

Re: [PATCH net-next] hv_netvsc: Fix VF register on bonding devices

2016-07-25 Thread David Miller
From: Haiyang Zhang Date: Fri, 22 Jul 2016 18:14:50 -0700 > From: Haiyang Zhang > > Added a condition to avoid bonding devices with same MAC registering > as VF. > > Signed-off-by: Haiyang Zhang > Reviewed-by: K. Y. Srinivasan Applied, thanks.

Re: [PATCH] kcm: remove redundant -ve error check and return path

2016-07-25 Thread David Miller
From: Colin King Date: Fri, 22 Jul 2016 19:04:12 +0100 > From: Colin Ian King > > The check for a -ve error is redundant, remove it and just > immediately return the return value from the call to > seq_open_net. > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH v2] net: ipv6: Always leave anycast and multicast groups on link down

2016-07-25 Thread David Miller
From: Mike Manning Date: Fri, 22 Jul 2016 18:32:11 +0100 > Default kernel behavior is to delete IPv6 addresses on link > down, which entails deletion of the multicast and the > subnet-router anycast addresses. These deletions do not > happen with sysctl setting to keep global IPv6 addresses on >

Re: pull-request: wireless-drivers-next 2016-07-22

2016-07-25 Thread David Miller
From: Kalle Valo Date: Fri, 22 Jul 2016 17:28:44 +0300 > I'm sick so I have to keep this short, but here's the last pull request > to net-next. This time there's a trivial conflict with mtd tree: > > http://lkml.kernel.org/g/20160720123133.44dab...@canb.auug.org.au > > We concluded with Brian (

Re: [PATCH -next] libcxgb: remove unused including

2016-07-25 Thread David Miller
From: Wei Yongjun Date: Fri, 22 Jul 2016 14:05:32 + > Remove including that don't need it. > > Signed-off-by: Wei Yongjun Applied.

Re: [Intel-wired-lan] [PATCH v2 net-next 0/2] e1000e: fix PTP on e1000_pch_variants

2016-07-25 Thread Jesse Brandeburg
On Sat, 23 Jul 2016 12:44:32 -0400 Jarod Wilson wrote: > This little series factors out the systim sanitization code first, then > adds e1000_pch_lpt as a new case in the switch that calls the sanitize > function, fixing PTP clock issues I've had reported against an Intel > I-218V NIC in an Intel

Re: [PATCH net-next] sctp: use inet_recvmsg to support sctp RFS well

2016-07-25 Thread David Miller
From: Xin Long Date: Fri, 22 Jul 2016 21:25:42 +0800 > Commit 486bdee0134c ("sctp: add support for RPS and RFS") > saves skb->hash into sk->sk_rxhash so that the inet_* can > record it to flow table. > > But sctp uses sock_common_recvmsg as .recvmsg instead > of inet_recvmsg, sock_common_recvmsg

Re: [PATCH net 0/3] macsec: fix configurable ICV length

2016-07-25 Thread David Miller
From: Davide Caratti Date: Fri, 22 Jul 2016 15:07:55 +0200 > This series provides a fix for macsec configurable ICV length. The > maximum length of ICV element has been made compliant to IEEE 802.1AE, > and error reporting in case of cipher suite configuration failure has been > improved. Finall

Re: [PATCH net] bridge: Fix incorrect re-injection of LLDP packets

2016-07-25 Thread David Miller
From: Ido Schimmel Date: Fri, 22 Jul 2016 14:56:20 +0300 > Commit 8626c56c8279 ("bridge: fix potential use-after-free when hook > returns QUEUE or STOLEN verdict") caused LLDP packets arriving through a > bridge port to be re-injected to the Rx path with skb->dev set to the > bridge device, but t

Re: [net-next PATCH 4/4] be2net: replace polling with sleeping in the FW completion path

2016-07-25 Thread David Miller
From: Sathya Perla Date: Fri, 22 Jul 2016 06:55:46 -0400 > @@ -4477,6 +4551,22 @@ static int be_if_create(struct be_adapter *adapter) > u32 cap_flags = be_if_cap_flags(adapter); > int status; > > + /* alloc required memory for other filtering fields */ > + adapter->pmac_id =

Re: [PATCH net-next] sctp: support ipv6 nonlocal bind

2016-07-25 Thread David Miller
From: Xin Long Date: Fri, 22 Jul 2016 17:38:51 +0800 > This patch makes sctp support ipv6 nonlocal bind by adding > sp->inet.freebind and net->ipv6.sysctl.ip_nonlocal_bind > check in sctp_v6_available as what sctp did to support > ipv4 nonlocal bind (commit cdac4e077489). > > Reported-by: Shijoe

Re: [net-next 00/11][pull request] 40GbE Intel Wired LAN Driver Updates 2016-07-22

2016-07-25 Thread David Miller
From: Jeff Kirsher Date: Fri, 22 Jul 2016 00:36:28 -0700 > This series contains updates to i40e and i40evf. Pulled, thanks Jeff.

[PATCH 1/3] net: asix: Add in_pm parameter

2016-07-25 Thread robert . foss
From: Grant Grundler In order to R/W registers in suspend/resume functions, in_pm flags are added to some functions to determine whether the nopm version of usb functions is called. Save BMCR and ANAR PHY registers in suspend function and restore them in resume function. Reset HW in resume func

[PATCH 2/3] net: asix: Avoid looping when the device is disconnected

2016-07-25 Thread robert . foss
From: Vincent Palatin Check the answers from the USB stack and avoid re-sending multiple times the request if the device has disappeared. Signed-off-by: Vincent Palatin --- drivers/net/usb/asix_common.c | 56 +- drivers/net/usb/asix_devices.c | 2 ++ 2

[PATCH 3/3] net: asix: Fix AX88772x resume failures

2016-07-25 Thread robert . foss
From: WK Tsai The change fixes AX88772x resume failure by - Restore incorrect AX88772A PHY registers when resetting - Need to stop MAC operation when suspending - Need to restart MII when restoring PHY Signed-off-by: WK Tsai --- drivers/net/usb/asix_devices.c | 47 +

Re: [PATCH net-next v1 0/5] tipc: netlink updates for neighbour monitor

2016-07-25 Thread David Miller
From: Parthasarathy Bhuvaragan Date: Fri, 22 Jul 2016 08:42:43 +0200 > This series contains the updates to configure and read the attributes for > neighbour monitor. > > Parthasarathy Bhuvaragan (5): > tipc: introduce constants for tipc address validation > tipc: make cluster size threshold

Re: [PATCH net-next] bpf, events: fix offset in skb copy handler

2016-07-25 Thread David Miller
From: Daniel Borkmann Date: Fri, 22 Jul 2016 01:19:42 +0200 > This patch fixes the __output_custom() routine we currently use with > bpf_skb_copy(). I missed that when len is larger than the size of the > current handle, we can issue multiple invocations of copy_func, and > __output_custom() adva

Re: [PATCH net-next] net/ncsi: avoid maybe-uninitialized warning

2016-07-25 Thread David Miller
From: Arnd Bergmann Date: Thu, 21 Jul 2016 21:28:34 +0200 > gcc-4.9 and higher warn about the newly added NSCI code: > > net/ncsi/ncsi-manage.c: In function 'ncsi_process_next_channel': > net/ncsi/ncsi-manage.c:1003:2: error: 'old_state' may be used uninitialized > in this function [-Werror=may

Re: [PATCH] net: bridge: br_set_ageing_time takes a clock_t

2016-07-25 Thread David Miller
From: Vivien Didelot Date: Thu, 21 Jul 2016 12:42:19 -0400 > Change the ageing_time type in br_set_ageing_time() from u32 to what it > is expected to be, i.e. a clock_t. > > Signed-off-by: Vivien Didelot Applied.

Re: [PATCH] net: bridge: fix br_stp_enable_bridge comment

2016-07-25 Thread David Miller
From: Vivien Didelot Date: Thu, 21 Jul 2016 12:42:10 -0400 > br_stp_enable_bridge() does take the br->lock spinlock. Fix its wrongly > pasted comment and use the same as br_stp_disable_bridge(). > > Signed-off-by: Vivien Didelot Applied.

Re: [net-next v3 0/6] common library for Chelsio drivers.

2016-07-25 Thread David Miller
From: Varun Prakash Date: Thu, 21 Jul 2016 22:57:13 +0530 > Hi, > > This patch series adds common library module(libcxgb.ko) > for Chelsio drivers to remove duplicate code. > > This series moves common iSCSI DDP Page Pod manager > code from cxgb4.ko to libcxgb.ko, earlier this code > was u

Re: [PATCH] cxgb4/cxgb4vf: Add link mode mask API to cxgb4 and cxgb4vf

2016-07-25 Thread David Miller
From: Ganesh Goudar Date: Thu, 21 Jul 2016 20:19:18 +0530 > Based on original work by Casey Leedom > > Signed-off-by: Ganesh Goudar Applied.

  1   2   >