Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Peter Zijlstra
On Tue, May 10, 2016 at 03:51:37PM -0700, Eric Dumazet wrote: > diff --git a/kernel/softirq.c b/kernel/softirq.c > index 17caf4b63342..22463217e3cf 100644 > --- a/kernel/softirq.c > +++ b/kernel/softirq.c > @@ -56,6 +56,7 @@ EXPORT_SYMBOL(irq_stat); > static struct softirq_action softirq_vec[NR_SO

[PATCH -next 2/4] net: w5100: fix MAC filtering for W5500

2016-05-10 Thread Akinobu Mita
W5500 has different bit position for MAC filter in Socket n mode register from W5100 and W5200. Signed-off-by: Akinobu Mita Cc: Mike Sinkovsky Cc: David S. Miller --- drivers/net/ethernet/wiznet/w5100.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/driv

[PATCH -next 4/4] net: w5100-spi: add support to specify MAC address by device tree

2016-05-10 Thread Akinobu Mita
This adds support to specify the MAC address by 'mac-address' or 'local-mac-address' properties in the device tree. These are common properties for the Ethernet controller. Signed-off-by: Akinobu Mita Cc: Mike Sinkovsky Cc: David S. Miller --- drivers/net/ethernet/wiznet/w5100-spi.c | 4 +++-

[PATCH -next 3/4] net: w5100: increase TX timeout period

2016-05-10 Thread Akinobu Mita
This increases TX timeout period from one second to 5 seconds which is default value defined in net/sched/sch_generic.c. The one second timeout is too short for W5100 with SPI interface mode which doesn't support burst READ/WRITE processing in the SPI transfer. If the packet is transmitted while R

[PATCH -next 0/4] net: w5100: collection of small changes

2016-05-10 Thread Akinobu Mita
This patch series for w5100 driver includes a cleanup with no functional change, two fixes, and adding a functionality. Each change is relatively small. Akinobu Mita (4): net: w5100: remove unused is_w5200() net: w5100: fix MAC filtering for W5500 net: w5100: increase TX timeout period ne

[PATCH -next 1/4] net: w5100: remove unused is_w5200()

2016-05-10 Thread Akinobu Mita
The is_w5200() function is not used anymore by the commit which adds the W5500 support. Signed-off-by: Akinobu Mita Cc: Mike Sinkovsky Cc: David S. Miller --- drivers/net/ethernet/wiznet/w5100.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/net/ethernet/wiznet/w5100.c b/driv

Re: [PATCH nf-next,v2] gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)

