[PATCH v2 net-next 3/5] net: Add VLAN ID to flow_keys

2015-05-11 Thread Tom Herbert
In flow_dissector set vlan_id in flow_keys when VLAN is found. Signed-off-by: Tom Herbert --- include/net/flow_keys.h | 1 + net/core/flow_dissector.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/net/flow_keys.h b/include/net/flow_keys.h index c8bc6aa..14298e2 100644 --- a/inc

Re: [PATCH] xen-netfront: reset skb transport header before checksum

2015-05-11 Thread Eric Dumazet
On Mon, 2015-05-11 at 18:34 -0700, Venkat Venkatsubra wrote: > In ed1f50c3a ("net: add skb_checksum_setup") some checksum functions > were introduced in core. Subsequent change b5cf66cd1 ("xen-netfront: > use new skb_checksum_setup function") made use of those functions to > replace its own impleme

Re: [patch net-next 06/15] net: move __skb_tx_hash to skbuff.c

2015-05-11 Thread Cong Wang
On Sat, May 9, 2015 at 6:10 AM, Jiri Pirko wrote: > __skb_tx_hash function has no relation to flow_dissect so just muve it > to skbuff.c (it is declared in skbuff.h) > It calls __skb_get_hash() in most of the cases, and __skb_get_hash() is in flow_dissector.c. There are many functions declared i

Re: [PATCH net-next 0/2] handle_ing update

2015-05-11 Thread Cong Wang
On Mon, May 11, 2015 at 3:33 PM, Daniel Borkmann wrote: > On 05/12/2015 12:03 AM, Cong Wang wrote: > ... >> >> BTW, it should be protected by CONFIG_NET_SCH_INGRESS >> rather than CONFIG_NET_CLS_ACT. > > > Sure, I agree, this can further be improved. Feel free to send a patch. I never agree on th

[PATCH net-next 0/2] net: systemport: interrupt coalescing support

2015-05-11 Thread Florian Fainelli
Hi David, This patch series adds support for RX & TX interrupt coalescing in the systemport driver. Florian Fainelli (2): net: systemport: Implement TX coalescing control knobs net: systemport: Implement RX coalescing control knobs drivers/net/ethernet/broadcom/bcmsysport.c | 63 +++

Re: [PATCH 4/4] netconsole: implement extended console support

