[net-next 08/14] dp83640: only report generic filters in ts_info

2015-07-17 Thread Jeff Kirsher
From: Jacob Keller jacob.e.kel...@intel.com CC: Richard Cochran richardcoch...@gmail.com Signed-off-by: Jacob Keller jacob.e.kel...@intel.com Signed-off-by: Jeff Kirsher jeffrey.t.kirs...@intel.com --- drivers/net/phy/dp83640.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-)

[net-next 04/14] i40e: only report generic filters in get_ts_info

2015-07-17 Thread Jeff Kirsher
From: Jacob Keller jacob.e.kel...@intel.com Signed-off-by: Jacob Keller jacob.e.kel...@intel.com Tested-by: Jim Young james.m.yo...@intel.com Signed-off-by: Jeff Kirsher jeffrey.t.kirs...@intel.com --- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 13 ++--- 1 file changed, 2

[net-next 00/14][pull request] Intel Wired LAN Driver Updates 2015-07-17

2015-07-17 Thread Jeff Kirsher
This series contains updates to igb, ixgbe, ixgbevf, i40e, bnx2x, freescale, siena and dp83640. Jacob provides several patches to clarify the intended way to implement both SIOCSHWTSTAMP and ethtool's get_ts_info(). It is okay to support the specific filters in SIOCSHWTSTAMP by upscaling them to

[net-next 12/14] ixgbevf: Set Rx hash type for ingress packets

2015-07-17 Thread Jeff Kirsher
From: Fan Du fan...@intel.com Set hash type for ingress packets according to NIC advanced receive descriptors RSS type part. Signed-off-by: Fan Du fan...@intel.com Tested-by: Phil Schmitt phillip.j.schm...@intel.com Signed-off-by: Jeff Kirsher jeffrey.t.kirs...@intel.com ---

[net-next 09/14] igb: Pull timestamp from fragment before adding it to skb

2015-07-17 Thread Jeff Kirsher
From: Alexander Duyck alexander.h.du...@redhat.com This change makes it so that we pull the timestamp from the fragment before we add it to the skb. By doing this we can avoid a possible issue in which the fragment can possibly be less than IGB_RX_HDR_LEN due to the timestamp being pulled after

[net-next 11/14] ixgbe: Specify Rx hash type WRT Rx desc RSS type

2015-07-17 Thread Jeff Kirsher
From: Fan Du fan...@intel.com RSS could be leveraged by taking account L4 src/dst ports as ingredients, thus ingress skb Rx hash type should honor such the real configuration. Signed-off-by: Fan Du fan...@intel.com Tested-by: Phil Schmitt phillip.j.schm...@intel.com Signed-off-by: Jeff Kirsher

[net-next 01/14] clarify implementation of ethtool's get_ts_info op

2015-07-17 Thread Jeff Kirsher
From: Jacob Keller jacob.e.kel...@intel.com This patch adds some clarification about the intended way to implement both SIOCSHWTSTAMP and ethtool's get_ts_info. The HWTSTAMP API has several Rx filters which are very specific, as well as more general filters. The specific filters really only exist

[net-next 14/14] igb: Fix i354 88E1112 PHY on RCC boards using AutoMediaDetect

2015-07-17 Thread Jeff Kirsher
From: Todd Fujinaka todd.fujin...@intel.com e1000_check_for_link_media_swap() checks PHY page 0 for copper and PHY page 1 for other (fiber) link. The switch back from page 1 to page 0 happened too soon, before e1000_check_for_link_82575() is executed, and link on fiber (other) was never detected.

[net-next 05/14] igb: only report generic filters in get_ts_info

2015-07-17 Thread Jeff Kirsher
From: Jacob Keller jacob.e.kel...@intel.com Signed-off-by: Jacob Keller jacob.e.kel...@intel.com Tested-by: Aaron Brown aaron.f.br...@intel.com Signed-off-by: Jeff Kirsher jeffrey.t.kirs...@intel.com --- drivers/net/ethernet/intel/igb/igb_ethtool.c | 4 1 file changed, 4 deletions(-) diff

[net-next 02/14] freescale: remove incorrect copied comment

2015-07-17 Thread Jeff Kirsher
From: Jacob Keller jacob.e.kel...@intel.com The comment in question is word-for-word copied from ixgbe, and clearly has no meaning in freescale's driver. (it even says 'return an error' when the code clearly does not). Remove the comment as it is obviously incorrect and not applicable to the code

[net-next 10/14] ixgbevf: fold ixgbevf_pull_tail into ixgbevf_add_rx_frag

2015-07-17 Thread Jeff Kirsher
From: Alexander Duyck alexander.h.du...@redhat.com This change folds the ixgbevf_pull_tail call into ixgbevf_add_rx_frag. The advantage to doing this is that the fragment doesn't have to be modified after it is added to the skb. Signed-off-by: Alexander Duyck alexander.h.du...@redhat.com

[net-next 07/14] siena: only report generic filters in get_ts_info

2015-07-17 Thread Jeff Kirsher
From: Jacob Keller jacob.e.kel...@intel.com CC: Solarflare linux maintainers linux-net-driv...@solarflare.com CC: Shradha Shah ss...@solarflare.com Signed-off-by: Jacob Keller jacob.e.kel...@intel.com Signed-off-by: Jeff Kirsher jeffrey.t.kirs...@intel.com --- drivers/net/ethernet/sfc/siena.c |

