Re: [PATCH net] mpls: Change reserved label names to be consistent with netbsd

2015-05-09 Thread David Miller
From: Tom Herbert Date: Thu, 7 May 2015 08:08:51 -0700 > Since these are now visible to userspace it is nice to be consistent > with BSD (sys/netmpls/mpls.h in netBSD). > > Signed-off-by: Tom Herbert Applied, thanks Tom. -- To unsubscribe from this list: send the line "unsubscribe netdev" in t

Re: [PATCH v2] ARM: net: add JIT support for loads from struct seccomp_data.

2015-05-09 Thread David Miller
From: Nicolas Schichan Date: Thu, 7 May 2015 15:00:13 +0200 > Signed-off-by: Nicolas Schichan > --- > > This patch was first sent as part of a serie modifying the core > seccomp code to allow the use of the classic BPF JIT. As the core > changes have been submitted to netdev by Daniel Borkmann

Re: [PATCH] net: deinline netif_tx_stop_queue() and netif_tx_stop_all_queues()

2015-05-09 Thread David Miller
From: Denys Vlasenko Date: Thu, 7 May 2015 13:41:10 +0200 > These functions compile to ~60 bytes of machine code each. As others have suggested, just kill the WARN_ON(). -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org Mo

Re: [PATCH v5 0/2] pktgen changes

2015-05-09 Thread David Miller
From: Jesper Dangaard Brouer Date: Thu, 07 May 2015 16:34:29 +0200 > The following series introduce some pktgen changes > > Patch01: > Cleanup my own work when I introduced NO_TIMESTAMP. > > Patch02: > Took over patch from Alexei, and addressed my own concerns, as Alexie > is too busy with o

Re: [net 0/2][pull request] Intel Wired LAN Driver Updates 2015-05-07

2015-05-09 Thread David Miller
From: Jeff Kirsher Date: Thu, 7 May 2015 05:21:31 -0700 > This series contains updates to igb only. > > Toshiaki provides two fixes for igb, first fixes an issue when changing > the number of rings by ethtool which causes oops because of uninitialized > pointers. The second fix resolves a typo

Re: [PATCH net-next v2 0/7] netns: ease netlink use with a lot of netns

2015-05-09 Thread David Miller
From: Nicolas Dichtel Date: Thu, 7 May 2015 11:02:46 +0200 > This idea was informally discussed in Ottawa / netdev0.1. The goal is to > ease the use/scalability of netns, from a userland point of view. > Today, users need to open one netlink socket per family and per netns. > Thus, when the numb

Re: pull-request: can-next 2015-05-06

2015-05-09 Thread David Miller
From: Marc Kleine-Budde Date: Wed, 6 May 2015 23:21:06 +0200 > this is a pull request of a seven patches for net-next/master. > > Andreas Gröger contributes two patches for the janz-ican3 driver. In > the first patch, the documentation for already existing sysfs entries > is added, the second pa

Re: [PATCH] net: fec: add support of ethtool get_regs

2015-05-09 Thread David Miller
From: Philippe Reynes Date: Sun, 10 May 2015 00:16:21 +0200 > Hi Fabio, > > On 09/05/15 23:59, Fabio Estevam wrote: >> Philippe, >> >> On Sat, May 9, 2015 at 6:17 PM, Russell King - ARM Linux >> wrote: >> >>> Using memcpy_fromio() to copy device registers is not a good idea - >>> it can use a

[PATCH] net: Remove remaining remnants of pm_qos from netdevice.h

2015-05-09 Thread David Ahern
Commit e2c6544829f removed pm_qos from struct net_device but left the comment above header file. Remove those. Signed-off-by: David Ahern Cc: Thomas Graf --- include/linux/netdevice.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h ind

Re: [PATCH] net: fec: add support of ethtool get_regs

2015-05-09 Thread Philippe Reynes
Hi Fabio, On 09/05/15 23:59, Fabio Estevam wrote: Philippe, On Sat, May 9, 2015 at 6:17 PM, Russell King - ARM Linux wrote: Using memcpy_fromio() to copy device registers is not a good idea - it can use a variable access size which can cause bus faults. An example on how memcpy_fromio() c

