Re: [patch] net: ethernet: micrel: fix an error code

2015-08-17 Thread David Miller
From: Dan Carpenter dan.carpen...@oracle.com Date: Fri, 14 Aug 2015 11:54:59 +0300 The dma_mapping_error() function returns true or false. We should return -ENOMEM if it there is a dma mapping error. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com Applied, thanks Dan. -- To

[PATCH] man ip-link: Add more explanation about vlan reordering

2015-08-17 Thread Vadim Kochan
From: Vadim Kochan vadi...@gmail.com Add more explanation about VLAN reordering and what it affects. Signed-off-by: Vadim Kochan vadi...@gmail.com --- man/man8/ip-link.8.in | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/man/man8/ip-link.8.in

[PATCH 4/4] net: Document xfrm4_gc_thresh and xfrm6_gc_thresh

2015-08-17 Thread Steffen Klassert
From: Alexander Duyck alexander.h.du...@redhat.com This change adds documentation for xfrm4_gc_thresh and xfrm6_gc_thresh based on the comments in commit eeb1b73378b56 (xfrm: Increase the garbage collector threshold). Signed-off-by: Alexander Duyck alexander.h.du...@redhat.com Signed-off-by:

[PATCH 3/4] xfrm: Add oif to dst lookups

2015-08-17 Thread Steffen Klassert
From: David Ahern d...@cumulusnetworks.com Rules can be installed that direct route lookups to specific tables based on oif. Plumb the oif through the xfrm lookups so it gets set in the flow struct and passed to the resolver routines. Signed-off-by: David Ahern d...@cumulusnetworks.com

[PATCH 2/4] net/xfrm: use kmemdup rather than duplicating its implementation

2015-08-17 Thread Steffen Klassert
From: Andrzej Hajda a.ha...@samsung.com The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com Signed-off-by: Steffen Klassert

pull request (net-next): ipsec-next 2015-08-17

2015-08-17 Thread Steffen Klassert
1) Fix IPv6 ECN decapsulation for IPsec interfamily tunnels. From Thomas Egerer. 2) Use kmemdup instead of duplicating it in xfrm_dump_sa(). From Andrzej Hajda. 3) Pass oif to the xfrm lookups so that it gets set on the flow and the resolver routines can match based on oif. From

[PATCH 1/4] xfrm6: Fix IPv6 ECN decapsulation

2015-08-17 Thread Steffen Klassert
From: Thomas Egerer thomas.ege...@secunet.com Using ipv6_get_dsfield on the outer IP header implies that inner and outer header are of the the same address family. For interfamily tunnels, particularly 646, the code reading the DSCP field obtains the wrong values (IHL and the upper four bits of

Re: Linux 4.2-rc6 regression: RIP: e030:[ffffffff8110fb18] [ffffffff8110fb18] detach_if_pending+0x18/0x80

2015-08-17 Thread Thomas Gleixner
On Mon, 17 Aug 2015, Eric Dumazet wrote: [PATCH] timer: fix a race in __mod_timer() lock_timer_base() can not catch following : CPU1 ( in __mod_timer() timer-flags |= TIMER_MIGRATING; spin_unlock(base-lock); base = new_base; spin_lock(base-lock); timer-flags = ~TIMER_BASEMASK;

Re: [PATCH] net/bonding: send arp in interval if no active slave

2015-08-17 Thread Jay Vosburgh
Uwe Koziolek uwe.kozio...@redknee.com wrote: On2015-08-17 07:12 PM,Jarod Wilson wrote: On 2015-08-17 12:55 PM, Veaceslav Falico wrote: On Mon, Aug 17, 2015 at 12:23:03PM -0400, Jarod Wilson wrote: From: Uwe Koziolek uwe.kozio...@redknee.com With some very finicky switch hardware, active

Re: [net-next PATCH] net: fix endian check warning in etherdevice.h

2015-08-17 Thread David Miller
From: Jesse Brandeburg jesse.brandeb...@intel.com Date: Thu, 13 Aug 2015 18:34:03 -0700 Sparse builds have been warning for a really long time now that etherdevice.h has a conversion that is unsafe. include/linux/etherdevice.h:79:32: warning: restricted __be16 degrades to integer This

Re: [PATCH 2/5] net: add Hisilicon Network Subsystem hnae framework support

2015-08-17 Thread David Miller
From: Kenneth Lee liguo...@hisilicon.com Date: Fri, 14 Aug 2015 18:30:19 +0800 diff --git a/drivers/net/ethernet/hisilicon/hns/hnae.c b/drivers/net/ethernet/hisilicon/hns/hnae.c new file mode 100644 index 000..fd09768 --- /dev/null +++ b/drivers/net/ethernet/hisilicon/hns/hnae.c ...

Re: pull request (net-next): ipsec-next 2015-08-17

2015-08-17 Thread David Miller
From: Steffen Klassert steffen.klass...@secunet.com Date: Mon, 17 Aug 2015 21:58:17 +0200 1) Fix IPv6 ECN decapsulation for IPsec interfamily tunnels. From Thomas Egerer. 2) Use kmemdup instead of duplicating it in xfrm_dump_sa(). From Andrzej Hajda. 3) Pass oif to the xfrm lookups