[net-next 06/14] ixgbe: only report generic filters in get_ts_info

2015-07-17 Thread Jeff Kirsher
From: Jacob Keller jacob.e.kel...@intel.com Signed-off-by: Jacob Keller jacob.e.kel...@intel.com Tested-by: Phil Schmitt phillip.j.schm...@intel.com Signed-off-by: Jeff Kirsher jeffrey.t.kirs...@intel.com --- drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 8 1 file changed, 8

[net-next 13/14] ixgbe: Don't report flow director filter's status

2015-07-17 Thread Jeff Kirsher
From: Fan Du fan...@intel.com For two reasons I want to disable this: 1. Not any part actually check the report status(Alexander Duyck) 2. To report hash value of a packet to stack, RSS - 32bits hash value Perfect match fdir filter - 13bits hash value Hashed-based fdir filter - 31bits

[net-next 03/14] bnx2x: only report most generic filters in get_ts_info

2015-07-17 Thread Jeff Kirsher
From: Jacob Keller jacob.e.kel...@intel.com CC: Ariel Elior ariel.el...@qlogic.com Signed-off-by: Jacob Keller jacob.e.kel...@intel.com Signed-off-by: Jeff Kirsher jeffrey.t.kirs...@intel.com --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | 11 +-- 1 file changed, 1

Re: [PATCH net-next v2 1/5] net: don't reforward packets already forwarded by offload device

2015-07-17 Thread Nicolas Dichtel
Le 16/07/2015 10:04, sfel...@gmail.com a écrit : From: Scott Feldman sfel...@gmail.com Just before queuing skb for xmit on port, check if skb has been marked by switchdev port driver as already fordwarded by device. If so, drop skb. A non-zero skb-offload_fwd_mark field is set by the

Re: [PATCH v2 net-next 1/3] rhashtable: Allow lookup function to have compare function agument

2015-07-17 Thread Thomas Graf
On 07/14/15 at 04:45pm, Tom Herbert wrote: Added rhashtable_lookup_fast_cmpfn which does a lookup in an rhash table with the compare function being taken from an argument. This allows different compare functions to be used on the same table. Signed-off-by: Tom Herbert t...@herbertland.com

Re: [PATCH v2 net-next 2/3] rhashtable: Add a function for in order insertion and lookup in buckets

2015-07-17 Thread Thomas Graf
On 07/15/15 at 12:46pm, Tom Herbert wrote: On Tue, Jul 14, 2015 at 10:54 PM, Herbert Xu The memory cost is merely 8 bytes per local port, is it really too much? Okay, it looks like there is already an additional hlist_node in skc_common that can be used for a secondary hash. It's

Re: [PATCH] net: wireless: reduce log level of CRDA related messages

2015-07-17 Thread Johannes Berg
On Thu, 2015-07-09 at 15:35 +0200, Thomas Petazzoni wrote: With a basic Linux userspace, the messages Calling CRDA to update world regulatory domain appears 10 times after boot every second or so, followed by a final Exceeded CRDA call max attempts. Not calling CRDA. For those of us not having

[PATCH net-next 22/22] openvswitch: Use regular VXLAN net_device device

2015-07-17 Thread Thomas Graf
This gets rid of all OVS specific VXLAN code in the receive and transmit path by using a VXLAN net_device to represent the vport. Only a small shim layer remains which takes care of handling the VXLAN specific OVS Netlink configuration. Unexports vxlan_sock_add(), vxlan_sock_release(),

[PATCH net-next 20/22] openvswitch: Move dev pointer into vport itself

2015-07-17 Thread Thomas Graf
This is the first step in representing all OVS vports as regular struct net_devices. Move the net_device pointer into the vport structure itself to get rid of struct vport_netdev. Signed-off-by: Thomas Graf tg...@suug.ch Signed-off-by: Pravin B Shelar pshe...@nicira.com ---

[PATCH net-next 19/22] openvswitch: Make tunnel set action attach a metadata dst

2015-07-17 Thread Thomas Graf
Utilize the new metadata dst to attach encapsulation instructions to the skb. The existing egress_tun_info via the OVS_CB() is left in place until all tunnel vports have been converted to the new method. Signed-off-by: Thomas Graf tg...@suug.ch Signed-off-by: Pravin B Shelar pshe...@nicira.com

[PATCH net-next 08/22] mpls: export mpls functions for use by mpls iptunnels

2015-07-17 Thread Thomas Graf
From: Roopa Prabhu ro...@cumulusnetworks.com Signed-off-by: Roopa Prabhu ro...@cumulusnetworks.com --- net/mpls/af_mpls.c | 11 --- net/mpls/internal.h | 9 +++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c index

[PATCH net-next 21/22] openvswitch: Abstract vport name through ovs_vport_name()

2015-07-17 Thread Thomas Graf
This allows to get rid of the get_name() vport ops later on. Signed-off-by: Thomas Graf tg...@suug.ch --- net/openvswitch/datapath.c | 4 ++-- net/openvswitch/vport-internal_dev.c | 1 - net/openvswitch/vport-netdev.c | 6 -- net/openvswitch/vport-netdev.h | 1 -

