[PATCH v5 0/7] Add MDIO bus multiplexer support for iProc SoCs

2016-06-09 Thread Pramod Kumar
Broadcom iProc based SoCs use a MDIO bus multiplexer where child buses could be internal as well external to SoCs. These buses could supports MDIO transaction compatible to C-22/C-45. Broadcom MDIO bus multiplexer is an integrated multiplexer where child bus selection and mdio transaction logic

[PATCH v5 2/7] binding: Make "mdio-parent-bus" property from mandatory to optional

2016-06-09 Thread Pramod Kumar
Change "mdio-parent-bus" from mandatory section to optional as it won't be required by integrated MDIO multiplexer which has bus selection and mdio transaction generation logic, integrated inside. Signed-off-by: Pramod Kumar Reviewed-by: Andrew Lunn

[PATCH v5 5/7] net: mdio-mux: Add MDIO mux driver for iProc SoCs

2016-06-09 Thread Pramod Kumar
iProc based SoCs supports the integrated mdio multiplexer which has the bus selection as well as mdio transaction generation logic inside. This multiplexer has child buses for PCIe, SATA, USB and ETH. These buses could be internal or external to SOC where PHYs are attached. These buses could use

[PATCH v5 4/7] dt: mdio-mux: Add mdio multiplexer driver node

2016-06-09 Thread Pramod Kumar
Add integrated MDIO multiplexer driver node which contains two mux PCIe bus and one ethernet bus along with phys lying on these bus. Signed-off-by: Pramod Kumar Acked-by: Rob Herring --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 16 +

[PATCH v5 6/7] binding: PHY: Binding doc for NS2 PCIe PHYs.

2016-06-09 Thread Pramod Kumar
Binding doc for NS2 PCIe PHYs. Signed-off-by: Pramod Kumar Signed-off-by: Jon Mason Acked-by: Rob Herring --- .../bindings/phy/brcm,mdio-mux-bus-pci.txt | 27 ++ 1 file changed, 27 insertions(+)

[PATCH v5 7/7] phy: Add Northstar2 PCI Phy support

2016-06-09 Thread Pramod Kumar
Add PCI Phy support for Broadcom Northstar2 SoCs. This driver uses the interface from the iproc mdio mux driver to enable the devices respective phys. Reviewed-by: Andrew Lunn Signed-off-by: Jon Mason Signed-off-by: Pramod Kumar

[PATCH v5 1/7] mdio: mux: Enhanced MDIO mux framework for integrated multiplexers

2016-06-09 Thread Pramod Kumar
An integrated multiplexer uses same address space for "muxed bus selection" and "generation of mdio transaction" hence its good to register parent bus from mux driver. Hence added a mechanism where mux driver could register a parent bus and pass it down to framework via mdio_mux_init api.

[PATCH v5 3/7] binding: mdio-mux: Add DT binding doc for Broadcom MDIO bus multiplexer

2016-06-09 Thread Pramod Kumar
Add DT binding doc for Broadcom MDIO bus multiplexer driver. Reviewed-by: Andrew Lunn Signed-off-by: Pramod Kumar Reviewed-by: Florian Fainelli Acked-by: Rob Herring --- .../bindings/net/brcm,mdio-mux-iproc.txt

Re: [PATCH] net/netlink/af_netlink.h: Remove unused structure.

2016-06-09 Thread David Miller
From: Fabien Siron Date: Tue, 7 Jun 2016 13:02:04 + > Signed-off-by: Fabien Siron Applied.

Re: [PATCH net-next] net/mlx4_en: mlx4_en_netpoll() should schedule TX, not RX

2016-06-09 Thread David Miller
From: Eric Dumazet Date: Fri, 03 Jun 2016 11:52:49 -0700 > From: Eric Dumazet > > I am not sure mlx4_en_netpoll() is doing anything useful right now. > > mlx4 has different NAPI structures for RX and TX, and netpoll only wants > to drain TX queues.

Re: [PATCH net-next 0/5] net: dsa: Broadcom BCM53xx switches support

2016-06-09 Thread David Miller
From: Florian Fainelli Date: Thu, 9 Jun 2016 18:23:52 -0700 > This patch series adds support for the Broadcom BCM53xx series aka > RoboSwitches. Looks really nice, series applied, thanks Florian.

Re: [PATCH net-next 0/4] net: dsa: bcm_sf2: add VLAN support

2016-06-09 Thread David Miller
From: Florian Fainelli Date: Thu, 9 Jun 2016 17:42:04 -0700 > This is long overdue, finally add support for VLANs in the Broadcom > Starfigther > 2 switch driver. > > There are a few things that make us differ from e.g; mv88e6xxx.c: > > - we keep a software cache of

Re: [PATCH net 00/13] Mellanox 100G mlx5 fixes for 4.7-rc

2016-06-09 Thread David Miller
From: Saeed Mahameed Date: Fri, 10 Jun 2016 00:07:27 +0300 > The following series provides some small fixes for mlx5 driver. > > Two small fixes for the mlx5e netdev, the 1st is for the blue flame > quota accounting and the 2nd is a small refactoring in shutdown flow. > >

