Re: [PATCH net-next 0/3] l2tp: module autoloading

2015-09-24 Thread James Chapman
On 24/09/15 05:33, Stephen Hemminger wrote: > With L2TP it was necessary to manually load modules > which is a nuisance and not required with other tunneling > protocols. This set of patches adds the aliases and module > load hook to get rid of the necessity of modprobing. Looks good. Acked-By:

Re: [PATCH 1/7] 8139cp: Improve accuracy of cp_interrupt() return, to survive IRQ storms

2015-09-24 Thread Francois Romieu
David Woodhouse : [...] > Haha, right. Want me to roll that in and resubmit that patch? Yes. It's your series and you are ultimately testing it anyway. -- Ueimor -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to

[patch net-next v3 07/10] switchdev: remove "NONE" transaction phase

2015-09-24 Thread Jiri Pirko
From: Jiri Pirko Shouldn't have been there in the first place. Now it is unused, kill it. Signed-off-by: Jiri Pirko --- include/net/switchdev.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/net/switchdev.h b/include/net/switchdev.h index

[patch net-next v3 08/10] switchdev: remove "ABORT" transaction phase

2015-09-24 Thread Jiri Pirko
From: Jiri Pirko No longer used by drivers, as transaction queue with item destructors takes care of abort phase internally in switchdev code. So kill it. Signed-off-by: Jiri Pirko --- include/net/switchdev.h | 1 - net/switchdev/switchdev.c | 10

[patch net-next v3 00/10] switchdev: transaction item queue and cleanup

2015-09-24 Thread Jiri Pirko
From: Jiri Pirko Jiri Pirko (10): switchdev: rename "trans" to "trans_ph". switchdev: introduce transaction item queue for attr_set and obj_add switchdev: move transaction phase enum under transaction structure switchdev: add switchdev_trans_ph_prepare/commit helpers

[patch net-next v3 09/10] dsa: use prepare/commit switchdev transaction helpers

2015-09-24 Thread Jiri Pirko
From: Jiri Pirko The enum is going to disappear, use the helpers instead. Signed-off-by: Jiri Pirko --- net/dsa/slave.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/net/dsa/slave.c b/net/dsa/slave.c index

[patch net-next v3 03/10] switchdev: move transaction phase enum under transaction structure

2015-09-24 Thread Jiri Pirko
From: Jiri Pirko Before it disappears completely, move transaction phase enum under transaction structure and make attr/obj structures a bit cleaner. Signed-off-by: Jiri Pirko --- drivers/net/ethernet/rocker/rocker.c | 17 +

[patch net-next v3 06/10] rocker: use switchdev transaction queue for allocated memory

2015-09-24 Thread Jiri Pirko
From: Jiri Pirko Benefit from previously introduced transaction item queue infrastructure and remove rocker specific transaction memory management. Signed-off-by: Jiri Pirko --- v1->v2: - free mem in case of none and commit transaction ---

Re: [PATCH net 0/2] lwtunnel: make it really work, for IPv4

2015-09-24 Thread Jiri Benc
On Thu, 24 Sep 2015 00:54:00 -0500, Eric W. Biederman wrote: > My only interest in this is to help figure out how to make IPv6 ndisc > work over light weight tunnels. Thanks for that. However, as much as some of the things you wrote in this mail make sense (see below), I don't see how they help

Re: [PATCH v2] Fix AF_PACKET ABI breakage in 4.2

2015-09-24 Thread Michael S. Tsirkin
On Thu, Sep 24, 2015 at 09:25:45AM +0200, Greg Kurz wrote: > On Wed, 23 Sep 2015 19:45:08 +0100 > David Woodhouse wrote: > > > Commit 7d82410950aa ("virtio: add explicit big-endian support to memory > > accessors") accidentally changed the virtio_net header used by > >

Re: [PATCH v2 RFC] 8139cp: Fix GSO MSS handling

2015-09-24 Thread Eric Dumazet
On Thu, 2015-09-24 at 11:38 +0100, David Woodhouse wrote: > When fixing the TSO support I noticed we just mask ->gso_size with the > MSSMask value and don't care about the consequences. > > Provide a .ndo_features_check() method which drops the NETIF_F_TSO > feature for any skb which would exceed

[PATCH net-next] net: Fix Hisilicon Network Subsystem Support Compilation

2015-09-24 Thread huangdaode
This patch fixes the compilation error with arm allmodconfig, this error generated due to unavailability of readq on 32-bit platform which was found during net-next daily compilation Signed-off-by: huangdaode Singed-off-by: yankejian ---