2016-05-10 Thread Cong Wang
On Sun, May 8, 2016 at 3:55 PM, Pablo Neira Ayuso wrote: > +static int gtp_genl_new_pdp(struct sk_buff *skb, struct genl_info *info) > +{ ... > + > + net = gtp_genl_get_net(sock_net(skb->sk), info->attrs); > + if (IS_ERR(net)) > + return PTR_ERR(net); > + > + /* Che

Re: [PATCH] cfg80211/nl80211: add wifi tx power mode switching support

2016-05-10 Thread Wei-Ning Huang
On Fri, May 6, 2016 at 4:19 PM, Wei-Ning Huang wrote: > On Fri, May 6, 2016 at 12:07 AM, Dan Williams wrote: >> >> On Thu, 2016-05-05 at 14:44 +0800, Wei-Ning Huang wrote: >> > Recent new hardware has the ability to switch between tablet mode and >> > clamshell mode. To optimize WiFi performance,

Re: [Intel-wired-lan] [PATCH] e1000e: prevent division by zero if TIMINCA is zero

2016-05-10 Thread Mark D Rustad
Jarod Wilson wrote: On Fri, May 06, 2016 at 11:43:17PM +, Rustad, Mark D wrote: Denys Vlasenko wrote: Users report that under VMWare, er32(TIMINCA) returns zero. This causes division by zero at init time as follows: ==>incvalue = er32(TIMINCA) & E1000_TIMINCA_INCVALUE_MASK;

Re: [net PATCH v2 0/6] net sched: Fix broken late binding of actions

2016-05-10 Thread David Miller
From: Jamal Hadi Salim Date: Tue, 10 May 2016 16:49:25 -0400 > Some actions were broken in allowing for late binding of actions. > Late binding workflow is as follows: > a) create an action and provide all necessary parameters for it > Optionally provide an index or let the kernel give you one. >

Re: [PATCH v3 net-next] tcp: replace cnt & rtt with struct in pkts_acked()

2016-05-10 Thread David Miller
From: David Miller Date: Tue, 10 May 2016 23:47:58 -0400 (EDT) > From: Lawrence Brakmo > Date: Tue, 10 May 2016 13:11:09 -0700 > >> Replace 2 arguments (cnt and rtt) in the congestion control modules' >> pkts_acked() function with a struct. This will allow adding more >> information without hav

RE: [PATCH] net: phylib: fix interrupts re-enablement in phy_start

2016-05-10 Thread Shaohui Xie
> -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Wednesday, May 11, 2016 2:25 AM > To: shh@gmail.com; netdev@vger.kernel.org; da...@davemloft.net > Cc: Shaohui Xie ; Andrew Lunn > Subject: Re: [PATCH] net: phylib: fix interrupts re-enablement in phy_s

Re: [PATCH v3 net-next] tcp: replace cnt & rtt with struct in pkts_acked()

2016-05-10 Thread David Miller
From: Lawrence Brakmo Date: Tue, 10 May 2016 13:11:09 -0700 > Replace 2 arguments (cnt and rtt) in the congestion control modules' > pkts_acked() function with a struct. This will allow adding more > information without having to modify existing congestion control > modules (tcp_nv in particular

Re: pull request: batman-adv 20160511

2016-05-10 Thread David Miller
From: Antonio Quartulli Date: Wed, 11 May 2016 03:29:48 +0800 > here you have a pull request intended for net-next. > There are 17 patches in this batch, but most of them are cleanups > and minor code re-arrangement. > > The more detailed description follows in the git tag. > > Please pull or l

Re: [PATCH v9 net-next 4/7] openvswitch: add layer 3 flow/port support

2016-05-10 Thread Simon Horman
Hi Jiri, On Tue, May 10, 2016 at 02:06:18PM +0200, Jiri Benc wrote: > On Mon, 9 May 2016 17:18:20 +0900, Simon Horman wrote: > > On Fri, May 06, 2016 at 11:35:04AM +0200, Jiri Benc wrote: > > > In addition, we should check whether mac_len > 0 and in such case, > > > change skb->protocol to ETH_P_T

Re: [v10, 7/7] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-05-10 Thread Scott Wood
On Thu, 2016-05-05 at 13:10 +0200, Arnd Bergmann wrote: > On Thursday 05 May 2016 09:41:32 Yangbo Lu wrote: > > > -Original Message- > > > From: Arnd Bergmann [mailto:a...@arndb.de] > > > Sent: Thursday, May 05, 2016 4:32 PM > > > To: linuxppc-...@lists.ozlabs.org > > > Cc: Yangbo Lu; linux

Re: [PATCH v9 net-next 4/7] openvswitch: add layer 3 flow/port support

2016-05-10 Thread Simon Horman
Hi Jiri, On Wed, May 11, 2016 at 10:50:09AM +0900, Simon Horman wrote: [...] > > > Its possible that I've overlooked something but as things stand I think > > > things look like this: > > > > > > * ovs_flow_key_extract() keys off dev->type and skb->protocol. > > > * ovs_flow_key_extract() calls

Re: [PATCH 1/2] [v4] net: emac: emac gigabit ethernet controller driver

2016-05-10 Thread Timur Tabi
Florian Fainelli wrote: The Ethernet MAC should be started in ndo_open() and stopped in ndo_close(), in between, there are link state changes, but you are not supposed to stop or start your Ethernet MAC and its DMA for instance during link change, if that is a HW requirement, your HW is pretty fu

Re: [PATCH v9 net-next 4/7] openvswitch: add layer 3 flow/port support

2016-05-10 Thread Simon Horman
Hi Jiri, On Tue, May 10, 2016 at 02:01:06PM +0200, Jiri Benc wrote: > On Mon, 9 May 2016 17:04:22 +0900, Simon Horman wrote: > > It seems to be caused by the following: > > > > 1. __ipgre_rcv() calls skb_pop_mac_header() which > >sets skb->mac_header to the skb->network_header. > > > > 2. __

Re: [PATCH net] openvswitch: Fix cached ct with helper.

2016-05-10 Thread Joe Stringer
On 10 May 2016 at 16:55, Jarno Rajahalme wrote: > This would result in inconsistent helper assignment if a first CT action > assigns a helper and a further CT action tries to assign a different helper; > Typically the second helper assignment would be ignored, but if the > unconfirmed conntrack

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

2016-05-10 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/netfilter/nf_conntrack_core.c between commit: 70d72b7e060e ("netfilter: conntrack: init all_locks to avoid debug warning") from the net tree and commit: a3efd81205b1 ("netfilter: conntrack: move generation seqc

Re: [PATCH net] openvswitch: Fix cached ct with helper.

2016-05-10 Thread Jarno Rajahalme
This would result in inconsistent helper assignment if a first CT action assigns a helper and a further CT action tries to assign a different helper; Typically the second helper assignment would be ignored, but if the unconfirmed conntrack entry is lost due to an upcall the second helper assignm

Re: [PATCH 1/2] [v4] net: emac: emac gigabit ethernet controller driver

2016-05-10 Thread Florian Fainelli
On 05/10/2016 04:18 PM, Timur Tabi wrote: > Florian Fainelli wrote: >> Are you utilizing the PHYLIB APIs properly? You need at least a >> phy_start() to start the PHY state machine, and an adjust_link callback >> to be provided to phy_connect() (or of_phy_connect()) to manage link >> state changes.

Re: [PATCH 1/2] [v4] net: emac: emac gigabit ethernet controller driver

2016-05-10 Thread Timur Tabi
Florian Fainelli wrote: Are you utilizing the PHYLIB APIs properly? You need at least a phy_start() to start the PHY state machine, and an adjust_link callback to be provided to phy_connect() (or of_phy_connect()) to manage link state changes. And that's the very basic minimum here, there could b

[PATCH net 1/2] bnxt_en: Add workaround to detect bad opaque in rx completion (part 1)

2016-05-10 Thread Michael Chan
There is a rare hardware bug that can cause a bad opaque value in the RX or TPA completion. When this happens, the hardware may have used the same buffer twice for 2 rx packets. In addition, the driver will also crash later using the bad opaque as the index into the ring. The rx opaque value is

[PATCH net 0/2] bnxt_en: Add workaround to detect bad opaque in rx completion.

2016-05-10 Thread Michael Chan
2-part workaround for this hardware bug. Michael Chan (2): bnxt_en: Add workaround to detect bad opaque in rx completion (part 1) bnxt_en: Add workaround to detect bad opaque in rx completion (part 2) drivers/net/ethernet/broadcom/bnxt/bnxt.c | 63 +++ drivers/net

[PATCH net 2/2] bnxt_en: Add workaround to detect bad opaque in rx completion (part 2)

2016-05-10 Thread Michael Chan
Add detection and recovery code when the hardware returned opaque value does not match the expected consumer index. Once the issue is detected, we skip the processing of all RX and LRO/GRO packets. These completion entries are discarded without sending the SKB to the stack and without producing n

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Eric Dumazet
On Wed, 2016-05-11 at 00:32 +0200, Hannes Frederic Sowa wrote: > Not only did we want to present this solely as a bugfix but also as as > performance enhancements in case of virtio (as you can see in the cover > letter). Given that a long time ago there was a tendency to remove > softirqs complete

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Eric Dumazet
On Tue, 2016-05-10 at 15:02 -0700, Eric Dumazet wrote: > On Tue, 2016-05-10 at 14:53 -0700, Eric Dumazet wrote: > > On Tue, 2016-05-10 at 17:35 -0400, Rik van Riel wrote: > > > > > You might need another one of these in invoke_softirq() > > > > > > > Excellent. > > > > I gave it a quick try (wi

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Hannes Frederic Sowa
On 10.05.2016 23:09, Eric Dumazet wrote: > On Tue, May 10, 2016 at 1:46 PM, Hannes Frederic Sowa > wrote: > >> I agree here, but I don't think this patch particularly is a lot of >> bloat and something very interesting people can play with and extend upon. >> > > Sure, very rarely patch authors

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Eric Dumazet
On Tue, 2016-05-10 at 14:53 -0700, Eric Dumazet wrote: > On Tue, 2016-05-10 at 17:35 -0400, Rik van Riel wrote: > > > You might need another one of these in invoke_softirq() > > > > Excellent. > > I gave it a quick try (without your suggestion), and host seems to > survive a stress test. > > O

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Rik van Riel
On Tue, 2016-05-10 at 14:53 -0700, Eric Dumazet wrote: > On Tue, 2016-05-10 at 17:35 -0400, Rik van Riel wrote: > > > > > You might need another one of these in invoke_softirq() > > > Excellent. > > I gave it a quick try (without your suggestion), and host seems to > survive a stress test. > >

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Eric Dumazet
On Tue, 2016-05-10 at 17:35 -0400, Rik van Riel wrote: > You might need another one of these in invoke_softirq() > Excellent. I gave it a quick try (without your suggestion), and host seems to survive a stress test. Of course we do have to fix these problems : [ 147.781629] NOHZ: local_softi

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Rik van Riel
On Tue, 2016-05-10 at 14:31 -0700, Eric Dumazet wrote: > On Tue, 2016-05-10 at 14:09 -0700, Eric Dumazet wrote: > > > > On Tue, May 10, 2016 at 1:46 PM, Hannes Frederic Sowa > > wrote: > > > > > > > > I agree here, but I don't think this patch particularly is a lot > > > of > > > bloat and some

[PATCH net-next 3/3] net/mlx5e: Enable CQE compression when PCI is slower than link

2016-05-10 Thread Saeed Mahameed
We turn the feature ON, only for servers with PCI BW < MAX LINK BW, as it helps reducing PCI pressure on weak PCI slots, but it adds some software overhead. Signed-off-by: Saeed Mahameed Signed-off-by: Tariq Toukan --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 1 + .../net/ethernet/

[PATCH net-next 2/3] net/mlx5e: Expand WQE stride when CQE compression is enabled

2016-05-10 Thread Saeed Mahameed
From: Tariq Toukan Make the MPWQE/Striding RQ default configuration dynamic and not statically set at compile time. Now at driver load we set stride size and num strides dynamically. By default we use same values as before, but when CQE compression is enabled, we set larger stride size to benef

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Eric Dumazet
On Tue, 2016-05-10 at 14:09 -0700, Eric Dumazet wrote: > On Tue, May 10, 2016 at 1:46 PM, Hannes Frederic Sowa > wrote: > > > I agree here, but I don't think this patch particularly is a lot of > > bloat and something very interesting people can play with and extend upon. > > > > Sure, very rare

[PATCH net-next 1/3] net/mlx5e: CQE compression

2016-05-10 Thread Saeed Mahameed
From: Tariq Toukan CQE compression feature is meant to save PCIe bandwidth by compressing few CQEs into smaller amount of bytes on PCIe. CQE compression can be selectively enabled per CQ. By default is disabled for now and will be enabled later on. Signed-off-by: Tariq Toukan Signed-off-by: Eu

Re: [PATCH net-next 2/2] net: dsa: mv88e6xxx: add STU capability

2016-05-10 Thread Andrew Lunn
On Tue, May 10, 2016 at 03:44:29PM -0400, Vivien Didelot wrote: > Some switch models have a STU (per VLAN port state database). Add a new > capability flag to switches info, instead of checking their family. > > Also if the 6165 family has an STU, it must have a VTU, so add the > MV88E6XXX_FLAG_VT

[PATCH net-next 0/3] Mellanox 100G mlx5 CQE compression

2016-05-10 Thread Saeed Mahameed
Hi Dave, Introducing ConnectX-4 CQE (Completion Queue Entry) compression feature for mlx5 etherent driver. CQE Compressing reduces PCI overhead by coalescing and compressing multiple CQEs into a single merged CQE. Successful compressing improves message rate especially for small packet traffic

[PATCH v1 net-next 6/7] dsa: Rename switch chip data to cd

2016-05-10 Thread Andrew Lunn
The dsa_switch structure contains a dsa_chip_data member called pd. However in the rest of the code, pd is used for dsa_platform_data. This is confusing. Rename it cd, which is already often used in dsa.c and slave.c for this data type. Signed-off-by: Andrew Lunn --- drivers/net/dsa/bcm_sf2.c

[PATCH v1 net-next 5/7] dsa: Remove master_dev from switch structure

2016-05-10 Thread Andrew Lunn
The switch drivers only use the master_dev member for dev_info() messages. Now that the device is passed to the old style probe, and new style drivers are probed as true linux drivers, this is no longer needed. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx.c | 1 + include/net/dsa.h

[PATCH v1 net-next 7/7] dsa: mv88e6xxx: Handle eeprom-length property

2016-05-10 Thread Andrew Lunn
A switch can export an attached EEPROM using the standard ethtool API. However the switch itself cannot determine the size of the EEPROM, and multiple sizes are allowed. Thus a device tree property is supported to indicate the length of the EEPROM. Parse this property during device probe, and imple

[PATCH v1 net-next 1/7] dsa: mv88e6xxx: Initialise the mutex as soon as it is created

2016-05-10 Thread Andrew Lunn
By initialising immediately it, we don't run the danger of using it before it is initialised. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/dsa/mv88e6xxx.c b/drivers/net/dsa/mv88e6xxx.c index 1e5ca8e0f

Re: [PATCH net-next 1/2] net: dsa: mv88e6xxx: abstract VTU/STU data access

2016-05-10 Thread Andrew Lunn
On Tue, May 10, 2016 at 03:44:28PM -0400, Vivien Didelot wrote: > Both VTU and STU operations use the same routine to access their > (common) data registers, with a different offset. > > Add VTU and STU specific read and write functions to the data registers > to abstract the required offset. > >

[PATCH v1 net-next 2/7] dsa: mv88e6xxx: Rename probe function to fit the normal pattern

2016-05-10 Thread Andrew Lunn
All other DSA drivers use _drv_ in there DSA probe function name, thus allowing for a true linux driver probe function to use the conventional name. Make mv88e6xxx fit this pattern. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx.c | 8 1 file changed, 4 insertions(+), 4 deleti

[PATCH v1 net-next 0/7] More enabler patches for DSA probing

2016-05-10 Thread Andrew Lunn
The complete set of patches for the reworked DSA probing is too big to post as once. These subset contains some enablers which are easy to review. Eventually, the Marvell driver will instantiate its own internal MDIO bus, rather than have the framework do it, thus allows devices on the bus to be l

[PATCH v1 net-next 3/7] dsa: Add mdio device support to Marvell switches

2016-05-10 Thread Andrew Lunn
Allow Marvell switches to be mdio devices. Currently the driver just allocate the private structure and detects what device is on the bus. Later patches will make them register with the DSA framework. Signed-off-by: Andrew Lunn --- .../devicetree/bindings/net/dsa/marvell.txt| 27 +++

Re: [net PATCH v2 6/6] net sched: ife action fix late binding

2016-05-10 Thread Cong Wang
On Tue, May 10, 2016 at 1:49 PM, Jamal Hadi Salim wrote: > From: Jamal Hadi Salim > > The process below was broken and is fixed with this patch. > > //add an ife action and give it an instance id of 1 > sudo tc actions add action ife encode \ > type 0xDEAD allow mark dst 02:15:15:15:15:15 index 1

[PATCH v1 net-next 4/7] dsa: Move gpio reset into switch driver

2016-05-10 Thread Andrew Lunn
Resetting the switch is something the driver does, not the framework. So move the parsing of this property into the driver. There are no in kernel users of this property, so moving it does not break anything. There is however a board which will make use of this property making its way into the ker

Re: [net PATCH v2 5/6] net sched: skbedit action fix late binding

2016-05-10 Thread Cong Wang
On Tue, May 10, 2016 at 1:49 PM, Jamal Hadi Salim wrote: > From: Jamal Hadi Salim > > The process below was broken and is fixed with this patch. > > //add a skbedit action and give it an instance id of 1 > sudo tc actions add action skbedit mark 10 index 1 > //create a filter which binds to skbed

Re: [net PATCH v2 4/6] net sched: simple action fix late binding

2016-05-10 Thread Cong Wang
On Tue, May 10, 2016 at 1:49 PM, Jamal Hadi Salim wrote: > From: Jamal Hadi Salim > > The process below was broken and is fixed with this patch. > > //add a simple action and give it an instance id of 1 > sudo tc actions add action simple sdata "foobar" index 1 > //create a filter which binds to

Re: [net PATCH v2 3/6] net sched: mirred action fix late binding

2016-05-10 Thread Cong Wang
On Tue, May 10, 2016 at 1:49 PM, Jamal Hadi Salim wrote: > From: Jamal Hadi Salim > > The process below was broken and is fixed with this patch. > > //add an mirred action and give it an instance id of 1 > sudo tc actions add action mirred egress mirror dev $MDEV index 1 > //create a filter whic

Re: [net PATCH v2 2/6] net sched: ipt action fix late binding

2016-05-10 Thread Cong Wang
On Tue, May 10, 2016 at 1:49 PM, Jamal Hadi Salim wrote: > From: Jamal Hadi Salim > > This was broken and is fixed with this patch. > > //add an ipt action and give it an instance id of 1 > sudo tc actions add action ipt -j mark --set-mark 2 index 1 > //create a filter which binds to ipt action i

Re: [net PATCH v2 1/6] net sched: vlan action fix late binding

2016-05-10 Thread Cong Wang
On Tue, May 10, 2016 at 1:49 PM, Jamal Hadi Salim wrote: > From: Jamal Hadi Salim > > Late vlan action binding was broken and is fixed with this patch. > > //add a vlan action to pop and give it an instance id of 1 > sudo tc actions add action vlan pop index 1 > //create filter which binds to vla

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Eric Dumazet
On Tue, May 10, 2016 at 1:46 PM, Hannes Frederic Sowa wrote: > I agree here, but I don't think this patch particularly is a lot of > bloat and something very interesting people can play with and extend upon. > Sure, very rarely patch authors think their stuff is bloat. I prefer to fix kernel so

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Rik van Riel
On Tue, 2016-05-10 at 16:52 -0400, David Miller wrote: > From: Rik van Riel > Date: Tue, 10 May 2016 16:50:56 -0400 > > > On Tue, 2016-05-10 at 16:45 -0400, David Miller wrote: > >> From: Paolo Abeni > >> Date: Tue, 10 May 2016 22:22:50 +0200 > >>  > >> > On Tue, 2016-05-10 at 09:08 -0700, Eric

Re: [Intel-wired-lan] [PATCH] e1000e: prevent division by zero if TIMINCA is zero

2016-05-10 Thread Jarod Wilson
On Fri, May 06, 2016 at 11:43:17PM +, Rustad, Mark D wrote: > Denys Vlasenko wrote: > > >Users report that under VMWare, er32(TIMINCA) returns zero. > >This causes division by zero at init time as follows: > > > > ==>incvalue = er32(TIMINCA) & E1000_TIMINCA_INCVALUE_MASK; > >

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread David Miller
From: Rik van Riel Date: Tue, 10 May 2016 16:50:56 -0400 > On Tue, 2016-05-10 at 16:45 -0400, David Miller wrote: >> From: Paolo Abeni >> Date: Tue, 10 May 2016 22:22:50 +0200 >> >> > On Tue, 2016-05-10 at 09:08 -0700, Eric Dumazet wrote: >> >> On Tue, 2016-05-10 at 18:03 +0200, Paolo Abeni wro

Re: [net-next PATCH v2 1/6] net sched: vlan action fix late binding

2016-05-10 Thread Jamal Hadi Salim
On 16-05-08 11:08 PM, Cong Wang wrote: + if (aexists) + tcf_hash_release(a, bind); Introduce a goto to reduce duplicated cleanup code? I addressed all your comments except for above goto. There are different return codes for all failures - and the clever

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Rik van Riel
On Tue, 2016-05-10 at 16:45 -0400, David Miller wrote: > From: Paolo Abeni > Date: Tue, 10 May 2016 22:22:50 +0200 > > > On Tue, 2016-05-10 at 09:08 -0700, Eric Dumazet wrote: > >> On Tue, 2016-05-10 at 18:03 +0200, Paolo Abeni wrote: > >>  > >> > If a single core host is under network flood, i.e

[net PATCH v2 5/6] net sched: skbedit action fix late binding

2016-05-10 Thread Jamal Hadi Salim
From: Jamal Hadi Salim The process below was broken and is fixed with this patch. //add a skbedit action and give it an instance id of 1 sudo tc actions add action skbedit mark 10 index 1 //create a filter which binds to skbedit action id 1 sudo tc filter add dev $DEV parent : protocol ip pr

[net PATCH v2 2/6] net sched: ipt action fix late binding

2016-05-10 Thread Jamal Hadi Salim
From: Jamal Hadi Salim This was broken and is fixed with this patch. //add an ipt action and give it an instance id of 1 sudo tc actions add action ipt -j mark --set-mark 2 index 1 //create a filter which binds to ipt action id 1 sudo tc filter add dev $DEV parent : protocol ip prio 1 u32\ m

[net PATCH v2 6/6] net sched: ife action fix late binding

2016-05-10 Thread Jamal Hadi Salim
From: Jamal Hadi Salim The process below was broken and is fixed with this patch. //add an ife action and give it an instance id of 1 sudo tc actions add action ife encode \ type 0xDEAD allow mark dst 02:15:15:15:15:15 index 1 //create a filter which binds to ife action id 1 sudo tc filter add

[net PATCH v2 4/6] net sched: simple action fix late binding

2016-05-10 Thread Jamal Hadi Salim
From: Jamal Hadi Salim The process below was broken and is fixed with this patch. //add a simple action and give it an instance id of 1 sudo tc actions add action simple sdata "foobar" index 1 //create a filter which binds to simple action id 1 sudo tc filter add dev $DEV parent : protocol i

[net PATCH v2 1/6] net sched: vlan action fix late binding

2016-05-10 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Late vlan action binding was broken and is fixed with this patch. //add a vlan action to pop and give it an instance id of 1 sudo tc actions add action vlan pop index 1 //create filter which binds to vlan action id 1 sudo tc filter add dev $DEV parent : protocol ip pri

[net PATCH v2 3/6] net sched: mirred action fix late binding

2016-05-10 Thread Jamal Hadi Salim
From: Jamal Hadi Salim The process below was broken and is fixed with this patch. //add an mirred action and give it an instance id of 1 sudo tc actions add action mirred egress mirror dev $MDEV index 1 //create a filter which binds to mirred action id 1 sudo tc filter add dev $DEV parent :

[net PATCH v2 0/6] net sched: Fix broken late binding of actions

2016-05-10 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Some actions were broken in allowing for late binding of actions. Late binding workflow is as follows: a) create an action and provide all necessary parameters for it Optionally provide an index or let the kernel give you one. Example: sudo tc actions add action police rate

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Hannes Frederic Sowa
Hello, On 10.05.2016 16:29, Eric Dumazet wrote: > On Tue, 2016-05-10 at 16:11 +0200, Paolo Abeni wrote: >> Currently, the softirq loop can be scheduled both inside the ksofirqd kernel >> thread and inside any running process. This makes nearly impossible for the >> process scheduler to balance in

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread David Miller
From: Paolo Abeni Date: Tue, 10 May 2016 22:22:50 +0200 > On Tue, 2016-05-10 at 09:08 -0700, Eric Dumazet wrote: >> On Tue, 2016-05-10 at 18:03 +0200, Paolo Abeni wrote: >> >> > If a single core host is under network flood, i.e. ksoftirqd is >> > scheduled and it eventually (after processing ~64

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Paolo Abeni
On Tue, 2016-05-10 at 17:57 +0200, Thomas Gleixner wrote: > On Tue, 10 May 2016, Paolo Abeni wrote: > > Nice patch set and very promising results! > > > At this point we are not really sure if we should go with this simpler > > approach by putting NAPI itself into kthreads or leverage the thread

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-10 Thread Paolo Abeni
On Tue, 2016-05-10 at 09:08 -0700, Eric Dumazet wrote: > On Tue, 2016-05-10 at 18:03 +0200, Paolo Abeni wrote: > > > If a single core host is under network flood, i.e. ksoftirqd is > > scheduled and it eventually (after processing ~640 packets) will let the > > user space process run. The latter w

[PATCH v3 net-next] tcp: replace cnt & rtt with struct in pkts_acked()

2016-05-10 Thread Lawrence Brakmo
Replace 2 arguments (cnt and rtt) in the congestion control modules' pkts_acked() function with a struct. This will allow adding more information without having to modify existing congestion control modules (tcp_nv in particular needs bytes in flight when packet was sent). As proposed by Neal Card

Re: [PATCH net-next] skbuff: remove unused variable `doff'

2016-05-10 Thread David Miller
From: Sowmini Varadhan Date: Tue, 10 May 2016 12:38:08 -0400 > There are two instances of an unused variable, `doff' added by > commit 6fa01ccd8830 ("skbuff: Add pskb_extract() helper function") > in pskb_carve_inside_header() and pskb_carve_inside_nonlinear(). > Remove these instances, they are

Re: [PATCH net-next v2] ila: ipv6/ila: fix nlsize calculation for lwtunnel

2016-05-10 Thread David Miller
From: Nicolas Dichtel Date: Tue, 10 May 2016 11:56:32 +0200 > From: Tom Herbert > > The handler 'ila_fill_encap_info' adds two attributes: ILA_ATTR_LOCATOR > and ILA_ATTR_CSUM_MODE. > > nla_total_size_64bit() must be use for ILA_ATTR_LOCATOR. > > Also, do nla_put_u8 instead of nla_put_u64 for

Re: [PATCH] net: phylib: fix interrupts re-enablement in phy_start

2016-05-10 Thread David Miller
From: Date: Tue, 10 May 2016 17:42:26 +0800 > From: Shaohui Xie > > If phy was suspended and is starting, current driver always enable > phy's interrupts, if phy works in polling, phy can raise unexpected > interrupt which will not be handled, the interrupt will block system > enter suspend aga

Re: [PATCH net] tcp: refresh skb timestamp at retransmit time

2016-05-10 Thread David Miller
From: Eric Dumazet Date: Mon, 09 May 2016 20:55:16 -0700 > From: Eric Dumazet > > In the very unlikely case __tcp_retransmit_skb() can not use the cloning > done in tcp_transmit_skb(), we need to refresh skb_mstamp before doing > the copy and transmit, otherwise TCP TS val will be an exact copy

Re: [PATCH net-next] gtp: reload GTPv1 header after pskb_may_pull()

2016-05-10 Thread David Miller
From: Pablo Neira Ayuso Date: Tue, 10 May 2016 21:33:38 +0200 > The GTPv1 header flags indicate the presence of optional extensions > after this header. Refresh the pointer to the GTPv1 header as skb->head > might have be reallocated via pskb_may_pull(). > > Fixes: 459aa660eb1d ("gtp: add initia

Re: [PATCH 5/6] drivers: net: xgene: Using static MSS values

2016-05-10 Thread David Miller
From: Iyappan Subramanian Date: Mon, 9 May 2016 17:04:15 -0700 > Due to the nature of hardware design for TSO, if the MSS values that are > stored in the register, changes during TSO operation, data corruption may > occur. > > This patch fixes the issue by using one of the predefined MSS values

[PATCH net-next 2/2] net: dsa: mv88e6xxx: add STU capability

2016-05-10 Thread Vivien Didelot
Some switch models have a STU (per VLAN port state database). Add a new capability flag to switches info, instead of checking their family. Also if the 6165 family has an STU, it must have a VTU, so add the MV88E6XXX_FLAG_VTU to its family flags. Signed-off-by: Vivien Didelot --- drivers/net/ds

[PATCH net-next 1/2] net: dsa: mv88e6xxx: abstract VTU/STU data access

2016-05-10 Thread Vivien Didelot
Both VTU and STU operations use the same routine to access their (common) data registers, with a different offset. Add VTU and STU specific read and write functions to the data registers to abstract the required offset. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx.c | 32

[PATCH 14/17] batman-adv: Use kref_get for _batadv_update_route

2016-05-10 Thread Antonio Quartulli
From: Sven Eckelmann _batadv_update_route requires that the caller already has a valid reference for neigh_node. It is therefore not possible that it has an reference counter of 0 and was still given to this function The kref_get function instead WARNs (with debug information) when the reference

[PATCH 15/17] batman-adv: Use bool as return type for boolean functions

2016-05-10 Thread Antonio Quartulli
From: Sven Eckelmann It is easier to understand that the returned value of a specific function doesn't have to be 0 when the functions was successful when the actual return type is bool. This is especially true when all surrounding functions with return type int use negative values to return the

[PATCH 10/17] batman-adv: Use kref_get for batadv_nc_get_nc_node

2016-05-10 Thread Antonio Quartulli
From: Sven Eckelmann batadv_nc_get_nc_node requires that the caller already has a valid reference for orig_neigh_node. It is therefore not possible that it has an reference counter of 0 and was still given to this function The kref_get function instead WARNs (with debug information) when the ref

[PATCH 13/17] batman-adv: Use kref_get for hard_iface subfunctions

2016-05-10 Thread Antonio Quartulli
From: Sven Eckelmann The callers of the functions using batadv_hard_iface objects already make sure that they hold a valid reference. The subfunctions don't have to check whether the reference counter is > 0 because this was checked by the callers. The kref_get function instead WARNs (with debug

[PATCH 17/17] batman-adv: use batadv_compare_eth when possible

2016-05-10 Thread Antonio Quartulli
When comparing Ethernet address it is better to use the more generic batadv_compare_eth. The latter is also optimised for architectures having a fast unaligned access. Signed-off-by: Antonio Quartulli [s...@narfation.org: fix conflicts with current version] Signed-off-by: Sven Eckelmann Signed-o

[PATCH 16/17] batman-adv: replace ethertype variable with ETH_P_BATMAN for readability

2016-05-10 Thread Antonio Quartulli
From: Marek Lindner Signed-off-by: Marek Lindner Reviewed-by: Sven Eckelmann Signed-off-by: Antonio Quartulli --- net/batman-adv/soft-interface.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index

[PATCH 12/17] batman-adv: Use kref_get for batadv_gw_node_add

2016-05-10 Thread Antonio Quartulli
From: Sven Eckelmann batadv_gw_node_add requires that the caller already has a valid reference for orig_node. It is therefore not possible that it has an reference counter of 0 and was still given to this function The kref_get function instead WARNs (with debug information) when the reference co

[PATCH 11/17] batman-adv: Use kref_get for batadv_gw_select

2016-05-10 Thread Antonio Quartulli
From: Sven Eckelmann batadv_gw_select requires that the caller already has a valid reference for new_gw_node. It is therefore not possible that it has an reference counter of 0 and was still given to this function The kref_get function instead WARNs (with debug information) when the reference co

[PATCH net-next] gtp: reload GTPv1 header after pskb_may_pull()

2016-05-10 Thread Pablo Neira Ayuso
The GTPv1 header flags indicate the presence of optional extensions after this header. Refresh the pointer to the GTPv1 header as skb->head might have be reallocated via pskb_may_pull(). Fixes: 459aa660eb1d ("gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)") Reported-by: E

[PATCH 05/17] batman-adv: add detection for complex bridge loops

2016-05-10 Thread Antonio Quartulli
From: Simon Wunderlich There are network setups where the current bridge loop avoidance can't detect bridge loops. The minimal setup affected would consist of two LANs and two separate meshes, connected in a ring like that: A...(mesh1)...B | | (LAN1)(LAN2) |

[PATCH 06/17] batman-adv: Check hard_iface refcnt before calling function

2016-05-10 Thread Antonio Quartulli
From: Sven Eckelmann The batadv_hardif_list list is checked in many situations and the items in this list are given to specialized functions to modify the routing behavior. At the moment each of these called functions has to check itself whether the received batadv_hard_iface has a refcount > 0 b

[PATCH 07/17] batman-adv: Check hard_iface refcnt when receiving skb

2016-05-10 Thread Antonio Quartulli
From: Sven Eckelmann The receive function may start processing an incoming packet while the hard_iface is shut down in a different context. All called functions called with the batadv_hard_iface object belonging to the incoming interface would have to check whether the reference counter is still

[PATCH 04/17] batman-adv: Create batman soft interfaces within correct netns.

2016-05-10 Thread Antonio Quartulli
From: Andrew Lunn When creating a soft interface, create it in the same netns as the hard interface. Replace all references to init_net with the correct name space for the interface being manipulated. Suggested-by: Daniel Ehlers Signed-off-by: Andrew Lunn Acked-by: Antonio Quartulli Signed-of

[PATCH 09/17] batman-adv: Use kref_get for batadv_tvlv_container_get

2016-05-10 Thread Antonio Quartulli
From: Sven Eckelmann batadv_tvlv_container_get requires that tvlv.container_list_lock is held by the caller. It is therefore not possible that an item in tvlv.container_list has an reference counter of 0 and is still in the list The kref_get function instead WARNs (with debug information) when t

[PATCH 02/17] batman-adv: Remove hdr_size skb size check in batadv_interface_rx

2016-05-10 Thread Antonio Quartulli
From: Sven Eckelmann The callers of batadv_interface_rx have to make sure that enough data can be pulled from the skb when they read the batman-adv header. The only two functions using it are either calling pskb_may_pull with hdr_size directly (batadv_recv_bcast_packet) or indirectly via batadv_c

[PATCH 08/17] batman-adv: Increase hard_iface refcnt for ptype

2016-05-10 Thread Antonio Quartulli
From: Sven Eckelmann The hard_iface is referenced in the packet_type for batman-adv. Increase the refcounter of the hard_interface for it to have an explicit reference for it in case this functionality gets refactorted and the currently used implicit reference for it will be removed. Signed-off-

[PATCH 03/17] batman-adv: NETIF_F_NETNS_LOCAL feature to prevent netns moves

2016-05-10 Thread Antonio Quartulli
From: Andrew Lunn The batX soft interface should not be moved between network name spaces. This is similar to bridges, bonds, tunnels, which are not allowed to move between network namespaces. Suggested-by: Daniel Ehlers Signed-off-by: Andrew Lunn Acked-by: Antonio Quartulli Reviewed-by: Sven

[PATCH 01/17] batman-adv: Remove unused parameter recv_if of batadv_interface_rx

2016-05-10 Thread Antonio Quartulli
From: Sven Eckelmann Signed-off-by: Sven Eckelmann Signed-off-by: Marek Lindner Signed-off-by: Antonio Quartulli --- net/batman-adv/routing.c| 5 ++--- net/batman-adv/soft-interface.c | 5 ++--- net/batman-adv/soft-interface.h | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-)

pull request: batman-adv 20160511

2016-05-10 Thread Antonio Quartulli
Hi David, here you have a pull request intended for net-next. There are 17 patches in this batch, but most of them are cleanups and minor code re-arrangement. The more detailed description follows in the git tag. Please pull or let me know of any problem. Thanks a lot, Antonio The fol

  1   2   >