[PATCH net-next 17/22] fib: Add fib rule match on tunnel id

2015-07-17 Thread Thomas Graf
This add the ability to select a routing table based on the tunnel id which allows to maintain separate routing tables for each virtual tunnel network. ip rule add from all tunnel-id 100 lookup 100 ip rule add from all tunnel-id 200 lookup 200 A new static key controls the collection of metadata

[PATCH net-next 13/22] arp: Inherit metadata dst when creating ARP requests

2015-07-17 Thread Thomas Graf
If output device wants to see the dst, inherit the dst of the original skb and pass it on to generate the ARP request. Signed-off-by: Thomas Graf tg...@suug.ch --- net/ipv4/arp.c | 65 +- 1 file changed, 37 insertions(+), 28 deletions(-)

[PATCH net-next 16/22] route: Per route IP tunnel metadata via lightweight tunnel

2015-07-17 Thread Thomas Graf
This introduces a new IP tunnel lightweight tunnel type which allows to specify IP tunnel instructions per route. Only IPv4 is supported at this point. Signed-off-by: Thomas Graf tg...@suug.ch --- drivers/net/vxlan.c| 10 +++- include/net/dst_metadata.h | 12 -

Re: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe

2015-07-17 Thread Vitaly Kuznetsov
K. Y. Srinivasan k...@microsoft.com writes: The current code returns from probe without waiting for the proper handling of subchannels that may be requested. If the netvsc driver were to be rapidly loaded/unloaded, we can trigger a panic as the unload will be tearing down state that may not

[PATCH nf-next v2] netfilter: nf_ct_sctp: minimal multihoming support

2015-07-17 Thread Michal Kubecek
Currently nf_conntrack_proto_sctp module handles only packets between primary addresses used to establish the connection. Any packets between secondary addresses are classified as invalid so that usual firewall configurations drop them. Allowing HEARTBEAT and HEARTBEAT-ACK chunks to establish a

Re: [PATCH v2] jhash: Deinline jhash, jhash2 and __jhash_nwords

2015-07-17 Thread Hagen Paul Pfeifer
On July 16, 2015 at 9:23 PM Joe Perches j...@perches.com wrote: It might be useful to have these performance impacting changes guarded by something like CONFIG_CC_OPTIMIZE_FOR_SIZE with another static __always_inline __func and a function EXPORT_SYMBOL or just a static inline so that where

Re: [PATCH] mac80211: Deinline rate_control_rate_init, rate_control_rate_update

2015-07-17 Thread Johannes Berg
On Wed, 2015-07-15 at 14:56 +0200, Denys Vlasenko wrote: With this .config: http://busybox.net/~vda/kernel_config, after deinlining these functions have sizes and callsite counts as follows: rate_control_rate_init: 554 bytes, 8 calls rate_control_rate_update: 1596 bytes, 5 calls Total

Re: [PATCH net-next 0/6] net: bcmgenet: PHY initialization rework

2015-07-17 Thread Jaedon Shin
On Jul 17, 2015, at 7:51 AM, Florian Fainelli f.faine...@gmail.com wrote: Hi David, Petri, Jaedon, This patch series reworks how we perform PHY initialization and resets in the GENET driver. Although this contains mostly fixes, some of the changes are a bit too intrusive to be backported

Re: pull-request: mac80211 2015-07-17

2015-07-17 Thread Johannes Berg
On Fri, 2015-07-17 at 15:31 +0200, Johannes Berg wrote: Hi Dave, We've accumulated some wireless fixes, please pull. Arik's fix is a bit bigger than I might like, but it fixes a real locking issue and we didn't really see a good way to make a smaller version. Let me know if there's any

[PATCH net-next 04/22] ipv6: support for fib route lwtunnel encap attributes

2015-07-17 Thread Thomas Graf
From: Roopa Prabhu ro...@cumulusnetworks.com This patch adds support in ipv6 fib functions to parse Netlink RTA encap attributes and attach encap state data to rt6_info. Signed-off-by: Roopa Prabhu ro...@cumulusnetworks.com --- include/net/ip6_fib.h | 3 +++ net/ipv6/ip6_fib.c| 2 ++

[PATCH net-next 03/22] ipv4: support for fib route lwtunnel encap attributes

2015-07-17 Thread Thomas Graf
From: Roopa Prabhu ro...@cumulusnetworks.com This patch adds support in ipv4 fib functions to parse user provided encap attributes and attach encap state data to fib_nh and rtable. Signed-off-by: Roopa Prabhu ro...@cumulusnetworks.com --- include/net/ip_fib.h | 5 ++- include/net/route.h

[PATCH net-next 18/22] vxlan: Factor out device configuration

2015-07-17 Thread Thomas Graf
This factors out the device configuration out of the RTNL newlink API which allows for in-kernel creation of VXLAN net_devices. Signed-off-by: Thomas Graf tg...@suug.ch --- drivers/net/vxlan.c | 332 include/net/vxlan.h | 59 ++ 2

[PATCH net-next 14/22] vxlan: Flow based tunneling