2015-05-11 Thread Tejun Heo
Hello, On Mon, May 11, 2015 at 01:23:39PM -0400, David Miller wrote: > From: Tejun Heo > Date: Mon, 11 May 2015 12:41:34 -0400 > > > + /* need to insert extra header fields, detect header and body */ > > + header = msg; > > + body = memchr(msg, ';', msg_len); > > + if (WARN_ON_ONCE(!body

Re: [net-next PATCH] net: Fix ifdef typo in net_device definition

2015-05-11 Thread Daniel Borkmann
On 05/11/2015 08:31 PM, Alexander Duyck wrote: While trying to build for some performance testing I received the error message below multiple times: include/linux/netdevice.h:1658:5: warning: "CONFIG_NET_CLS_ACT" is not defined [-Wundef] #if CONFIG_NET_CLS_ACT It looks like this was just a t

[net-next PATCH] net: Fix ifdef typo in net_device definition

2015-05-11 Thread Alexander Duyck
While trying to build for some performance testing I received the error message below multiple times: include/linux/netdevice.h:1658:5: warning: "CONFIG_NET_CLS_ACT" is not defined [-Wundef] #if CONFIG_NET_CLS_ACT It looks like this was just a typo and should have been "#ifdef" instead of "#if"

Re: [PATCH net-next] net: sched: deprecate enqueue_root()

2015-05-11 Thread David Miller
From: Eric Dumazet Date: Mon, 11 May 2015 09:06:56 -0700 > From: Eric Dumazet > > Only left enqueue_root() user is netem, and it looks not necessary : > > qdisc_skb_cb(skb)->pkt_len is preserved after one skb_clone() > > Signed-off-by: Eric Dumazet This looks fine, applied, thanks Eric. --

Re: [PATCH v2] net: ll_temac: Use one return statement instead of two

2015-05-11 Thread David Miller
From: Michal Simek Date: Mon, 11 May 2015 16:05:02 +0200 > Use one return statement instead of two to simplify the code. > Both are returning the same value. > > Signed-off-by: Michal Simek Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a m

Re: [PATCH net-next 0/2] Bowdlerise PTP MCDI errors

2015-05-11 Thread David Miller
From: Edward Cree Date: Mon, 11 May 2015 13:19:03 +0100 > When the NIC doesn't support PTP, probe-time MCDI commands fail in > predictable ways. Instead of logging cryptic MCDI errors, just log that > PTP isn't supported. These patches are severely corrupted by your email client, in particular

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

2015-05-11 Thread David Miller
From: Philippe Reynes Date: Mon, 11 May 2015 00:01:42 +0200 > This enables the ethtool's "-d" and "--register-dump" > options for fec devices. > > Signed-off-by: Philippe Reynes > --- > drivers/net/ethernet/freescale/fec_main.c | 78 > + > 1 files changed, 78 ins

Re: [PATCH v3] macvtap add missing ioctls - fix wrapping

2015-05-11 Thread David Miller
From: Justin Cormack Date: Sun, 10 May 2015 13:50: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. This

Re: [PATCH 2/2] adm8211: fix the possible pci cache line sizes inside switch-case

2015-05-11 Thread Okash Khawaja
> On 11 May 2015, at 14:24, Jonas Gorski wrote: > > Hi, > >> On Mon, May 11, 2015 at 12:38 PM, Kalle Valo wrote: >> Okash Khawaja writes: >> >>> Sure, I'll create v2 of the patch with updated commit log. >>> >>> Since it's part of a patch set, do you want me to send both the >>> patches in t

Re: [PATCH net-next V3 02/11] net/mlx5_core: Add EQ renaming mechanism

2015-05-11 Thread David Miller
From: Amir Vadai Date: Sun, 10 May 2015 12:38:57 +0300 > +int mlx5_rename_eq(struct mlx5_core_dev *dev, int eq_ix, char *name) > +{ > + struct mlx5_priv *priv = &dev->priv; > + struct mlx5_eq_table *table = &priv->eq_table; > + struct mlx5_eq *eq; > + int err = -ENOENT; > + > +

Re: [PATCH net-next] net: sched: fix typo in net_device ifdef

2015-05-11 Thread David Miller
From: Daniel Borkmann Date: Mon, 11 May 2015 19:28:49 +0200 > This should have been #ifdef not #if. > > Reported-by: Fengguang Wu > Fixes: d2788d34885d ("net: sched: further simplify handle_ing") > Signed-off-by: Daniel Borkmann > --- > Very sorry for the typo. Applied, thanks Daniel. -- To

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

2015-05-11 Thread David Miller
From: David Miller Date: Mon, 11 May 2015 13:11:06 -0400 (EDT) > From: David Ahern > Date: Sat, 9 May 2015 16:21:43 -0600 > >> Commit e2c6544829f removed pm_qos from struct net_device but left the >> comment above header file. Remove those. >> >> Signed-off-by: David Ahern > > Applied, than

Re: [PATCH 4/4] netconsole: implement extended console support

2015-05-11 Thread David Miller
From: Tejun Heo Date: Mon, 11 May 2015 12:41:34 -0400 > + /* need to insert extra header fields, detect header and body */ > + header = msg; > + body = memchr(msg, ';', msg_len); > + if (WARN_ON_ONCE(!body)) > + return; > + > + header_len = body - header; > + b

Re: [V3 PATCH 2/5] arm64 : Introduce support for ACPI _CCA object

2015-05-11 Thread Catalin Marinas
On Thu, May 07, 2015 at 07:37:13PM -0500, Suravee Suthikulpanit wrote: > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 4269dba..c7227e8 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -1,5 +1,6 @@ > config ARM64 > def_bool y > + select ACPI_CCA_REQUIRED i

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

2015-05-11 Thread David Miller
From: David Ahern Date: Sat, 9 May 2015 16:21:43 -0600 > Commit e2c6544829f removed pm_qos from struct net_device but left the > comment above header file. Remove those. > > Signed-off-by: David Ahern Applied, thanks David. -- To unsubscribe from this list: send the line "unsubscribe netdev"

Re: [PATCH net-next v2 6/6] packet: rollover statistics

2015-05-11 Thread David Miller
From: Willem de Bruijn Date: Sat, 9 May 2015 17:25:01 -0400 > From: Willem de Bruijn > > Rollover indicates exceptional conditions. Export a counter to inform > socket owners of this state. > > If no socket with sufficient room is found, rollover fails. Also count > these events. > > Finally

Re: [PATCH] pppoe: drop pppoe device in pppoe_unbind_sock_work

2015-05-11 Thread David Miller
From: Felix Fietkau Date: Sat, 9 May 2015 23:08:38 +0200 > 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 >

[PATCH 2/4] netconsole: make netconsole_target->enabled a bool

2015-05-11 Thread Tejun Heo
netconsole uses both bool and int for boolean values. Let's convert nt->enabled to bool for consistency. Signed-off-by: Tejun Heo Cc: David Miller --- drivers/net/netconsole.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/netconsole.c b/driv

Re: [PATCH iproute2] ss: dctcp changes

2015-05-11 Thread Stephen Hemminger
On Fri, 08 May 2015 13:28:40 -0700 Eric Dumazet wrote: > From: Eric Dumazet > > Missing space before dctcp: markers. > > With dctcp, cwnd=2 is pretty common, just display cwnd value even > if cwnd has this value, it makes parsing easier. > > Signed-off-by: Eric Dumazet Applied, thanks -- To

Re: [PATCH iproute2] route: Add missing newline in helptext

2015-05-11 Thread Stephen Hemminger
On Wed, 6 May 2015 17:25:39 +0200 Thomas Graf wrote: > Signed-off-by: Thomas Graf Thanks for catching this, applied -- 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/majordom

Re: [PATCH net] rtnl: don't send rtnl msg for unregistered iface

2015-05-11 Thread Nicolas Dichtel
Le 11/05/2015 18:04, Nicolas Dichtel a écrit : Le 11/05/2015 17:37, Jiri Pirko a écrit : [snip] I don't think this is the correct way to fix this. How ifindex can be 0 here? Ifindex is set in register_netdevice and looking at bond_create, I don't see any call to __bond_opt_set before that. But

[PATCH net-next] net: sched: deprecate enqueue_root()

2015-05-11 Thread Eric Dumazet
From: Eric Dumazet Only left enqueue_root() user is netem, and it looks not necessary : qdisc_skb_cb(skb)->pkt_len is preserved after one skb_clone() Signed-off-by: Eric Dumazet --- include/net/sch_generic.h |6 -- net/sched/sch_netem.c |4 ++-- 2 files changed, 2 insertions(+

Re: [patch net-next 06/15] net: move __skb_tx_hash to skbuff.c

2015-05-11 Thread Jiri Pirko
Mon, May 11, 2015 at 05:55:11PM CEST, alexander.h.du...@redhat.com wrote: >On 05/09/2015 06:10 AM, Jiri Pirko wrote: >>__skb_tx_hash function has no relation to flow_dissect so just muve it >>to skbuff.c (it is declared in skbuff.h) >> >>Signed-off-by: Jiri Pirko > >Minor nit, move is spelled with

Re: [patch net-next 06/15] net: move __skb_tx_hash to skbuff.c

2015-05-11 Thread Alexander Duyck
On 05/09/2015 06:10 AM, Jiri Pirko wrote: __skb_tx_hash function has no relation to flow_dissect so just muve it to skbuff.c (it is declared in skbuff.h) Signed-off-by: Jiri Pirko Minor nit, move is spelled with an o, not a u. Also any reason for moving this to skbuff.c instead of dev.c? It

Re: [PATCH net-next 0/2] handle_ing update

2015-05-11 Thread David Miller
From: Daniel Borkmann Date: Sat, 9 May 2015 22:51:30 +0200 > These are a couple of cleanups to make ingress a bit more lightweight. Series applied, thanks Daniel. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majo

Re: [PATCH net-next 0/2] handle_ing update

2015-05-11 Thread David Miller
From: Pablo Neira Ayuso Date: Sun, 10 May 2015 19:05:50 +0200 > On Sat, May 09, 2015 at 10:51:30PM +0200, Daniel Borkmann wrote: >> These are a couple of cleanups to make ingress a bit more lightweight. > > This is plain wrong at many levels. > > You're persisting on embedding the ingress code

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

2015-05-11 Thread David Miller
From: Stefan Wahren Date: Sat, 9 May 2015 07:58:09 + > 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

Re: [PATCH net-next] test: bpf: extend "load 64-bit immediate" testcase

2015-05-11 Thread David Miller
From: Xi Wang Date: Sat, 9 May 2015 04:14:30 -0400 > Extend the testcase to catch a signedness bug in the arm64 JIT: > > test_bpf: #58 load 64-bit immediate jited:1 ret -1 != 1 FAIL (1 times) > > This is useful to ensure other JITs won't have a similar bug. > > Link: https://lkml.org/lkml/201

Re: [PATCH linux v3 net-next 0/5] add netlink support for new lacp bonding parameters

2015-05-11 Thread David Miller
From: Jonathan Toppins Date: Sat, 9 May 2015 00:01:54 -0700 > This is a resubmit of Mahesh's last 3 bonding patches from this series > (http://marc.info/?l=linux-netdev&m=142432864626179&w=2) with one > additional kernel patch which adds the netlink bits. I have noted any > modifications I did t

Re: [PATCH 0/6] Cleanup the kernel sockets.

2015-05-11 Thread David Miller
From: ebied...@xmission.com (Eric W. Biederman) Date: Fri, 08 May 2015 21:05:33 -0500 > Right now the situtation for allocating kernel sockets is a mess. > - sock_create_kern does not take a namespace parameter. > - kernel sockets must not reference count a network namespace and keep > it alive

Re: [PATCH V5 1/1] hv_netvsc: Use the xmit_more skb flag to optimize signaling the host

2015-05-11 Thread David Miller
From: KY Srinivasan Date: Mon, 11 May 2015 08:59:53 + > > >> -Original Message- >> From: Joe Perches [mailto:j...@perches.com] >> Sent: Sunday, May 10, 2015 10:58 PM >> To: KY Srinivasan >> Cc: da...@davemloft.net; netdev@vger.kernel.org; linux- >> ker...@vger.kernel.org; de...@linu

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

2015-05-11 Thread David Miller
From: Johannes Berg Date: Mon, 11 May 2015 10:31:43 +0200 > On Sat, 2015-05-09 at 17:34 -0400, David Miller wrote: > >> Johhannes, the hash table size Kconfig entry absolutely not appropriate. >> >> If anything, it should be hidden behind the strongest possible "DEBUG >> ONLY" type dependencies

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

2015-05-11 Thread David Miller
From: Nicolas Ferre Date: Mon, 11 May 2015 12:10:54 +0200 > Le 09/05/2015 22:04, David Miller a écrit : >> 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.

Re: [PATCH] net: ll_temac: Use one return statement instead of two

2015-05-11 Thread Michal Simek
On 05/07/2015 05:30 PM, Julia Lawall wrote: > On Thu, 7 May 2015, Michal Simek wrote: > >> From: Michal Simek >> >> Use one return statement instead of two to simplify the code. >> Both are returning the same value. >> >> Signed-off-by: Michal Simek > > The from should be the same as the signed

[PATCH v3] net: phy: micrel: Fix regression in kszphy_probe

2015-05-11 Thread Niklas Cassel
Don't do clock-mode-select if clk == NULL, since when building without CONFIG_HAVE_CLK, clk_get returns NULL and clk_get_rate returns 0. Doing clock-mode-select in this cause causes kszphy_probe to return -EINVAL and thus prevents the device from being probed. The original code (before regression

Re: [patch net-next 15/15] tc: introduce Flower classifier

2015-05-11 Thread Jiri Pirko
Mon, May 11, 2015 at 02:08:34PM CEST, j...@mojatatu.com wrote: >On 05/09/15 09:10, Jiri Pirko wrote: >>This patch introduces a flow-based filter. So far, the very essential >>packet fields are supported. >> >>This patch is only the first step. There is a lot of potential performance >>improvements