Re: [Open-FCoE] [PATCH RFC 5/5] qedf: Add FIP request handling

2017-01-09 Thread Hannes Reinecke
On 01/09/2017 05:47 PM, Chad Dupuis wrote: > > On Wed, 28 Dec 2016, 9:11am -, Hannes Reinecke wrote: > >> On 12/23/2016 08:17 PM, Dupuis, Chad wrote: >>> From: "Dupuis, Chad" >>> >>> This patch adds handling for FIP requests and responses that are handled by >>> the driver itself and not by

Re: [Open-FCoE] [PATCH RFC 2/5] qedf: Add QLogic FastLinQ offload FCoE driver framework.

2017-01-09 Thread Hannes Reinecke
On 01/09/2017 05:45 PM, Chad Dupuis wrote: > > On Wed, 28 Dec 2016, 9:00am -, Hannes Reinecke wrote: > >> On 12/23/2016 08:17 PM, Dupuis, Chad wrote: >>> From: "Dupuis, Chad" >>> >>> The QLogic FastLinQ Driver for FCoE (qedf) is the FCoE specific module >>> for 41000 Series Converged Network

Re: [for-next V3 00/10][pull request] Mellanox 100G mlx5 4K UAR support

2017-01-09 Thread Leon Romanovsky
On Mon, Jan 09, 2017 at 11:53:26PM -0500, Doug Ledford wrote: > On Mon, 2017-01-09 at 21:00 +0200, Saeed Mahameed wrote: > > Hi Dave and Doug, > > > > Following the mlx5-odp submission, you can find here the 2nd mlx5 > > submission for 4.11 as a pull-request including mlx5 4K UAR support > > from >

Re: [PATCH v2 03/13] net: ethernet: aquantia: Add ring support code

2017-01-09 Thread Stephen Hemminger
On Mon, 9 Jan 2017 14:16:01 -0800 Alexander Loktionov wrote: > ++self->stats.rx_packets; > + ++ndev->stats.rx_packets; > + ndev->stats.rx_bytes += buff->len; Why keep two sets of statistics (self->stats and ndev->stats); seems redundant. Could also use per-

pull-request: wireless-drivers 2017-01-10

2017-01-09 Thread Kalle Valo
Hi Dave, here's the pull request with the important rtlwifi fix, more info in the tag below. During the long weekend we had here I finally updated Ubuntu on my workstation and git was updated along that. If you see anything funny or problems in my pull request due to the upgrade, please let me kn

Re: [PATCH RFC 3/4] dt-bindings: correct marvell orion MDIO binding document

2017-01-09 Thread Rob Herring
On Sat, Jan 07, 2017 at 11:28:30AM +, Russell King wrote: > Correct the Marvell Orion MDIO binding document to properly reflect the > cases where an interrupt is present. Augment the examples to show this. > > Signed-off-by: Russell King > --- > .../devicetree/bindings/net/marvell-orion-mdi

Re: [PATCH] vhost: scsi: constify target_core_fabric_ops structures

2017-01-09 Thread Michael S. Tsirkin
On Mon, Jan 09, 2017 at 08:51:02PM +0530, Bhumika Goyal wrote: > Declare target_core_fabric_ops strucrues as const as they are only > passed as an argument to the functions target_register_template and > target_unregister_template. The arguments are of type const struct > target_core_fabric_ops *

Re: [net PATCH] net: virtio: cap mtu when XDP programs are running

2017-01-09 Thread Michael S. Tsirkin
On Mon, Jan 09, 2017 at 08:25:43PM -0800, John Fastabend wrote: > On 17-01-09 07:55 PM, Michael S. Tsirkin wrote: > > On Mon, Jan 09, 2017 at 07:30:34PM -0800, John Fastabend wrote: > >> On 17-01-09 06:51 PM, Michael S. Tsirkin wrote: > >>> On Tue, Jan 10, 2017 at 10:29:39AM +0800, Jason Wang wrote

Re: [for-next V3 00/10][pull request] Mellanox 100G mlx5 4K UAR support

2017-01-09 Thread Doug Ledford
On Mon, 2017-01-09 at 21:00 +0200, Saeed Mahameed wrote: > Hi Dave and Doug, > > Following the mlx5-odp submission, you can find here the 2nd mlx5 > submission for 4.11 as a pull-request including mlx5 4K UAR support > from > Eli Cohen (details below).  For you Doug, this pull request will > provi

Re: [for-next V2 00/10][pull request] Mellanox 100G mlx5 4K UAR support

2017-01-09 Thread Doug Ledford
On Sun, 2017-01-08 at 17:54 +0200, Saeed Mahameed wrote: > Hi Dave and Doug, > > Following the mlx5-odp submission, you can find here the 2nd mlx5 > submission for 4.11 as a pull-request including mlx5 4K UAR support > from > Eli Cohen (details below).  For you Doug, this pull request will > provi

Re: [net PATCH] net: virtio: cap mtu when XDP programs are running

2017-01-09 Thread John Fastabend
On 17-01-09 07:55 PM, Michael S. Tsirkin wrote: > On Mon, Jan 09, 2017 at 07:30:34PM -0800, John Fastabend wrote: >> On 17-01-09 06:51 PM, Michael S. Tsirkin wrote: >>> On Tue, Jan 10, 2017 at 10:29:39AM +0800, Jason Wang wrote: On 2017年01月10日 07:58, Michael S. Tsirkin wrote: > O

Re: [for-next V2 08/10] IB/mlx5: Allow future extension of libmlx5 input data