2015-07-17 Thread Thomas Graf
Allows putting a VXLAN device into a new flow-based mode in which skbs with a ip_tunnel_info dst metadata attached will be encapsulated according to the instructions stored in there with the VXLAN device defaults taken into consideration. Similar on the receive side, if the

[PATCH net-next 15/22] route: Extend flow representation with tunnel key

2015-07-17 Thread Thomas Graf
Add a new flowi_tunnel structure which is a subset of ip_tunnel_key to allow routes to match on tunnel metadata. For now, the tunnel id is added to flowi_tunnel which allows for routes to be bound to specific virtual tunnels. Signed-off-by: Thomas Graf tg...@suug.ch --- include/net/flow.h | 7

[PATCH net-next 12/22] dst: Metadata destinations

2015-07-17 Thread Thomas Graf
Introduces a new dst_metadata which enables to carry per packet metadata between forwarding and processing elements via the skb-dst pointer. The structure is set up to be a union. Thus, each separate type of metadata requires its own dst instance. If demand arises to carry multiple types of

[PATCH net-next 09/22] mpls: ip tunnel support

2015-07-17 Thread Thomas Graf
From: Roopa Prabhu ro...@cumulusnetworks.com This implementation uses lwtunnel infrastructure to register hooks for mpls tunnel encaps. It picks cues from iptunnel_encaps infrastructure and previous mpls iptunnel RFC patches from Eric W. Biederman and Robert Shearman Signed-off-by: Roopa Prabhu

[PATCH net-next 11/22] icmp: Don't leak original dst into ip_route_input()

2015-07-17 Thread Thomas Graf
ip_route_input() unconditionally overwrites the dst. Hide the original dst attached to the skb by calling skb_dst_set(skb, NULL) prior to ip_route_input(). Reported-by: Julian Anastasov j...@ssi.bg Signed-off-by: Thomas Graf tg...@suug.ch --- net/ipv4/icmp.c | 1 + 1 file changed, 1 insertion(+)

[PATCH net-next 00/22] Lightweight flow based encapsulation

2015-07-17 Thread Thomas Graf
This series combines the work previously posted by Roopa, Robert and myself. It's according to what we discussed at NFWS. The motivation of this series is to: * Consolidate code between OVS and the rest of the kernel and get rid of OVS vports and instead represent them as pure net_devices. *

[PATCH net-next 06/22] ipv4: redirect dst output to lwtunnel output

2015-07-17 Thread Thomas Graf
From: Roopa Prabhu ro...@cumulusnetworks.com For input routes with tunnel encap state this patch redirects dst output functions to lwtunnel_output which later resolves to the corresponding lwtunnel output function. This has been tested to work with mpls ip tunnels. Open items: Support for

[PATCH net-next 10/22] ip_tunnel: Make ovs_tunnel_info and ovs_key_ipv4_tunnel generic

2015-07-17 Thread Thomas Graf
Rename the tunnel metadata data structures currently internal to OVS and make them generic for use by all IP tunnels. Both structures are kernel internal and will stay that way. Their members are exposed to user space through individual Netlink attributes by OVS. It will therefore be possible to

[PATCH net-next 02/22] lwtunnel: infrastructure for handling light weight tunnels like mpls

2015-07-17 Thread Thomas Graf
From: Roopa Prabhu ro...@cumulusnetworks.com Provides infrastructure to parse/dump/store encap information for light weight tunnels like mpls. Encap information for such tunnels is associated with fib routes. This infrastructure is based on previous suggestions from Eric Biederman to follow the

[PATCH net-next 07/22] ipv6: rt6_info output redirect to tunnel output

2015-07-17 Thread Thomas Graf
From: Roopa Prabhu ro...@cumulusnetworks.com This is similar to ipv4 redirect of dst output to lwtunnel output function for encapsulation and xmit. Signed-off-by: Roopa Prabhu ro...@cumulusnetworks.com --- net/ipv6/route.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/route.c

[PATCH net-next 05/22] lwtunnel: support dst output redirect function

2015-07-17 Thread Thomas Graf
From: Roopa Prabhu ro...@cumulusnetworks.com This patch introduces lwtunnel_output function to call corresponding lwtunnels output function to xmit the packet. It adds two variants lwtunnel_output and lwtunnel_output6 for ipv4 and ipv6 respectively today. But this is subject to change when

[PATCH net-next 01/22] rtnetlink: introduce new RTA_ENCAP_TYPE and RTA_ENCAP attributes

2015-07-17 Thread Thomas Graf
From: Roopa Prabhu ro...@cumulusnetworks.com This patch introduces two new RTA attributes to attach encap data to fib routes. Example iproute2 command to attach mpls encap data to ipv4 routes $ip route add 10.1.1.0/30 encap mpls 200 via inet 10.1.1.1 dev swp1 Signed-off-by: Roopa Prabhu

pull-request: mac80211 2015-07-17

2015-07-17 Thread Johannes Berg
Hi Dave, We've accumulated some wireless fixes, please pull. Arik's fix is a bit bigger than I might like, but it fixes a real locking issue and we didn't really see a good way to make a smaller version. Let me know if there's any problem. johannes The following changes since commit

RE: [PATCH v7 3/3] ixgbe, ixgbevf: Add new mbox API xcast mode