RE: [PATCH v4 4/7] dt: mdio-mux: Add mdio multiplexer driver node

2016-06-09 Thread Pramod Kumar
Hi Florian, > -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: 07 June 2016 00:08 > To: Pramod Kumar; Rob Herring; Pawel Moll; Mark Rutland; Ian Campbell; > Kumar Gala; Catalin Marinas; Will Deacon; Kishon Vijay Abraham I; David S. > Miller > Cc:

[RFC] Handle error writing UINT_MAX to u32 fields

2016-06-09 Thread Subash Abhinov Kasiviswanathan
We have scripts which write to certain fields on 3.18 kernels but this seems to be failing on 4.4 kernels. An entry which we write to here is xfrm_aevent_rseqth which is u32. echo 4294967295 > /proc/sys/net/core/xfrm_aevent_rseqth Commit 230633d109e35b0a24277498e773edeb79b4a331

Re: [PATCHv4 net-next] sctp: sctp should change socket state when shutdown is received

2016-06-09 Thread Marcelo Ricardo Leitner
On Thu, Jun 09, 2016 at 10:48:18PM +0800, Xin Long wrote: > Now sctp doesn't change socket state upon shutdown reception. It changes > just the assoc state, even though it's a TCP-style socket. > > For some cases, if we really need to check sk->sk_state, it's necessary to > fix this issue, at

[PATCH] tipc: fix potential null pointer dereference in the nla_data function

2016-06-09 Thread Baozeng Ding
Before calling the nla_data function, make sure the argument is not null. Fix potential null pointer dereference vulnerability for this. Signed-off-by: Baozeng Ding --- net/tipc/netlink_compat.c | 12 1 file changed, 12 insertions(+) diff --git

RE: [PATCH net-next] netvsc: Use the new in-place consumption APIs in the rx path

2016-06-09 Thread KY Srinivasan
> -Original Message- > From: Linus Torvalds [mailto:torva...@linux-foundation.org] > Sent: Thursday, June 9, 2016 5:12 PM > To: KY Srinivasan > Cc: da...@davemloft.net; netdev@vger.kernel.org; lkml ker...@vger.kernel.org>; de...@linuxdriverproject.org;

[PATCH net-next 1/5] net: dsa: b53: Add support for Broadcom RoboSwitch

2016-06-09 Thread Florian Fainelli
This patch adds support for Broadcom's BCM53xx switch family, also known as RoboSwitch. Some of these switches are ubiquituous, found in home routers, Wi-Fi routers, DSL and cable modem gateways and other networking related products. This drivers adds the library driver (b53_common.c) as well as

[PATCH net-next 3/5] net: dsa: b53: Implement ARL add/del/dump operations

2016-06-09 Thread Florian Fainelli
Adds support for FDB add/delete/dump using the ARL read/write logic and the ARL search logic for faster dumps. The code is made flexible enough it could support devices with a different register layout like BCM5325 and BCM5365 which have fewer number of entries or pack values into a single 64 bits

[PATCH net-next 5/5] net: dsa: b53: Plug in VLAN support

2016-06-09 Thread Florian Fainelli
Add support for configuration VLANs on B53 devices by implementing the port VLAN add/del/dump functions. We currently default to a behavior which is equivalent to having VLAN filtering turned on, where all VLANs not programmed into the VLAN port-based vector will be discarded on ingress.

[PATCH net-next 0/5] net: dsa: Broadcom BCM53xx switches support

2016-06-09 Thread Florian Fainelli
Hi all, This patch series adds support for the Broadcom BCM53xx series aka RoboSwitches. This driver is largely based on Jonas Gorski's b53 driver for OpenWrt which can be found here: https://dev.openwrt.org/browser/trunk/target/linux/generic/files/drivers/net/phy/b53 a few bug fixes and

[PATCH net-next 2/5] net: dsa: b53: Add BCM7445 quirk

2016-06-09 Thread Florian Fainelli
The Broadcom BCM7445 STB chip has an issued in its revision D0 which was previously worked around in drivers/net/dsa/bcm_sf2.c where we may end-up double programming the integrated BCM7445 switch (bcm_sf2) and an external Broadcom switch such as BCM53125, since these are mostly register

[PATCH net-next 4/5] net: dsa: b53: Add bridge support

2016-06-09 Thread Florian Fainelli
Add support for HW bridging by tying the ports together in the same port VLAN mask when they belong to the same bridge, and isolating them to be alone with the CPU port when they are not. Propagate STP states from the bridge layer to the switch's HW mapping when requested. Signed-off-by: Florian

[ethtool PATCH v7 0/2] add support for new ETHTOOL_xLINKSETTINGS ioctls

2016-06-09 Thread David Decotigny
From: David Decotigny [ this is a plain re-post, same v7 as the ones previously sent ] History: v7 added ref to related kernel commit in netlink ioctl patch description v6 re-added last patch, to use AF_NETLINK when AF_INET not available v5 rebased main

[ethtool PATCH v7 2/2] ethtool: use netlink socket when AF_INET not available

2016-06-09 Thread David Decotigny
From: David Decotigny To benefit from this, kernel commit 025c68186e07 ("netlink: add support for NIC driver ioctls") is needed. Signed-off-by: David Decotigny --- configure.ac | 2 +- ethtool.c| 7 +++ 2 files changed, 8 insertions(+), 1