2017-01-09 Thread Doug Ledford
On Sun, 2017-01-08 at 17:54 +0200, Saeed Mahameed wrote: > From: Eli Cohen > > Current check requests that new fields in struct > mlx5_ib_alloc_ucontext_req_v2 that are not known to the driver be > zero. > This was introduced so new libraries passing additional information > to > the kernel throu

Re: [PATCH net-next] bridge: multicast to unicast

2017-01-09 Thread Linus Lüssing
On Mon, Jan 09, 2017 at 01:30:32PM -0800, Stephen Hemminger wrote: > I wonder if MAC80211 should be doing IGMP snooping and not bridge > in this environment. In the long term, yes. For now, not quite sure. I personally like to go for simple solutions first :).

Re: [net PATCH] net: virtio: cap mtu when XDP programs are running

2017-01-09 Thread Michael S. Tsirkin
On Mon, Jan 09, 2017 at 07:30:34PM -0800, John Fastabend wrote: > On 17-01-09 06:51 PM, Michael S. Tsirkin wrote: > > On Tue, Jan 10, 2017 at 10:29:39AM +0800, Jason Wang wrote: > >> > >> > >> On 2017年01月10日 07:58, Michael S. Tsirkin wrote: > >>> On Mon, Jan 09, 2017 at 03:49:27PM -0800, John Fasta

[PATCH] net: add the AF_QIPCRTR entries to family name tables

2017-01-09 Thread Suman Anna
Commit bdabad3e363d ("net: Add Qualcomm IPC router") introduced a new address family. Update the family name tables accordingly so that the lockdep initialization can use the proper names for this family. Cc: Courtney Cavin Cc: Bjorn Andersson Signed-off-by: Suman Anna --- net/core/sock.c | 6

Re: [PATCH net-next] net: ipv6: put autoconf routes into per-interface tables

2017-01-09 Thread David Ahern
On 1/9/17 8:30 PM, Lorenzo Colitti wrote: > On Tue, Jan 10, 2017 at 12:04 PM, David Ahern > wrote: >>> I have no firsthand experience of this myself, but if the problems >>> that Andrey reports above in this thread are real, then those would >>> indicate that the code is not well-supported. Being

Re: [RFC v2 00/10] HFI Virtual Network Interface Controller (VNIC)