Re: [net-next PATCH v3 1/4] devicetree: Add compatible string for Zynq Ultrascale+ MPSoC

2015-05-09 Thread David Miller
From: Harini Katakam Date: Wed, 6 May 2015 22:27:15 +0530 > Add "cdns,zynqmp-gem" to be used for Zynq Ultrascale+ MPSoC. > > Signed-off-by: Harini Katakam > Reviewed-by: Punnaiah Choudary Kalluri Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a me

Re: [net-next PATCH v3 4/4] net: macb: Add change_mtu callback with jumbo support

2015-05-09 Thread David Miller
From: Harini Katakam Date: Wed, 6 May 2015 22:27:18 +0530 > Add macb_change_mtu callback; if jumbo frame support is present allow > mtu size changes upto (jumbo max length allowed - headers). > > Signed-off-by: Harini Katakam > Reviewed-by: Punnaiah Choudary Kalluri Applied. -- To unsubscribe

Re: [net-next PATCH v3 3/4] net: macb: Add support for jumbo frames

2015-05-09 Thread David Miller
From: Harini Katakam Date: Wed, 6 May 2015 22:27:17 +0530 > Enable jumbo frame support for Zynq Ultrascale+ MPSoC. > Update the NWCFG register and descriptor length masks accordingly. > Jumbo max length register should be set according to support in SoC; it is > set to 10240 for Zynq Ultrascale+

Re: [net-next PATCH v3 2/4] net: macb: Add compatible string for Zynq Ultrascale+ MPSoC

2015-05-09 Thread David Miller
From: Harini Katakam Date: Wed, 6 May 2015 22:27:16 +0530 > Add compatible string and config structure for Zynq Ultrascale+ MPSoC > > Signed-off-by: Harini Katakam > Reviewed-by: Punnaiah Choudary Kalluri Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the bod

Re: [PATCH v2] ARM: net fix emit_udiv() for BPF_ALU | BPF_DIV | BPF_K intruction.

2015-05-09 Thread David Miller
From: Nicolas Schichan Date: Wed, 6 May 2015 18:31:56 +0200 > In that case, emit_udiv() will be called with rn == ARM_R0 (r_scratch) > and loading rm first into ARM_R0 will result in jit_udiv() function > being called the same dividend and divisor. Fix that by loading rn > first into ARM_R1 and

Re: [PATCH] macvtap add missing ioctls

2015-05-09 Thread David Miller
From: Justin Cormack Date: Wed, 06 May 2015 16:56:15 +0100 > The macvtap driver tries to emulate all the ioctls supported by a normal > tun/tap driver, > however it was missing the generic SIOCGIFHWADDR and SIOCSIFHWADDR ioctls to > get and set > the mac address that are supported by tun/tap. T

Re: [PATCH v2 net-next] tcp: set SOCK_NOSPACE under memory pressure

2015-05-09 Thread David Miller
Applied, thanks a lot for adding so much information to the commit message. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH net-next 2/2] gianfar: Enable changing mac addr when if up

2015-05-09 Thread David Miller
From: Claudiu Manoil Date: Wed, 6 May 2015 18:07:30 +0300 > Use device flag IFF_LIVE_ADDR_CHANGE to signal that > the device supports changing the hardware address when > the device is running. > This allows eth_mac_addr() to change the mac address > also when the network device's interface is op

Re: [PATCH net-next 1/2] gianfar: Move TxFIFO underrun handling to reset path

2015-05-09 Thread David Miller
From: Claudiu Manoil Date: Wed, 6 May 2015 18:07:29 +0300 > Handle TxFIFO underrun exceptions outside the fast path. > A controller reset is more reliable in this exceptional > case, as opposed to re-enabling on-the-fly the Tx DMA. > > As the controller reset is handled outside the fast path > b

Re: pull-request: mac80211-next 2015-05-06

