[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]

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

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: >

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

[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

[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

[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

Re: [PATCH net-next v2 0/2] net/sched: act_csum: add support for SCTP checksum

2017-01-09 Thread David Miller
From: Davide Caratti Date: Mon, 9 Jan 2017 11:24:19 +0100 > This series extends current act_csum functionality to allow computation of > SCTP checksums. Patch 1 ensures LIBCRC32C will be selected if NET_ACT_CSUM > is selected. Patch 2 extends act_csum to handle IPPROTO_SCTP

Re: [PATCH net] net: dsa: Ensure validity of dst->ds[0]

2017-01-09 Thread Andrew Lunn
On Mon, Jan 09, 2017 at 03:50:53PM -0500, Vivien Didelot wrote: > Hi Florian, > > Florian Fainelli writes: > > > It is perfectly possible to have non zero indexed switches being present > > in a DSA switch tree, in such a case, we will be deferencing a NULL > > pointer

[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

[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

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

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]

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日

[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: 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

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

[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.

[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;

[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

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 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: [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

[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

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: > > > > > > -

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

2017-01-09 Thread Florian Fainelli
On 01/09/2017 12:11 PM, Marcelo Ricardo Leitner wrote: > On Mon, Jan 09, 2017 at 11:45:02AM -0800, Florian Fainelli wrote: >> Add switchdev_port_bridge_getlink_deferred() which does a deferred >> object dump operation, this is required for e.g: DSA switches which >> typically have sleeping I/O

Re: [PATCH v2] phy state machine: failsafe leave invalid RUNNING state

2017-01-09 Thread David Miller
From: Zefir Kurtisi Date: Fri, 6 Jan 2017 12:14:48 +0100 > While in RUNNING state, phy_state_machine() checks for link changes by > comparing phydev->link before and after calling phy_read_status(). > This works as long as it is guaranteed that phydev->link is never >

[PATCH 3/3] PCI/msi: remove pci_enable_msi_{exact,range}

2017-01-09 Thread Christoph Hellwig
All multi-MSI allocations are now done through pci_irq_alloc_vectors, so remove the old interface. Signed-off-by: Christoph Hellwig --- Documentation/PCI/MSI-HOWTO.txt | 6 ++ drivers/pci/msi.c | 26 +- include/linux/pci.h | 16

[PATCH 1/3] media/cobalt: use pci_irq_allocate_vectors

2017-01-09 Thread Christoph Hellwig
Simply the interrupt setup by using the new PCI layer helpers. Despite using pci_enable_msi_range, this driver was only requesting a single MSI vector anyway. Signed-off-by: Christoph Hellwig --- drivers/media/pci/cobalt/cobalt-driver.c | 8 ++--

[PATCH 2/3] xgbe: switch to pci_irq_alloc_vectors

2017-01-09 Thread Christoph Hellwig
The newly added xgbe drivers uses the deprecated pci_enable_msi_exact and pci_enable_msix_range interfaces. Switch it to use pci_irq_alloc_vectors instead. Signed-off-by: Christoph Hellwig --- drivers/net/ethernet/amd/xgbe/xgbe-pci.c | 47 +---

kill off pci_enable_msi_{exact,range}

2017-01-09 Thread Christoph Hellwig
I had hope that we could kill these old interfaces of for 4.10-rc, but as of today Linus tree still has two users: (1) the cobalt media driver, for which I sent a patch long time ago, it got missed in the merge window. (2) the new xgbe driver was merged in 4.10-rc but used the old

Re: [PATCH net-next 0/4] afs: Refcount afs_call struct

2017-01-09 Thread David Miller
t; lifecycle of afs_call objects. > > The patches can be found here also: > > > http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=rxrpc-rewrite > > Tagged thusly: > > git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git > rxrpc-rewrite-20170109 Pulled, thanks David.

Re: [PATCH net-next 0/4] net: switchdev: Avoid sleep in atomic with DSA

2017-01-09 Thread Ido Schimmel
Hi Florian, On Mon, Jan 09, 2017 at 11:44:59AM -0800, Florian Fainelli wrote: > Hi all, > > This patch series is to resolve a sleeping function called in atomic context > debug splat that we observe with DSA. > > Let me know what you think, I was also wondering if we should just always > make

Re: [net-next PATCH 1/3] Revert "icmp: avoid allocating large struct on stack"

2017-01-09 Thread Jesper Dangaard Brouer
On Mon, 09 Jan 2017 13:52:59 -0500 (EST) David Miller wrote: > From: Eric Dumazet > Date: Mon, 09 Jan 2017 10:07:04 -0800 > > > You really should come to netdev conferences so that you understand > > goals and efforts, instead of living in your

Re: [PATCH net-next 0/4] net: switchdev: Avoid sleep in atomic with DSA

2017-01-09 Thread Ido Schimmel
On Mon, Jan 09, 2017 at 12:56:48PM -0800, Florian Fainelli wrote: > On 01/09/2017 12:48 PM, Ido Schimmel wrote: > > Hi Florian, > > > > On Mon, Jan 09, 2017 at 11:44:59AM -0800, Florian Fainelli wrote: > >> Hi all, > >> > >> This patch series is to resolve a sleeping function called in atomic >

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

2017-01-09 Thread Linus Lüssing
On Mon, Jan 09, 2017 at 12:44:19PM +0100, M. Braun wrote: > Am 09.01.2017 um 09:08 schrieb Johannes Berg: > > Does it make sense to implement the two in separate layers though? > > > > Clearly, this part needs to be implemented in the bridge layer due to > > the snooping knowledge, but the code

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

[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

[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:

[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

[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

[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

[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

[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

[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

[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:

[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

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

[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

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

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

[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

[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

[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

Re: [net-next PATCH 1/3] Revert "icmp: avoid allocating large struct on stack"

2017-01-09 Thread Joe Perches
On Mon, 2017-01-09 at 10:07 -0800, Eric Dumazet wrote: > On Mon, 2017-01-09 at 09:59 -0800, Cong Wang wrote: [] > > Facepalm... [] > We are in 2017. Whatever was said in 2013 is irrelevant. Unless you morph into the PEOTUS, as a general statement, this is untrue.

Re: [PATCH net-next 0/4] net: dsa: Make dsa_switch_ops const

2017-01-09 Thread David Miller
From: Florian Fainelli Date: Sun, 8 Jan 2017 14:52:04 -0800 > This patch series allows us to annotate dsa_switch_ops with a const > qualifier. I kinda suspect this will have minor conflicts with the ops overwrite bug fix I applied to 'net' right? I think I'll wait until

[PATCH] [v3] net: qcom/emac: add ethtool support

2017-01-09 Thread Timur Tabi
Add support for some ethtool methods: get/set link settings, get/set message level, get statistics, get link status, get ring params, get pause params, and restart autonegotiation. The code to collect the hardware statistics is moved into its own function so that it can be used by "get

Re: [PATCH net v2 5/5] net: qcom/emac: fix of_node and phydev leaks

2017-01-09 Thread Timur Tabi
On 11/24/2016 12:21 PM, Johan Hovold wrote: + if (!has_acpi_companion(>dev)) + put_device(>phydev->mdio.dev); I was wondering if, instead of calling put_device() only on non-ACPI systems, would it be better if on an ACPI system I called get_device() manually? That is,

Re: [PATCH iproute2/net-next] tc: flower: Update dest UDP port documentation

2017-01-09 Thread Stephen Hemminger
On Wed, 4 Jan 2017 12:02:18 +0100 Simon Horman wrote: > Since 41aa17ff4668 ("tc/cls_flower: Add dest UDP port to tunnel params") > tc flower supports setting the dest UDP port. > > * Use "port_number" to be consistent with other man-page text > * Re-add

Re: [GIT] Networking

2017-01-09 Thread David Miller
From: Linus Torvalds Date: Mon, 9 Jan 2017 12:08:02 -0800 > On Sun, Jan 8, 2017 at 7:38 PM, David Miller wrote: >> >> git://git.kernel.org/pub/scm/linux/kernel/git/davem/net > > Hmm. This still doesn't contain the rtlwifi oops fix that was

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

2017-01-09 Thread Marcelo Ricardo Leitner
On Mon, Jan 09, 2017 at 12:13:19PM -0800, Florian Fainelli wrote: > On 01/09/2017 12:11 PM, Marcelo Ricardo Leitner wrote: > > On Mon, Jan 09, 2017 at 11:45:02AM -0800, Florian Fainelli wrote: > >> Add switchdev_port_bridge_getlink_deferred() which does a deferred > >> object dump operation, this

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

2017-01-09 Thread Jesper Dangaard Brouer
On Mon, 9 Jan 2017 11:43:39 +0100 Vlastimil Babka wrote: > On 01/04/2017 12:00 PM, Jesper Dangaard Brouer wrote: > > > > On Tue, 3 Jan 2017 17:07:49 +0100 Vlastimil Babka wrote: > > > >> On 12/20/2016 02:28 PM, Jesper Dangaard Brouer wrote: > >>> The focus

[PATCH net-next v2 2/4] net: switchdev: Add object dump deferred operation

2017-01-09 Thread Florian Fainelli
Add plumbing required to perform dump operations in a deferred context, this mostly wraps the existing switchdev_obj_port_dump() function into a switchdev_obj_port_dump_now() and adds two wrappers (normal and deferred) around. Signed-off-by: Florian Fainelli ---

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

2017-01-09 Thread Florian Fainelli
Add switchdev_port_bridge_getlink_deferred() which does a deferred object dump operation, this is required for e.g: DSA switches which typically have sleeping I/O operations which is incompatible with being in atomic context obviously. Signed-off-by: Florian Fainelli ---

Re: [PATCH net-next 0/4] net: dsa: Make dsa_switch_ops const

2017-01-09 Thread David Miller
From: Florian Fainelli Date: Sun, 8 Jan 2017 14:52:04 -0800 > This patch series allows us to annotate dsa_switch_ops with a const > qualifier. Series applied, thanks.

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

2017-01-09 Thread David Miller
From: Niklas Söderlund Date: Mon, 9 Jan 2017 16:34:03 +0100 > 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

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

2017-01-09 Thread Stephen Hemminger
On Mon, 9 Jan 2017 22:23:45 +0100 Linus Lüssing wrote: > On Mon, Jan 09, 2017 at 12:44:19PM +0100, M. Braun wrote: > > Am 09.01.2017 um 09:08 schrieb Johannes Berg: > > > Does it make sense to implement the two in separate layers though? > > > > > > Clearly, this

[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

Re: [patch net-next 0/5] mlxsw: small driver update

2017-01-09 Thread David Miller
From: Jiri Pirko Date: Mon, 9 Jan 2017 11:25:43 +0100 > This patchset contains various small "non-net" fixes and enhancements. Series applied, thanks Jiri.

Re: pull-request: mac80211 2017-01-06

2017-01-09 Thread David Miller
From: Johannes Berg Date: Fri, 6 Jan 2017 13:37:20 +0100 > Since the new patch would otherwise cause conflicts, it might be good > to pull net or Linus's next RC containing it into net-next, if you can. Well, needed or not, it is done now :-)

Re: [net-next PATCH 0/3] net: optimize ICMP-reply code path

2017-01-09 Thread David Miller
From: Jesper Dangaard Brouer Date: Mon, 09 Jan 2017 16:03:59 +0100 > This patchset is optimizing the ICMP-reply code path, for ICMP packets > that gets rate limited. A remote party can easily trigger this code > path by sending packets to port number with no listening service.

[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 7/7] net: ipv4: Remove event arg to rt_fill_info

2017-01-09 Thread David Ahern
rt_fill_info has 1 caller with the event set to RTM_NEWROUTE. Given that remove the arg and use RTM_NEWROUTE directly in rt_fill_info. Signed-off-by: David Ahern --- net/ipv4/route.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[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

[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

[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 ++

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.

[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")

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

2017-01-09 Thread Marcelo Ricardo Leitner
On Mon, Jan 09, 2017 at 11:45:02AM -0800, Florian Fainelli wrote: > Add switchdev_port_bridge_getlink_deferred() which does a deferred > object dump operation, this is required for e.g: DSA switches which > typically have sleeping I/O operations which is incompatible with being > in atomic context

Re: [PATCH 0/2] sh_eth: "intgelligent checksum" related cleanups

2017-01-09 Thread David Miller
From: Sergei Shtylyov Date: Sat, 07 Jan 2017 00:01:40 +0300 >Here's a set of 2 patches against DaveM's 'net.git' repo, as they are based > on a couple patches merged there recently; however, the patches are destined > for 'net-next.git' (once 'net.git'

Re: [PATCH net-next 0/4] net: switchdev: Avoid sleep in atomic with DSA

2017-01-09 Thread Ido Schimmel
On Mon, Jan 09, 2017 at 10:23:20PM +0100, Andrew Lunn wrote: > > Truth be told, I don't quite understand why switchdev infra even tries > > to dump the VLANs from the device. Like, in which situations is this > > going to be different from what the software bridge reports? > > What happens when

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. > >

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

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

[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

[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

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

[PATCH net-next 4/4] net: dsa: Utilize switchdev_port_bridge_getlink_deferred()

2017-01-09 Thread Florian Fainelli
Fixes the following sleeping in atomic splat: [ 69.008021] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:752 [ 69.016523] in_atomic(): 1, irqs_disabled(): 0, pid: 1528, name: bridge [ 69.023167] INFO: lockdep is turned off. [ 69.027118] CPU: 1 PID: 1528

[PATCH net-next 2/4] net: switchdev: Add object dump deferred operation

2017-01-09 Thread Florian Fainelli
Add plumbing required to perform dump operations in a deferred context, this mostly wraps the existing switchdev_obj_port_dump() function into a switchdev_obj_port_dump_now() and adds two wrappers (normal and deferred) around. Signed-off-by: Florian Fainelli ---

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

2017-01-09 Thread Florian Fainelli
Add switchdev_port_bridge_getlink_deferred() which does a deferred object dump operation, this is required for e.g: DSA switches which typically have sleeping I/O operations which is incompatible with being in atomic context obviously. Signed-off-by: Florian Fainelli ---

[PATCH net-next 0/4] net: switchdev: Avoid sleep in atomic with DSA

2017-01-09 Thread Florian Fainelli
Hi all, This patch series is to resolve a sleeping function called in atomic context debug splat that we observe with DSA. Let me know what you think, I was also wondering if we should just always make switchdev_port_vlan_fill() set SWITCHDEV_F_DEFER, but was afraid this could cause invalid

[PATCH net-next 1/4] net: switchdev: Prepare for deferred functions modifying objects

2017-01-09 Thread Florian Fainelli
In preparation for adding support for deferred dump operations, allow specifying a deferred function whose signature allows read/write objects. Signed-off-by: Florian Fainelli --- net/switchdev/switchdev.c | 21 - 1 file changed, 16 insertions(+), 5

Re: [PATCH] tc: make tc linking depend on libtc.a

2017-01-09 Thread Stephen Hemminger
On Tue, 03 Jan 2017 15:32:46 -0800 David Michael wrote: > There was a race condition where the command to link the tc binary > could (rarely) run before the libtc.a archive existed. Applied, thanks. I guess I need a 64 CPU machine.

Re: [GIT] Networking

2017-01-09 Thread Linus Torvalds
On Sun, Jan 8, 2017 at 7:38 PM, David Miller wrote: > > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net Hmm. This still doesn't contain the rtlwifi oops fix that was posted back before christmas. Kalle said it was applied to the wireless-drivers tree as commit

Re: [PATCH iproute2 0/3] ip vrf: minor error message cleanups

2017-01-09 Thread Stephen Hemminger
On Thu, 5 Jan 2017 16:22:20 -0800 David Ahern wrote: > David Ahern (3): > ip vrf: Fix error message when running exec as non-root user > ip vrf: Improve error message for non-root user > ip vrf: Clean up bpf related error messages > > ip/ipvrf.c | 6 +- >

Re: [PATCH net-next 0/4] net: switchdev: Avoid sleep in atomic with DSA

2017-01-09 Thread Andrew Lunn
On Mon, Jan 09, 2017 at 10:48:49PM +0200, Ido Schimmel wrote: > Hi Florian, > > On Mon, Jan 09, 2017 at 11:44:59AM -0800, Florian Fainelli wrote: > > Hi all, > > > > This patch series is to resolve a sleeping function called in atomic context > > debug splat that we observe with DSA. > > > >

[PATCH net-next 1/7] net: ipv4: refactor __ip_route_output_key_hash

2017-01-09 Thread David Ahern
A later patch wants access to the fib result on an output route lookup with the rcu lock held. Refactor __ip_route_output_key_hash, pushing the logic between rcu_read_lock ... rcu_read_unlock into a new helper that takes the fib_result as an input arg. To keep the name length under control remove

[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

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!

  1   2   3   4   >