Re: [PATCH -next] smsc911x: Fix crash seen if neither ACPI nor OF is configured or used

2015-08-17 Thread David Miller
From: Guenter Roeck li...@roeck-us.net Date: Mon, 17 Aug 2015 13:45:36 -0700 Commit 0b50dc4fc971 (Convert smsc911x to use ACPI as well as DT) makes the call to smsc911x_probe_config() unconditional, and no longer fails if there is no device node. device_get_phy_mode() is called

[PATCH] net: rtnetlink: be more strict when setting MAC address

2015-08-17 Thread Phil Sutter
Upon evaluation of IFLA_ADDRESS and IFLA_BROADCAST messages, make sure the passed argument length matches dev-addr_len exactly. This fixes dubious behaviour of 'ip link set eth0 addr MAC' where 'MAC' is too long, e.g. '00:11:22:33:44:55:66:77'. Called like this, 'ip' would return successfully and

Re: [PATCH net-next] lwtunnel: rename ip lwtunnel attributes

2015-08-17 Thread David Miller
From: Jiri Benc jb...@redhat.com Date: Fri, 14 Aug 2015 16:40:40 +0200 We already have IFLA_IPTUN_ netlink attributes. The IP_TUN_ attributes look very similar, yet they serve very different purpose. This is confusing for anyone trying to implement a user space tool supporting lwt. As the

Re: [PATCH 1/6] net/bonding: enable LRO if one device supports it

2015-08-17 Thread Jarod Wilson
On 2015-08-14 7:41 PM, Jarod Wilson wrote: On 2015-08-14 2:56 AM, Michal Kubecek wrote: On Thu, Aug 13, 2015 at 02:02:55PM -0400, Jarod Wilson wrote: Currently, all bonding devices come up, and claim to have LRO support, which ethtool will let you toggle on and off, even if none of the

Re: [PATCH] net: rtnetlink: be more strict when setting MAC address

2015-08-17 Thread David Miller
From: Phil Sutter p...@nwl.cc Date: Mon, 17 Aug 2015 23:06:47 +0200 Upon evaluation of IFLA_ADDRESS and IFLA_BROADCAST messages, make sure the passed argument length matches dev-addr_len exactly. This fixes dubious behaviour of 'ip link set eth0 addr MAC' where 'MAC' is too long, e.g.

[PATCH net-next v2 0/9] Geneve: Add support for tunnel metadata mode

2015-08-17 Thread Pravin B Shelar
Following patches adds spport for Geneve tunnel metadata mode. OVS can make use of Geneve net-device with tunnel metadata API from kernel. This also allows us to consolidate Geneve implementation from two kernel modules geneve_core and geneve to single geneve module. geneve_core module was

[PATCH net-next v2 7/9] geneve: Consolidate Geneve functionality in single module.

2015-08-17 Thread Pravin B Shelar
geneve_core module handles send and receive functionality. This way OVS could use the Geneve API. Now with use of tunnel meatadata mode OVS can directly use Geneve netdevice. So there is no need for separate module for Geneve. Following patch consolidates Geneve protocol processing in single