[ethtool PATCH v7 1/2] ethtool.c: add support for ETHTOOL_xLINKSETTINGS ioctls

2016-06-09 Thread David Decotigny
From: David Decotigny More info with kernel commit 8d3f2806f8fb ("Merge branch 'ethtool-ksettings'"). Note: The new features implemented in this patch depend on kernel commit 793cf87de9d1 ("Set cmd field in ETHTOOL_GLINKSETTINGS response to wrong nwords"). Signed-off-by:

[PATCH] wlcore: sdio: Fix crash on wlcore_probe_of when failing to parse/map irq

2016-06-09 Thread Bruno Herrera
pdev_data pointer is being freed with kfree but the pointer is not dynamic allocated. Signed-off-by: Bruno Herrera --- drivers/net/wireless/ti/wlcore/sdio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/ti/wlcore/sdio.c

[PATCH net-next 2/4] net: dsa: bcm_sf2: Move setup function at the far end

2016-06-09 Thread Florian Fainelli
Re-order the bcm_sf2_sw_setup() function so that it is at the far end of the driver to avoid any kind of forward declarations. Signed-off-by: Florian Fainelli --- drivers/net/dsa/bcm_sf2.c | 238 +++--- 1 file changed, 119

[PATCH net-next 0/4] net: dsa: bcm_sf2: add VLAN support

2016-06-09 Thread Florian Fainelli
Hi all, This is long overdue, finally add support for VLANs in the Broadcom Starfigther 2 switch driver. There are a few things that make us differ from e.g; mv88e6xxx.c: - we keep a software cache of which VLANs are enabled and which are not to dramatically speed up the VLAN dump operation,

[PATCH net-next 3/4] net: dsa: bcm_sf2: Add VLAN registers definitions

2016-06-09 Thread Florian Fainelli
Add the definitions for the VLAN registers that we are going to manipulate in subsequent patches. Signed-off-by: Florian Fainelli --- drivers/net/dsa/bcm_sf2_regs.h | 70 ++ 1 file changed, 70 insertions(+) diff --git

[PATCH net-next 1/4] net: dsa: bcm_sf2: Split fast age into a helper function

2016-06-09 Thread Florian Fainelli
Add a helper function to fast age something that is controlled by the caller: port, VLAN. We will use this to implement a VLAN fast age operation. Signed-off-by: Florian Fainelli --- drivers/net/dsa/bcm_sf2.c | 20 +--- 1 file changed, 13 insertions(+), 7

[PATCH net-next 4/4] net: dsa: bcm_sf2: Add VLAN support

2016-06-09 Thread Florian Fainelli
Add support for configuring VLANs on the Broadcom Starfigther2 switch. This is all done through the bridge vlan facility just like other DSA drivers. Signed-off-by: Florian Fainelli --- drivers/net/dsa/bcm_sf2.c | 266 +-

Re: ebpf: issue with clang

2016-06-09 Thread Alexei Starovoitov
On Thu, Jun 09, 2016 at 11:10:05PM +0200, Eric Leblond wrote: > Hello, > > I'm working on integrating ebpf cluster load balancing for AF_PACKET > and I've got some problem to get real code inside the EBPF filter. > > I've tried different command lines in the build process. One of them > is: >

Re: [PATCH net-next] netvsc: Use the new in-place consumption APIs in the rx path

2016-06-09 Thread Linus Torvalds
Srinivasan, these are all sent through linuxonhyperv.com, and fail DMARC because they have a microsoft.com address but no valid DKIM. Please fix your email setup. You need to go through the real microsoft smtp servers if you use a microsoft.com address. Or you need to get linuxonhyperv.com

[net-next,v2] openvswitch: Add packet truncation support.

2016-06-09 Thread William Tu
The patch adds a new OVS action, OVS_ACTION_ATTR_TRUNC, in order to truncate packets. A 'max_len' is added for setting up the maximum packet size, and a 'cutlen' field is to record the number of bytes to trim the packet when the packet is outputting to a port, or when the packet is sent to

[PATCH net v2] e1000e: keep vlan interfaces functional after rxvlan off

2016-06-09 Thread Jarod Wilson
I've got a bug report about an e1000e interface, where a vlan interface is set up on top of it: $ ip link add link ens1f0 name ens1f0.99 type vlan id 99 $ ip link set ens1f0 up $ ip link set ens1f0.99 up $ ip addr add 192.168.99.92 dev ens1f0.99 At this point, I can ping another host on vlan 99,

[PATCH net-next] netvsc: Use the new in-place consumption APIs in the rx path

2016-06-09 Thread K. Y. Srinivasan
Use the new APIs for eliminating a copy on the receive path. These new APIs also help in minimizing the number of memory barriers we end up issuing (in the ringbuffer code) since we can better control when we want to expose the ring state to the host. Signed-off-by: K. Y. Srinivasan

Re: [Intel-wired-lan] [RFC PATCH net] e1000e: keep vlan interfaces functional after rxvlan off