Re: [PATCH v2] Fix AF_PACKET ABI breakage in 4.2

2015-09-24 Thread David Woodhouse
On Thu, 2015-09-24 at 12:55 +0300, Michael S. Tsirkin wrote: > > I'm fine with this patch > > Acked-by: Michael S. Tsirkin Thanks. In fact Dave has already merged it. > but if you want to re-work it along the lines suggested > by Greg, that's also fine with me. If I'm going

RE: [PATCH net-next 3/9] net: Remove e_nobufs label from ip_route_input_slow

2015-09-24 Thread David Laight
From: Eric W. Biederman > Sent: 23 September 2015 03:15 > David Ahern writes: > > > e_nobufs has 1 user. Move setting err to -ENOBUFS for the 1 user and > > use the goto out label instead of e_nobufs. Stepping stone patch; next > > one moves rth code into a helper

[PATCH net] ppp: fix lockdep splat in ppp_dev_uninit()

2015-09-24 Thread Guillaume Nault
ppp_dev_uninit() locks all_ppp_mutex while under rtnl mutex protection. ppp_create_interface() must then lock these mutexes in that same order to avoid possible deadlock. [ 120.880011] == [ 120.880011] [ INFO: possible circular locking

[PATCH iproute2] tc: fq: allow setting and retrieving orphan_mask

2015-09-24 Thread Eric Dumazet
From: Eric Dumazet linux-3.19 fq packet scheduler got a new attribute, controlling number of 'flows' holding packets not attached to a socket (forwarding usage) kernel commit is 06eb395fa9856b5a87cf7d80baee2a0ed3cdb9d7 ("pkt_sched: fq: better control of DDOS traffic") This

[PATCH v2 RFC] 8139cp: Fix GSO MSS handling

2015-09-24 Thread David Woodhouse
When fixing the TSO support I noticed we just mask ->gso_size with the MSSMask value and don't care about the consequences. Provide a .ndo_features_check() method which drops the NETIF_F_TSO feature for any skb which would exceed the maximum, and thus forces it to be segmented by software. Then

RFC: ss: improve horizontal output scaling

2015-09-24 Thread Phil Sutter
Hi, Currently, ss scales it's output to the available horizontal screen space available, so that the regular columns (Netid, State, Recv-Q, Send-Q, Local Address:Port and Peer Address:Port) use the maximum space available and extended information (e.g. users) get wrapped into a new line. While

[PATCH net-next 1/2] vxlan: make vxlan_sock_add and vxlan_sock_release complementary

2015-09-24 Thread Jiri Benc
Make vxlan_sock_add both alloc the socket and attach it to vxlan_dev. Let vxlan_sock_release accept vxlan_dev as its parameter instead of vxlan_sock. This makes vxlan_sock_add and vxlan_sock release complementary. It reduces code duplication in the next patch. Signed-off-by: Jiri Benc

[PATCH net-next 0/2] vxlan: support both IPv4 and IPv6 sockets

2015-09-24 Thread Jiri Benc
Note: this needs net merged into net-next in order to apply. It's currently not easy enough to work with metadata based vxlan tunnels. In particular, it's necessary to create separate network interfaces for IPv4 and IPv6 tunneling. Assigning an IPv6 address to an IPv4 interface is allowed yet

[PATCH net-next 2/2] vxlan: support both IPv4 and IPv6 sockets in a single vxlan device

2015-09-24 Thread Jiri Benc
For metadata based vxlan interface, open both IPv4 and IPv6 socket. This is much more user friendly: it's not necessary to create two vxlan interfaces and pay attention to using the right one in routing rules. Signed-off-by: Jiri Benc --- drivers/net/vxlan.c | 128

Re: [PATCH v2] Fix AF_PACKET ABI breakage in 4.2

2015-09-24 Thread Michael S. Tsirkin
On Wed, Sep 23, 2015 at 07:45:08PM +0100, David Woodhouse wrote: > Commit 7d82410950aa ("virtio: add explicit big-endian support to memory > accessors") accidentally changed the virtio_net header used by > AF_PACKET with PACKET_VNET_HDR from host-endian to big-endian. > > Since

[PATCH] net: via/Kconfig: GENERIC_PCI_IOMAP required if PCI not selected

2015-09-24 Thread Sudip Mukherjee
The builds of allmodconfig of avr32 is failing with: drivers/net/ethernet/via/via-rhine.c:1098:2: error: implicit declaration of function 'pci_iomap' [-Werror=implicit-function-declaration] drivers/net/ethernet/via/via-rhine.c:1119:2: error: implicit declaration of function 'pci_iounmap'

[PATCH nf-next] netfilter: Line layout whitespace fixes

2015-09-24 Thread Ian Morris
Fixes various whitespace issues detected by checkpatch (e.g. adding spaces between operations, replacing spaces with tabs, etc) No changes detected by objdiff. Signed-off-by: Ian Morris --- net/bridge/netfilter/ebt_among.c | 2 +-

Re: [Linux 4.2-rc8+...v4.3-rc2] REGRESSION: ppp: circular locking dependency detected: [pppd] ppp_dev_uninit() | rtnl_lock()

2015-09-24 Thread Guillaume Nault
On Wed, Sep 23, 2015 at 11:21:50PM +0200, Sedat Dilek wrote: > On Wed, Sep 23, 2015 at 10:46 PM, Sedat Dilek wrote: > > On Wed, Sep 23, 2015 at 12:38 PM, Guillaume Nault > > wrote: > > Do you mind to send a proper patch with subject-line and

Re: [PATCH 2/2] Convert smsc911x to use ACPI as well as DT

2015-09-24 Thread David Woodhouse
Hi Catalin, I understand your concerns, but I'm still not convinced of your conclusion. On Thu, 2015-09-24 at 11:31 +0100, Catalin Marinas wrote: > PRP0001 opens the door to any DT-like properties in ACPI and, knowing > how the ARM ecosystem works, I'm pretty sure we'll soon lose control (if >

Fwd: Delivery Status Notification (Failure)

2015-09-24 Thread Naveen
Hi Right now the only way to detect if an interface has a peer(veth) is touse ethtool -S. Instead I was thinking of adding it to device attributes as a peer_ifndex entry. In drivers/net/veth.c I could add an entry to dev->groups for a veth specific group. Would that be acceptable ? Thanks

Re: [PATCH net 0/2] lwtunnel: make it really work, for IPv4

2015-09-24 Thread Eric W. Biederman
Thomas Graf writes: > On 09/23/15 at 04:09pm, Eric W. Biederman wrote: > > [...] > >> *Blink* You were targeting net.git with a feature enhancement >> I will just ignore that. > > The point of this series is to not expose the src and dst port Netlink > bits to user space in a

[patch net-next v3 02/10] switchdev: introduce transaction item queue for attr_set and obj_add

2015-09-24 Thread Jiri Pirko
From: Jiri Pirko Now, the memory allocation in prepare/commit state is done separatelly in each driver (rocker). Introduce the similar mechanism in generic switchdev code, in form of queue. That can be used not only for memory allocations, but also for different items. Abort

[patch net-next v3 10/10] switchdev: reduce transaction phase enum down to a boolean

2015-09-24 Thread Jiri Pirko
From: Jiri Pirko Now, since we have only 2 values for transaction phase, just use bool. Signed-off-by: Jiri Pirko --- include/net/switchdev.h | 11 +++ net/switchdev/switchdev.c | 8 2 files changed, 7 insertions(+), 12 deletions(-)

[net-next 10/18] ixgbe: Correct setting of RDRXCTL register for X550* devices

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad Setting the X550* RDRXCTL register should fall through into X540 and 82599, not 82598. Signed-off-by: Mark Rustad Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher

[net-next 14/18] ixgbe: Correct several flaws with with DCA setup

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad This change does two things. First, it makes it so that we always set the relaxed ordering bits related to the DCA registers even if DCA is not enabled. Second, it moves the configuration out of the ixgbe_down function and into the ixgbe_configure

[net-next 02/18] ixgbe: Allow reduced delays during SFP detection

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad Reduce the number of retries during PHY detection. This reduces pauses when no SFP is present. Once an SFP is detected, the normal retry count will be used. Signed-off-by: Mark Rustad Tested-by: Phil Schmitt

[net-next 18/18] ixgbe: Advance version to 4.2.1

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad With the addition of X550em_x SFP+ support, the driver is now functionally equivalent to what will be the 4.2.1 driver when released, so change the version to match. Signed-off-by: Mark Rustad Tested-by: Krishneil Singh

[net-next 17/18] ixgbe: X540 thermal warning interrupt not a GPI

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad The X540 thermal interrupt (IXGBE_EIMS_TS) is not an SDP, so it doesn't need to be enabled in ixgbe_setup_gpie(). In fact the value is simply not for the GPIE register at all. Signed-off-by: Mark Rustad Signed-off-by: Jeff

[net-next 07/18] ixgbe: Limit SFP polling rate

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad Reduce the frequency of polling for SFP modules. Because the service task sometimes runs at high rates, we can poll for SFPs too often. When an SFP is not present, the I2C timeouts that result are very costly. So, prevent SFP polling from being done

[net-next 05/18] ixgbe: Add logic to reset CS4227 when needed

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad On some hardware platforms, the CS4227 does not initialize properly. Detect those cases and reset it appropriately. Signed-off-by: Mark Rustad Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher

[net-next 01/18] ixgbe: Clear I2C destination location

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad Clear the destination location for I2C data initially so that the received data will not be affected by previous attempts. This could have returned wrong data in certain retry sequences. Signed-off-by: Mark Rustad Tested-by:

[net-next 03/18] ixgbe: Add X550EM_x dual-speed SFP+ support

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad This patch adds X550EM_x SFP+ dual-speed support. 82599 fiber link code was moved from ixgbe_82599.c to ixgbe_common.c for use by X550EM. SFP MAC link code is added to x550EM. Signed-off-by: Mark Rustad Tested-by: Phil Schmitt

[net-next 00/18][pull request] Intel Wired LAN Driver Updates 2015-09-23

2015-09-24 Thread Jeff Kirsher
This series contains updates to ixgbe only. Mark provides all the changes in this series, first clears the destination location for I2C data initially so that the received data will not be corrupted by previous attempts. Then reduced the pauses/delays in the PHY detection when no SFP is present

[net-next 11/18] ixgbe: Add small packet padding support for X550

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad This patch sets RDRXCTL.PSP when the driver is in SRIOV mode which enables padding of small packets. Signed-off-by: Mark Rustad Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher

[net-next 06/18] ixgbe: Allow SFP+ on more than 82598 and 82599

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad Since SFP+ can be used with some X550 devices, permit them to be detected. Signed-off-by: Mark Rustad Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher ---

[net-next 15/18] ixgbe: Only clear adapter_stopped if ixgbe_setup_fc succeeded

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad A logic error here results in the adapter_stopped flag only being cleared when ixgbe_setup_fc returns an error. Correct the logic. Signed-off-by: Mark Rustad Signed-off-by: Jeff Kirsher ---

[net-next 16/18] ixgbe: Fix FCRTH value in VM-to-VM loopback mode

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad The 82599 and X540 datasheets require that FCRTH be "set" for Tx switching (VM-to-VM loopback) but it did not previously specify what the value should be set to. It has now been determined that the correct value is RXPBSIZE - (24*1024). This setting is

[net-next 08/18] ixgbe: Add I2C bus mux support

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad Take control of an I2C mux that selects which SFP is attached to the I2C bus. The control of the mux is captured in the taking and releasing of the related semaphore. Because only port 1 can control the mux, port 1 always leaves the mux set to select

[net-next 04/18] ixgbe: Fix 1G and 10G link stability for X550EM_x SFP+

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad Configures the CS4227 correctly for both 1G and 10G operation, by moving the code to ixgbe_setup_mac_link_sfp_x550em(). It needs to be in this function because we need both the module type and the speed, and this is the only function in the init flow

[net-next 13/18] ixgbe: Add new X550EM SFP+ device ID

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad Add new device ID for X550EM device with SFPs. Signed-off-by: Mark Rustad Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher ---

[net-next 12/18] ixgbe: Update ixgbe_disable_pcie_master flow for X550*

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad This patch skips the PCI transactions pending check in ixgbe_disable_pcie_master. This is done to addresses a known HW issue where the PCI transactions pending bit sticks high when there are pending transactions. HW engineering instructed to workaround

[net-next 09/18] ixgbe: Correct error path in semaphore handling

2015-09-24 Thread Jeff Kirsher
From: Mark Rustad The timeout path is supposed to release the semaphore, so do that. Signed-off-by: Mark Rustad Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher ---

[PATCH net-next] net: remove unused argument of __netdev_find_adj()

2015-09-24 Thread Michal Kubecek
The __netdev_find_adj() helper does not use its first argument, only the device to find and list to walk through. Signed-off-by: Michal Kubecek --- net/core/dev.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/net/core/dev.c

[PATCH WTF] 8139cp: Fix GSO MSS handling

2015-09-24 Thread David Woodhouse
When fixing the TSO support I noticed we just mask skb->gso_size with the MSSMask value and don't care about the consequences. That seems... unsagacious. Instead of masking, WARN and drop the packet if the maximum is exceeded. And call netif_set_gso_max_size() so it shouldn't happen in the first

Re: [PATCH v2] Fix AF_PACKET ABI breakage in 4.2

2015-09-24 Thread Greg Kurz
On Wed, 23 Sep 2015 19:45:08 +0100 David Woodhouse wrote: > Commit 7d82410950aa ("virtio: add explicit big-endian support to memory > accessors") accidentally changed the virtio_net header used by > AF_PACKET with PACKET_VNET_HDR from host-endian to big-endian. > Hi David,

[PATCH iproute2] ss: fix file-based filtering segfault

2015-09-24 Thread Dan Webster
Commit 1527a17 introduced a change where the second of two ssfilter_parse() calls in ss.c was moved outside of a conditional block (ss.c: ~3575). This commit enabled the parsing of services, such as 'sport = :ssh', but inadvertently broke the '-F' file-based filtering: -- $ cat filt.txt src

[patch net-next v3 01/10] switchdev: rename "trans" to "trans_ph".

2015-09-24 Thread Jiri Pirko
From: Jiri Pirko This is temporary, name "trans" will be used for something else and "trans_ph" will eventually disappear. Signed-off-by: Jiri Pirko --- v1->v2: - no change v2->v3: - rebased on top of Scott's ageing patchset ---

[patch net-next v3 05/10] rocker: push struct switchdev_trans down through rocker code

2015-09-24 Thread Jiri Pirko
From: Jiri Pirko There will be needed to have switchdev_trans available down in the call chain, so propagate it instead of trans phase enum. This enum will be removed anyway. Also, use prepare/commit phase check helpers to get information about current phase of transaction.

[patch net-next v3 04/10] switchdev: add switchdev_trans_ph_prepare/commit helpers

2015-09-24 Thread Jiri Pirko
From: Jiri Pirko Add helpers which should be used int attr_set/obj_add switchdev ops to check the phase of transaction. Signed-off-by: Jiri Pirko --- include/net/switchdev.h | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: sky2: rx filter bug

2015-09-24 Thread Mirko Lindner
Hi Jiri, oh boy this is a long time. I'm not sure about the status. I'll check it again and contact you. My last last status was that I was not able to reproduce the values here... Thanks, Mirko On 23/09/15 12:59, Jiri Pirko wrote: > Hi Mirko. > > 3 years ago I reported an issue with rx

Re: [PATCH] net: sun4i-emac: Properly free resources on probe failure and remove

2015-09-24 Thread Maxime Ripard
On Wed, Sep 23, 2015 at 11:39:16AM +0200, Hans de Goede wrote: > Fix sun4i-emac not releasing the following resources: > -iomapped memory not released on probe-failure nor on remove > -clock not getting disabled on probe-failure nor on remove > -sram not being released on remove > > And while at

Re: [PATCH net 0/2] lwtunnel: make it really work, for IPv4

2015-09-24 Thread Jiri Benc
On Wed, 23 Sep 2015 16:09:14 -0500, Eric W. Biederman wrote: > *Blink* You were targeting net.git with a feature enhancement > I will just ignore that. I do not. This is set is a minimal fix to make IP based lwtunnels with tunnel information specified in a route working (for IPv4, anyway).

[PATCH net] lwtunnel: remove source and destination UDP port config option

2015-09-24 Thread Jiri Benc
The UDP tunnel config is asymmetric wrt. to the ports used. The source and destination ports from one direction of the tunnel are not related to the ports of the other direction. We need to be able to respond to ARP requests using the correct ports without involving routing. As the consequence,

Re: [PATCH net-next] BNX2: fix a Null Pointer for stats_blk

2015-09-24 Thread Weidong Wang
On 2015/9/24 13:34, David Miller wrote: > From: Weidong Wang > Date: Thu, 24 Sep 2015 10:00:45 +0800 > >> It does affect the intention. Although, the problem exists then makes the >> system panic within some case. >> >> Do you have any idea about it? > > Allocate the

Re: [PATCH 2/2] Convert smsc911x to use ACPI as well as DT

2015-09-24 Thread David Woodhouse
On Wed, 2015-09-23 at 16:56 -0700, Hanjun Guo wrote: > > It really depends on the people who writing the ASL code (DSDT), > I'm not sure if Windows will use _DSD and how to use it, but > firmware guys may just use the device ID to make the firmware > to be usable both by Linux and Windows, and

Re: [PATCH 2/2] Convert smsc911x to use ACPI as well as DT

2015-09-24 Thread Catalin Marinas
On Wed, Sep 23, 2015 at 06:57:03PM +0100, Sudeep Holla wrote: > On 23/09/15 18:22, Jeremy Linton wrote: > >|FWIW, mainline booting with this patch on Juno r1 with ACPI enabled > >dies a |horrible death: > > > >Sorry about the delay, I didn't see this message. > > > > > > > >|How did you get this

Re: RFC: ss: improve horizontal output scaling

2015-09-24 Thread Eric Dumazet
On Thu, 2015-09-24 at 13:16 +0200, Phil Sutter wrote: > Hi, > > Currently, ss scales it's output to the available horizontal screen > space available, so that the regular columns (Netid, State, Recv-Q, > Send-Q, Local Address:Port and Peer Address:Port) use the maximum space > available and

[v5, 5/6] fsl/fman: Add FMan Port Support

2015-09-24 Thread igal.liberman
From: Igal Liberman Add the Data Path Acceleration Architecture Frame Manger Port Driver. The FMan driver uses a module called "Port" to represent the physical TX and RX ports. Each FMan version has different number of physical ports. This patch adds The FMan Port

Re: Delivery Status Notification (Failure)

2015-09-24 Thread Jiri Benc
On Thu, 24 Sep 2015 08:03:39 -0400, Naveen wrote: > Right now the only way to detect if an interface has a peer(veth) > is touse ethtool -S. Instead I was thinking of adding it to device > attributes as a peer_ifndex entry. In drivers/net/veth.c I could add > an entry to > dev->groups for a

[v5, 1/6] fsl/fman: Add FMan MURAM support

2015-09-24 Thread igal.liberman
From: Igal Liberman Add Frame Manager Multi-User RAM support. This internal FMan memory block is used by the FMan hardware modules, the management being made through the generic allocator. The FMan Internal memory, for example, is used for allocating transmit and

[v5, 2/6] fsl/fman: Add FMan support

2015-09-24 Thread igal.liberman
From: Igal Liberman Add the Data Path Acceleration Architecture Frame Manger Driver. The FMan embeds a series of hardware blocks that implement a group of Ethernet interfaces. This patch adds The FMan configuration, initialization and runtime control routines. The

Re: RFC: ss: improve horizontal output scaling

2015-09-24 Thread Phil Sutter
On Thu, Sep 24, 2015 at 05:25:47AM -0700, Eric Dumazet wrote: > On Thu, 2015-09-24 at 13:16 +0200, Phil Sutter wrote: > > Hi, > > > > Currently, ss scales it's output to the available horizontal screen > > space available, so that the regular columns (Netid, State, Recv-Q, > > Send-Q, Local

[v5, 4/6] fsl/fman: Add FMan SP support

2015-09-24 Thread igal.liberman
From: Igal Liberman The Storage Profiles contain parameters that are used by the FMan for frame reception and transmission. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Makefile |2 +-

Re: RFC: ss: improve horizontal output scaling

2015-09-24 Thread Eric Dumazet
On Thu, 2015-09-24 at 14:36 +0200, Phil Sutter wrote: > This is because TIOCGWINSZ returns 80 if the output is a pipe. Not exactly. ss doesn't even call TIOCGWINSZ if output is a pipe. Exact code is : screen_width = 80; if (isatty(STDOUT_FILENO)) { struct

Re: [PATCH v2 RFC] 8139cp: Fix GSO MSS handling

2015-09-24 Thread David Woodhouse
On Thu, 2015-09-24 at 05:05 -0700, Eric Dumazet wrote: > > Right, netif_skb_features() only has the following checks : > > if (gso_segs > dev->gso_max_segs || gso_segs < dev->gso_min_segs) > features &= ~NETIF_F_GSO_MASK; > > But now we have .ndo_features_check() we could remove this

[v5, 0/6] Freescale DPAA FMan

2015-09-24 Thread igal.liberman
From: Igal Liberman The Freescale Data Path Acceleration Architecture (DPAA) is a set of hardware components on specific QorIQ multicore processors. This architecture provides the infrastructure to support simplified sharing of networking interfaces and accelerators

Re: RFC: ss: improve horizontal output scaling

2015-09-24 Thread Phil Sutter
On Thu, Sep 24, 2015 at 06:27:59AM -0700, Eric Dumazet wrote: > On Thu, 2015-09-24 at 14:36 +0200, Phil Sutter wrote: > > > This is because TIOCGWINSZ returns 80 if the output is a pipe. > > Not exactly. > > ss doesn't even call TIOCGWINSZ if output is a pipe. Oh, you're absolutely right of

Re: [PATCH net] lwtunnel: remove source and destination UDP port config option

2015-09-24 Thread Thadeu Lima de Souza Cascardo
On Thu, Sep 24, 2015 at 10:43:07AM +0200, Jiri Benc wrote: > The UDP tunnel config is asymmetric wrt. to the ports used. The source and > destination ports from one direction of the tunnel are not related to the > ports of the other direction. We need to be able to respond to ARP requests > using

Re: Fwd: Delivery Status Notification (Failure)

2015-09-24 Thread Andy Gospodarek
On Thu, Sep 24, 2015 at 08:03:39AM -0400, Naveen wrote: > Hi > Right now the only way to detect if an interface has a peer(veth) > is touse ethtool -S. Instead I was thinking of adding it to device > attributes as a peer_ifndex entry. In drivers/net/veth.c I could add > an entry to >

[v5, 6/6] fsl/fman: Add FMan MAC driver

2015-09-24 Thread igal.liberman
From: Igal Liberman This patch adds the Ethernet MAC driver supporting the three different types of MACs: dTSEC, tGEC and mEMAC. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Makefile |3 +-

[PATCH 01/19] SUNRPC: fix variable type

2015-09-24 Thread Andrzej Hajda
Due to incorrect len type bc_send_request returned always zero. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2046107 Signed-off-by: Andrzej Hajda

Re: [PATCH] tcp: Use absolute system clock for TCP timestamps

2015-09-24 Thread Eric Dumazet
On Thu, Sep 24, 2015 at 7:14 AM, Jovi Zhangwei wrote: > From f455dc3958593250909627474100f6cc5c158a5c Mon Sep 17 00:00:00 2001 > From: Marek Majkowski > Date: Fri, 11 Sep 2015 06:05:07 -0700 > Subject: [PATCH] tcp: Use absolute system clock for TCP

[v3 2/8] dpaa_eth: add support for DPAA Ethernet

2015-09-24 Thread Madalin Bucur
This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, BMan, PAMU and FMan drivers to deliver Ethernet connectivity on the Freescale DPAA QorIQ platforms. Signed-off-by: Madalin Bucur ---

[v3 0/8] dpaa_eth: Add the Freescale DPAA Ethernet driver

2015-09-24 Thread Madalin Bucur
This patch series adds the Ethernet driver for the Freescale QorIQ Data Path Acceleration Architecture (DPAA). This version includes changes following the feedback received on previous versions from Eric Dumazet, Bob Cochran, Joe Perches, Paul Bolle, Joakim Tjernlund, Scott Wood - thank you for

Re: [PATCH 2/2] Convert smsc911x to use ACPI as well as DT

2015-09-24 Thread Lorenzo Pieralisi
On Thu, Sep 24, 2015 at 12:52:38PM +0100, David Woodhouse wrote: [...] > And think about it... we *really* don't want a given peripheral device > to have *different* bindings depending on whether it's discovered with > a specific ACPI HID, vs. when it's discovered via DT or the PRP0001 > HID.

[PATCH 16/19] r8169: fix handling rtl_readphy result

2015-09-24 Thread Andrzej Hajda
The function can return negative value. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2046107 Signed-off-by: Andrzej Hajda --- Hi, To avoid

[PATCH 07/19] net: hisilicon: fix handling platform_get_irq result

2015-09-24 Thread Andrzej Hajda
The function can return negative value. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2046107 Signed-off-by: Andrzej Hajda --- Hi, To avoid

[PATCH 18/19] mac80211: make ieee80211_new_mesh_header return unsigned

2015-09-24 Thread Andrzej Hajda
The function returns always non-negative values. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2046107 Signed-off-by: Andrzej Hajda --- Hi, To

[PATCH 17/19] tools: bpf_jit_disasm: make get_last_jit_image return unsigned

2015-09-24 Thread Andrzej Hajda
The function returns always non-negative values. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2046107 Signed-off-by: Andrzej Hajda --- Hi, To

Re: [PATCH 18/19] mac80211: make ieee80211_new_mesh_header return unsigned

2015-09-24 Thread Johannes Berg
On Thu, 2015-09-24 at 16:00 +0200, Andrzej Hajda wrote: > The function returns always non-negative values. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. > You should at least compile your patches. johannes -- To

RE: [RFC v2 net-next 00/10] Add new drivers: qed & qede

2015-09-24 Thread Ariel Elior
> -Original Message- > From: Yuval Mintz [mailto:yuval.mi...@qlogic.com] > Sent: Thursday, September 17, 2015 5:24 PM > To: netdev > Cc: Ariel Elior ; Yuval Mintz > Subject: [RFC v2 net-next 00/10] Add new drivers:

[v3 6/8] dpaa_eth: add ethtool statistics

2015-09-24 Thread Madalin Bucur
Add a series of counters to be exported through ethtool: - add detailed counters for reception errors; - add detailed counters for QMan enqueue reject events; - count the number of fragmented skbs received from the stack; - count all frames received on the Tx confirmation path; - add congestion

Re: [PATCH 2/2] Convert smsc911x to use ACPI as well as DT

2015-09-24 Thread David Woodhouse
On Thu, 2015-09-24 at 15:01 +0100, Lorenzo Pieralisi wrote: > On Thu, Sep 24, 2015 at 12:52:38PM +0100, David Woodhouse wrote: > > [...] > > > And think about it... we *really* don't want a given peripheral device > > to have *different* bindings depending on whether it's discovered with > > a

[v3 1/8] devres: add devm_alloc_percpu()

2015-09-24 Thread Madalin Bucur
Introduce managed counterparts for alloc_percpu() and free_percpu(). Add devm_alloc_percpu() and devm_free_percpu() into the managed interfaces list. Signed-off-by: Madalin Bucur Tested-by: Madalin-Cristian Bucur ---

[v3 7/8] dpaa_eth: add sysfs exports

2015-09-24 Thread Madalin Bucur
Export Frame Queue and Buffer Pool IDs through sysfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 3 +

[v3 5/8] dpaa_eth: add ethtool functionality

2015-09-24 Thread Madalin Bucur
Add support for basic ethtool operations. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- .../net/ethernet/freescale/dpaa/dpaa_eth_common.c | 2 + .../net/ethernet/freescale/dpaa/dpaa_eth_common.h | 3 +

[v3 8/8] dpaa_eth: add trace points

2015-09-24 Thread Madalin Bucur
Add trace points on the hot processing path. Signed-off-by: Ruxandra Ioana Radulescu --- drivers/net/ethernet/freescale/dpaa/Makefile | 1 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 12 ++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h

Re: [PATCH] tcp: Use absolute system clock for TCP timestamps

2015-09-24 Thread Florian Westphal
Eric Dumazet wrote: > On Thu, Sep 24, 2015 at 7:14 AM, Jovi Zhangwei wrote: > > From f455dc3958593250909627474100f6cc5c158a5c Mon Sep 17 00:00:00 2001 > > From: Marek Majkowski > > Date: Fri, 11 Sep 2015 06:05:07 -0700 > > Subject:

Re: [PATCH v2 0/9] Phy, mdiobus, and netdev struct device fixes

2015-09-24 Thread Russell King - ARM Linux
On Wed, Sep 23, 2015 at 04:24:17PM -0700, David Miller wrote: > From: Russell King - ARM Linux > Date: Tue, 22 Sep 2015 17:17:10 +0100 > > > This is the second version of the series, with the comments David had > > on the first patch fixed up. Original series description

[net-next PATCH v2 0/3] i40e/i40evf: Fixes for netpoll

2015-09-24 Thread Alexander Duyck
The following patch series is meant to address the fact that i40e and i40evf had several issues in regards to netpoll. First was the fact that they were forcing their budgets to increase to 1. Second was the fact they were incorrectly thinking they were in NAPI context when they weren't.

[net-next PATCH v2 2/3] i40e/i40evf: Drop useless "IN_NETPOLL" flag

2015-09-24 Thread Alexander Duyck
The code in i40e and i40evf is using an "IN_NETPOLL" flag that has never added any value due to the fact that the Rx clean-up is handled in NAPI. As such the flag was set, the queue was scheduled via NAPI, and then polled from the netpoll controller and if any Rx packets were processed the were

[net-next PATCH v2 1/3] i40e/i40evf: Fix handling of napi budget

2015-09-24 Thread Alexander Duyck
The polling routine for i40e was rounding up the budget for Rx cleanup to 1. This is incorrect as the netpoll poll call is expecting no Rx to be processed as the budget passed was 0. Signed-off-by: Alexander Duyck --- drivers/net/ethernet/intel/i40e/i40e_txrx.c |5

[v3 4/8] dpaa_eth: add driver's Tx queue selection mechanism

2015-09-24 Thread Madalin Bucur
Allow the selection of the transmission queue based on the CPU id. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig | 10 ++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.c| 3 +++

  1   2   3   >