[PATCH net-next v2 3/9] tunnel: introduce udp_tun_rx_dst()

2015-08-17 Thread Pravin B Shelar
Introduce function udp_tun_rx_dst() to initialize tunnel dst on receive path. Signed-off-by: Pravin B Shelar pshe...@nicira.com Reviewed-by: Jesse Gross je...@nicira.com --- drivers/net/vxlan.c| 18 ++ include/net/dst_metadata.h | 27 +++

[PATCH net-next v2 8/9] geneve: Move device hash table to geneve socket.

2015-08-17 Thread Pravin B Shelar
This change simplifies Geneve Tunnel hash table management. Signed-off-by: Pravin B Shelar pshe...@nicira.com --- drivers/net/geneve.c | 76 1 file changed, 41 insertions(+), 35 deletions(-) diff --git a/drivers/net/geneve.c

[PATCH net-next v2 9/9] geneve: Implement rtnl changelink

2015-08-17 Thread Pravin B Shelar
Allow run time changes to Geneve device configuration. Signed-off-by: Pravin B Shelar pshe...@nicira.com --- drivers/net/geneve.c | 159 +-- 1 file changed, 115 insertions(+), 44 deletions(-) diff --git a/drivers/net/geneve.c

[PATCH net-next v2 5/9] geneve: Add support to collect tunnel metadata.

2015-08-17 Thread Pravin B Shelar
Following patch create new tunnel flag which enable tunnel metadata collection on given device. These devices can be used by tunnel metadata based routing or by OVS. Geneve Consolidation patch get rid of collect_md_tun to simplify tunnel lookup further. Signed-off-by: Pravin B Shelar

[PATCH net-next v2 4/9] geneve: Make dst-port configurable.

2015-08-17 Thread Pravin B Shelar
Add netlink interface to configure Geneve UDP port number. So that user can configure it for a Gevene device. Signed-off-by: Pravin B Shelar pshe...@nicira.com --- drivers/net/geneve.c | 25 + include/uapi/linux/if_link.h | 1 + 2 files changed, 22 insertions(+),

[PATCH net-next v2 2/9] geneve: Use skb mark and protocol to lookup route.

2015-08-17 Thread Pravin B Shelar
On packet transmit path geneve need to lookup route. Following patch improves route lookup using more parameters. Signed-off-by: Pravin B Shelar pshe...@nicira.com --- drivers/net/geneve.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index

[PATCH net-next v2 6/9] openvswitch: Use Geneve device.

2015-08-17 Thread Pravin B Shelar
With help of tunnel metadata mode OVS can directly use Geneve devices to implement Geneve tunnels. This patch removes all of the OVS specific Geneve code and make OVS use a Geneve net_device. Basic geneve vport is still there to handle compatibility with current userspace application.

[PATCH net-next v2 1/9] geneve: Initialize ethernet address in device setup.

2015-08-17 Thread Pravin B Shelar
Signed-off-by: Pravin B Shelar pshe...@nicira.com --- drivers/net/geneve.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index 78d49d1..51f7f8b 100644 --- a/drivers/net/geneve.c +++ b/drivers/net/geneve.c @@ -298,6 +298,7 @@

Re: [PATCH -next] smsc911x: Fix crash seen if neither ACPI nor OF is configured or used

2015-08-17 Thread Jeremy Linton
On 08/17/2015 03:45 PM, Guenter Roeck wrote: Commit 0b50dc4fc971 (Convert smsc911x to use ACPI as well as DT) makes the call to smsc911x_probe_config() unconditional, and no longer fails if there is no device node. device_get_phy_mode() is called unconditionally, and if there is no phy node

Re: [PATCH net-next v2 0/4] packet: add cBPF and eBPF fanout modes

2015-08-17 Thread David Miller
From: Willem de Bruijn will...@google.com Date: Fri, 14 Aug 2015 22:31:33 -0400 From: Willem de Bruijn will...@google.com Allow programmable fanout modes. Support both classical BPF programs passed directly and extended BPF programs passed by file descriptor. One use case is packet