2017-01-09 Thread Vishwanathapura, Niranjana
On Mon, Jan 09, 2017 at 09:51:04AM +0200, Leon Romanovsky wrote: On Thu, Dec 15, 2016 at 11:28:06AM -0500, Doug Ledford wrote: On 12/15/2016 9:52 AM, ira.weiny wrote: 2) With more than 60% of the code being MAD related, and another significant chunk being hfi related, and only a minor bit (20%

Re: [net PATCH] net: virtio: cap mtu when XDP programs are running

2017-01-09 Thread Jason Wang
On 2017年01月10日 10:51, Michael S. Tsirkin wrote: On Tue, Jan 10, 2017 at 10:29:39AM +0800, Jason Wang wrote: On 2017年01月10日 07:58, Michael S. Tsirkin wrote: On Mon, Jan 09, 2017 at 03:49:27PM -0800, John Fastabend wrote: On 17-01-09 03:24 PM, Michael S. Tsirkin wrote: On Mon, Jan 09, 2017 a

Re: [PATCH net-next] net: ipv6: put autoconf routes into per-interface tables

2017-01-09 Thread Lorenzo Colitti
On Tue, Jan 10, 2017 at 12:04 PM, David Ahern wrote: > > I have no firsthand experience of this myself, but if the problems > > that Andrey reports above in this thread are real, then those would > > indicate that the code is not well-supported. Being unable to accept > > DAD is a pretty serious i

Re: [net PATCH] net: virtio: cap mtu when XDP programs are running

2017-01-09 Thread John Fastabend
On 17-01-09 06:51 PM, Michael S. Tsirkin wrote: > On Tue, Jan 10, 2017 at 10:29:39AM +0800, Jason Wang wrote: >> >> >> On 2017年01月10日 07:58, Michael S. Tsirkin wrote: >>> On Mon, Jan 09, 2017 at 03:49:27PM -0800, John Fastabend wrote: On 17-01-09 03:24 PM, Michael S. Tsirkin wrote: > On Mo

Re: [PATCH net-next] net: ipv6: put autoconf routes into per-interface tables

2017-01-09 Thread David Ahern
On 1/9/17 7:29 PM, Lorenzo Colitti wrote: > On Tue, Jan 10, 2017 at 11:08 AM, David Ahern > wrote: >> That's news to me. What about IPv6 and VRF is not working or well-supported? > > I have no firsthand experience of this myself, but if the problems > that Andrey reports above in this thread are

Re: [PATCH V4 net-next 1/3] vhost: better detection of available buffers

2017-01-09 Thread Michael S. Tsirkin
On Tue, Jan 10, 2017 at 10:22:42AM +0800, Jason Wang wrote: > > > On 2017年01月10日 07:10, Michael S. Tsirkin wrote: > > On Mon, Jan 09, 2017 at 10:59:16AM +0800, Jason Wang wrote: > > > > > > On 2017年01月07日 03:55, Michael S. Tsirkin wrote: > > > > On Fri, Jan 06, 2017 at 10:13:15AM +0800, Jason Wa

[PATCH] net: ethernet: aquantia: fix semicolon.cocci warnings

2017-01-09 Thread kbuild test robot
drivers/net/ethernet/aquantia/aq_nic.c:584:3-4: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: David VomLehn Signed-off-by: Fengguang Wu --- aq_nic.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/etherne

Re: [PATCH v2 13/13] net: ethernet: aquantia: Integrate AQtion 2.5/5 GB NIC driver

2017-01-09 Thread kbuild test robot
Hi David, [auto build test ERROR on net-next/master] [also build test ERROR on v4.10-rc3 next-20170106] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Alexander-Loktionov/net-ethernet-aquantia-A

linux-next: manual merge of the y2038 tree with the net-next tree

2017-01-09 Thread Stephen Rothwell
Hi Arnd, Today's linux-next merge of the y2038 tree got a conflict in: fs/afs/main.c between commit: 8e8d7f13b6d5 ("afs: Add some tracepoints") from the net-next tree and commit: 549eb7b22e24 ("AFS: Correctly use 64-bit time for UUID") from the y2038 tree. I fixed it up (see below) an

Re: [net PATCH] net: virtio: cap mtu when XDP programs are running

2017-01-09 Thread Michael S. Tsirkin
On Tue, Jan 10, 2017 at 10:29:39AM +0800, Jason Wang wrote: > > > On 2017年01月10日 07:58, Michael S. Tsirkin wrote: > > On Mon, Jan 09, 2017 at 03:49:27PM -0800, John Fastabend wrote: > > > On 17-01-09 03:24 PM, Michael S. Tsirkin wrote: > > > > On Mon, Jan 09, 2017 at 03:13:15PM -0800, John Fastab

Re: [PATCH] vhost: scsi: constify target_core_fabric_ops structures

2017-01-09 Thread Jason Wang
On 2017年01月09日 23:21, Bhumika Goyal wrote: Declare target_core_fabric_ops strucrues as const as they are only passed as an argument to the functions target_register_template and target_unregister_template. The arguments are of type const struct target_core_fabric_ops *, so target_core_fabric_op

Re: [net PATCH] net: virtio: cap mtu when XDP programs are running

2017-01-09 Thread Jason Wang
On 2017年01月10日 07:58, Michael S. Tsirkin wrote: On Mon, Jan 09, 2017 at 03:49:27PM -0800, John Fastabend wrote: On 17-01-09 03:24 PM, Michael S. Tsirkin wrote: On Mon, Jan 09, 2017 at 03:13:15PM -0800, John Fastabend wrote: On 17-01-09 03:05 PM, Michael S. Tsirkin wrote: On Thu, Jan 05, 201

Re: [PATCH net-next] net: ipv6: put autoconf routes into per-interface tables

2017-01-09 Thread Lorenzo Colitti
On Tue, Jan 10, 2017 at 11:08 AM, David Ahern wrote: > That's news to me. What about IPv6 and VRF is not working or well-supported? I have no firsthand experience of this myself, but if the problems that Andrey reports above in this thread are real, then those would indicate that the code is not

Re: [PATCH V4 net-next 3/3] tun: rx batching

2017-01-09 Thread Jason Wang
On 2017年01月10日 07:12, Michael S. Tsirkin wrote: On Mon, Jan 09, 2017 at 10:39:55AM +0800, Jason Wang wrote: On 2017年01月07日 03:47, Michael S. Tsirkin wrote: +static int tun_get_coalesce(struct net_device *dev, + struct ethtool_coalesce *ec) +{ + struct tun_struc

Re: [PATCH V4 net-next 1/3] vhost: better detection of available buffers

2017-01-09 Thread Jason Wang
On 2017年01月10日 07:10, Michael S. Tsirkin wrote: On Mon, Jan 09, 2017 at 10:59:16AM +0800, Jason Wang wrote: On 2017年01月07日 03:55, Michael S. Tsirkin wrote: On Fri, Jan 06, 2017 at 10:13:15AM +0800, Jason Wang wrote: This patch tries to do several tweaks on vhost_vq_avail_empty() for a bette

Re: [PATCH net-next] net: ipv6: put autoconf routes into per-interface tables

2017-01-09 Thread David Ahern
On 1/9/17 7:01 PM, Lorenzo Colitti wrote: > As others have mentioned, IPv6 on VRFs in client mode is also not > necessarily well-supported at the moment, and I don't know how long it > would take for it to be (assuming it can be made to work properly in > client mode without breaking the primary us

Re: [PATCH net-next] net: ipv6: put autoconf routes into per-interface tables

2017-01-09 Thread Lorenzo Colitti
On Sun, Jan 8, 2017 at 1:24 PM, David Ahern wrote: > Why not use the VRF capability then? create a VRF and assign the interface to > it. End result is the same -- separate tables and the need to use a > bind-to-device API to hit those routes. Requiring that VRFs for this creates additional comp

Re: Marvell Phy (1510) issue since v4.7 kernel

2017-01-09 Thread Andrew Lunn
> From Marvell's brief description > http://www.marvell.com/transceivers/alaska-gbe/, > it seems that 88E1510/1518 don't support fiber. Only 88E1512 does. In > that case, the fiber support patch is not applicable to 88E1510/1518. O.K. That makes it easier. Please add the relevant IDs to include/

RE: Marvell Phy (1510) issue since v4.7 kernel

2017-01-09 Thread Kwok, WingMan
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Monday, January 09, 2017 6:56 PM > To: Kwok, WingMan > Cc: Karicheri, Muralidharan; netdev@vger.kernel.org > Subject: Re: Marvell Phy (1510) issue since v4.7 kernel > > > But when kernel is reboot into u-boot, "mii

linux-next: build failure after merge of the selinux tree

2017-01-09 Thread Stephen Rothwell
Hi Paul, After merging the selinux tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from /home/sfr/next/next/security/selinux/avc.c:35:0: /home/sfr/next/next/security/selinux/include/classmap.h:242:2: error: #error New address family defined, please update

[next-queue v3 PATCH 3/7] i40e: Sync link state between VFs and VFPRs

2017-01-09 Thread Sridhar Samudrala
This patch enables - reflecting the link state of VFPR based on VF admin state & link state of VF based on admin state of VFPR. - bringing up/down the VFPR sends a notification to update VF link state. - bringing up/down the VF will cause the link state update of VFPR. - enable/disable VF link st

[next-queue v3 PATCH 2/7] i40e: Introduce VF Port Representator(VFPR) netdevs.

2017-01-09 Thread Sridhar Samudrala
VF Port Representator netdevs are created for each VF if the switch mode is set to 'switchdev'. These netdevs can be used to control and configure VFs from PFs namespace. They enable exposing VF statistics, configure and monitor link state, mtu, filters, fdb/vlan entries etc. of VFs. Broadcast filt

[next-queue v3 PATCH 5/7] i40e: Add TX and RX support in switchdev mode.

2017-01-09 Thread Sridhar Samudrala
In switchdev mode, broadcast filter is not enabled on VFs. The broadcasts and unknown frames from VFs are received by the PF and passed to corresponding VF port representator netdev. A host based switching entity like a linux bridge or OVS redirects these frames to the right VFs via VFPR netdevs. A

[next-queue v3 PATCH 7/7] i40e: Add support to get switch id and port number for VFPR netdevs

2017-01-09 Thread Sridhar Samudrala
Introduce switchdev_ops to PF and VFPR netdevs to return the switch id via SWITCHDEV_ATTR_ID_PORT_PARENT_ID attribute. Also, ndo_get_phys_port_name() support is added to VFPR netdevs to return the port number. PF: enp5s0f0, VFs: enp5s2,enp5s2f1 VFPRs:enp5s0f0-vf0, enp5s0f0-vf1 # rmmod i40e; modpro

[next-queue v3 PATCH 4/7] net: store port/representator id in metadata_dst

2017-01-09 Thread Sridhar Samudrala
Switches and modern SR-IOV enabled NICs may multiplex traffic from Port representators and control messages over single set of hardware queues. Control messages and muxed traffic may need ordered delivery. Those requirements make it hard to comfortably use TC infrastructure today unless we have a

[next-queue v3 PATCH 6/7] i40e: Add support for exposing VF port statistics via VFPR netdev on the host.

2017-01-09 Thread Sridhar Samudrala
From: Sridhar Samudrala By default stats counted by HW are returned via the original ndo_get_stats64() api. Stats counted in SW are returned via ndo_get_offload_stats() api. Small script to demonstrate vfpr stats in switchdev mode. PF: enp5s0f0, VFs: enp5s2,enp5s2f1 VFPRs:enp5s0f0-vf0, enp5s0f0-

[next-queue v3 PATCH 0/7]i40e: Add VF Port Representator support for SR-IOV VFs

2017-01-09 Thread Sridhar Samudrala
This patchset is against dev-queue branch of Jeff Kirsher's next-queue git tree. - Patch 1 introduces devlink interface to get/set the mode of SRIOV switch. - Patch 2 adds support to create VF port representor(VFPR) netdevs associated with SR-IOV VFs that can be used to control/configure VFs fro

[next-queue v3 PATCH 1/7] i40e: Introduce devlink interface.

2017-01-09 Thread Sridhar Samudrala
Add initial devlink support to get/set the mode of SRIOV switch. This patch sets the default mode as 'legacy' and enables getting the mode and and setting it to 'legacy'. The switch mode can be get/set via following 'devlink' commands. # devlink dev eswitch show pci/:05:00.0 pci/:05:00.0:

Re: [PATCH net-next 3/4] net: switchdev: Add switchdev_port_bridge_getlink_deferred

2017-01-09 Thread kbuild test robot
Hi Florian, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Florian-Fainelli/net-switchdev-Avoid-sleep-in-atomic-with-DSA/20170110-080755 config: x86_64-randconfig-x014-201702 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reprod

linux-next: build failure after merge of the net-next tree

2017-01-09 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this: net/smc/af_smc.c: In function 'smc_splice_read': net/smc/af_smc.c:1258:39: error: passing argument 1 of 'smc->clcsock->ops->splice_read' from incompatible pointer type [-Werror=incompatible

Re: [net PATCH] net: virtio: cap mtu when XDP programs are running

2017-01-09 Thread Michael S. Tsirkin
On Mon, Jan 09, 2017 at 03:49:27PM -0800, John Fastabend wrote: > On 17-01-09 03:24 PM, Michael S. Tsirkin wrote: > > On Mon, Jan 09, 2017 at 03:13:15PM -0800, John Fastabend wrote: > >> On 17-01-09 03:05 PM, Michael S. Tsirkin wrote: > >>> On Thu, Jan 05, 2017 at 11:09:14AM +0800, Jason Wang wrote

Re: Marvell Phy (1510) issue since v4.7 kernel

2017-01-09 Thread Andrew Lunn
> But when kernel is reboot into u-boot, "mii read 0 0" shows > 0x1000, ie. bit 11 is 0, and still the phy auto-nego times out. O.K, not so simple then. I suggest you dump all the registers, in both the good and bad state, and see how they differ. Andrew

[PATCH] net: qcom/emac: grab a reference to the phydev on ACPI systems

2017-01-09 Thread Timur Tabi
Commit 6ffe1c4cd0a7 ("net: qcom/emac: fix of_node and phydev leaks") fixed the problem with reference leaks on phydev, but the fix is device-tree specific. When the driver unloads, the reference is dropped only on DT systems. Instead, it's cleaner if up grab an reference on ACPI systems. When the

Re: [net PATCH] net: virtio: cap mtu when XDP programs are running

2017-01-09 Thread John Fastabend
On 17-01-09 03:24 PM, Michael S. Tsirkin wrote: > On Mon, Jan 09, 2017 at 03:13:15PM -0800, John Fastabend wrote: >> On 17-01-09 03:05 PM, Michael S. Tsirkin wrote: >>> On Thu, Jan 05, 2017 at 11:09:14AM +0800, Jason Wang wrote: On 2017年01月05日 02:57, John Fastabend wrote: > [...]

RE: Marvell Phy (1510) issue since v4.7 kernel

2017-01-09 Thread Kwok, WingMan
Hi Andrew, > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Monday, January 09, 2017 5:57 PM > To: Karicheri, Muralidharan > Cc: netdev@vger.kernel.org; Kwok, WingMan > Subject: Re: Marvell Phy (1510) issue since v4.7 kernel > > On Mon, Jan 09, 2017 at 05:38:39PM

[PATCH iproute2] Add support for rt_protos.d

2017-01-09 Thread David Ahern
Add support for reading proto id/name mappings from rt_protos.d directory. Allows users to have custom protocol values converted to human friendly names. Each file under rt_protos.d has the 'id name' format used by rt_protos. Only .conf files are read and parsed. Signed-off-by: David Ahern ---

Re: [net PATCH] net: virtio: cap mtu when XDP programs are running

2017-01-09 Thread Michael S. Tsirkin
On Mon, Jan 09, 2017 at 03:13:15PM -0800, John Fastabend wrote: > On 17-01-09 03:05 PM, Michael S. Tsirkin wrote: > > On Thu, Jan 05, 2017 at 11:09:14AM +0800, Jason Wang wrote: > >> > >> > >> On 2017年01月05日 02:57, John Fastabend wrote: > >>> [...] > >>> > On 2017年01月04日 00:48, John Fastabend

[PATCH net-next v3] net: dsa: make "label" property optional for dsa2

2017-01-09 Thread Vivien Didelot
In the new DTS bindings for DSA (dsa2), the "ethernet" and "link" phandles are respectively mandatory and exclusive to CPU port and DSA link device tree nodes. Simplify dsa2.c a bit by checking the presence of such phandle instead of checking the redundant "label" property. Then the Linux philoso

Re: [net PATCH] net: virtio: cap mtu when XDP programs are running

2017-01-09 Thread John Fastabend
On 17-01-09 03:05 PM, Michael S. Tsirkin wrote: > On Thu, Jan 05, 2017 at 11:09:14AM +0800, Jason Wang wrote: >> >> >> On 2017年01月05日 02:57, John Fastabend wrote: >>> [...] >>> On 2017年01月04日 00:48, John Fastabend wrote: > On 17-01-02 10:14 PM, Jason Wang wrote: >> On 2017年01月03日 06:30

Re: [PATCH V4 net-next 3/3] tun: rx batching

2017-01-09 Thread Michael S. Tsirkin
On Mon, Jan 09, 2017 at 10:39:55AM +0800, Jason Wang wrote: > > > On 2017年01月07日 03:47, Michael S. Tsirkin wrote: > > > +static int tun_get_coalesce(struct net_device *dev, > > > + struct ethtool_coalesce *ec) > > > +{ > > > + struct tun_struct *tun = netdev_priv(dev); > > > +

Re: [PATCH net-next] bridge: multicast to unicast

2017-01-09 Thread Linus Lüssing
On Mon, Jan 09, 2017 at 10:42:46PM +0100, Johannes Berg wrote: > On Mon, 2017-01-09 at 22:33 +0100, Linus Lüssing wrote: > > On Mon, Jan 09, 2017 at 01:44:03PM +0100, Johannes Berg wrote: > > > > > > > >  A host SHOULD silently discard a datagram that is > > > > > received via > > > > >   

Re: [PATCH V4 net-next 1/3] vhost: better detection of available buffers

2017-01-09 Thread Michael S. Tsirkin
On Mon, Jan 09, 2017 at 10:59:16AM +0800, Jason Wang wrote: > > > On 2017年01月07日 03:55, Michael S. Tsirkin wrote: > > On Fri, Jan 06, 2017 at 10:13:15AM +0800, Jason Wang wrote: > > > This patch tries to do several tweaks on vhost_vq_avail_empty() for a > > > better performance: > > > > > > - ch

[PATCH next v2] ipvlan: improvise dev_id generation logic in IPvlan

2017-01-09 Thread Mahesh Bandewar
From: Mahesh Bandewar The patch 009146d117b ("ipvlan: assign unique dev-id for each slave device.") used ida_simple_get() to generate dev_ids assigned to the slave devices. However (Eric has pointed out that) there is a shortcoming with that approach as it always uses the first available ID. This

Re: [net PATCH] net: virtio: cap mtu when XDP programs are running

2017-01-09 Thread Michael S. Tsirkin
On Thu, Jan 05, 2017 at 11:09:14AM +0800, Jason Wang wrote: > > > On 2017年01月05日 02:57, John Fastabend wrote: > > [...] > > > > > On 2017年01月04日 00:48, John Fastabend wrote: > > > > On 17-01-02 10:14 PM, Jason Wang wrote: > > > > > On 2017年01月03日 06:30, John Fastabend wrote: > > > > > > XDP prog

Re: [PATCH] net: qrtr: Mark 'buf' as little endian

2017-01-09 Thread Bjorn Andersson
On Mon 09 Jan 14:31 PST 2017, Stephen Boyd wrote: > Failure to mark this pointer as __le32 causes checkers like > sparse to complain: > > net/qrtr/qrtr.c:274:16: warning: incorrect type in assignment (different base > types) > net/qrtr/qrtr.c:274:16:expected unsigned int [unsigned] [usertype

Re: Marvell Phy (1510) issue since v4.7 kernel

2017-01-09 Thread Andrew Lunn
On Mon, Jan 09, 2017 at 05:38:39PM -0500, Murali Karicheri wrote: > Hello Charles-Antoine, Andrew, > > We have recently upgraded our kernel to v4.9 and started seeing an issue > on our Keystone EVMs (K2E/L) that uses Marvel Phy 1510. The issue is that > when we do a reboot command from the Linux c

[PATCH v2 net-next] liquidio: store the L4 hash of rx packets in skb

2017-01-09 Thread Felix Manlunas
From: Prasad Kanneganti Store the L4 hash of received packets in the skb; the hash is computed in the NIC firmware. Signed-off-by: Prasad Kanneganti Signed-off-by: Felix Manlunas Signed-off-by: Derek Chickles Signed-off-by: Satanand Burla --- Note: The location of the L4 hash within the 8-by

Marvell Phy (1510) issue since v4.7 kernel

2017-01-09 Thread Murali Karicheri
Hello Charles-Antoine, Andrew, We have recently upgraded our kernel to v4.9 and started seeing an issue on our Keystone EVMs (K2E/L) that uses Marvel Phy 1510. The issue is that when we do a reboot command from the Linux console or do a SoC reset, the DHCP times out at U-Boot due to Phy auto negot

[PATCH] net: qrtr: Mark 'buf' as little endian

2017-01-09 Thread Stephen Boyd
Failure to mark this pointer as __le32 causes checkers like sparse to complain: net/qrtr/qrtr.c:274:16: warning: incorrect type in assignment (different base types) net/qrtr/qrtr.c:274:16:expected unsigned int [unsigned] [usertype] net/qrtr/qrtr.c:274:16:got restricted __le32 [usertype]

[PATCH] netfilter: Fix typo in NF_CONNTRACK Kconfig option description

2017-01-09 Thread William Breathitt Gray
The NF_CONNTRACK Kconfig option description makes an incorrect reference to the "meta" expression where the "ct" expression would be correct.This patch fixes the respective typographical error. Fixes: d497c6352736 ("netfilter: add help information to new nf_tables Kconfig options") Signed-off-by:

Re: [PATCH net-next] net: ipv6: put autoconf routes into per-interface tables

2017-01-09 Thread Andrey Jr. Melnikov
David Ahern wrote: > On 1/6/17 8:30 AM, Lorenzo Colitti wrote: > > This patch adds a per-interface sysctl to have the kernel put > > autoconf routes into different tables. This allows each interface > > to have its own routing table if desired. Choosing the default > > interface, or using differe

Re: [PATCH net-next v2] net: dsa: select NET_SWITCHDEV

2017-01-09 Thread David Miller
From: Vivien Didelot Date: Mon, 9 Jan 2017 16:49:26 -0500 > The support for DSA Ethernet switch chips depends on TCP/IP networking, > thus explicit that HAVE_NET_DSA depends on INET. > > DSA uses SWITCHDEV, thus select it instead of depending on it. > > Signed-off-by: Vivien Didelot > Reviewe

[PATCH v2 11/13] net: ethernet: aquantia: Ethtool support

2017-01-09 Thread Alexander Loktionov
From: David VomLehn Add the driver interfaces required for support by the ethtool utility. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: David M. VomLehn --- drivers/net/ethernet/aquantia/aq_ethtool.c | 251 +++

[PATCH v2 10/13] net: ethernet: aquantia: Hardware interface and utility functions

2017-01-09 Thread Alexander Loktionov
From: David VomLehn Add functions to interface with the hardware and some utility functions. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: David M. VomLehn --- drivers/net/ethernet/aquantia/aq_hw.h | 170

[PATCH v2 08/13] net: ethernet: aquantia: PCI operations

2017-01-09 Thread Alexander Loktionov
From: David VomLehn Add functions that handle the PCI bus interface. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: David M. VomLehn --- drivers/net/ethernet/aquantia/aq_pci_func.c | 348 drivers/ne

[PATCH v2 09/13] net: ethernet: aquantia: Atlantic hardware abstraction layer

2017-01-09 Thread Alexander Loktionov
From: David VomLehn Add common functions for Atlantic hardware abstraction layer. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: David M. VomLehn --- .../net/ethernet/aquantia/hw_atl/hw_atl_utils.c| 548

[PATCH v2 13/13] net: ethernet: aquantia: Integrate AQtion 2.5/5 GB NIC driver

2017-01-09 Thread Alexander Loktionov
From: David VomLehn Modify the drivers/net/ethernet/{Makefile,Kconfig} file to make them a part of the network drivers build. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: David M. VomLehn --- drivers/net/ethernet/Kconfig | 1

[PATCH v2 03/13] net: ethernet: aquantia: Add ring support code

2017-01-09 Thread Alexander Loktionov
From: David VomLehn Add code to support the transmit and receive ring buffers. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: David M. VomLehn --- drivers/net/ethernet/aquantia/aq_ring.c | 344

[PATCH v2 05/13] net: ethernet: aquantia: Support for NIC-specific code

2017-01-09 Thread Alexander Loktionov
From: David VomLehn Add support for code specific to the Atlantic NIC. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: David M. VomLehn --- drivers/net/ethernet/aquantia/aq_main.c | 292 drivers/net/ethernet/aqu

[PATCH v2 12/13] net: ethernet: aquantia: Receive side scaling

2017-01-09 Thread Alexander Loktionov
From: David VomLehn Add definitions that support receive side scaling. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: David M. VomLehn --- drivers/net/ethernet/aquantia/aq_rss.h | 27 +++ 1 file changed,

[PATCH v2 01/13] net: ethernet: aquantia: Make and configuration files.

2017-01-09 Thread Alexander Loktionov
From: David VomLehn Patches to create the make and configuration files. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: David M. VomLehn --- drivers/net/ethernet/aquantia/Kconfig | 24 +++ drivers/net/ethernet/a

[PATCH v2 07/13] net: ethernet: aquantia: Vector operations

2017-01-09 Thread Alexander Loktionov
From: David VomLehn Add functions to manululate the vector of receive and transmit rings. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel.Belous Signed-off-by: David M. VomLehn --- drivers/net/ethernet/aquantia/aq_vec.c | 359

[PATCH v2 06/13] net: ethernet: aquantia: Atlantic A0 and B0 specific functions.

2017-01-09 Thread Alexander Loktionov
From: David VomLehn Add Atlantic A0 and B0 specific functions. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: David M. VomLehn --- drivers/net/ethernet/aquantia/hw_atl/hw_atl_a0.c | 908 +++ drivers/net/ethern

Re: [for-next V3 00/10][pull request] Mellanox 100G mlx5 4K UAR support

2017-01-09 Thread David Miller
From: Saeed Mahameed Date: Mon, 9 Jan 2017 21:00:43 +0200 > Following the mlx5-odp submission, you can find here the 2nd mlx5 > submission for 4.11 as a pull-request including mlx5 4K UAR support from > Eli Cohen (details below). For you Doug, this pull request will provide > you with both mlx5

[PATCH v2 02/13] net: ethernet: aquantia: Common functions and definitions

2017-01-09 Thread Alexander Loktionov
From: David VomLehn Add files containing the functions and definitions used in common in different functional areas. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: David M. VomLehn --- drivers/net/ethernet/aquantia/aq_cfg.h

[PATCH v2 00/13] net: ethernet: aquantia: Add AQtion 2.5/5 GB NIC driver

2017-01-09 Thread Alexander Loktionov
From: David VomLehn This series introduces the AQtion NIC driver for the aQuantia AQC107/AQC108 network devices. v1: Initial version v2: o Make necessary drivers/net/ethernet changes to integrate software o Drop intermediate atlantic directory o Remove Makefile things only appropriate to

[PATCH net] mlx4: Return EOPNOTSUPP instead of ENOTSUPP

2017-01-09 Thread Martin KaFai Lau
In commit b45f0674b997 ("mlx4: xdp: Allow raising MTU up to one page minus eth and vlan hdrs"), it changed ENOTSUPP to EOPNOTSUPP by mistake. This patch fixes it. Fixes: b45f0674b997 ("mlx4: xdp: Allow raising MTU up to one page minus eth and vlan hdrs") Signed-off-by: Martin KaFai Lau --- dr

Re: [PATCH net-next] tcp: make TCP_INFO more consistent

2017-01-09 Thread David Miller
From: Eric Dumazet Date: Mon, 09 Jan 2017 10:29:27 -0800 > From: Eric Dumazet > > tcp_get_info() has to lock the socket, so lets lock it > for an extended critical section, so that various fields > have consistent values. > > This solves an annoying issue that some applications > reported when

Re: [RFC PATCH 2/4] page_pool: basic implementation of page_pool

2017-01-09 Thread Mel Gorman
On Mon, Jan 09, 2017 at 09:45:24PM +0100, Jesper Dangaard Brouer wrote: > > I see. I guess if all page pool pages were order>0 compound pages, you > > could hook this to the existing compound_dtor functionality instead. > > The page_pool will support order>0 pages, but it is the order-0 case > tha

Re: [PATCHv3 0/6] sh_eth: add wake-on-lan support via magic packet

2017-01-09 Thread David Miller
From: Sergei Shtylyov Date: Tue, 10 Jan 2017 00:48:28 +0300 > On 01/09/2017 11:55 PM, David Miller wrote: > >>> This series adds support for Wake-on-Lan using Magic Packet for a few >>> models of the sh_eth driver. Patch 1/6 fix a naming error, patch 2/6 >>> adds generic support to control and s

Re: [PATCH net-next 0/5] bpf: verifier improvements

2017-01-09 Thread David Miller
From: Alexei Starovoitov Date: Mon, 9 Jan 2017 10:19:45 -0800 > A number of bpf verifier improvements from Gianluca. > See individual patches for details. Series applied, thanks!

[PATCH net-next v2] net: dsa: select NET_SWITCHDEV

2017-01-09 Thread Vivien Didelot
The support for DSA Ethernet switch chips depends on TCP/IP networking, thus explicit that HAVE_NET_DSA depends on INET. DSA uses SWITCHDEV, thus select it instead of depending on it. Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli Tested-by: Randy Dunlap

Re: [PATCHv3 0/6] sh_eth: add wake-on-lan support via magic packet

2017-01-09 Thread Sergei Shtylyov
On 01/09/2017 11:55 PM, David Miller wrote: This series adds support for Wake-on-Lan using Magic Packet for a few models of the sh_eth driver. Patch 1/6 fix a naming error, patch 2/6 adds generic support to control and support WoL while patches 3/6 - 6/6 enable different models. Based ontop of

Re: bad interaction between privacy extensions, prefix lifetimes and protocols that maintain long-term connections.

2017-01-09 Thread Matthew Hall
On Sat, Jan 07, 2017 at 03:16:06PM +, peter green wrote: > For the main MAC-based address the valid_lft is always short but it is > updated by new RAs so the address remains valid. > > However privacy addresses inherit their valid_lft from the main MAC-based > address and unlike the main add

Re: [PATCH] net/appletalk: Fix kernel memory disclosure

2017-01-09 Thread David Miller
From: Vlad Tsyrklevich Date: Mon, 9 Jan 2017 20:57:48 +0700 > ipddp_route structs contain alignment padding so kernel heap memory > is leaked when they are copied to user space in > ipddp_ioctl(SIOCFINDIPDDPRT). Change kmalloc() to kzalloc() to clear > that memory. > > Signed-off-by: Vlad Tsyrk

Re: [PATCH v2] ipv4: make tcp_notsent_lowat sysctl knob behave as true unsigned int

2017-01-09 Thread David Miller
From: Pavel Tikhomirov Date: Mon, 9 Jan 2017 10:45:49 +0300 >> cat /proc/sys/net/ipv4/tcp_notsent_lowat > -1 >> echo 4294967295 > /proc/sys/net/ipv4/tcp_notsent_lowat > -bash: echo: write error: Invalid argument >> echo -2147483648 > /proc/sys/net/ipv4/tcp_notsent_lowat >> cat /proc/sys/net/ipv4

Re: [PATCH] net: phy: Add Meson GXL PHY hardware dependency

2017-01-09 Thread David Miller
From: Jean Delvare Date: Mon, 9 Jan 2017 15:17:27 +0100 > As I understand it the Meson GXL PHY driver is only useful on one > architecture so only make it visible on that architecture. > > Signed-off-by: Jean Delvare > Fixes: 7334b3e47aee ("net: phy: Add Meson GXL Internal PHY driver") Applied

Re: [PATH net] tcp: do not export tcp_peer_is_proven()

2017-01-09 Thread David Miller
From: Eric Dumazet Date: Mon, 09 Jan 2017 08:51:32 -0800 > From: Eric Dumazet > > After commit 1fb6f159fd21 ("tcp: add tcp_conn_request"), > tcp_peer_is_proven() no longer needs to be exported. > > Signed-off-by: Eric Dumazet Applied.

Re: [PATCH net] ipv6: fix typos

2017-01-09 Thread David Miller
From: Alexander Alemayhu Date: Sat, 7 Jan 2017 23:53:00 +0100 > o s/approriate/appropriate > o s/discouvery/discovery > > Signed-off-by: Alexander Alemayhu Applied.

Re: [PATCH] net: fix accept4() flags not work

2017-01-09 Thread David Miller
From: yuan linyu Date: Sun, 8 Jan 2017 18:47:30 +0800 > From: yuan linyu > > user input flags store to newsock which should be used. > > Signed-off-by: yuan linyu It is the file flags of the parent listening socket that determines if the accept() blocks or not. The man page for accept() is

[PATCH net-next 6/7] net: ipv4: return route match in GETROUTE request

2017-01-09 Thread David Ahern
Add the matching route returned in fib_result as a new, nested attribute, RTA_ROUTE_GET, to the GETROUTE response. The rtmsg struct is added use a new attribute, RTA_ROUTE_GET_RTM. These attributes allow userspace to show which route was matched for a GETROUTE request. Signed-off-by: David Ahern

[PATCH net-next 3/7] net: ipv4: Convert inet_rtm_getroute to rcu versions of route lookup

2017-01-09 Thread David Ahern
Convert inet_rtm_getroute to use ip_route_input_rcu and ip_route_output_key_hash_rcu passing the fib_result arg to both. The rcu lock is held through the creation of the response, so the rtable/dst does not need to be attached to the skb and is passed to rt_fill_info directly. In converting from i

[PATCH net-next 5/7] net: ipv4: Save trie prefix to fib lookup result

2017-01-09 Thread David Ahern
Prefix is needed for returning matching route spec on get route request. Signed-off-by: David Ahern --- include/net/ip_fib.h | 1 + net/ipv4/fib_trie.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index 57c2a863d0b2..f2cc345852d7 100644 --- a

[PATCH net-next 4/7] net: ipv4: refactor fib_dump_info

2017-01-09 Thread David Ahern
Pull code that adds attributes to the response from fib_dump_info into a separate, stand-alone function. That function is used by a later patch to add the matching route to a get route request. Signed-off-by: David Ahern --- net/ipv4/fib_lookup.h| 2 ++ net/ipv4/fib_semantics.c | 17 +++

  1   2   3   4   >