2015-07-17 Thread Skidmore, Donald C
-Original Message- From: Hiroshi Shimamoto [mailto:h-shimam...@ct.jp.nec.com] Sent: Thursday, July 16, 2015 3:36 AM To: Alexander Duyck; Skidmore, Donald C; Rose, Gregory V; Kirsher, Jeffrey T; intel-wired-...@lists.osuosl.org Cc: nhor...@redhat.com; jogre...@redhat.com; Linux

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

2015-07-17 Thread Vitaly Kuznetsov
Dexuan Cui de...@microsoft.com writes: From: David Miller Sent: Thursday, July 16, 2015 12:19 From: Dexuan Cui Date: Tue, 14 Jul 2015 03:00:48 -0700 + pr_debug(hvsock_sk_destruct: called\n); Debug logging just to state that a function is called is not appropriate, we have very

[PATCH -next] net: fib: use fib result when zero-length prefix aliases exist

2015-07-17 Thread Florian Westphal
default route selection is not deterministic when TOS keys are used: ip route del default ip route add tos 0x00 via 10.2.100.100 ip route add tos 0x04 via 10.2.100.101 ip route add tos 0x08 via 10.2.100.102 ip route add tos 0x0C via 10.2.100.103 ip route add tos 0x10 via 10.2.100.104 [ i.e. 5

RE: [PATCH 0/7] introduce Hyper-V VM Sockets(hvsock)

2015-07-17 Thread Dexuan Cui
-Original Message- From: Stefan Hajnoczi Sent: Thursday, July 16, 2015 23:59 On Mon, Jul 06, 2015 at 07:39:35AM -0700, Dexuan Cui wrote: Hyper-V VM Sockets (hvsock) is a byte-stream based communication mechanism between Windowsd 10 (or later) host and a guest. It's kind of TCP

Re: [PATCH net-next] rhashtable: Allow other tasks to be scheduled in large lookup loops

2015-07-17 Thread Eric Dumazet
On Fri, 2015-07-17 at 10:07 +0200, Thomas Graf wrote: Depending on system speed, the large lookup loop can take a considerable amount of time to complete causing watchdog warnings to appear. Allow other tasks to be scheduled after every batch of 1000 lookups. Reported-by: Meelis Roos

Re: [PATCH net-next] rhashtable: Allow other tasks to be scheduled in large lookup loops

2015-07-17 Thread Thomas Graf
On 07/17/15 at 10:28am, Eric Dumazet wrote: On Fri, 2015-07-17 at 10:24 +0200, Eric Dumazet wrote: Please simply use cond_resched() without counting and magic value. Done Also use cond_resched() in insert and delete phases ? When I tried that it made the walker duplicates disappear which

[PATCH net-next v2] rhashtable: Allow other tasks to be scheduled in large lookup loops

2015-07-17 Thread Thomas Graf
Depending on system speed, the large lookup/insert/delete loops of the testsuite can take a considerable amount of time to complete causing watchdog warnings to appear. Allow other tasks to be scheduled throughout the loops. Reported-by: Meelis Roos mr...@linux.ee Signed-off-by: Thomas Graf

Re: 4.1 regression in resizable hashtable tests

2015-07-17 Thread Thomas Graf
On 07/02/15 at 10:09pm, Meelis Roos wrote: [ 33.425061] Running rhashtable test nelem=8, max_size=65536, shrinking=0 [ 33.425154] Test 00: [ 33.534470] Adding 5 keys [ 34.743553] Info: encountered resize [ 34.743698] Info: encountered resize [ 34.743838] Info: encountered

[PATCH net] caif: fix leaks and race in caif_queue_rcv_skb()

2015-07-17 Thread Eric Dumazet
From: Eric Dumazet eduma...@google.com 1) If sk_filter() is applied, skb was leaked (not freed) 2) Testing SOCK_DEAD twice is racy : packet could be freed while already queued. 3) Remove obsolete comment about caching skb-len Signed-off-by: Eric Dumazet eduma...@google.com ---

Re: [PATCH net-next] rhashtable: Allow other tasks to be scheduled in large lookup loops

2015-07-17 Thread Eric Dumazet
On Fri, 2015-07-17 at 10:24 +0200, Eric Dumazet wrote: Please simply use cond_resched() without counting and magic value. Also use cond_resched() in insert and delete phases ? -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to

Re: [PATCH] ravb: do not invalidate cache for RX buffer twice

2015-07-17 Thread David Miller
From: Sergei Shtylyov sergei.shtyl...@cogentembedded.com Date: Wed, 15 Jul 2015 00:56:52 +0300 First, dma_sync_single_for_cpu() shouldn't have been called in the first place (it's a streaming DMA API). dma_unmap_single() should have been called instead. Second, dma_unmap_single() call after

[PATCH net-next] rhashtable: Allow other tasks to be scheduled in large lookup loops

2015-07-17 Thread Thomas Graf
Depending on system speed, the large lookup loop can take a considerable amount of time to complete causing watchdog warnings to appear. Allow other tasks to be scheduled after every batch of 1000 lookups. Reported-by: Meelis Roos mr...@linux.ee Signed-off-by: Thomas Graf tg...@suug.ch ---

Re: [PATCH net-next 1/2] bpf: introduce bpf_skb_vlan_push/pop() helpers