Re: pull-request: mac80211-next 2015-08-14

2015-08-17 Thread David Miller
From: Johannes Berg johan...@sipsolutions.net Date: Fri, 14 Aug 2015 17:54:36 +0200 And, in addition to the fix before, I have a -next pull request. It's actually quite big since I hadn't wanted to send one just before my vacation. Let me know if there are any issues. Pulled, thanks

Re: [PATCH v2 net 0/3] ipv6: Fix a potential deadlock when creating pcpu rt

2015-08-17 Thread David Miller
From: Martin KaFai Lau ka...@fb.com Date: Fri, 14 Aug 2015 11:05:51 -0700 v1 - v2: A minor change in the commit message of patch 2. This patch series fixes a potential deadlock when creating a pcpu rt. It happens when dst_alloc() decided to run gc. Something like this:

Re: [PATCH v3] net: phy: workaround for buggy cable detection by LAN8700 after cable plugging

2015-08-17 Thread David Miller
From: Igor Plyatov plya...@gmail.com Date: Fri, 14 Aug 2015 20:11:02 +0300 * Due to HW bug, LAN8700 sometimes does not detect presence of energy in the Ethernet cable in Energy Detect Power-Down mode (e.g while EDPWRDOWN bit is set, the ENERGYON bit does not asserted sometimes). This is a

Re: [PATCH net] be2net: avoid vxlan offloading on multichannel configs

2015-08-17 Thread David Miller
From: Ivan Vecera ivec...@redhat.com Date: Fri, 14 Aug 2015 22:30:01 +0200 VxLAN offloading is not functional if the NIC is running in multichannel mode (UMC, FLEX-10, VNIC...). Enabling this additionally kills whole connectivity through the NIC and the device needs to be down and up to

[PATCH v1 2/2] drivers: net: xgene: Adding support for TSO

2015-08-17 Thread Iyappan Subramanian
Signed-off-by: Iyappan Subramanian isubraman...@apm.com --- drivers/net/ethernet/apm/xgene/xgene_enet_hw.h| 16 +- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 239 -- drivers/net/ethernet/apm/xgene/xgene_enet_main.h | 11 +

Re: pull request: batman-adv 20150814

2015-08-17 Thread David Miller
From: Antonio Quartulli anto...@meshcoding.com Date: Fri, 14 Aug 2015 22:57:04 +0200 this is our first batch intended for net-next/linux-4.3 (resent after fixing the parenthesis as reported by Sergei). Pulled, thanks Antonio. -- To unsubscribe from this list: send the line unsubscribe netdev

Re: [PATCH] rhashtable-test: extend to test concurrency

2015-08-17 Thread David Miller
From: Phil Sutter p...@nwl.cc Date: Sat, 15 Aug 2015 00:37:15 +0200 After having tested insertion, lookup, table walk and removal, spawn a number of threads running operations on the same rhashtable. Each of them will: 1) insert it's own set of objects, 2) lookup every successfully

[PATCH v1 1/2] drivers: net: xgene: Preparatory patch for TSO support

2015-08-17 Thread Iyappan Subramanian
- Rearranged descriptor writes - Moved increment command write to xgene_enet_setup_tx_desc Signed-off-by: Iyappan Subramanian isubraman...@apm.com --- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 29 ++-- drivers/net/ethernet/apm/xgene/xgene_enet_main.h | 1 + 2 files

[PATCH v1 0/2] drivers: net: xgene: Add TSO support

2015-08-17 Thread Iyappan Subramanian
Adding TSO support iperf Tx data rate without TSO: 3.42 Gbps with TSO: 9.41 Gbps v1 * Initial version Signed-off-by: Iyappan Subramanian isubraman...@apm.com --- Iyappan Subramanian (2): drivers: net: xgene: Preparatory patch for TSO support drivers: net: xgene:

Re: [PATCH net-next] ipv6: remove unnecessary include

