[net PATCH 1/1] drivers: net: cpsw: fix disabling of tx interrupt in rx isr

2015-07-07 Thread Mugunthan V N
With the below commit, common isr is split into tx and rx, but in rx isr tx interrupt is also disabled. So tx packets are not handled during rx interrupts and rx napi completion. Fixing by disabling on rx interrupt in rx isr. Fixes: c03abd84634d ("net: ethernet: cpsw: don't requests IRQs we don't

Re: Stable request for gso feature flag and error handling fixes

2015-07-07 Thread David Miller
From: Jay Vosburgh Date: Tue, 07 Jul 2015 22:10:53 -0700 > Are the other -stable tree maintainers picking up patches after > you've submitted to 4.1/3.18/3.14, or is it necessary to make separate > requests? I don't know and I frankly don't care. -- To unsubscribe from this list: send the

Re: IPsec maintenance during the next weeks

2015-07-07 Thread David Miller
From: Steffen Klassert Date: Wed, 8 Jul 2015 07:04:32 +0200 > I'll be off without mail access for the next two and a half weeks. > Can you please take urgent IPsec patches directly into the net > tree during this time? > > I'll let you know as soon as I'm back. Sure, thanks for letting me know

Re: [PATCH net-next 1/3] tcp: introduce TCP experimental option for SMC

2015-07-07 Thread Eric Dumazet
On Tue, 2015-07-07 at 15:57 +0200, Ursula Braun wrote: > Eric, > > understood, would it be acceptable if the SMC-specific hooks in the > TCP-code are enclosed with "#ifdef CONFIG_SMC ... #endif"? If this CONFIG_SMC is enabled only on relevant builds, I guess it would be ok. (Try to use helpers in

RE: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature

2015-07-07 Thread Dexuan Cui
> -Original Message- > From: Olaf Hering > Sent: Tuesday, July 7, 2015 18:59 > Subject: Re: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature > > On Tue, Jul 07, Dexuan Cui wrote: > > > OK, removing the line seems better than 'default n', though both reproduce > > the same "# CONFI

Re: Broadcom BCM54610 Linux support

2015-07-07 Thread Markus Pargmann
Hi, On Tue, Jul 07, 2015 at 10:34:56AM -0700, Florian Fainelli wrote: > (adding Michael) > > On 07/07/15 03:58, Markus Pargmann wrote: > > Hi, > > > > I found the phy driver which supports broadcom BCM5461. But I am not > > sure if this driver does support BCM54610 in fiber mode as well? Or if >

[PATCH] net: systemport: Use eth_hw_addr_random

2015-07-07 Thread Vaishali Thakkar
Use eth_hw_addr_random() instead of calling random_ether_addr(). Here, this change is setting addr_assign_type to NET_ADDR_RANDOM. The Coccinelle semantic patch that performs this transformation is as follows: @@ identifier a,b; @@ -random_ether_addr(a->b); +eth_hw_addr_random(a); Signed-off-by

Re: Stable request for gso feature flag and error handling fixes

2015-07-07 Thread Jay Vosburgh
David Miller wrote: >From: Jay Vosburgh >Date: Tue, 07 Jul 2015 17:38:50 -0700 > >> Please consider commit > >When you ask me to consider commits for -stable you have to tell >me what -stable releases you want me to submit them for. > >Currently I am only doing -stable submissions for 4.1.x

Re: [PATCH] net/tipc: initialize security state for new connection socket

2015-07-07 Thread Ying Xue
On 07/07/2015 09:43 PM, Stephen Smalley wrote: > Calling connect() with an AF_TIPC socket would trigger a series > of error messages from SELinux along the lines of: > SELinux: Invalid class 0 > type=AVC msg=audit(1434126658.487:34500): avc: denied { } > for pid=292 comm="kworker/u16:5" sconte

IPsec maintenance during the next weeks

2015-07-07 Thread Steffen Klassert
David, I'll be off without mail access for the next two and a half weeks. Can you please take urgent IPsec patches directly into the net tree during this time? I'll let you know as soon as I'm back. Thanks! -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a me

Re: [PATCH v2 4/5] ipvlan: protect addresses with internal spinlock

2015-07-07 Thread Mahesh Bandewar
On Fri, Jul 3, 2015 at 5:58 AM, Konstantin Khlebnikov wrote: > Inet6addr notifier is atomic and runs in bh context without RTNL when > ipv6 receives router advertisement packet and performs autoconfiguration. > > This patch adds ipvl_port->addr_lock and helpers: ipvlan_addr_lock_bh, > ipvlan_addr_

Re: [PATCH v2 1/5] ipvlan: remove counters of ipv4 and ipv6 addresses

2015-07-07 Thread Mahesh Bandewar
On Fri, Jul 3, 2015 at 5:58 AM, Konstantin Khlebnikov wrote: > They are unused after commit f631c44bbe15 ("ipvlan: Always set broadcast bit > in > multicast filter"). > > Signed-off-by: Konstantin Khlebnikov > --- > drivers/net/ipvlan/ipvlan.h |2 - > drivers/net/ipvlan/ipvlan_main.c |

RE: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature

2015-07-07 Thread Dexuan Cui
> -Original Message- > From: Stephen Hemminger > Sent: Wednesday, July 8, 2015 2:31 > Subject: Re: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature > > On Mon, 6 Jul 2015 07:47:29 -0700 > Dexuan Cui wrote: > > > Hyper-V VM sockets (hvsock) supplies a byte-stream based communicatio

[PATCH] dsa: mv88e6352/mv88e6xxx: Add support for Marvell 88E6320 and 88E6321

2015-07-07 Thread Guenter Roeck
From: "Aleksey S. Kazantsev" MV88E6320 and MV88E6321 are largely compatible to MV886352, but are members of a different chip family. Signed-off-by: Aleksey S. Kazantsev Signed-off-by: Guenter Roeck --- drivers/net/dsa/Kconfig | 6 +++--- drivers/net/dsa/mv88e6352.c | 31 +

Re: Stable request for gso feature flag and error handling fixes

2015-07-07 Thread David Miller
From: Jay Vosburgh Date: Tue, 07 Jul 2015 17:38:50 -0700 > Please consider commit When you ask me to consider commits for -stable you have to tell me what -stable releases you want me to submit them for. Currently I am only doing -stable submissions for 4.1.x, 3.18.x and 3.14.x -- To unsu

Re: [PATCH,v2 net-next] ipvs: skb_orphan in case of forwarding

2015-07-07 Thread Simon Horman
On Sun, Jul 05, 2015 at 09:14:38PM -0700, Alex Gartrell wrote: > On Sun, Jul 5, 2015 at 8:50 PM, Simon Horman wrote: > > Is it possible to get a 'Fixes:' tag? > > I suppose it'd be appropriate to say > > Fixes: 41063e9dd119 ("ipv4: Early TCP socket demux.") > > As that is what introduces tcp ea

Re: [PATCH net-next v2] ipv6: sysctl to restrict candidate source addresses

2015-07-07 Thread Lorenzo Colitti
On Mon, Jul 6, 2015 at 12:05 PM, Erik Kline wrote: > Per RFC 6724, section 4, "Candidate Source Addresses": > > It is RECOMMENDED that the candidate source addresses be the set > of unicast addresses assigned to the interface that will be used > to send to the destination (the "outgoin

Stable request for gso feature flag and error handling fixes

2015-07-07 Thread Jay Vosburgh
Please consider commit commit 1e16aa3ddf863c6b9f37eddf52503230a62dedb3 Author: Florian Westphal Date: Mon Oct 20 13:49:16 2014 +0200 net: gso: use feature flag argument in all protocol gso handlers and, at your discretion, the related commit commit 330966e501ffe282d7184f

[PATCH net-next] tcp: v1 always send a quick ack when quickacks are enabled

2015-07-07 Thread Jon Maxwell
V1 of this patch contains Eric Dumazet's suggestion to move the per dst RTAX_QUICKACK check into tcp_in_quickack_mode(). Thanks Eric. I ran some tests and after setting the "ip route change quickack 1" knob there were still many delayed ACKs sent. This occured because when icsk_ack.quick=0 the !ic

Re: [PATCH net,v2] ip_tunnel: fix ipv4 pmtu check to honor inner ip header df

2015-07-07 Thread Pravin Shelar
On Mon, Jul 6, 2015 at 10:34 PM, Timo Teräs wrote: > Frag needed should be sent only if the inner header asked > to not fragment. Currently fragmentation is broken if the > tunnel has df set, but df was not asked in the original > packet. The tunnel's df needs to be still checked to update > inter

[PATCH v4 1/3] net: dsa: mv88e6xxx: add debugfs interface for VTU

2015-07-07 Thread Vivien Didelot
Implement the Get Next and Load Purge operations for the VLAN Table Unit, and a "vtu" debugfs file to read and write the hardware VLANs. A populated VTU look like this: # cat /sys/kernel/debug/dsa0/vtu VID FID SID 0 1 2 3 4 5 6 550 5620 x x x u x t x 1000 10

[PATCH v4 2/3] net: dsa: add support for switchdev VLAN objects

2015-07-07 Thread Vivien Didelot
This patch adds the glue between DSA and switchdev operations to add, delete and dump SWITCHDEV_OBJ_PORT_VLAN objects. This is a first step to link the "bridge vlan" command with hardware entries for DSA compatible switch chips. Signed-off-by: Vivien Didelot --- include/net/dsa.h | 9 n

[PATCH v4 3/3] net: dsa: mv88e6xxx: add switchdev VLAN operations

2015-07-07 Thread Vivien Didelot
This commit implements the switchdev operations to add, delete and dump VLANs for the Marvell 88E6352 and compatible switch chips. This allows to access the switch VLAN Table Unit from standard userspace commands such as "bridge vlan". A configuration like "1t 2t 3t 4u" for VLAN 10 is achieved li

[PATCH v4 0/3] net: dsa: mv88e6xxx: add support for VLAN Table Unit

2015-07-07 Thread Vivien Didelot
Hi all, This patchset brings full support for hardware VLANs in DSA, and the Marvell 88E6xxx compatible switch chips. The first patch adds the VTU operations to the mv88e6xxx code, as well as a "vtu" debugfs file to read and modify the hardware VLAN table. The second patch adds the glue between

[PATCH net 1/1] drivers/net/usb: add device id for NVIDIA Tegra USB 3.0 Ethernet

2015-07-07 Thread Zheng Liu
This device is sold as 'NVIDIA Tegra USB 3.0 Ethernet'. Chipset is RTL8153 and works with r8152. Signed-off-by: Zheng Liu --- drivers/net/usb/cdc_ether.c | 8 drivers/net/usb/r8152.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/us

Re: [PATCH V2] cdc_ncm: Add support for moving NDP to end of NCM frame

2015-07-07 Thread Enrico Mioso
Hi Oliver, hello to who is reading this message. i was re-reading the code and the oops, without understanding what's the problem. Still: what impressed me is the fact that at some point you see NULL ptr dereference in unrelated code (fbcon). Is it possible that at some point the memory portio

Re: [PATCH v3 0/3] net: dsa: mv88e6xxx: add support for VLAN Table Unit

2015-07-07 Thread Scott Feldman
On Tue, Jul 7, 2015 at 9:17 AM, Vivien Didelot wrote: > Hi Andrew, Scott, > Does this fixup http://ix.io/jxq look good to you? Yes. -- 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

Re: [PATCH] freescale:Make the function gfar_configure_coalescing_all static

2015-07-07 Thread Uwe Kleine-König
On Tue, Jul 07, 2015 at 03:49:33PM -0400, Nicholas Krause wrote: > This makes the function gfar_configure_coalescing_all static > and removes its function prototype from the header file, gianfar.h really? Looking at the diffstat I dare to disagree. > due to this function only ever being called in

RE: linux-4.2-rc1/samples/bpf/sockex3_kern.c: bad expression ?

2015-07-07 Thread David Binderman
Hello there Alexei, > oops, yes. Could you please send a patch to fix it. Sorry, but I gave up trying to do kernel patches many years ago. Regards David Binderman -- To unsubscribe from this list: send the line

Re: linux-4.2-rc1/samples/bpf/sockex3_kern.c: bad expression ?

2015-07-07 Thread Alexei Starovoitov
On Tue, Jul 07, 2015 at 11:27:55AM +, David Binderman wrote: > Hello there, > > [linux-4.2-rc1/samples/bpf/sockex3_kern.c:268]: (style) Expression '(X & > 0xf0) == 0x4' is always false. > > Source code is > >    if ((verlen & 0xF0) == 4) > > Maybe > >    if ((verlen & 0xF0) == 0x40) oops

[PATCH] 3c59x: Fix shared IRQ handling

2015-07-07 Thread Denys Vlasenko
As its first order of business, boomerang_interrupt() checks whether the device really has any pending interrupts. If it does not, it does nothing and returns, but it still returns IRQ_HANDLED. This is wrong: interrupt was not handled, IRQ handlers of other devices sharing this IRQ line need to be

Re: [PATCH v2 06/22] fjes: buffer address regist/unregistration routine

2015-07-07 Thread Yasuaki Ishimatsu
On Wed, 24 Jun 2015 11:55:38 +0900 Taku Izumi wrote: > This patch adds buffer address regist/unregistration routine. > > This function is mainly invoked when network device's > activation (open) and deactivation (close) > in order to retist/unregist shared buffer address. > > Signed-off-by: Ta

Re: [PATCH v2] net/bridge: Use __in6_dev_get rather than in6_dev_get in br_validate_ipv6

2015-07-07 Thread Stephen Hemminger
On Tue, 7 Jul 2015 15:55:21 +0100 Julien Grall wrote: > The commit efb6de9b4ba0092b2c55f6a52d16294a8a698edd "netfilter: bridge: > forward IPv6 fragmented packets" introduced a new function > br_validate_ipv6 which take a reference on the inet6 device. Although, > the reference is not released at

Re: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature

2015-07-07 Thread Stephen Hemminger
On Mon, 6 Jul 2015 07:47:29 -0700 Dexuan Cui wrote: > Hyper-V VM sockets (hvsock) supplies a byte-stream based communication > mechanism between the host and a guest. It's kind of TCP over VMBus, but > the transportation layer (VMBus) is much simpler than IP. With Hyper-V VM > Sockets, applicati

Re: [PATCH] vmxnet3: prevent receive getting out of sequence on napi poll

2015-07-07 Thread Neil Horman
On Tue, Jul 07, 2015 at 02:10:50PM -0400, Andy Gospodarek wrote: > On Tue, Jul 07, 2015 at 02:02:18PM -0400, Neil Horman wrote: > > vmxnet3's current napi path is built to count every rx descriptor we > > recieve, > > and use that as a count of the napi budget. That means its possible to > > ret

Re: Performance bottleneck with ndo_start_xmit

2015-07-07 Thread Jason A. Donenfeld
On Tue, Jul 7, 2015 at 8:10 PM, Stephen Hemminger wrote: > Is it open source, is the source available to look at? > If not, please solve your own problems. Yes it is. Right now the repo is under password because it's supposed to keep your data secure, but I haven't audited it yet, and I don't wan

[ANNOUNCE] iproute2 4.1.1

2015-07-07 Thread Stephen Hemminger
Maintenance release of iproute2 for Linux 4.1 This fixes issues affecting some environments with iproute2 4.1. The MPLS support was missing one patch, and the introduction of TIPC made build difficult in environments without proper libmnl. Source: http://www.kernel.org/pub/linux/utils/net/iprou

Re: Performance bottleneck with ndo_start_xmit

2015-07-07 Thread Stephen Hemminger
On Tue, 7 Jul 2015 18:32:22 +0200 "Jason A. Donenfeld" wrote: > I'm writing a kernel module that creates a virtual network device with > rtnl_link_register. Is it open source, is the source available to look at? If not, please solve your own problems. -- To unsubscribe from this list: send the l

Re: [PATCH] vmxnet3: prevent receive getting out of sequence on napi poll

2015-07-07 Thread Andy Gospodarek
On Tue, Jul 07, 2015 at 02:02:18PM -0400, Neil Horman wrote: > vmxnet3's current napi path is built to count every rx descriptor we recieve, > and use that as a count of the napi budget. That means its possible to return > from a napi poll halfway through recieving a fragmented packet accross > m

[PATCH] vmxnet3: prevent receive getting out of sequence on napi poll

2015-07-07 Thread Neil Horman
vmxnet3's current napi path is built to count every rx descriptor we recieve, and use that as a count of the napi budget. That means its possible to return from a napi poll halfway through recieving a fragmented packet accross multiple dma descriptors. If that happens, the next napi poll will sta

[PATCH net-next v2] ipv4: add support for linkdown sysctl to netconf

2015-07-07 Thread Andy Gospodarek
This kernel patch exports the value of the new ignore_routes_with_linkdown via netconf. v2: changes to notify userspace via netlink when sysctl values change and proposed for 'net' since this could be considered a bugfix Signed-off-by: Andy Gospodarek Suggested-by: Nicolas Dichtel --- I realize

Re: [PATCH 3/3] ipmr_free_table() should be called under taken rtnl_lock

2015-07-07 Thread Vasily Averin
On 07.07.2015 20:30, Cong Wang wrote: > On Tue, Jul 7, 2015 at 10:25 AM, Vasily Averin wrote: >> On 07.07.2015 20:13, Cong Wang wrote: >>> On Tue, Jul 7, 2015 at 8:53 AM, Vasily Averin wrote: ipmr_free_table() calls unregister_netdevice_many() inside and changes net_todo_list protected

[RFC PATCH net-next] sctp: fix src address selection if using secondary addresses

2015-07-07 Thread Marcelo Ricardo Leitner
Hi folks, This is an attempt to better choose a src address for sctp packets as peers with rp_filter could be dropping our packets in some situations. With this patch, we try to respect and use a src address that belongs to the interface we are putting the packet out. I have that feeling that the

Re: Broadcom BCM54610 Linux support

2015-07-07 Thread Florian Fainelli
(adding Michael) On 07/07/15 03:58, Markus Pargmann wrote: > Hi, > > I found the phy driver which supports broadcom BCM5461. But I am not > sure if this driver does support BCM54610 in fiber mode as well? Or if > there are any open datasheets which could be used to write a mainline > driver for i

Re: [PATCH 3/3] ipmr_free_table() should be called under taken rtnl_lock

2015-07-07 Thread Cong Wang
On Tue, Jul 7, 2015 at 10:25 AM, Vasily Averin wrote: > On 07.07.2015 20:13, Cong Wang wrote: >> On Tue, Jul 7, 2015 at 8:53 AM, Vasily Averin wrote: >>> ipmr_free_table() calls unregister_netdevice_many() inside >>> and changes net_todo_list protected by rtnl_lock >> >> Did you see any real bug?

Re: [PATCH 3/3] ipmr_free_table() should be called under taken rtnl_lock

2015-07-07 Thread Vasily Averin
On 07.07.2015 20:13, Cong Wang wrote: > On Tue, Jul 7, 2015 at 8:53 AM, Vasily Averin wrote: >> ipmr_free_table() calls unregister_netdevice_many() inside >> and changes net_todo_list protected by rtnl_lock > > Did you see any real bug? No, it was result of manual code review. > ipmr_free_table

Re: [PATCH 3/3] ipmr_free_table() should be called under taken rtnl_lock

2015-07-07 Thread Cong Wang
On Tue, Jul 7, 2015 at 8:53 AM, Vasily Averin wrote: > ipmr_free_table() calls unregister_netdevice_many() inside > and changes net_todo_list protected by rtnl_lock > Did you see any real bug? ipmr_free_table() is called in failure path, in this case there is no device registered yet, so unregis

Re: [PULL] virtio/vhost: cross endian support

2015-07-07 Thread Michael S. Tsirkin
On Tue, Jul 07, 2015 at 06:36:53PM +0200, Thomas Huth wrote: > On Thu, 2 Jul 2015 11:32:52 +0200 > "Michael S. Tsirkin" wrote: > > > On Thu, Jul 02, 2015 at 11:12:56AM +0200, Greg Kurz wrote: > > > On Thu, 2 Jul 2015 08:01:28 +0200 > > > "Michael S. Tsirkin" wrote: > ... > > > > Yea, well - supp

Re: [PATCH v2 02/22] fjes: Hardware initialization routine

2015-07-07 Thread Yasuaki Ishimatsu
On Wed, 24 Jun 2015 11:55:34 +0900 Taku Izumi wrote: > This patch adds hardware initialization routine to be > invoked at driver's .probe routine. > > Signed-off-by: Taku Izumi > --- > drivers/net/fjes/Makefile| 2 +- > drivers/net/fjes/fjes.h | 2 +- > drivers/net/fjes/fjes_hw.c

Re: [PULL] virtio/vhost: cross endian support

2015-07-07 Thread Thomas Huth
On Thu, 2 Jul 2015 11:32:52 +0200 "Michael S. Tsirkin" wrote: > On Thu, Jul 02, 2015 at 11:12:56AM +0200, Greg Kurz wrote: > > On Thu, 2 Jul 2015 08:01:28 +0200 > > "Michael S. Tsirkin" wrote: ... > > > Yea, well - support for legacy BE guests on the new LE hosts is > > > exactly the motivation

Performance bottleneck with ndo_start_xmit

2015-07-07 Thread Jason A. Donenfeld
Hi folks, I'm writing a kernel module that creates a virtual network device with rtnl_link_register. At initialization time, it creates a UDP socket with sock_create_kern. On ndo_start_xmit, it passes the data of the skb to the UDP socket's sendmsg, after some minimal crypto and processing. The de

Re: [PATCH v3 0/3] net: dsa: mv88e6xxx: add support for VLAN Table Unit

2015-07-07 Thread Andrew Lunn
On Tue, Jul 07, 2015 at 12:17:57PM -0400, Vivien Didelot wrote: > Hi Andrew, Scott, > Does this fixup http://ix.io/jxq look good to you? Yes, that looks good. Andrew -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org Mor

Re: [PATCH v3] bonding: "primary_reselect" with "failure" is not working properly

2015-07-07 Thread Jay Vosburgh
Mazhar Rana wrote: >From: Mazhar Rana > >When "primary_reselect" is set to "failure", primary interface should >not become active until current active slave is down. But if we set first >member of bond device as a "primary" interface and "primary_reselect" >is set to "failure" then whenever prim

Re: [PATCH v3 1/3] net: dsa: mv88e6xxx: add debugfs interface for VTU

2015-07-07 Thread Vivien Didelot
Hi Guenter, Andrew, - On Jul 7, 2015, at 12:07 PM, Andrew Lunn and...@lunn.ch wrote: >> Indeed, I intentionally kept it as is, since the 88E6352 datasheet is not >> really clear about this. I see that the register 0x09 (called >> GLOBAL_VTU_DATA_8_11 in mv88e6xxx.h) only contains VID priority

Re: [PATCH v3 0/3] net: dsa: mv88e6xxx: add support for VLAN Table Unit

2015-07-07 Thread Vivien Didelot
Hi Andrew, Scott, On Jul 6, 2015, at 11:46 PM, Scott Feldman sfel...@gmail.com wrote: > On Mon, Jul 6, 2015 at 7:00 PM, Andrew Lunn wrote: >> On Tue, Jul 07, 2015 at 01:38:04AM +0200, Andrew Lunn wrote: >>> On Sun, Jul 05, 2015 at 10:14:50PM -0400, Vivien Didelot wrote: >>> > Hi all, >>> > >>> >

Re: [PATCH v3 1/3] net: dsa: mv88e6xxx: add debugfs interface for VTU

2015-07-07 Thread Andrew Lunn
> Indeed, I intentionally kept it as is, since the 88E6352 datasheet is not > really clear about this. I see that the register 0x09 (called > GLOBAL_VTU_DATA_8_11 in mv88e6xxx.h) only contains VID priority related bits > in > 15:12, in my case. As bits 11:0 are reserved, I suspect that the offsets

Re: [PATCH v3 1/3] net: dsa: mv88e6xxx: add debugfs interface for VTU

2015-07-07 Thread Guenter Roeck
On 07/07/2015 08:52 AM, Vivien Didelot wrote: Hi Andrew, On Jul 6, 2015, at 10:08 PM, Andrew Lunn and...@lunn.ch wrote: +static int _mv88e6xxx_vtu_getnext(struct dsa_switch *ds, u16 vid, + struct mv88e6xxx_vtu_entry *entry) +{ + int ret, i; + + ret =

[PATCH 3/3] ipmr_free_table() should be called under taken rtnl_lock

2015-07-07 Thread Vasily Averin
ipmr_free_table() calls unregister_netdevice_many() inside and changes net_todo_list protected by rtnl_lock Signed-off-by: Vasily Averin --- net/ipv6/ip6mr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index 74ceb73..9108636 100644 --- a/net/ipv6/ip6

[PATCH 2/3] missing rtnl_unlock in igb_sriov_reinit()

2015-07-07 Thread Vasily Averin
Signed-off-by: Vasily Averin --- drivers/net/ethernet/intel/igb/igb_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index 2f70a9b..5881458 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b

[PATCH 1/3] missing rtnl_unlock in i40evf_resume()

2015-07-07 Thread Vasily Averin
Signed-off-by: Vasily Averin --- drivers/net/ethernet/intel/i40evf/i40evf_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c index 4ab4ebb..dd6a428 100644 --- a/drivers/net/ethernet/intel/i4

[PATCH 0/3] rtnl_lock fixes

2015-07-07 Thread Vasily Averin
While investigation possible reasons of net_todo_list corruption on rhel6 based OpenVZ kernel I've found few places not fixed in mainline. Vasily Averin (3): missing rtnl_unlock in i40evf_resume() missing rtnl_unlock in igb_sriov_reinit() ipmr_free_table() should be called under taken rtnl_

Re: [PATCH v3 1/3] net: dsa: mv88e6xxx: add debugfs interface for VTU

2015-07-07 Thread Vivien Didelot
Hi Andrew, On Jul 6, 2015, at 10:08 PM, Andrew Lunn and...@lunn.ch wrote: >> +static int _mv88e6xxx_vtu_getnext(struct dsa_switch *ds, u16 vid, >> + struct mv88e6xxx_vtu_entry *entry) >> +{ >> +int ret, i; >> + >> +ret = _mv88e6xxx_vtu_wait(ds); >> +if (re

Re: [PATCH v2] add stealth mode

2015-07-07 Thread Matteo Croce
2015-07-07 10:07 GMT+02:00 Hannes Frederic Sowa : > > > On Mon, Jul 6, 2015, at 21:44, Matteo Croce wrote: >> 2015-07-06 12:49 GMT+02:00 : >> > On Thu, 02 Jul 2015 10:56:01 +0200, Matteo Croce said: >> >> Add option to disable any reply not related to a listening socket, >> >> like RST/ACK for TCP

Re: [PATCH v2] add stealth mode

2015-07-07 Thread Matteo Croce
2015-07-07 9:01 GMT+02:00 Clemens Ladisch : > valdis.kletni...@vt.edu wrote: >> On Thu, 02 Jul 2015 10:56:01 +0200, Matteo Croce said: >>> Add option to disable any reply not related to a listening socket >> >> 2) You *do* realize that this isn't anywhere near sufficient in order >> to actually mak

[PATCH v2] net/bridge: Use __in6_dev_get rather than in6_dev_get in br_validate_ipv6

2015-07-07 Thread Julien Grall
The commit efb6de9b4ba0092b2c55f6a52d16294a8a698edd "netfilter: bridge: forward IPv6 fragmented packets" introduced a new function br_validate_ipv6 which take a reference on the inet6 device. Although, the reference is not released at the end. This will result to the impossibility to destroy any n

Darlehen angebot

2015-07-07 Thread karin LOCK
Hallo, Haben Sie Interesse an einer finanziellen Darlehen zu 3%? kontaktieren Sie mich für Details und Bedingungen. meine mail: petmvinfol...@gmail.com danke -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo

[PATCH net-next] net: igb: implement high frequency periodic output signals

2015-07-07 Thread Richard Cochran
In addition to interrupt driven target time output events, the i210 also has two programmable clock outputs. These clocks support periods between 16 nanoseconds and 140 milliseconds. This patch implements the periodic output function using the clock outputs when possible, falling back to the targ

Re: [PATCH net-next] net: add support for linkdown sysctl to netconf

2015-07-07 Thread Andy Gospodarek
On Tue, Jul 07, 2015 at 09:57:57AM +0200, Nicolas Dichtel wrote: > Le 06/07/2015 20:21, Andy Gospodarek a écrit : > >This kernel patch exports the value of the new > >ignore_routes_with_linkdown via netconf. > > > >Signed-off-by: Andy Gospodarek > >Suggested-by: Nicolas Dichtel > >--- > You need

Re: [PATCH net-next 1/3] tcp: introduce TCP experimental option for SMC

2015-07-07 Thread Ursula Braun
Eric, understood, would it be acceptable if the SMC-specific hooks in the TCP-code are enclosed with "#ifdef CONFIG_SMC ... #endif"? Regards, Ursula On Mon, 2015-07-06 at 18:08 +0200, Eric Dumazet wrote: > On Mon, 2015-07-06 at 17:11 +0200, Ursula Braun wrote: > > From: Ursula Braun > > > > Th

[PATCH net] bridge: mdb: zero out the local br_ip variable before use

2015-07-07 Thread Nikolay Aleksandrov
Since commit b0e9a30dd669 ("bridge: Add vlan id to multicast groups") there's a check in br_ip_equal() for a matching vlan id, but the mdb functions were not modified to use (or at least zero it) so when an entry was added it would have a garbage vlan id (from the local br_ip variable in __br_mdb_a

[PATCH] net/tipc: initialize security state for new connection socket

2015-07-07 Thread Stephen Smalley
Calling connect() with an AF_TIPC socket would trigger a series of error messages from SELinux along the lines of: SELinux: Invalid class 0 type=AVC msg=audit(1434126658.487:34500): avc: denied { } for pid=292 comm="kworker/u16:5" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:obje

[net PATCH 1/1] drivers: net: cpsw: fix crash while accessing second slave ethernet interface

2015-07-07 Thread Mugunthan V N
When cpsw's number of slave is set to 1 in device tree and while accessing second slave ndev and priv in cpsw_tx_interrupt(), there is a kernel crash. This is due to cpsw_get_slave_priv() not verifying number of slaves while retriving netdev priv and returns a invalid memory region. Fixing the issu

Re: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature

2015-07-07 Thread Paul Bolle
On di, 2015-07-07 at 10:20 +, Dexuan Cui wrote: > OK, removing the line seems better than 'default n', though both > reproduce the same "# CONFIG_HYPERV_SOCK is not set". Speaking from memory (so chances are I'm forgetting some silly detail) that is because # CONFIG_FOO is not set will b

linux-4.2-rc1/samples/bpf/sockex3_kern.c: bad expression ?

2015-07-07 Thread David Binderman
Hello there, [linux-4.2-rc1/samples/bpf/sockex3_kern.c:268]: (style) Expression '(X & 0xf0) == 0x4' is always false. Source code is    if ((verlen & 0xF0) == 4) Maybe    if ((verlen & 0xF0) == 0x40) Regards David Binderman -- To unsubscribe from t

[PATCH net-next 0/4] Cleanup, T6 changes and register range update

2015-07-07 Thread Hariprasad Shenai
Hi, This patch series adds the following: Don't use entire L2T table, update register ranges for T6 adapter, read stats for only available channels for T6 and enable cim_la dump for T6 adapter also. This patch series has been created against net-next tree and includes patches on cxgb4 driver. We

[PATCH net-next 3/4] cxgb4: Read stats for only available channels

2015-07-07 Thread Hariprasad Shenai
Updating the driver to read the stats of only available channels. T6 and later has only 2 channels Signed-off-by: Hariprasad Shenai --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 73 +++--- 1 file changed, 26 insertions(+), 47 deletions(-) diff --git a/drivers/net/ethe

[PATCH net-next 1/4] cxgb4: Don't use entire L2T table, use only its slice

2015-07-07 Thread Hariprasad Shenai
The driver was retrieving the parameters for the bounds of its slice of the L2T from the firmware and then throwing those away and using the entire table. This corrects that problem. Signed-off-by: Hariprasad Shenai --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 +- drivers/net/etherne

[PATCH net-next 4/4] cxgb4: Enable cim_la dump to support T6

2015-07-07 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 54 -- 1 file changed, 51 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c index 484eb8

[PATCH net-next 2/4] cxgb4: Update register ranges for T6 adapter

2015-07-07 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index 2b52aae..ba2be1e 100644 --- a/drivers

Re: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature

2015-07-07 Thread Olaf Hering
On Tue, Jul 07, Dexuan Cui wrote: > OK, removing the line seems better than 'default n', though both reproduce > the same "# CONFIG_HYPERV_SOCK is not set". Perhaps "default VMBUS" (or whatever syntax is needed) may be the way to enable it conditionally. Olaf -- To unsubscribe from this list: se

Broadcom BCM54610 Linux support

2015-07-07 Thread Markus Pargmann
Hi, I found the phy driver which supports broadcom BCM5461. But I am not sure if this driver does support BCM54610 in fiber mode as well? Or if there are any open datasheets which could be used to write a mainline driver for it. I would appretiate any information about this. Thanks, Markus --

[PATCH net 3/3] sfc: suppress handled MCDI failures when changing the MAC address

2015-07-07 Thread Shradha Shah
From: Daniel Pieczko Signed-off-by: Shradha Shah --- drivers/net/ethernet/sfc/ef10.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/sfc/ef10.c b/drivers/net/ethernet/sfc/ef10.c index e0cb361..605cc89 100644 --- a/drivers/net/ethernet/sfc/ef10.c +

[PATCH net 2/3] sfc: add legacy method for changing a PF's MAC address

2015-07-07 Thread Shradha Shah
From: Daniel Pieczko Some versions of MCFW do not support the MC_CMD_VADAPTOR_SET_MAC command, and ENOSYS will be returned. If the PF created its own vport, the function's datapath must be stopped and the vport can be reconfigured to reflect the new MAC address. If the MCFW created the vport fo

[PATCH net 1/3] sfc: refactor code in efx_ef10_set_mac_address()

2015-07-07 Thread Shradha Shah
From: Daniel Pieczko Re-organize the structure of error handling to avoid having to duplicate the netif_err() around the ifdefs. The only change to the behaviour of the error-handling is that the PF's data structure to record VF details should only be updated if the original command succeeded.

RE: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature

2015-07-07 Thread Dexuan Cui
> -Original Message- > From: Paul Bolle > Sent: Tuesday, July 7, 2015 17:38 > To: Dexuan Cui > Subject: Re: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature > > Just two nits. > > On ma, 2015-07-06 at 07:47 -0700, Dexuan Cui wrote: > > --- /dev/null > > +++ b/net/hv_sock/Kconfig >

[PATCH net 0/3] sfc: compat for lack of VADAPTOR_SET_MAC in adaptor_firmware <= 4.1.1.1023

2015-07-07 Thread Shradha Shah
This patch series resolves an incompatibility with legacy firmware due to the lack of MC_CMD_VADAPTOR_SET_MAC in adaptor_firmware <= 4.1.1.1023 Unless this patch series is applied there will be a compatibility issue between the driver and Solarflare adapters running older firmware. Tested with a

RE: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature

2015-07-07 Thread Dexuan Cui
> -Original Message- > From: Olaf Hering [mailto:o...@aepfle.de] > Sent: Tuesday, July 7, 2015 18:10 > To: Dexuan Cui; Paul Bolle > Cc: gre...@linuxfoundation.org; da...@davemloft.net; > netdev@vger.kernel.org; linux-ker...@vger.kernel.org; driverdev- > de...@linuxdriverproject.org; a...@ca

Re: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature

2015-07-07 Thread Olaf Hering
On Tue, Jul 07, Paul Bolle wrote: > On ma, 2015-07-06 at 07:47 -0700, Dexuan Cui wrote: > > --- /dev/null > > +++ b/net/hv_sock/Kconfig > > > +config HYPERV_SOCK > > + tristate "Microsoft Hyper-V Socket (EXPERIMENTAL)" > > + depends on HYPERV > > + default m > It's a bit odd to advise to s

Re: [PATCH 6/7] hvsock: introduce Hyper-V VM Sockets feature

2015-07-07 Thread Paul Bolle
Just two nits. On ma, 2015-07-06 at 07:47 -0700, Dexuan Cui wrote: > --- /dev/null > +++ b/net/hv_sock/Kconfig > +config HYPERV_SOCK > + tristate "Microsoft Hyper-V Socket (EXPERIMENTAL)" > + depends on HYPERV > + default m > + help > + Hyper-V Socket is a socket protocol si

[PATCH v3] bonding: "primary_reselect" with "failure" is not working properly

2015-07-07 Thread Mazhar Rana
From: Mazhar Rana When "primary_reselect" is set to "failure", primary interface should not become active until current active slave is down. But if we set first member of bond device as a "primary" interface and "primary_reselect" is set to "failure" then whenever primary interface's link get ba

Re: [PATCH v2] bonding: "primary_reselect" with "failure" is not working properly

2015-07-07 Thread GMAIL
On Monday 06 July 2015 09:02 PM, Andy Gospodarek wrote: On Mon, Jul 06, 2015 at 05:34:01PM +0530, GMAIL wrote: On Friday 03 July 2015 11:46 PM, Jay Vosburgh wrote: GMAIL wrote: [...] Looks good, added cosmetic changes for more readability, it might save some instructions :) diff --git a/d

Re: [PATCH net] rtnetlink: verify IFLA_VF_INFO attributes before passing them to driver

2015-07-07 Thread Vlad Zolotarov
On 07/07/15 01:07, Daniel Borkmann wrote: Jason Gunthorpe reported that since commit c02db8c6290b ("rtnetlink: make SR-IOV VF interface symmetric"), we don't verify IFLA_VF_INFO attributes anymore with respect to their policy, that is, ifla_vfinfo_policy[]. Before, they were part of ifla_polic

Re: [PATCH v2] add stealth mode

2015-07-07 Thread Hannes Frederic Sowa
On Mon, Jul 6, 2015, at 21:44, Matteo Croce wrote: > 2015-07-06 12:49 GMT+02:00 : > > On Thu, 02 Jul 2015 10:56:01 +0200, Matteo Croce said: > >> Add option to disable any reply not related to a listening socket, > >> like RST/ACK for TCP and ICMP Port-Unreachable for UDP. > >> Also disables ICM

Re: [PATCH net-next] net: add support for linkdown sysctl to netconf

2015-07-07 Thread Nicolas Dichtel
Le 06/07/2015 20:21, Andy Gospodarek a écrit : This kernel patch exports the value of the new ignore_routes_with_linkdown via netconf. Signed-off-by: Andy Gospodarek Suggested-by: Nicolas Dichtel --- You need also to patch devinet_conf_proc() so that a netlink message is sent when the user up

[RFC net-next] xfrm: refactory to avoid state tasklet scheduling errors

2015-07-07 Thread Giuseppe Cantavenera
The SA state is managed by a tasklet scheduled relying on the wall clock. Previous changes have already tried to address bugs when the system time is changed but some error conditions still exist, because the logic is still coupled with the wall time. If the time is changed in between the SA is cr

[PATCH net v2] Revert "dev: set iflink to 0 for virtual interfaces"

2015-07-07 Thread Nicolas Dichtel
This reverts commit e1622baf54df8cc958bf29d71de5ad545ea7d93c. The side effect of this commit is to add a '@NONE' after each virtual interface name with a 'ip link'. It may break existing scripts. Reported-by: Oliver Hartkopp Signed-off-by: Nicolas Dichtel Tested-by: Oliver Hartkopp --- v2: fi

(( Please view the attached file for your code payment ))

2015-07-07 Thread U / N
Please view the attached file for your code payment United Nations Compensation Unit.pdf Description: Adobe PDF document

Re: [PATCH net-next] tcp: always send a quick ack when quickacks are enabled

2015-07-07 Thread Jonathan Maxwell
> On Tue, 2015-07-07 at 14:22 +1000, Jon Maxwell wrote: > > > > @@ -4887,6 +4884,7 @@ static inline void tcp_data_snd_check(struct sock > > *sk) > > static void __tcp_ack_snd_check(struct sock *sk, int ofo_possible) > > { > > struct tcp_sock *tp = tcp_sk(sk); > > +const struct dst_entry

Re: [PATCH v2] add stealth mode

2015-07-07 Thread Clemens Ladisch
valdis.kletni...@vt.edu wrote: > On Thu, 02 Jul 2015 10:56:01 +0200, Matteo Croce said: >> Add option to disable any reply not related to a listening socket > > 2) You *do* realize that this isn't anywhere near sufficient in order > to actually make your machine "invisible", right? (Hint: What *ot

Re: [PATCH net-next] tcp: always send a quick ack when quickacks are enabled

2015-07-07 Thread Eric Dumazet
On Tue, 2015-07-07 at 14:22 +1000, Jon Maxwell wrote: > @@ -4887,6 +4884,7 @@ static inline void tcp_data_snd_check(struct sock *sk) > static void __tcp_ack_snd_check(struct sock *sk, int ofo_possible) > { > struct tcp_sock *tp = tcp_sk(sk); > + const struct dst_entry *dst = __sk_dst_

  1   2   >