2015-05-09 Thread David Miller
From: David Miller Date: Sat, 09 May 2015 17:28:03 -0400 (EDT) > From: Johannes Berg > Date: Wed, 06 May 2015 16:02:34 +0200 > >> On Wed, 2015-05-06 at 15:59 +0200, Johannes Berg wrote: >>> Hi Dave, >>> >>> This is the first -next pull request for my mac80211-next tree. See >>> below for what'

Re: [PATCH net-next 0/4] BPF updates

2015-05-09 Thread David Miller
From: Daniel Borkmann Date: Wed, 6 May 2015 16:12:26 +0200 > This set gets rid of BPF special handling in seccomp filter preparation > and provides generic infrastructure from BPF side, which eventually also > allows for classic BPF JITs to add support for seccomp filters. I'll apply this serie

Re: [PATCH] net: fec: add support of ethtool get_regs

2015-05-09 Thread David Miller
From: Russell King - ARM Linux Date: Sat, 9 May 2015 22:17:46 +0100 > On Sat, May 09, 2015 at 10:52:08PM +0200, Philippe Reynes wrote: >> +static void fec_enet_get_regs(struct net_device *ndev, >> + struct ethtool_regs *regs, void *regbuf) >> +{ >> +struct fec_enet_pr

Re: pull-request: mac80211-next 2015-05-06

2015-05-09 Thread David Miller
From: Johannes Berg Date: Wed, 06 May 2015 16:02:34 +0200 > On Wed, 2015-05-06 at 15:59 +0200, Johannes Berg wrote: >> Hi Dave, >> >> This is the first -next pull request for my mac80211-next tree. See >> below for what's in it - there isn't that much. >> >> Please let me know if there are any

[PATCH net-next v2 3/6] packet: rollover only to socket with headroom

2015-05-09 Thread Willem de Bruijn
From: Willem de Bruijn Only migrate flows to sockets that have sufficient headroom, where sufficient is defined as having at least 25% empty space. The kernel has three different buffer types: a regular socket, a ring with frames (TPACKET_V[12]) or a ring with blocks (TPACKET_V3). The latter two

[PATCH net-next v2 2/6] packet: rollover prepare: per-socket state

2015-05-09 Thread Willem de Bruijn
From: Willem de Bruijn Replace rollover state per fanout group with state per socket. Future patches will add fields to the new structure. Signed-off-by: Willem de Bruijn --- net/packet/af_packet.c | 21 ++--- net/packet/internal.h | 6 +- 2 files changed, 23 insertions(+

[PATCH] pppoe: drop pppoe device in pppoe_unbind_sock_work

2015-05-09 Thread Felix Fietkau
After receiving a PADT and the socket is closed, user space will no longer drop the reference to the pppoe device. This leads to errors like this: [ 488.57] unregister_netdevice: waiting for eth0.2 to become free. Usage count = 2 Fixes: 287f3a943fe ("pppoe: Use workqueue to die properly whe

[PATCH net-next 2/2] net: sched: further simplify handle_ing

2015-05-09 Thread Daniel Borkmann
Ingress qdisc has no other purpose than calling into tc_classify() that executes attached classifier(s) and action(s). It has a 1:1 relationship to dev->ingress_queue. After having commit 087c1a601ad7 ("net: sched: run ingress qdisc without locks") removed the central ingress lock, one major conte

Re: [PATCH] usbnet: avoid integer overflow in start_xmit

2015-05-09 Thread David Miller
From: "Jason A. Donenfeld" Date: Wed, 6 May 2015 15:09:40 +0200 > transfer_buffer_length is of type u32. It's therefore wrong to assign it > to a signed integer. This patch avoids the overflow. > > It's worth noting that entry->length here is a long; perhaps it would be > beneficial at somepoin

Re: [PATCH] netxen_nic: use spin_[un]lock_bh around tx_clean_lock (2)

2015-05-09 Thread David Miller
From: Tony Camuso Date: Wed, 6 May 2015 09:09:18 -0400 > This patch should have been part of the previous patch having the > same summary. See http://marc.info/?l=linux-kernel&m=143039470103795&w=2 > Unfortunately, I didn't check to see where else this lock was used before > submitting that pat

Re: [PATCH v2 net-next 0/2] tcp: more reliable window probes

2015-05-09 Thread David Miller
From: Eric Dumazet Date: Wed, 6 May 2015 14:26:23 -0700 > This series address a problem caused by small rto_min timers in DC, > leading to either timer storms or early flow terminations. > > We also add two new SNMP counters for proper monitoring : > TCPWinProbe and TCPKeepAlive > > v2: added

Re: [PATCH net-next 2/3] tipc: add broadcast link window set/get to nl api

2015-05-09 Thread David Miller
From: Date: Wed, 6 May 2015 13:58:55 +0200 > From: Richard Alpe > > Add the ability to get or set the broadcast link window through the > new netlink API. The functionality was unintentionally missing from > the new netlink API. Adding this means that we also fix the breakage > in the old API w

Re: [PATCH net-next 3/3] tipc: send explicit not supported error in nl compat

2015-05-09 Thread David Miller
From: Date: Wed, 6 May 2015 13:58:56 +0200 > From: Richard Alpe > > The legacy netlink API treated EPERM (permission denied) as > "operation not supported". > > Reported-by: Tomi Ollila > Signed-off-by: Richard Alpe > Reviewed-by: Erik Hugne > Reviewed-by: Ying Xue Applied. -- To unsubscr

Re: [PATCH net-next 1/3] tipc: fix default link prop regression in nl compat

2015-05-09 Thread David Miller
From: Date: Wed, 6 May 2015 13:58:54 +0200 > From: Richard Alpe > > Default link properties can be set for media or bearer. This > functionality was missed when introducing the NL compatibility layer. > > This patch implements this functionality in the compat netlink > layer. It works the same

Re: [PATCH net-next] cxgb4: Initialize RSS mode for all Ports

2015-05-09 Thread David Miller
From: Hariprasad Shenai Date: Wed, 6 May 2015 19:48:37 +0530 > Implements t4_init_rss_mode() to initialize the rss_mode for all the ports. If > Tunnel All Lookup isn't specified in the global RSS Configuration, then we > need > to specify a default Ingress Queue for any ingress packets which ar

Re: [PATCH v2 net-next 0/9] be2net: patch-set

2015-05-09 Thread David Miller
From: Sathya Perla Date: Wed, 6 May 2015 05:30:31 -0400 > The following patch-set has two new feature additions, and a few > minor fixes and cleanups. > Pls consider applying to the net-next tree. Thanks. Series applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netde

Re: [PATCH] net: amd-xgbe: Add hardware dependency

2015-05-09 Thread David Miller
From: Jean Delvare Date: Wed, 6 May 2015 09:04:40 +0200 > The amd-xgbe driver currently only works with the Seattle SoC, which > is ARM64 architecture, so there is no point in building this driver on > other architectures except for build testing purpose. The dependency > list can be updated late

Re: [PATCH] net: xgene_enet: Set hardware dependency

2015-05-09 Thread David Miller
From: Jean Delvare Date: Wed, 6 May 2015 09:14:34 +0200 > The xgene_enet driver is only useful on X-Gene SoC. > > Signed-off-by: Jean Delvare Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo i

Re: [PATCH net-next 00/14] sfc: Enabling EF10 Vf's, set up vswitching and bind the SFC driver to the VF's

2015-05-09 Thread David Miller
From: Shradha Shah Date: Wed, 6 May 2015 00:53:03 +0100 > This set of patches makes way for the implementation of EF10 > SR-IOV driver starting with some cleanup code. > NIC specific SR-IOV functions are moved to their own header > and netdev_ops are made generic instead of being NIC specific >

Re: [Patch net] net_sched: fix a use-after-free in tc_ctl_tfilter()

2015-05-09 Thread David Miller
From: Cong Wang Date: Tue, 5 May 2015 15:22:02 -0700 > When tcf_destroy() returns true, tp could be already destroyed, > we should not use tp->next after that. > > For long term, we probably should move tp list to list_head. > > Fixes: 1e052be69d04 ("net_sched: destroy proto tp when all filter

Re: [PATCH-2] drivers/net/usb: Add support for 'Lenovo OneLink Pro Dock'

2015-05-09 Thread David Miller
From: Vasily Titskiy Date: Wed, 6 May 2015 10:31:21 -0400 > This device is sold as 'Lenovo OneLink Pro Dock'. > Chipset is RTL8153 and works with r8152. > > Signed-off-by: Vasily Titskiy Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a mess

Re: [PATCH net-next 00/10] More Marvell DSA refactring and fixup

2015-05-09 Thread David Miller
From: Andrew Lunn Date: Wed, 6 May 2015 01:09:46 +0200 > This patch setup continues the refactoring and cleanup of the Marvell > DSA drivers. ... Series applied to net-next, thanks Andrew. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord..

Re: [PATCH] net: macb: Handle the RXUBR interrupt on all devices

2015-05-09 Thread David Miller
From: Nathan Sullivan Date: Tue, 5 May 2015 15:00:25 -0500 > The same hardware issue the at91 must work around applies to at least the > Zynq ethernet, and possibly more devices. The driver also needs to handle > the RXUBR interrupt since it turns it on with MACB_RX_INT_FLAGS anyway. > > Signed

Re: [PATCH v2 0/2] net/rds: RDS-TCP robustness fixes

2015-05-09 Thread David Miller
From: Sowmini Varadhan Date: Tue, 5 May 2015 15:20:50 -0400 > > This patch-set contains bug fixes for state-recovery at the RDS > layer when the underlying transport is TCP and the TCP state at one > of the endpoints is reset > > V2 changes: DaveM comments to reduce memory footprint, follow

Re: [PATCH] ipv6: Fixed source specific default route handling.

2015-05-09 Thread David Miller
From: Markus Stenberg Date: Tue, 5 May 2015 13:36:59 +0300 > If there are only IPv6 source specific default routes present, the > host gets -ENETUNREACH on e.g. connect() because ip6_dst_lookup_tail > calls ip6_route_output first, and given source address any, it fails, > and ip6_route_get_saddr

Re: pull request: bluetooth-next 2015-05-04

2015-05-09 Thread David Miller
From: Johan Hedberg Date: Wed, 6 May 2015 20:21:02 +0200 > Seems you pulled this into net.git and not net-next.git? Ooops, an accident. I'm going to leave it for now. > Meanwhile, the bluetooth.git request I also made on the 4th is still > untouched. I pulled in that May 4th pull request, tha

Re: [PATCH net-next v6 14/23] bridge: restore br_setlink back to original

2015-05-09 Thread Jiri Pirko
Sat, May 09, 2015 at 07:40:16PM CEST, sfel...@gmail.com wrote: >From: Scott Feldman > >Restore br_setlink back to original and don't call into SELF port driver. >rtnetlink.c:bridge_setlink() already does a call into port driver for SELF. > >bridge set link cmd defaults to MASTER. From man page fo

[PATCH net-next v6 08/23] switchdev: add port vlan obj

2015-05-09 Thread sfeldma
From: Scott Feldman VLAN obj has flags (PVID and untagged) as well as start and end vid ranges. The switchdev driver can optimize programing the device using the ranges. Signed-off-by: Scott Feldman Acked-by: Jiri Pirko --- include/net/switchdev.h |8 1 file changed, 8 insertions

[PATCH net-next v6 01/23] switchdev: s/netdev_switch_/switchdev_/ and s/NETDEV_SWITCH_/SWITCHDEV_/

2015-05-09 Thread sfeldma
From: Jiri Pirko Turned out that "switchdev" sticks. So just unify all related terms to use this prefix. Signed-off-by: Jiri Pirko Signed-off-by: Scott Feldman Acked-by: Roopa Prabhu Acked-by: Andy Gospodarek --- drivers/net/bonding/bond_main.c |4 +- drivers/net/ethernet/rocker/ro

[PATCH net-next v6 13/23] switchdev: remove old switchdev_port_bridge_setlink

2015-05-09 Thread sfeldma
From: Scott Feldman New attr-based bridge_setlink can recurse lower devs and recover on err, so remove old wrapper (including ndo_dflt_switchdev_port_bridge_setlink). Signed-off-by: Scott Feldman --- include/net/switchdev.h |9 - net/switchdev/switchdev.c | 30 -

[PATCH net-next v6 10/23] switchdev: add bridge port flags attr

2015-05-09 Thread sfeldma
From: Scott Feldman rocker: use switchdev get/set attr for bridge port flags Signed-off-by: Scott Feldman --- drivers/net/ethernet/rocker/rocker.c | 24 include/net/switchdev.h |2 ++ 2 files changed, 26 insertions(+) diff --git a/drivers/net/ethern

[PATCH net-next v6 05/23] rocker: support prepare-commit transaction model

2015-05-09 Thread sfeldma
From: Scott Feldman For rocker, support prepare-commit transaction model for setting attributes (and for adding objects). This requires rocker to preallocate memory needed for the commit up front in the prepare phase. Since rtnl_lock is held between prepare-commit, store the allocated memory on

[PATCH net-next v6 09/23] rocker: use switchdev add/del obj for bridge port vlans

2015-05-09 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Acked-by: Jiri Pirko --- drivers/net/ethernet/rocker/rocker.c | 130 -- 1 file changed, 123 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/rocker/rocker.c b/drivers/net/ethernet/rocker/rocker.c

Re: [PATCH 3/6] net: Pass kern from net_proto_family.create to sk_alloc

2015-05-09 Thread Eric W. Biederman
Eric Dumazet writes: > On Fri, 2015-05-08 at 21:09 -0500, Eric W. Biederman wrote: >> In preparation for changing how struct net is refcounted >> on kernel sockets pass the knowledge that we are creating >> a kernel socket from sock_create_kern through to sk_alloc. > > ... > >> >> diff --git a/

Re: [PATCH 3/6] net: Pass kern from net_proto_family.create to sk_alloc

2015-05-09 Thread Eric Dumazet
On Fri, 2015-05-08 at 21:09 -0500, Eric W. Biederman wrote: > In preparation for changing how struct net is refcounted > on kernel sockets pass the knowledge that we are creating > a kernel socket from sock_create_kern through to sk_alloc. ... > > diff --git a/drivers/net/tun.c b/drivers/net/tu

Re: mwifiex: do not return success when command times out

2015-05-09 Thread Kalle Valo
> wait_event_interruptible_timeout() returns 0 upon timeout. We should > convert it to a negative error code (such as -ETIMEDOUT) instead of > returning it directly, as return code of 0 indicates that command was > executed. > > Signed-off-by: Dmitry Torokhov Thanks, applied to wireless-drivers

[patch net-next 09/15] flow_dissector: introduce programable flow_dissector

2015-05-09 Thread Jiri Pirko
Introduce dissector infrastructure which allows user to specify which parts of skb he wants to dissect. Signed-off-by: Jiri Pirko --- include/net/flow_dissector.h | 61 net/core/flow_dissector.c| 48 ++ 2 files chan

[patch net-next 13/15] flow_dissector: introduce support for Ethernet addresses

2015-05-09 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- include/net/flow_dissector.h | 13 + net/core/flow_dissector.c| 12 2 files changed, 25 insertions(+) diff --git a/include/net/flow_dissector.h b/include/net/flow_dissector.h index 586b123..5eac987 100644 --- a/include/net/flow_dissector

[patch net-next 01/15] net: change name of flow_dissector header to match the .c file name

2015-05-09 Thread Jiri Pirko
add couple of empty lines on the way. Signed-off-by: Jiri Pirko --- drivers/net/bonding/bond_main.c | 2 +- drivers/net/ethernet/cisco/enic/enic_clsf.c | 2 +- include/linux/skbuff.h | 2 +- include/net/flow_dissector.h| 68

[PATCH] net: qca_spi: Fix possible race during probe

2015-05-09 Thread Stefan Wahren
Registering the netdev before setting the priv data is unsafe. So fix this possible race by setting the priv data first. Signed-off-by: Stefan Wahren Cc: # v3.18+ Fixes: 291ab06e (net: qualcomm: new Ethernet over SPI driver for QCA7000) --- drivers/net/ethernet/qualcomm/qca_spi.c |4 ++-- 1