2015-08-17 Thread David Miller
From: Ian Morris i...@chirality.org.uk Date: Fri, 14 Aug 2015 23:13:19 +0100 printk.h does not need to be explicitly included as we include kernel.h which already called it. Signed-off-by: Ian Morris i...@chirality.org.uk We should not rely on such things and include explicitly the headers

Re: [PATCH net-next] ipv6: trivial whitespace fix

2015-08-17 Thread David Miller
From: Ian Morris i...@chirality.org.uk Date: Fri, 14 Aug 2015 22:43:38 +0100 Change brace placement to be in line with coding standards Signed-off-by: Ian Morris i...@chirality.org.uk Applied, thanks. -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message

[PATCH] net/bonding: send arp in interval if no active slave

2015-08-17 Thread Jarod Wilson
From: Uwe Koziolek uwe.kozio...@redknee.com With some very finicky switch hardware, active backup bonding can get into a situation where we play ping-pong between interfaces, trying to get one to come up as the active slave. There seems to be an issue with the switch's arp replies either taking

[v1 6/6] NET: nps_enet: minor namespace cleanup

2015-08-17 Thread Noam Camus
From: Noam Camus no...@ezchip.com We define buf_int_enable in the minimal namespace it is used. Signed-off-by: Noam Camus no...@ezchip.com --- drivers/net/ethernet/ezchip/nps_enet.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git

[v1 4/6] NET: nps_enet: drop control frames

2015-08-17 Thread Noam Camus
From: Noam Camus no...@ezchip.com We set controller to drop control frames and not trying to pass them on. This is only needed for debug reasons. Signed-off-by: Noam Camus no...@ezchip.com --- drivers/net/ethernet/ezchip/nps_enet.c |8 1 files changed, 4 insertions(+), 4

[v1 5/6] NET: nps_enet: TX done acknowledge.

2015-08-17 Thread Noam Camus
From: Noam Camus no...@ezchip.com This is needed for when TX done interrupt is in level mode. For example it is true for some simulators of this device. Signed-off-by: Noam Camus no...@ezchip.com --- drivers/net/ethernet/ezchip/nps_enet.c |3 +++ 1 files changed, 3 insertions(+), 0

[v1 3/6] NET: nps_enet: TX done race condition

2015-08-17 Thread Noam Camus
From: Noam Camus no...@ezchip.com We need to set tx_skb pointer before send frame. If we receive interrupt before we set pointer we will try to free SKB with wrong pointer. Now we are sure that SKB pointer will never be NULL during handling TX done and check is removed. Signed-off-by: Noam Camus

[v1 2/6] NET: nps_enet: reduce processing latency.

2015-08-17 Thread Noam Camus
From: Noam Camus no...@ezchip.com TX handler is minimalistic and there is no need to schedule a NAPI job. Tx done will be processed during hardware interrupt context. Signed-off-by: Noam Camus no...@ezchip.com --- drivers/net/ethernet/ezchip/nps_enet.c | 17 ++--- 1 files changed,

Re: [PATCH net-next v2] rocker: add debugfs support to dump internal tables

2015-08-17 Thread Jiri Pirko
Mon, Aug 17, 2015 at 05:32:06AM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com tree /sys/kernel/debug/rocker /sys/kernel/debug/rocker └── 525400123501 ├── fdb_tbl ├── internal_vlan_tbl ├── neigh_tbl ├── of_dpa_flow_tbl └── of_dpa_group_tbl 1

Re: [PATCH 2/2] net: sch_generic: react upon IFF_NO_QUEUE flag

2015-08-17 Thread Jesper Dangaard Brouer
On Thu, 13 Aug 2015 19:01:07 +0200 Phil Sutter p...@nwl.cc wrote: Handle IFF_NO_QUEUE as alternative to tx_queue_len being zero. Signed-off-by: Phil Sutter p...@nwl.cc Acked-by: Jesper Dangaard Brouer bro...@redhat.com -- To unsubscribe from this list: send the line unsubscribe netdev in the

[v1 1/6] NET: nps_enet: replace use of cause register