2015-07-17 Thread Eric Dumazet
On Thu, 2015-07-16 at 19:58 -0700, Alexei Starovoitov wrote: In order to let eBPF programs call skb_vlan_push/pop via helper functions Why should eBPF program do such thing ? Are BPF users in the kernel expecting skb being changed, and are we sure they reload all cached values when/if needed ?

Re: sit: Set SKB_GSO_SIT bit when performing GRO

2015-07-17 Thread Wolfgang Walter
Am Freitag, 17. Juli 2015, 09:56:51 schrieb Herbert Xu: On Thu, Jul 16, 2015 at 12:58:45PM +0200, Wolfgang Walter wrote: Am Donnerstag, 16. Juli 2015, 08:23:50 schrieb Herbert Xu: On Wed, Jul 15, 2015 at 02:25:59PM +0200, Wolfgang Walter wrote: Yes. Switching TSO off and leaving GRO on

[PATCH v2 0/2] sctp: fix src address selection if using secondary address

2015-07-17 Thread Marcelo Ricardo Leitner
This series improves the way SCTP chooses its src address so that the choosen one will always belong to the interface being used for output. v1-v2: - split out the refactoring from the fix itself - Doing a full reverse routing as in v1 is not necessary. Only looking for the interface that

[PATCH v2 1/2] sctp: reduce indent level on sctp_v4_get_dst

2015-07-17 Thread Marcelo Ricardo Leitner
Paves the day for the next patch. Functionality stays untouched. Signed-off-by: Marcelo Ricardo Leitner marcelo.leit...@gmail.com --- net/sctp/protocol.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/net/sctp/protocol.c

[PATCH v2 2/2] sctp: fix src address selection if using secondary addresses

2015-07-17 Thread Marcelo Ricardo Leitner
In short, sctp is likely to incorrectly choose src address if socket is bound to secondary addresses. This patch fixes it by adding a new check that checks if such src address belongs to the interface that routing identified as output. This is enough to avoid rp_filter drops on remote peer.

RE: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe

2015-07-17 Thread KY Srinivasan
-Original Message- From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] Sent: Friday, July 17, 2015 7:13 AM To: KY Srinivasan Cc: da...@davemloft.net; netdev@vger.kernel.org; linux- ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com;

RE: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe

2015-07-17 Thread KY Srinivasan
-Original Message- From: Dexuan Cui Sent: Friday, July 17, 2015 3:01 AM To: KY Srinivasan; da...@davemloft.net; netdev@vger.kernel.org; linux- ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; jasow...@redhat.com; vkuzn...@redhat.com Cc: KY

Re: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe

2015-07-17 Thread Vitaly Kuznetsov
KY Srinivasan k...@microsoft.com writes: -Original Message- From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] Sent: Friday, July 17, 2015 7:13 AM To: KY Srinivasan Cc: da...@davemloft.net; netdev@vger.kernel.org; linux- ker...@vger.kernel.org; de...@linuxdriverproject.org;

RE: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe

2015-07-17 Thread Dexuan Cui
From: K. Y. Srinivasan Sent: Friday, July 17, 2015 3:17 Subject: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h ... @@ -1116,6 +1127,9 @@ int rndis_filter_device_add(struct

Re: 4.1 regression in resizable hashtable tests

2015-07-17 Thread Thomas Graf
On 07/17/15 at 12:26pm, Phil Sutter wrote: On Fri, Jul 17, 2015 at 10:04:56AM +0200, Thomas Graf wrote: On 07/02/15 at 10:09pm, Meelis Roos wrote: [ 33.425061] Running rhashtable test nelem=8, max_size=65536, shrinking=0 [ 33.425154] Test 00: [ 33.534470] Adding 5 keys

Blackhole route not enough for proxy-arp

2015-07-17 Thread Jörg Pommnitz
Hello all, it seems that a blackhole route is not enough to enable proxy arp for the routing target. I tried ip route add blackhole 192.168.66.3/32 and ip route add 192.168.66.3/32 dev lo arping failed with the blackhole route but got responses with the route through the loopback interface. Is

Re: 4.1 regression in resizable hashtable tests

2015-07-17 Thread Phil Sutter
On Fri, Jul 17, 2015 at 10:04:56AM +0200, Thomas Graf wrote: On 07/02/15 at 10:09pm, Meelis Roos wrote: [ 33.425061] Running rhashtable test nelem=8, max_size=65536, shrinking=0 [ 33.425154] Test 00: [ 33.534470] Adding 5 keys [ 34.743553] Info: encountered resize [

Re: [RFC net-next 22/22] openvswitch: Use regular GRE net_device instead of vport

2015-07-17 Thread Thomas Graf
On 07/16/15 at 02:36pm, Pravin Shelar wrote: On Thu, Jul 16, 2015 at 7:52 AM, Thomas Graf tg...@suug.ch wrote: I'm inclined to change this and use an in-kernel API as well to create the net_device just like VXLAN does in patch 21. Pravin, what do you think? About the vxlan APIs we also

Re: [PATCH net-next v2] rhashtable: Allow other tasks to be scheduled in large lookup loops

2015-07-17 Thread Eric Dumazet
On Fri, 2015-07-17 at 10:52 +0200, Thomas Graf wrote: Depending on system speed, the large lookup/insert/delete loops of the testsuite can take a considerable amount of time to complete causing watchdog warnings to appear. Allow other tasks to be scheduled throughout the loops.

[PATCH] net/mdio: fix mdio_bus_match for c45 PHY

2015-07-17 Thread shh.xie
From: Shaohui Xie shaohui@freescale.com We store c45 PHY's id information in c45_ids, so it should be used to check the matching between PHY driver and PHY device for c45 PHY. Signed-off-by: Shaohui Xie shaohui@freescale.com --- drivers/net/phy/mdio_bus.c | 19 +-- 1

[PATCH v2] net: ratelimit warnings about dst entry refcount underflow or overflow

2015-07-17 Thread Konstantin Khlebnikov
Kernel generates a lot of warnings when dst entry reference counter overflows and becomes negative. That bug was seen several times at machines with outdated 3.10.y kernels. Most like it's already fixed in upstream. Anyway that flood completely kills machine and makes further debugging impossible.

Re: 4.1.0, kernel panic, pppoe_release

2015-07-17 Thread Denys Fedoryshchenko
As i suspect, this kernel panic caused by recent changes to pppoe. This problem appearing in accel-pppd (server), on loaded servers (2k users and more). Most probably related to changed pppoe: Use workqueue to die properly when a PADT is received I will try to reverse this and related patches.

RE: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe

2015-07-17 Thread Dexuan Cui
From: K. Y. Srinivasan Sent: Friday, July 17, 2015 3:17 Subject: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe The current code returns from probe without waiting for the proper handling of subchannels that may be requested. If the netvsc driver were to

Re: 4.1 regression in resizable hashtable tests

2015-07-17 Thread Phil Sutter
On Fri, Jul 17, 2015 at 12:26:36PM +0200, Phil Sutter wrote: On Fri, Jul 17, 2015 at 10:04:56AM +0200, Thomas Graf wrote: On 07/02/15 at 10:09pm, Meelis Roos wrote: [ 33.425061] Running rhashtable test nelem=8, max_size=65536, shrinking=0 [ 33.425154] Test 00: [ 33.534470]

[PATCH RFC net-next] net/vxlan: Fix kernel unaligned access in __vxlan_find_mac

2015-07-17 Thread Sowmini Varadhan
__vxlan_find_mac invokes ether_addr_equal on the eth_addr field, which triggers unaligned access messages, so rearrange vxlan_fdb to avoid this as non-intrusively as possible. Signed-off-by: Sowmini Varadhan sowmini.varad...@oracle.com --- drivers/net/vxlan.c |2 +- 1 files changed, 1

Re: [PATCH 1/3] fixed_phy: handle link-down case

2015-07-17 Thread Stas Sergeev
17.07.2015 02:25, Florian Fainelli пишет: On 16/07/15 07:50, Stas Sergeev wrote: Currently fixed_phy driver recognizes only the link-up state. This simple patch adds an implementation of link-down state. It fixes the status registers when link is down, and also allows to register the

Re: [PATCH] bcmsysport:Fix error handling in the function bcm_sysport_init_rx_ring

2015-07-17 Thread Florian Fainelli
On 17/07/15 05:13, Nicholas Krause wrote: This fixes the error handling in the function bcm_sysport_init_rx_ringi after calling the function rdma_enable_set to make sure the return value is equal to zero and if not print on the console failed to enable RDMA for the device and return the

Re: [RFC net-next 22/22] openvswitch: Use regular GRE net_device instead of vport

2015-07-17 Thread Pravin Shelar
On Fri, Jul 17, 2015 at 3:58 AM, Thomas Graf tg...@suug.ch wrote: On 07/16/15 at 02:36pm, Pravin Shelar wrote: On Thu, Jul 16, 2015 at 7:52 AM, Thomas Graf tg...@suug.ch wrote: I'm inclined to change this and use an in-kernel API as well to create the net_device just like VXLAN does in patch

[PATCH v2 -next] net: fib: use fib result when zero-length prefix aliases exist

2015-07-17 Thread Florian Westphal
default route selection is not deterministic when TOS keys are used: ip route del default ip route add tos 0x00 via 10.2.100.100 ip route add tos 0x04 via 10.2.100.101 ip route add tos 0x08 via 10.2.100.102 ip route add tos 0x0C via 10.2.100.103 ip route add tos 0x10 via 10.2.100.104 [ i.e. 5

Re: [PATCH -next] net: fib: use fib result when zero-length prefix aliases exist

2015-07-17 Thread Alexander Duyck
On 07/17/2015 08:17 AM, Florian Westphal wrote: default route selection is not deterministic when TOS keys are used: ip route del default ip route add tos 0x00 via 10.2.100.100 ip route add tos 0x04 via 10.2.100.101 ip route add tos 0x08 via 10.2.100.102 ip route add tos 0x0C via 10.2.100.103

[PATCH] sctp: fix cut and paste issue in comment

2015-07-17 Thread Marcelo Ricardo Leitner
Cookie ACK is always received by the association initiator, so fix the comment to avoid confusion. Signed-off-by: Marcelo Ricardo Leitner marcelo.leit...@gmail.com --- net/sctp/sm_statefuns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sctp/sm_statefuns.c

RE: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe

2015-07-17 Thread KY Srinivasan
-Original Message- From: Dexuan Cui Sent: Friday, July 17, 2015 3:07 AM To: KY Srinivasan; da...@davemloft.net; netdev@vger.kernel.org; linux- ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; jasow...@redhat.com; vkuzn...@redhat.com Cc: KY

RE: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe

2015-07-17 Thread KY Srinivasan
-Original Message- From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] Sent: Friday, July 17, 2015 9:10 AM To: KY Srinivasan Cc: da...@davemloft.net; netdev@vger.kernel.org; linux- ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com;

Re: [PATCH 1/3] fixed_phy: handle link-down case

2015-07-17 Thread Florian Fainelli
On 17/07/15 04:26, Stas Sergeev wrote: 17.07.2015 02:25, Florian Fainelli пишет: On 16/07/15 07:50, Stas Sergeev wrote: Currently fixed_phy driver recognizes only the link-up state. This simple patch adds an implementation of link-down state. It fixes the status registers when link is down,

Re: [PATCH net-next v2] rhashtable: Allow other tasks to be scheduled in large lookup loops

2015-07-17 Thread mroos
Depending on system speed, the large lookup/insert/delete loops of the testsuite can take a considerable amount of time to complete causing watchdog warnings to appear. Allow other tasks to be scheduled throughout the loops. Reported-by: Meelis Roos mr...@linux.ee Signed-off-by: Thomas

Re: [net-next 01/14] clarify implementation of ethtool's get_ts_info op

2015-07-17 Thread Richard Cochran
On Fri, Jul 17, 2015 at 07:25:10AM -0700, Jeff Kirsher wrote: From: Jacob Keller jacob.e.kel...@intel.com This patch adds some clarification about the intended way to implement both SIOCSHWTSTAMP and ethtool's get_ts_info. The HWTSTAMP API has several Rx filters which are very specific, as

Re: [PATCH] net: bcmgenet: Return the variable ret rather then zero for the function bcmgenet_power_down

2015-07-17 Thread Florian Fainelli
On 16/07/15 12:38, Nicholas Krause wrote: This makes the function bcmgenet_power_down return the variable ret rather then zero in order to make this function be able to signal its caller with a error code when a failure occurs internally rather then always appearing to run successfully to its

Re: 4.1.0, kernel panic, pppoe_release

2015-07-17 Thread Denys Fedoryshchenko
Probably my knowledge of kernel is not sufficient, but i will try few approaches. One of them to add to pppoe_unbind_sock_work: pppox_unbind_sock(sk); +/* Signal the death of the socket. */ +sk-sk_state = PPPOX_DEAD; I will wait first, to make sure this patch was

Re: [PATCH net-next 1/2] bpf: introduce bpf_skb_vlan_push/pop() helpers

2015-07-17 Thread Alexei Starovoitov
On 7/17/15 1:12 AM, Eric Dumazet wrote: On Thu, 2015-07-16 at 19:58 -0700, Alexei Starovoitov wrote: In order to let eBPF programs call skb_vlan_push/pop via helper functions Why should eBPF program do such thing ? Are BPF users in the kernel expecting skb being changed, and are we sure they

Re: [PATCH net-next 14/22] vxlan: Flow based tunneling

2015-07-17 Thread Alexei Starovoitov
On 7/17/15 5:55 AM, Thomas Graf wrote: @@ -2373,6 +2470,12 @@ static void vxlan_setup(struct net_device *dev) netif_keep_dst(dev); dev-priv_flags |= IFF_LIVE_ADDR_CHANGE; + /* If in flow based mode, keep the dst including encapsulation +* instructions for

Re: [PATCH net-next v2] rhashtable: Allow other tasks to be scheduled in large lookup loops

2015-07-17 Thread Eric Dumazet
On Fri, 2015-07-17 at 22:07 +0300, mr...@linux.ee wrote: Depending on system speed, the large lookup/insert/delete loops of the testsuite can take a considerable amount of time to complete causing watchdog warnings to appear. Allow other tasks to be scheduled throughout the loops.

Re: [PATCHv2 RFC net-next] net/vxlan: Fix kernel unaligned access in __vxlan_find_mac

2015-07-17 Thread Sowmini Varadhan
On (07/17/15 16:07), Joe Perches wrote: On Fri, 2015-07-17 at 22:00 +0200, Sowmini Varadhan wrote: __vxlan_find_mac invokes ether_addr_equal on the eth_addr field, which triggers unaligned access messages, so rearrange vxlan_fdb to avoid this in the most non-intrusive way. What arch does

good afternoon

2015-07-17 Thread wvzjtmqx
Hi samsung s6,280euro, imac,nikon,samsung products site: isgayre. com

Re: [PATCH net-next 1/2] tcp: don't extend RTO on failed loss probe attempts

2015-07-17 Thread Eric Dumazet
On Fri, 2015-07-17 at 14:22 -0700, Yuchung Cheng wrote: If TLP was unable to send a probe, it extended the RTO to now + icsk_rto. But extending the RTO makes little sense if no TLP probe went out. With this commit, instead of extending the RTO we re-arm it relative to the transmit time of the

  1   2   >