2016-06-09 Thread Jarod Wilson
On Thu, Jun 09, 2016 at 06:17:45PM -0400, Jarod Wilson wrote: > On Thu, Jun 09, 2016 at 04:55:01PM -0400, Jarod Wilson wrote: > > On Thu, Jun 09, 2016 at 02:02:04PM -0400, Jarod Wilson wrote: > > > On Wed, Jun 01, 2016 at 03:31:46PM -0700, Alexander Duyck wrote: > > > > On Wed, Jun 1, 2016 at

Re: [PATCH net-next] nfnetlink_queue: enable PID info retrieval

2016-06-09 Thread Daniel Borkmann
On 06/10/2016 12:21 AM, Daniel Borkmann wrote: On 06/09/2016 11:35 PM, Florian Westphal wrote: Saeed Mahameed wrote: index a1bd161..67de200 100644 --- a/net/socket.c +++ b/net/socket.c @@ -382,6 +382,7 @@ struct file *sock_alloc_file(struct socket *sock, int flags, const

Re: [PATCH] net: stmmac: dwmac-rk: keep PHY up for WoL

2016-06-09 Thread Vincent Palatin
On Wed, Jun 8, 2016 at 5:17 PM, Andrew Lunn wrote: > On Wed, Jun 08, 2016 at 03:25:38PM -0700, Vincent Palatin wrote: >> On Tue, Jun 7, 2016 at 12:23 AM, Giuseppe CAVALLARO >> wrote: >> > Hello >> > >> > On 6/3/2016 7:29 PM, Vincent Palatin wrote: >> >> >>

Re: [PATCH net-next] net, cls: allow for deleting all filters for given parent

2016-06-09 Thread Cong Wang
On Wed, Jun 8, 2016 at 2:30 PM, Daniel Borkmann wrote: > On 06/06/2016 09:52 PM, Cong Wang wrote: >> >> On Mon, Jun 6, 2016 at 12:25 PM, Daniel Borkmann >> wrote: > > [...] >> >> This is fundamental for libnl to update caches. >> >> I don't understand

Re: ipv4: Constrain UFO fragment sizes to multiples of 8 bytes

2016-06-09 Thread Hannes Frederic Sowa
On 09.06.2016 06:59, Cong Wang wrote: > (Cc'ing netdev...) > > On Mon, Jun 6, 2016 at 1:24 PM, Steven Caron wrote: >> Back in 2011, Bill Sommerfeld submitted an update to prevent ip_append_data >> to create malformed packets: >> Commit:

Re: [PATCH net-next] nfnetlink_queue: enable PID info retrieval

2016-06-09 Thread Daniel Borkmann
On 06/09/2016 11:35 PM, Florian Westphal wrote: Saeed Mahameed wrote: index a1bd161..67de200 100644 --- a/net/socket.c +++ b/net/socket.c @@ -382,6 +382,7 @@ struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname) } sock->file =

Re: [PATCH net-next] nfnetlink_queue: enable PID info retrieval