2015-08-17 Thread Noam Camus
From: Noam Camus no...@ezchip.com When interrupt is received we read directly from control register for RX/TX instead of reading cause register since this register fails to indicate TX done when TX interrupt is edge mode. Signed-off-by: Noam Camus no...@ezchip.com ---

[v1 0/6] *** nps_enet fixups ***

2015-08-17 Thread Noam Camus
From: Noam Camus no...@ezchip.com This patch set is a bunch of fixes to make nps_enet work correctly with all platforms, i.e. real device, emulation system, and simulation system. The main trigger for this patch set was that in our emulation system the TX end interrupt is edge-sensitive and

Re: [PATCH 0/2] net: introduce IFF_NO_QUEUE as successor of zero tx_queue_len

2015-08-17 Thread Jesper Dangaard Brouer
On Fri, 14 Aug 2015 10:41:53 +0200 Phil Sutter p...@nwl.cc wrote: On Thu, Aug 13, 2015 at 12:11:57PM -0700, Stephen Hemminger wrote: [...] But adding a flag risks breaking external scripts. Could you please elaborate on this? As far as I can tell, introducing a separate flag is the

Re: [PATCH 1/2] net: declare new net_device priv_flag IFF_NO_QUEUE

2015-08-17 Thread Jesper Dangaard Brouer
On Thu, 13 Aug 2015 19:01:06 +0200 Phil Sutter p...@nwl.cc wrote: This private net_device flag can be set by drivers to inform that a device runs fine without a qdisc attached. This was formerly done by setting tx_queue_len to zero. Signed-off-by: Phil Sutter p...@nwl.cc Acked-by: Jesper

[PATCH -next] smsc911x: Fix crash seen if neither ACPI nor OF is configured or used

2015-08-17 Thread Guenter Roeck
Commit 0b50dc4fc971 (Convert smsc911x to use ACPI as well as DT) makes the call to smsc911x_probe_config() unconditional, and no longer fails if there is no device node. device_get_phy_mode() is called unconditionally, and if there is no phy node configured returns an error code. This error code

Re: [PATCH] net/bonding: send arp in interval if no active slave

2015-08-17 Thread Uwe Koziolek
On Mon, Aug 17, 2015 at 09:14PM +0200, Jay Vosburgh wrote: Uwe Koziolek uwe.kozio...@redknee.com wrote: On2015-08-17 07:12 PM,Jarod Wilson wrote: On 2015-08-17 12:55 PM, Veaceslav Falico wrote: On Mon, Aug 17, 2015 at 12:23:03PM -0400, Jarod Wilson wrote: From: Uwe Koziolek

Re: [PATCHv1 net-next 0/5] netlink: mmap: kernel panic and some issues

2015-08-17 Thread David Miller
From: Daniel Borkmann dan...@iogearbox.net Date: Fri, 14 Aug 2015 12:38:21 +0200 diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 67d2104..4307446 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -238,6 +238,13 @@ static void

Re: pull-request: mac80211 2015-08-14

2015-08-17 Thread David Miller
From: Johannes Berg johan...@sipsolutions.net Date: Fri, 14 Aug 2015 13:20:26 +0200 I'm back from vacation, and found a single bugfix waiting. It's in this pull request, but I'm not quite up to speed as to what's happening with the release. If it goes in, great; if not I've already tagged it

Re: [patch] net: ethernet: micrel: fix an error code

2015-08-17 Thread Vinod Koul
On Fri, Aug 14, 2015 at 11:54:59AM +0300, Dan Carpenter wrote: The dma_mapping_error() function returns true or false. We should return -ENOMEM if it there is a dma mapping error. Looks good to me, but should be sent to net folks now me :) -- ~Vinod Signed-off-by: Dan Carpenter

Re: [PATCH] net/wireless: enable wiphy device to suspend/resume asynchronously

2015-08-17 Thread Arend van Spriel
+ Rafael On 08/17/2015 09:29 AM, Johannes Berg wrote: On Mon, 2015-08-17 at 09:48 +0800, Fu, Zhonghui wrote: The suspend/resume timing of wiphy device and related devices will be ensured by their parent/child relationship. So, enabling wiphy device to suspend/resume asynchronously does not

<    1   2