2016-06-09 Thread Eric Dumazet
On Thu, 2016-06-09 at 23:50 +0300, Saeed Mahameed wrote: > From: Matthew Finlay > diff --git a/net/socket.c b/net/socket.c > index a1bd161..67de200 100644 > --- a/net/socket.c > +++ b/net/socket.c > @@ -382,6 +382,7 @@ struct file *sock_alloc_file(struct socket *sock, int >

Re: [Intel-wired-lan] [RFC PATCH net] e1000e: keep vlan interfaces functional after rxvlan off

2016-06-09 Thread Jarod Wilson
On Thu, Jun 09, 2016 at 04:55:01PM -0400, Jarod Wilson wrote: > On Thu, Jun 09, 2016 at 02:02:04PM -0400, Jarod Wilson wrote: > > On Wed, Jun 01, 2016 at 03:31:46PM -0700, Alexander Duyck wrote: > > > On Wed, Jun 1, 2016 at 12:27 PM, Jarod Wilson wrote: > > > > On Wed, Jun 01,

Re: [PATCH] rxrpc: Simplify connect() implementation and simplify sendmsg() op

2016-06-09 Thread David Howells
Can you take this into net/next please? Thanks, David

Re: [PATCH net-next] net: Reduce queue allocation to one in kdump kernel

2016-06-09 Thread Cong Wang
On Wed, Jun 8, 2016 at 5:39 AM, Hariprasad Shenai wrote: > When in kdump kernel, reduce memory usage by only using a single Queue > Set for multiqueue devices. So make netif_get_num_default_rss_queues() > return one, when in kdump kernel. > > Signed-off-by: Hariprasad

Re: [PATCH] openvswitch: Add packet truncation support.

2016-06-09 Thread pravin shelar
On Thu, Jun 9, 2016 at 1:02 PM, William Tu wrote: > >> > >> > /* The only known usage of sample action is having a single >> > user-space >> > +* action, or having a truncate action followed by a single >> > user-space >> > * action. Treat this usage

[PATCH] rxrpc: Simplify connect() implementation and simplify sendmsg() op

2016-06-09 Thread David Howells
Simplify the RxRPC connect() implementation. It will just note the destination address it is given, and if a sendmsg() comes along with no address, this will be assigned as the address. No transport struct will be held internally, which will allow us to remove this later. Simplify sendmsg()

ebpf: issue with clang

2016-06-09 Thread Eric Leblond
Hello, I'm working on integrating ebpf cluster load balancing for AF_PACKET and I've got some problem to get real code inside the EBPF filter. I've tried different command lines in the build process. One of them is: clang-3.9 -Wall -O2 -emit-llvm -c hash_ports.c -o - | llc-3.9 -march=bpf

Re: [PATCH net-next] nfnetlink_queue: enable PID info retrieval

2016-06-09 Thread Florian Westphal
Saeed Mahameed wrote: > index a1bd161..67de200 100644 > --- a/net/socket.c > +++ b/net/socket.c > @@ -382,6 +382,7 @@ struct file *sock_alloc_file(struct socket *sock, int > flags, const char *dname) > } > > sock->file = file; > + file->f_owner.sock_pid =

[PATCH net 12/13] net/mlx5e: Use ndo_stop explicitly at shutdown flow

2016-06-09 Thread Saeed Mahameed
From: Eran Ben Elisha The current implementation copies the flow of ndo_stop instead of calling it explicitly, Fixed it. Fixes: 5fc7197d3a25 ("net/mlx5: Add pci shutdown callback") Signed-off-by: Eran Ben Elisha Signed-off-by: Saeed Mahameed

[PATCH net 13/13] net/mlx5e: Fix blue flame quota logic

2016-06-09 Thread Saeed Mahameed
From: Eli Cohen Blue flame is a latency enhancement feature that allows the driver to write the packet data directly to the NIC's registers thus making the read of the packet data from host memory redundant. We maintain a quota for the blue flame which is reloaded whenever we

[PATCH net 07/13] net/mlx5: E-Switch, Use the correct free() function

2016-06-09 Thread Saeed Mahameed
From: Or Gerlitz We must use kvfree() for something that could have been allocated with vzalloc(), do that. Fixes: 5742df0f7dbe ('net/mlx5: E-Switch, Introduce VST vport ingress/egress ACLs') Fixes: 86d722ad2c3b ('net/mlx5: Use flow steering infrastructure for mlx5_en')

[PATCH net 10/13] net/mlx5: E-Switch, Modify node guid on vf set MAC

2016-06-09 Thread Saeed Mahameed
From: Noa Osherovich In RoCE, the RDMA-CM needs the node guid to establish connection between nodes. Today, the node guid exposed to mlx5 Ethernet VFs is zero, therefore RDMA-CM on the VF is broken. Whenever the administrator sets a MAC for a VF, derive the node guid from it

[PATCH net 09/13] net/mlx5: E-Switch, Fix vport enable flow

2016-06-09 Thread Saeed Mahameed
From: Mohamad Haj Yahia Reorder vport enable flow to mark the vport as enabled before calling the vport change handler which was modified to handle the case for when vport is not enabled. This fixes the case for when the PF netdev is open before sriov is enabled, once

[PATCH net 08/13] net/mlx5: E-Switch, Use the correct error check on returned pointers

2016-06-09 Thread Saeed Mahameed
From: Or Gerlitz The mlx5 flow-steering API (mlx5_create_flow_table/group/rule) never returns null pointer on error. Even if it was doing that, checking for IS_ERR_OR_NULL(p) and then returning PTR_ERR(p) would have cause bugs, since PTR_ERR(NULL) --> success, crash. To

[PATCH net 11/13] net/mlx5: E-Switch, always set mc_promisc for allmulti vports

2016-06-09 Thread Saeed Mahameed
From: Mohamad Haj Yahia Set the mc_promisc flag also in the case of adding new mc address to existing allmulti vport. Fixes: a35f71f27a61 ('net/mlx5: E-Switch, Implement promiscuous rx modes vf request handling') Signed-off-by: Mohamad Haj Yahia

[PATCH net 04/13] net/mlx5: Fix root flow table update

2016-06-09 Thread Saeed Mahameed
From: Maor Gottlieb When we destroy the last flow table we need to update the root_ft to NULL. It fixes an issue for when the last flow table is destroyed and recreated again, root_ft pointer will not be updated, as a result traffic will be dropped. Fixes: 2cc43b494a6c

[PATCH net 02/13] net/mlx5: Fix masking of reserved bits in XRCD number

2016-06-09 Thread Saeed Mahameed
From: Majd Dibbiny Mask the reserved bits when reading the number of newly created XRCD. Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters') Signed-off-by: Majd Dibbiny Signed-off-by: Saeed Mahameed ---

[PATCH net 00/13] Mellanox 100G mlx5 fixes for 4.7-rc

2016-06-09 Thread Saeed Mahameed
Hi Dave, The following series provides some small fixes for mlx5 driver. Two small fixes for the mlx5e netdev, the 1st is for the blue flame quota accounting and the 2nd is a small refactoring in shutdown flow. Five trivial fixes for mlx5 E-Switch. - Allmulti mc_promisc flag was not

[PATCH net 03/13] net/mlx5: Fix MLX5_CMD_OP_MAX to be defined correctly

2016-06-09 Thread Saeed Mahameed
From: Shahar Klein Having MLX5_CMD_OP_MAX on another file causes us to repeatedly miss accounting new commands added to the driver and hence there're no entries for them in debugfs. To solve that, we integrate it into the commands enum as the last entry. Fixes:

[PATCH net 06/13] net/mlx5: Fix E-Switch flow steering capabilities check

2016-06-09 Thread Saeed Mahameed
From: Maor Gottlieb Add missing capabilities check for E-Switch FDB and ACLs flow tables before creating their namespace in flow steering. Fixes: efdc810ba39d ('net/mlx5: Flow steering, Add vport ACL support') Signed-off-by: Maor Gottlieb Signed-off-by:

[PATCH net 01/13] net/mlx5: Fix the size of modify QP mailbox

2016-06-09 Thread Saeed Mahameed
From: Majd Dibbiny Add 16 reserved bytes at the end of mlx5_modify_qp_mbox_in to match the hardware spec definition. Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters') Signed-off-by: Majd Dibbiny Signed-off-by: Saeed Mahameed

[PATCH net 05/13] net/mlx5: Fix flow steering NIC capabilities check

2016-06-09 Thread Saeed Mahameed
From: Maor Gottlieb Flow steering infrastructure is currently used only on link layer ethernet, therefore the driver should initialize the flow steering when the device link layer is ethernet. In addition, add missing capability check before initializing the namespace of NIC

Re: [Intel-wired-lan] [RFC PATCH net] e1000e: keep vlan interfaces functional after rxvlan off

2016-06-09 Thread Jarod Wilson
On Thu, Jun 09, 2016 at 02:02:04PM -0400, Jarod Wilson wrote: > On Wed, Jun 01, 2016 at 03:31:46PM -0700, Alexander Duyck wrote: > > On Wed, Jun 1, 2016 at 12:27 PM, Jarod Wilson wrote: > > > On Wed, Jun 01, 2016 at 07:31:53AM -0700, Alexander Duyck wrote: > > >> On Tue, May 17,

[PATCH net-next] nfnetlink_queue: enable PID info retrieval

2016-06-09 Thread Saeed Mahameed
From: Matthew Finlay Allow the netlink_queue_module to get the PID associated with an outgoing connection. Finding the PID based on the tuple in userspace is expensive. This additional attribute makes it convenient and efficient to get the PID associated with the outgoing

Re: [PATCH] [V2] net: ipconfig: add declaration for ic_addrservaddr

2016-06-09 Thread David Miller
From: Ben Dooks Date: Thu, 9 Jun 2016 18:54:37 +0100 > The symbol ic_addrservaddr is not static, but has no declaration > to match so make it static to fix the following warning: > > net/ipv4/ipconfig.c:130:8: warning: symbol 'ic_addrservaddr' was not > declared.

Re: [PATCH v3 net-next 0/5] net: better lockdep annotations

2016-06-09 Thread David Miller
From: Eric Dumazet Date: Thu, 9 Jun 2016 07:45:10 -0700 > Introduction of qdisc->running seqcount added lockdep false positives. > > While chasing the bug, it came to me that we had a lot of copies of the > same stuff in virtual drivers. > > This patch series has the

Re: [PATCH 1/2] NET: PHY: Add PHY LED control binding.

2016-06-09 Thread Hauke Mehrtens
On 06/09/2016 08:12 AM, John Crispin wrote: > > > On 09/06/2016 08:06, Alexander Stein wrote: >> On Wednesday 08 June 2016 14:30:08, Rob Herring wrote: diff --git a/Documentation/devicetree/bindings/phy/phy-leds.txt b/Documentation/devicetree/bindings/phy/phy-leds.txt new file mode

[PATCH iproute2] ip route: Add annotation for replaced routes

2016-06-09 Thread David Ahern
If NLM_F_REPLACE flag is set then a route is replacing an existing route. Prepend "Replaced " to these routes similar to how "Deleted " is added to deleted routes. Signed-off-by: David Ahern --- ip/iproute.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH] brcmfmac: rework function picking free BSS index

2016-06-09 Thread Arend van Spriel
On 26-05-16 01:44, Rafał Miłecki wrote: > The old implementation was overcomplicated and slightly bugged in some > corner cases. > > Consider following state of BSS-es (limited to 6 for simplification): > drvr->iflist[0]: { bsscfgidx:0, ndev->name:wlan1, } > drvr->iflist[1]: (null) >

Re: [PATCH] iucv: properly clone LSM attributes to newly created child sockets

2016-06-09 Thread David Miller
From: Paul Moore Date: Thu, 9 Jun 2016 09:01:52 -0400 > On Thu, Jun 9, 2016 at 8:59 AM, Paul Moore wrote: >> From: Paul Moore >> >> Much like we had to do for AF_BLUETOOTH and AF_ALG, make sure we >> properly clone the parent socket's

Re: [PATCH] brcmfmac: slightly simplify building interface combinations

2016-06-09 Thread Arend van Spriel
On 07-06-16 21:10, Rafał Miłecki wrote: > This change reorders some operations in brcmf_setup_ifmodes in hope to > make it simpler: > 1) It allocates arrays right before filling them. This way it's easier >to follow requested array length as it's immediately followed by >code filling it.

Re: pull-request: mac80211 2016-06-09

2016-06-09 Thread David Miller
From: Johannes Berg Date: Thu, 9 Jun 2016 14:47:57 +0200 > Here are two more fixes for the current cycle, please pull. Pulled, thanks Johannes.

Re: [PATCH] net: ipconfgi: add declaration for ic_addrservaddr

2016-06-09 Thread David Miller
From: Daniel Borkmann Date: Thu, 09 Jun 2016 14:15:43 +0200 > On 06/09/2016 02:11 PM, Ben Dooks wrote: >> On 09/06/16 12:35, Daniel Borkmann wrote: >>> On 06/09/2016 01:07 PM, Ben Dooks wrote: The symbol ic_addrservaddr is not static, but has no declaration to

Re: [PATCH net-next v3] netvsc: get rid of completion timeouts

2016-06-09 Thread David Miller
From: Vitaly Kuznetsov Date: Thu, 9 Jun 2016 12:44:03 +0200 > I'm hitting 5 second timeout in rndis_filter_set_rss_param() while setting > RSS parameters for the device. When this happens we end up returning > -ETIMEDOUT from the function and rndis_filter_device_add() falls

Re: [PATCH net-next] sit: remove unnecessary protocol check in ipip6_tunnel_xmit()

2016-06-09 Thread David Miller
From: Simon Horman Date: Thu, 9 Jun 2016 18:03:34 +0900 > ipip6_tunnel_xmit() is called immediately after checking that > skb->protocol is htons(ETH_P_IPV6) so there is no need > to check it a second time. > > Found by inspection. > > Signed-off-by: Simon Horman

Re: [patch net 0/2] mlxsw: couple of fixes

2016-06-09 Thread David Miller
From: Jiri Pirko Date: Thu, 9 Jun 2016 09:51:38 +0200 > Couple of fixes from Ido. Series applied, thanks.

Re: [PATCH] openvswitch: Add packet truncation support.

2016-06-09 Thread pravin shelar
On Thu, Jun 9, 2016 at 8:57 AM, Rick Jones wrote: > On 06/08/2016 09:30 PM, pravin shelar wrote: >> >> On Wed, Jun 8, 2016 at 6:18 PM, William Tu wrote: >>> >>> +struct ovs_action_trunc { >>> + uint32_t max_len; /* Max packet size in bytes. */ >> >>

Re: [Intel-wired-lan] [RFC PATCH net] e1000e: keep vlan interfaces functional after rxvlan off

2016-06-09 Thread Jarod Wilson
On Wed, Jun 01, 2016 at 03:31:46PM -0700, Alexander Duyck wrote: > On Wed, Jun 1, 2016 at 12:27 PM, Jarod Wilson wrote: > > On Wed, Jun 01, 2016 at 07:31:53AM -0700, Alexander Duyck wrote: > >> On Tue, May 17, 2016 at 12:03 PM, Jarod Wilson wrote: > >> > I've

Re: [PATCH 1/3] bridge: netfilter: checkpatch whitespace fixes

2016-06-09 Thread Joe Perches
On Wed, 2016-06-08 at 19:38 +0200, Pablo Neira Ayuso wrote: > On Wed, Jun 08, 2016 at 07:31:21PM +0200, Pablo Neira Ayuso wrote: > > Then you can follow up with a patch to add this function. > > > > Just a suggestion, let me know if this is fine with you. > Forget this idea. > > Actually your

Re: [PATCH] netfilter/nflog: nflog-range does not truncate packets

2016-06-09 Thread Vishwanath Pai
On 06/08/2016 08:16 AM, Pablo Neira Ayuso wrote: > Looking again at your code: > > case NFULNL_COPY_PACKET: > - if (inst->copy_range > skb->len) > + data_len = inst->copy_range; > + if (li->u.ulog.copy_len < data_len) > +

[PATCH] [V2] net: ipconfig: add declaration for ic_addrservaddr

2016-06-09 Thread Ben Dooks
The symbol ic_addrservaddr is not static, but has no declaration to match so make it static to fix the following warning: net/ipv4/ipconfig.c:130:8: warning: symbol 'ic_addrservaddr' was not declared. Should it be static? Signed-off-by: Ben Dooks --- V2: make

[PATCH -next] virtio_net: Update the feature bit to comply with spec

2016-06-09 Thread Aaron Conole
A draft version of the MTU Advice feature bit was specified as 25. This bit is not within the allowed range for network device feature bits, and should be changed to be feature bit 3 to fully comply with the spec. Fixes 14de9d114a82 ('virtio-net: Add initial MTU advice feature') Signed-off-by:

[PATCH net-next] net: vrf: Fix crash when IPv6 is disabled at boot time

2016-06-09 Thread David Ahern
Frank Kellermann reported a kernel crash with 4.5.0 when IPv6 is disabled at boot using the kernel option ipv6.disable=1. Using current net-next with the boot option: $ ip link add red type vrf table 1001 Generates: [12210.919584] BUG: unable to handle kernel NULL pointer dereference at

[iproute PATCHv2] ipaddress: Allow listing addresses by type

2016-06-09 Thread Phil Sutter
Not sure why this was limited to ip-link before. It is semantically equal to the 'master' keyword, which is not restricted at all. The man page and help text adjustments include the 'master' keyword as well since that is also supported but wasn't documented before. Cc: Vadim Kochan

[PATCH] [V2] net: diag: add missing declarations

2016-06-09 Thread Ben Dooks
The functions inet_diag_msg_common_fill and inet_diag_msg_attrs_fill seem to have been missed from the include/linux/inet_diag.h header file. Add them to fix the following warnings: net/ipv4/inet_diag.c:69:6: warning: symbol 'inet_diag_msg_common_fill' was not declared. Should it be static?

Re: brcmfmac: rework function picking free BSS index

2016-06-09 Thread Rafał Miłecki
On 9 June 2016 at 18:30, Kalle Valo wrote: > Kalle Valo writes: > >> Rafał Miłecki wrote: >>> The old implementation was overcomplicated and slightly bugged in some >>> corner cases. >>> >>> Consider following state of BSS-es (limited to 6 for

Re: brcmfmac: rework function picking free BSS index

2016-06-09 Thread Kalle Valo
Kalle Valo writes: > Rafał Miłecki wrote: >> The old implementation was overcomplicated and slightly bugged in some >> corner cases. >> >> Consider following state of BSS-es (limited to 6 for simplification): >> drvr->iflist[0]: { bsscfgidx:0, ndev->name:wlan1, } >>

Re: brcmfmac: rework function picking free BSS index

2016-06-09 Thread Kalle Valo
Rafał Miłecki wrote: > The old implementation was overcomplicated and slightly bugged in some > corner cases. > > Consider following state of BSS-es (limited to 6 for simplification): > drvr->iflist[0]: { bsscfgidx:0, ndev->name:wlan1, } > drvr->iflist[1]: (null) > drvr->iflist[2]: {

Re: latest iproute2 compilation issue with linux-4.6-rc7

2016-06-09 Thread Stephen Hemminger
On Thu, 9 Jun 2016 11:46:38 + "Cherukuru, Siva Ramaprasad" wrote: > Hi , > > When I try to compile latest iproute2 code, I am seeing the following > errors. > Please let me know if there is any workaround available Or fix for this issue? > > > > In

Re: [PATCH] openvswitch: Add packet truncation support.

2016-06-09 Thread Rick Jones
On 06/08/2016 09:30 PM, pravin shelar wrote: On Wed, Jun 8, 2016 at 6:18 PM, William Tu wrote: +struct ovs_action_trunc { + uint32_t max_len; /* Max packet size in bytes. */ This could uint16_t. as it is related to packet len. Is there something limiting MTUs to

Re: [PATCH net-next 00/15] net/smc: Shared Memory Communications - RDMA

2016-06-09 Thread Ursula Braun
On Tue, 2016-06-07 at 15:07 -0700, David Miller wrote: > In case my previous reply wasn't clear enough, I require that you provide > a more accurate description of what the implications of this feature are. > > Namely, that important _CORE_ networking features are completely bypassed > and

Re: [RFC 3/3] vsockmon: Add vsock hooks

2016-06-09 Thread Gerard Garcia
On 06/01/2016 11:19 PM, Stefan Hajnoczi wrote: On Sat, May 28, 2016 at 06:29:07PM +0200, ggar...@abra.uab.cat wrote: From: Gerard Garcia Signed-off-by: Gerard Garcia --- drivers/vhost/vsock.c | 71

Re: [RFC 2/3] vsockmon: Add vsockmon device

2016-06-09 Thread Gerard Garcia
On 06/01/2016 11:15 PM, Stefan Hajnoczi wrote: On Sat, May 28, 2016 at 06:29:06PM +0200, ggar...@abra.uab.cat wrote: From: Gerard Garcia Signed-off-by: Gerard Garcia --- drivers/net/Kconfig | 8 ++ drivers/net/Makefile |

Re: [PATCH v3 net-next 3/5] net: vrf: call netdev_lockdep_set_classes()

2016-06-09 Thread David Ahern
On 6/9/16 8:45 AM, Eric Dumazet wrote: In case a qdisc is used on a vrf device, we need to use different lockdep classes to avoid false positives. Use the new netdev_lockdep_set_classes() generic helper. Reported-by: David Ahern Signed-off-by: Eric Dumazet

Re: [RFC 1/3] vsockmon: Add tap functions.

2016-06-09 Thread Gerard Garcia
On 06/01/2016 11:07 PM, Stefan Hajnoczi wrote: On Sat, May 28, 2016 at 06:29:05PM +0200, ggar...@abra.uab.cat wrote: From: Gerard Garcia Signed-off-by: Gerard Garcia --- include/net/af_vsock.h | 13 ++ include/uapi/linux/if_arp.h |

[PATCHv4 net-next] sctp: sctp should change socket state when shutdown is received

2016-06-09 Thread Xin Long
Now sctp doesn't change socket state upon shutdown reception. It changes just the assoc state, even though it's a TCP-style socket. For some cases, if we really need to check sk->sk_state, it's necessary to fix this issue, at least when we use ss or netstat to dump, we can get a more exact

  1   2   >