Re: [PATCH 0/6] BPF JIT fixes and features for ARM

2015-07-16 Thread Alexei Starovoitov
On 7/16/15 9:46 AM, Nicolas Schichan wrote: This serie fixes issues with the ARM BPF JIT and adds support for more instructions to the ARM BPF JIT. The first three patches are fixing bugs in the ARM JIT and should probably find their way to a stable kernel. The last three patches add support

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

2015-07-16 Thread K. Y. Srinivasan
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 have been fully setup yet. We fix this issue by

Re: [PATCH net-next] rocker: forward packets to CPU when port is joined to openvswitch

2015-07-16 Thread Scott Feldman
On Wed, Jul 15, 2015 at 6:39 PM, Simon Horman simon.hor...@netronome.com wrote: Teach rocker to forward packets to CPU when a port is joined to Open vSwitch. There is scope to later refine what is passed up as per Open vSwitch flows on a port. This does not change the behaviour of rocker

Re: [PATCH net] bonding: fix destruction of bond with devices different from arphrd_ether

2015-07-16 Thread Veaceslav Falico
On Thu, Jul 16, 2015 at 12:54:06AM +0200, Nikolay Aleksandrov wrote: ...snip... My personal opinion would be to disable non-ethernet devices, but support was already added and has been there for a long time so we have to fix this for the older releases, I don't mind removing non-ethernet device

Re: ss -p segfaults

2015-07-16 Thread Marc Dietrich
Am Donnerstag, 16. Juli 2015, 01:22:38 schrieb Vadim Kochan: On Wed, Jul 15, 2015 at 09:57:51PM +0300, Vadim Kochan wrote: On Wed, Jul 15, 2015 at 06:52:49PM +, Rustad, Mark D wrote: On Jul 15, 2015, at 9:49 AM, Rustad, Mark D mark.d.rus...@intel.com wrote: On Jul 15, 2015, at 8:12

Re: Sending IPv6 packets broken in net-next

2015-07-16 Thread Phil Sutter
On Thu, Jul 16, 2015 at 12:20:46AM +0200, Phil Sutter wrote: Commit 9131f3d (ipv6: Do not iterate over all interfaces when finding source address on specific interface) breaks local output of IPv6 packets. Here is a simple reproducer: I just noticed, a patch fixing the issue has already been

Re: [PATCH net-next v2 3/5] switchdev: add offload_fwd_mark generator helper

2015-07-16 Thread Jiri Pirko
Thu, Jul 16, 2015 at 10:04:55AM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com skb-offload_fwd_mark and dev-offload_fwd_mark are 32-bit and should be unique for device and may even be unique for a sub-set of ports within device, so add switchdev helper function to generate

Re: [PATCH net-next v2 5/5] switchdev: update documentation for offload_fwd_mark

2015-07-16 Thread Jiri Pirko
Thu, Jul 16, 2015 at 10:04:57AM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com Signed-off-by: Scott Feldman sfel...@gmail.com Acked-by: Jiri Pirko j...@resnulli.us -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to

Re: [PATCH net-next v2 2/5] net: add phys ID compare helper to test if two IDs are the same

2015-07-16 Thread Jiri Pirko
Thu, Jul 16, 2015 at 10:04:54AM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com Signed-off-by: Scott Feldman sfel...@gmail.com Acked-by: Jiri Pirko j...@resnulli.us -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to

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

2015-07-16 Thread Jiri Pirko
Thu, Jul 16, 2015 at 10:04:53AM CEST, sfel...@gmail.com wrote: 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

Re: [PATCH net-next v2 4/5] rocker: add offload_fwd_mark support

2015-07-16 Thread Jiri Pirko
Thu, Jul 16, 2015 at 10:04:56AM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com If device flags ingress packet as fwd offload, mark the skb-offlaod_fwd_mark using the ingress port's dev-offlaod_fwd_mark. This will be the hint to the kernel that this packet has already been

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

2015-07-16 Thread Erik Kline
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 outgoing interface). Add a sysctl to enable this behaviour.

[PATCH 1/2] can: mcp251x: fix resume when device is down

2015-07-16 Thread Marc Kleine-Budde
From: Stefan Agner ste...@agner.ch If a valid power regulator or a dummy regulator is used (which happens to be the case when no regulator is specified), restart_work is queued no matter whether the device was running or not at suspend time. Since work queues get initialized in the ndo_open

pull-request: can 2015-07-16

2015-07-16 Thread Marc Kleine-Budde
/bluetooth/bluetooth (2015-07-15 21:59:23 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can.git tags/linux-can-fixes-for-4.2-20150716 for you to fetch changes up to 69da3f2ac528642acbd06ed14564ac1b9a918394: can: mcp251x: get

[PATCH] bonding: correct the MAC address for follow fail_over_mac policy

2015-07-16 Thread Ding Tianhong
The follow fail_over_mac policy is useful for multiport devices that either become confused or incur a performance penalty when multiple ports are programmed with the same MAC address, but the same MAC address still may happened by this steps for this policy: 1) echo +eth0

[PATCH 2/2] can: mcp251x: get regulators optionally

2015-07-16 Thread Marc Kleine-Budde
From: Stefan Agner ste...@agner.ch The regulators power and transceiver are optional. If those are not present, the pointer (or error pointer) is correctly handled by the driver, hence we can use devm_regulator_get_optional safely, which avoids regulators getting created. Signed-off-by: Stefan

Re: [PATCH] bonding: correct the MAC address for follow fail_over_mac policy

2015-07-16 Thread Nikolay Aleksandrov
On 07/16/2015 10:30 AM, Ding Tianhong wrote: The follow fail_over_mac policy is useful for multiport devices that either become confused or incur a performance penalty when multiple ports are programmed with the same MAC address, but the same MAC address still may happened by this steps for

Re: [PATCH net-next v2 0/5] switchdev: avoid duplicate packet forwarding

2015-07-16 Thread Simon Horman
On Thu, Jul 16, 2015 at 01:04:52AM -0700, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com [snip] Scott Feldman (5): net: don't reforward packets already forwarded by offload device net: add phys ID compare helper to test if two IDs are the same switchdev: add

Re: [virtio-dev] [PATCH] virtio_net: don't require ANY_LAYOUT with VERSION_1

2015-07-16 Thread Stefan Hajnoczi
On Wed, Jul 15, 2015 at 03:26:19PM +0300, Michael S. Tsirkin wrote: ANY_LAYOUT is a compatibility feature. It's implied for VERSION_1 devices, and non-transitional devices might not offer it. Change code to behave accordingly. Signed-off-by: Michael S. Tsirkin m...@redhat.com ---

[PATCH v7 2/3] ixgbe: Add new ndo to trust VF

2015-07-16 Thread Hiroshi Shimamoto
From: Hiroshi Shimamoto h-shimam...@ct.jp.nec.com Implements the new netdev op to trust VF in ixgbe. The administrator can turn on and off VF trusted by ip command which supports trust message. # ip link set dev eth0 vf 1 trust on or # ip link set dev eth0 vf 1 trust off Send a ping to reset

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

2015-07-16 Thread Hiroshi Shimamoto
From: Hiroshi Shimamoto h-shimam...@ct.jp.nec.com The limitation of the number of multicast address for VF is not enough for the large scale server with SR-IOV feature. IPv6 requires the multicast MAC address for each IP address to handle the Neighbor Solicitation message. We couldn't assign over

Re: sit: Set SKB_GSO_SIT bit when performing GRO

2015-07-16 Thread Wolfgang Walter
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 works, too. OK, could you please try this patch? Patch works here. Thanks, Wolfgang ---8--- We need to set the

[PATCH linux-3.18.y] rtnl: restore notifications for deleted interfaces

2015-07-16 Thread Nicolas Dichtel
The commit 984ff7a3e060 is an upstream backport. In fact, it depends on commit 395eea6ccf2b (rtnetlink: delay RTM_DELLINK notification until after ndo_uninit()) which has not been backported in 3.18.y. Before commit 395eea6ccf2b, rollback_registered_many() uses rtmsg_ifinfo(). The call to this

[PATCH net-next]r8169: set bits on Register Interrupt status on limit

2015-07-16 Thread Corcodel Marian
Set bits on register Interrupt status on limits by configuration(critical). On chips not alls bits is in use and some is reserved this patch solve this issue. Committer: Corcodel Marian a...@192-168-0-3.rdsnet.ro Changes to be committed: modified:

Re: [PATCH -next 0/6] Per network namespace netfilter chains

2015-07-16 Thread Pablo Neira Ayuso
On Wed, Jul 15, 2015 at 03:05:00PM -0500, Eric W. Biederman wrote: Pablo Neira Ayuso pa...@netfilter.org writes: [...] There are lots of other possible and desirable cleanups but this one is a core change needed to make the other changes independent small changes. The state-net field

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

2015-07-16 Thread Nicolas Dichtel
Le 13/07/2015 16:11, Kristian Evensen a écrit : Hello, I have a quick question about this patch. On Wed, May 13, 2015 at 2:19 PM, Nicolas Dichtel nicolas.dich...@6wind.com wrote: diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 837d30b5ffed..7b25f1ef3d75 100644 ---

[PATCH v7 1/3] if_link: Add control trust VF

2015-07-16 Thread Hiroshi Shimamoto
From: Hiroshi Shimamoto h-shimam...@ct.jp.nec.com Add netlink directives and ndo entry to trust VF user. This controls the special permission of VF user. The administrator will dedicatedly trust VF user to use some features which impacts security and/or performance. The administrator never turn

Re: [PATCH net-next] rocker: forward packets to CPU when port is joined to openvswitch

2015-07-16 Thread Jiri Pirko
Thu, Jul 16, 2015 at 08:40:31AM CEST, sfel...@gmail.com wrote: On Wed, Jul 15, 2015 at 6:39 PM, Simon Horman simon.hor...@netronome.com wrote: Teach rocker to forward packets to CPU when a port is joined to Open vSwitch. There is scope to later refine what is passed up as per Open vSwitch flows

Re: [PATCH net-next] rocker: forward packets to CPU when port is joined to openvswitch

2015-07-16 Thread Scott Feldman
On Wed, Jul 15, 2015 at 11:58 PM, Jiri Pirko j...@resnulli.us wrote: Thu, Jul 16, 2015 at 08:40:31AM CEST, sfel...@gmail.com wrote: On Wed, Jul 15, 2015 at 6:39 PM, Simon Horman simon.hor...@netronome.com wrote: Teach rocker to forward packets to CPU when a port is joined to Open vSwitch.

[PATCH] inet: frags: fix defragmented packet's IP header for af_packet

2015-07-16 Thread Edward Jee
When ip_frag_queue() computes positions, it assumes that the passed sk_buff does not contain L2 headers. However, when PACKET_FANOUT_FLAG_DEFRAG is used, IP defragmentation functions can be called on outgoing packets that contain L2 headers. Also, IPv4 checksum is not corrected after

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

2015-07-16 Thread Simon Horman
On Fri, Jul 10, 2015 at 04:19:24PM +0200, Thomas Graf wrote: From: Pravin Shelar pshe...@nicira.com Removes all of the OVS specific GRE code and makes OVS use a GRE net_device. Signed-off-by: Pravin B Shelar pshe...@nicira.com [snip] @@ -115,6 +117,8 @@ static bool log_ecn_error = true;

[no subject]

2015-07-16 Thread Clemens Gruber
unsubscribe -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] Revert net: fec: Ensure clocks are enabled while using mdio bus

2015-07-16 Thread Clemens Gruber
On Wed, Jul 15, 2015 at 05:32:13PM -0700, David Miller wrote: From: Clemens Gruber clemens.gru...@pqgruber.com Date: Thu, 16 Jul 2015 02:04:04 +0200 This reverts commit 6c3e921b18edca290099adfddde8a50236bf2d80. The change did break ethernet support on the i.MX6Q and possibly also on

[PATCH net-next v2 2/5] net: add phys ID compare helper to test if two IDs are the same

2015-07-16 Thread sfeldma
From: Scott Feldman sfel...@gmail.com Signed-off-by: Scott Feldman sfel...@gmail.com --- include/linux/netdevice.h |7 +++ net/switchdev/switchdev.c |8 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index

[PATCH net-next v2 3/5] switchdev: add offload_fwd_mark generator helper

2015-07-16 Thread sfeldma
From: Scott Feldman sfel...@gmail.com skb-offload_fwd_mark and dev-offload_fwd_mark are 32-bit and should be unique for device and may even be unique for a sub-set of ports within device, so add switchdev helper function to generate unique marks based on port's switch ID and group_ifindex.

[PATCH net-next v2 5/5] switchdev: update documentation for offload_fwd_mark

2015-07-16 Thread sfeldma
From: Scott Feldman sfel...@gmail.com Signed-off-by: Scott Feldman sfel...@gmail.com --- Documentation/networking/switchdev.txt | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Documentation/networking/switchdev.txt b/Documentation/networking/switchdev.txt

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

2015-07-16 Thread sfeldma
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 switchdev port driver/device on ingress to indicate the skb

Re: [PATCH net-next v2 0/5] switchdev: avoid duplicate packet forwarding

2015-07-16 Thread Jiri Pirko
.. Scott Feldman (5): net: don't reforward packets already forwarded by offload device net: add phys ID compare helper to test if two IDs are the same switchdev: add offload_fwd_mark generator helper rocker: add offload_fwd_mark support switchdev: update documentation for

[PATCH net-next] ipv6: Remove unused arguments for __ipv6_dev_get_saddr().

2015-07-16 Thread YOSHIFUJI Hideaki
Signed-off-by: YOSHIFUJI Hideaki hideaki.yoshif...@miraclelinux.com --- net/ipv6/addrconf.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 4c9a024..32153c2 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@

[PATCH net-next v2 4/5] rocker: add offload_fwd_mark support

2015-07-16 Thread sfeldma
From: Scott Feldman sfel...@gmail.com If device flags ingress packet as fwd offload, mark the skb-offlaod_fwd_mark using the ingress port's dev-offlaod_fwd_mark. This will be the hint to the kernel that this packet has already been forwarded by device to egress ports matching

[PATCH net-next v2 0/5] switchdev: avoid duplicate packet forwarding

2015-07-16 Thread sfeldma
From: Scott Feldman sfel...@gmail.com v2: - Per davem review: in sk_buff, union fwd_mark with secmark to save space since features appear to be mutually exclusive. - Per Simon Horman review: - fix grammar in switchdev.txt wrt fwd_mark - remove some unrelated changes that snuck in v1:

Re: [PATCH net-next] ipv6: Remove unused arguments for __ipv6_dev_get_saddr().

2015-07-16 Thread David Miller
From: YOSHIFUJI Hideaki hideaki.yoshif...@miraclelinux.com Date: Thu, 16 Jul 2015 16:51:30 +0900 Signed-off-by: YOSHIFUJI Hideaki hideaki.yoshif...@miraclelinux.com Applied, thanks. -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to

Re: [PATCH net-next] rocker: forward packets to CPU when port is joined to openvswitch

2015-07-16 Thread Jiri Pirko
Thu, Jul 16, 2015 at 09:09:39AM CEST, sfel...@gmail.com wrote: On Wed, Jul 15, 2015 at 11:58 PM, Jiri Pirko j...@resnulli.us wrote: Thu, Jul 16, 2015 at 08:40:31AM CEST, sfel...@gmail.com wrote: On Wed, Jul 15, 2015 at 6:39 PM, Simon Horman simon.hor...@netronome.com wrote: Teach rocker to

RE: [V2 3/7] Drivers: hv: vmbus: add APIs to send/recv hvsock packet and get the r/w-ability

2015-07-16 Thread Dexuan Cui
-Original Message- From: David Miller Sent: Thursday, July 16, 2015 12:16 From: Dexuan Cui Date: Tue, 14 Jul 2015 02:58:56 -0700 +int vmbus_sendpacket_hvsock(struct vmbus_channel *channel, void *buf, u32 len) +{ + struct vmpacket_descriptor desc; + struct

Re: [PATCH v2 0/2] Avoid link dependency of dlm on sctp module

2015-07-16 Thread Neil Horman
On Wed, Jul 15, 2015 at 01:59:18PM -0700, David Miller wrote: From: Neil Horman nhor...@tuxdriver.com Date: Wed, 15 Jul 2015 09:57:14 -0400 Series Acked-by: Neil Horman nhor...@tuxdriver.com I don't like this at all. I know it's a pain in the ass to have this dependency on SCTP, but

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

2015-07-16 Thread Dexuan Cui
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 sophisticated tracing facilities in the

What queues/buffers does tc-netem use?

2015-07-16 Thread Motejlek, Petr
Hello, I was wondering what queues/buffers does netem use and how does one control or monitor them? I could not find this information anywhere and I am not that good in reading the sources to be able to tell enough about this :) If we talk only about the situation where netem is the root

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

2015-07-16 Thread Marcelo Ricardo Leitner
On Tue, Jul 14, 2015 at 02:23:11PM +0200, Michal Kubecek wrote: 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

RE: [V2 1/7] Drivers: hv: vmbus: define the new offer type for Hyper-V socket (hvsock)

2015-07-16 Thread Dexuan Cui
From: David Miller Sent: Thursday, July 16, 2015 12:13 From: Dexuan Cui Date: Tue, 14 Jul 2015 02:58:03 -0700 A helper function is also added. diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h @@ -236,6 +236,7 @@ struct vmbus_channel_offer { #define

Re: [PATCH] bonding: correct the MAC address for follow fail_over_mac policy

2015-07-16 Thread Nikolay Aleksandrov
On 07/16/2015 01:48 PM, Ding Tianhong wrote: On 2015/7/16 17:24, Nikolay Aleksandrov wrote: On 07/16/2015 10:30 AM, Ding Tianhong wrote: The follow fail_over_mac policy is useful for multiport devices that either become confused or incur a performance penalty when multiple ports are

Re: [PATCH] bonding: correct the MAC address for follow fail_over_mac policy

2015-07-16 Thread Nikolay Aleksandrov
On 07/16/2015 01:54 PM, Nikolay Aleksandrov wrote: On 07/16/2015 01:50 PM, Nikolay Aleksandrov wrote: On 07/16/2015 01:48 PM, Ding Tianhong wrote: On 2015/7/16 17:24, Nikolay Aleksandrov wrote: On 07/16/2015 10:30 AM, Ding Tianhong wrote: The follow fail_over_mac policy is useful for

RE: [PATCH v1 08/12] IB/cma: Add net_dev and private data checks to RDMA CM

2015-07-16 Thread Liran Liss
From: Jason Gunthorpe [mailto:jguntho...@obsidianresearch.com] After all, it is the payload that designates the entity that you want to establish a connection to, rather than the packet headers, which are just meant to relay the packet to the proper CM No, that isn't right. The IBA uses

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

2015-07-16 Thread Denys Vlasenko
This patch deinlines jhash, jhash2 and __jhash_nwords. It also removes rhashtable_jhash2(key, length, seed) because it was merely calling jhash2(key, length, seed). With this .config: http://busybox.net/~vda/kernel_config, after deinlining these functions have sizes and callsite counts as

Re: What queues/buffers does tc-netem use?

2015-07-16 Thread Hagen Paul Pfeifer
On July 16, 2015 at 1:28 PM Motejlek, Petr pmote...@akamai.com wrote: I was wondering what queues/buffers does netem use and how does one control or monitor them? netem uses his own rbtree based queue. You can use tc(1) to get statistics. I could not find this information anywhere and I am

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

2015-07-16 Thread Marcelo Ricardo Leitner
On Thu, Jul 16, 2015 at 02:05:12PM +0200, Michal Kubecek wrote: On Wed, Jul 15, 2015 at 05:35:08PM -0300, Marcelo Ricardo Leitner wrote: Hi, On Tue, Jul 14, 2015 at 06:42:25PM +0200, Michal Kubecek wrote: On Tue, Jul 14, 2015 at 03:42:03PM +0200, Florian Westphal wrote: Michal

Re: [PATCH v2 1/2] sctp: add new getsockopt option SCTP_SOCKOPT_PEELOFF_KERNEL

2015-07-16 Thread Vlad Yasevich
On 07/14/2015 01:13 PM, Marcelo Ricardo Leitner wrote: SCTP has this operation to peel off associations from a given socket and create a new socket using this association. We currently have two ways to use this operation: - via getsockopt(), on which it will also create and return a file

Re: [PATCH] bonding: correct the MAC address for follow fail_over_mac policy

2015-07-16 Thread Ding Tianhong
On 2015/7/16 17:24, Nikolay Aleksandrov wrote: On 07/16/2015 10:30 AM, Ding Tianhong wrote: The follow fail_over_mac policy is useful for multiport devices that either become confused or incur a performance penalty when multiple ports are programmed with the same MAC address, but the same MAC

Re: [PATCH] bonding: correct the MAC address for follow fail_over_mac policy

2015-07-16 Thread Nikolay Aleksandrov
On 07/16/2015 01:50 PM, Nikolay Aleksandrov wrote: On 07/16/2015 01:48 PM, Ding Tianhong wrote: On 2015/7/16 17:24, Nikolay Aleksandrov wrote: On 07/16/2015 10:30 AM, Ding Tianhong wrote: The follow fail_over_mac policy is useful for multiport devices that either become confused or incur a

[PATCH 1/2] iwlwifi: convert hex_dump_to_buffer() to %*ph

2015-07-16 Thread Andy Shevchenko
There is no need to use hex_dump_to_buffer() in the cases like this: hexdump_to_buffer(buf, len, 16, 1, outbuf, outlen, false); /* len = 16 */ sprintf(%s\n, outbuf); since it maybe easily converted to simple: sprintf(%*ph\n, len, buf); Note: it seems in one case

Re: What queues/buffers does tc-netem use?

2015-07-16 Thread Motejlek, Petr
Hello Hagen, Could you please give me some example of such a tc command that would tell me the statistics? I am not sure what you mean. Is there a way I can manipulate the internal rbtree queue size, please? Thank you Petr MOTEJLEK From: Hagen Paul

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

2015-07-16 Thread Vlad Yasevich
On 07/15/2015 03:03 PM, Marcelo Ricardo Leitner wrote: On Fri, Jul 10, 2015 at 03:27:02PM -0300, Marcelo Ricardo Leitner wrote: On Fri, Jul 10, 2015 at 01:14:21PM -0400, Vlad Yasevich wrote: On 07/10/2015 12:17 PM, Marcelo Ricardo Leitner wrote: On Fri, Jul 10, 2015 at 11:35:28AM -0400, Vlad

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

2015-07-16 Thread Alexander Duyck
On 07/16/2015 05:40 AM, Denys Vlasenko wrote: This patch deinlines jhash, jhash2 and __jhash_nwords. It also removes rhashtable_jhash2(key, length, seed) because it was merely calling jhash2(key, length, seed). With this .config: http://busybox.net/~vda/kernel_config, after deinlining these

Re: [PATCH v7 1/3] if_link: Add control trust VF

2015-07-16 Thread Or Gerlitz
On Thu, Jul 16, 2015 at 1:33 PM, Hiroshi Shimamoto h-shimam...@ct.jp.nec.com wrote: From: Hiroshi Shimamoto h-shimam...@ct.jp.nec.com Add netlink directives and ndo entry to trust VF user. You haven't posted cover letter stating the V7 -- V6 and V6 -- older versions changes Or. This

Re: [PATCH net-next] rocker: forward packets to CPU when port is joined to openvswitch

2015-07-16 Thread John Fastabend
On 15-07-16 01:14 AM, Jiri Pirko wrote: Thu, Jul 16, 2015 at 09:09:39AM CEST, sfel...@gmail.com wrote: On Wed, Jul 15, 2015 at 11:58 PM, Jiri Pirko j...@resnulli.us wrote: Thu, Jul 16, 2015 at 08:40:31AM CEST, sfel...@gmail.com wrote: On Wed, Jul 15, 2015 at 6:39 PM, Simon Horman

[PATCH v4 0/3] net: enable inband link state negotiation only when explicitly requested

2015-07-16 Thread Stas Sergeev
Hello. Currently the link status auto-negotiation is enabled for any SGMII link with fixed-link DT binding. The regression was reported: https://lkml.org/lkml/2015/7/8/865 Apparently not all HW that implements SGMII protocol, generates the inband status for the auto-negotiation to work. More

[PATCH 3/3] mvneta: use inband status only when explicitly enabled

2015-07-16 Thread Stas Sergeev
The commit 898b2970e2c9 (mvneta: implement SGMII-based in-band link state signaling) implemented the link parameters auto-negotiation unconditionally. Unfortunately it appears that some HW that implements SGMII protocol, doesn't generate the inband status, so it is not possible to auto-negotiate

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

2015-07-16 Thread Thomas Graf
On 07/16/15 at 05:59pm, Simon Horman wrote: On Fri, Jul 10, 2015 at 04:19:24PM +0200, Thomas Graf wrote: static void ipgre_tap_setup(struct net_device *dev) { ether_setup(dev); - dev-netdev_ops = gre_tap_netdev_ops; dev-priv_flags |= IFF_LIVE_ADDR_CHANGE;

[PATCH 2/3] of_mdio: add new DT property 'managed' to specify the PHY management type

2015-07-16 Thread Stas Sergeev
Currently the PHY management type is selected by the MAC driver arbitrary. The decision is based on the presence of the fixed-link node and on a will of the driver's authors. This caused a regression recently, when mvneta driver suddenly started to use the in-band status for auto-negotiation on

Re: [PATCH v2 1/2] sctp: add new getsockopt option SCTP_SOCKOPT_PEELOFF_KERNEL

2015-07-16 Thread Marcelo Ricardo Leitner
On Thu, Jul 16, 2015 at 09:50:16AM -0400, Vlad Yasevich wrote: On 07/14/2015 01:13 PM, Marcelo Ricardo Leitner wrote: SCTP has this operation to peel off associations from a given socket and create a new socket using this association. We currently have two ways to use this operation: -

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

2015-07-16 Thread Marcelo Ricardo Leitner
On Thu, Jul 16, 2015 at 09:09:57AM -0400, Vlad Yasevich wrote: On 07/15/2015 03:03 PM, Marcelo Ricardo Leitner wrote: On Fri, Jul 10, 2015 at 03:27:02PM -0300, Marcelo Ricardo Leitner wrote: On Fri, Jul 10, 2015 at 01:14:21PM -0400, Vlad Yasevich wrote: On 07/10/2015 12:17 PM, Marcelo

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

2015-07-16 Thread Stas Sergeev
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 fixed-phy with link down without specifying the speed. Signed-off-by: Stas Sergeev

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

2015-07-16 Thread Tom Herbert
On Thu, Jul 16, 2015 at 5:40 AM, Denys Vlasenko dvlas...@redhat.com wrote: This patch deinlines jhash, jhash2 and __jhash_nwords. It also removes rhashtable_jhash2(key, length, seed) because it was merely calling jhash2(key, length, seed). With this .config:

Re: [PATCH] bnx2x: Update to FW version 7.12.30

2015-07-16 Thread Kyle McMartin
On Thu, Jul 16, 2015 at 10:10:43AM +0300, Yuval Mintz wrote: The new FW will allow us to utilize some new features in our driver, mainly adding vlan stripping offload and vxlan offload support. In addition, this fixes several issues: - Packets from a VF with pvid configured which were sent

Re: [PATCH net-next]r8169: set bits on Register Interrupt status on limit

2015-07-16 Thread Florian Fainelli
On 16/07/15 03:18, Corcodel Marian wrote: Set bits on register Interrupt status on limits by configuration(critical). On chips not alls bits is in use and some is reserved this patch solve this issue. Committer: Corcodel Marian a...@192-168-0-3.rdsnet.ro Changes to be committed:

Re: [PATCH] bonding: correct the MAC address for follow fail_over_mac policy

2015-07-16 Thread Ding Tianhong
On 2015/7/16 19:54, Nikolay Aleksandrov wrote: On 07/16/2015 01:50 PM, Nikolay Aleksandrov wrote: On 07/16/2015 01:48 PM, Ding Tianhong wrote: On 2015/7/16 17:24, Nikolay Aleksandrov wrote: On 07/16/2015 10:30 AM, Ding Tianhong wrote: The follow fail_over_mac policy is useful for multiport

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

2015-07-16 Thread Michal Kubecek
On Wed, Jul 15, 2015 at 05:35:08PM -0300, Marcelo Ricardo Leitner wrote: Hi, On Tue, Jul 14, 2015 at 06:42:25PM +0200, Michal Kubecek wrote: On Tue, Jul 14, 2015 at 03:42:03PM +0200, Florian Westphal wrote: Michal Kubecek mkube...@suse.cz wrote: + case SCTP_CID_HEARTBEAT: +

[PATCH 2/2] iwlegacy: convert hex_dump_to_buffer() to %*ph

2015-07-16 Thread Andy Shevchenko
There is no need to use hex_dump_to_buffer() in the cases like this: hexdump_to_buffer(buf, len, 16, 1, outbuf, outlen, false); /* len = 16 */ sprintf(%s\n, outbuf); since it maybe easily converted to simple: sprintf(%*ph\n, len, buf); Note: it seems in the case

Re: What queues/buffers does tc-netem use?

2015-07-16 Thread Hagen Paul Pfeifer
On July 16, 2015 at 2:48 PM Motejlek, Petr pmote...@akamai.com wrote: Could you please give me some example of such a tc command that would tell me the statistics? I am not sure what you mean. tc -s qdisc show dev eth0 Is there a way I can manipulate the internal rbtree queue size, please?

[PATCH 4/6] ARM: net: add support for BPF_ANC | SKF_AD_PKTTYPE in ARM JIT.

2015-07-16 Thread Nicolas Schichan
Signed-off-by: Nicolas Schichan nschic...@freebox.fr --- arch/arm/net/bpf_jit_32.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c index c011e22..6ff248c 100644 --- a/arch/arm/net/bpf_jit_32.c +++ b/arch/arm/net/bpf_jit_32.c

[PATCH 6/6] ARM: net: add support for BPF_ANC | SKF_AD_HATYPE in ARM JIT.

2015-07-16 Thread Nicolas Schichan
Signed-off-by: Nicolas Schichan nschic...@freebox.fr --- arch/arm/net/bpf_jit_32.c | 22 -- arch/arm/net/bpf_jit_32.h | 3 +++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c index 3c73caf..876060b 100644

[PATCH 5/6] ARM: net: add support for BPF_ANC | SKF_AD_PAY_OFFSET in ARM JIT.

2015-07-16 Thread Nicolas Schichan
Signed-off-by: Nicolas Schichan nschic...@freebox.fr --- arch/arm/net/bpf_jit_32.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c index 6ff248c..3c73caf 100644 --- a/arch/arm/net/bpf_jit_32.c +++ b/arch/arm/net/bpf_jit_32.c @@

[PATCH 3/6] ARM: net: fix vlan access instructions in ARM JIT.

2015-07-16 Thread Nicolas Schichan
This makes BPF_ANC | SKF_AD_VLAN_TAG and BPF_ANC | SKF_AD_VLAN_TAG_PRESENT have the same behaviour as the in kernel VM and makes the test_bpf LD_VLAN_TAG and LD_VLAN_TAG_PRESENT tests pass. Signed-off-by: Nicolas Schichan nschic...@freebox.fr --- arch/arm/net/bpf_jit_32.c | 8 +--- 1 file

[PATCH 0/6] BPF JIT fixes and features for ARM

2015-07-16 Thread Nicolas Schichan
Hello, This serie fixes issues with the ARM BPF JIT and adds support for more instructions to the ARM BPF JIT. The first three patches are fixing bugs in the ARM JIT and should probably find their way to a stable kernel. The last three patches add support to the ARM JIT for more BPF

[PATCH 2/6] ARM: net: handle negative offsets in BPF JIT.

2015-07-16 Thread Nicolas Schichan
Previously, the JIT would reject negative offsets known during code generation and mishandle negative offsets provided at runtime. Fix that by calling bpf_internal_load_pointer_neg_helper() appropriately in the jit_get_skb_{b,h,w} slow path helpers and by forcing the execution flow to the slow

[PATCH 1/6] ARM: net: fix condition for load_order 0 when translating load instructions.

2015-07-16 Thread Nicolas Schichan
To check whether the load should take the fast path or not, the code would check that (r_skb_hlen - load_order) is greater than the offset of the access using an Unsigned higher or same condition. For halfword accesses and an skb length of 1 at offset 0, that test is valid, as we end up comparing

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

2015-07-16 Thread Michal Kubecek
On Thu, Jul 16, 2015 at 10:50:59AM -0300, Marcelo Ricardo Leitner wrote: On Tue, Jul 14, 2015 at 02:23:11PM +0200, Michal Kubecek wrote: @@ -278,6 +292,14 @@ static int sctp_new_state(enum ip_conntrack_dir dir, pr_debug(SCTP_CID_SHUTDOWN_COMPLETE\n); i = 8;

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

2015-07-16 Thread Stefan Hajnoczi
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 over VMBus, but the transportation layer (VMBus) is much simpler than IP. With Hyper-V VM

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

2015-07-16 Thread Florian Fainelli
On 16/07/15 12:34, 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

[PATCH] ravb: fix race updating TCCR

2015-07-16 Thread Sergei Shtylyov
The TCCR.TSRQn bit may get clearead after TCCR gets read, so that TCCR write would get skipped. We don't need to check this bit before setting. Signed-off-by: Sergei Shtylyov sergei.shtyl...@cogentembedded.com --- The patch is against Dave Miller's 'net.git' repo plus the patch I sent on

Re: [PATCH v1 08/12] IB/cma: Add net_dev and private data checks to RDMA CM

2015-07-16 Thread Jason Gunthorpe
On Thu, Jul 16, 2015 at 12:01:55PM +, Liran Liss wrote: - Name space lookup is done based on BTH.pkey, private_data.IP, and optionally GRH.DGID (if present, for extra validation) Just changing the pkey to BTH.pkey would be fine by me. Using GRH.DGID if available instead of the primary

Re: [PATCH] tg3:Add error handling to the function tg3_test_loopback

2015-07-16 Thread Michael Chan
On Thu, 2015-07-16 at 12:18 -0700, Michael Chan wrote: On Thu, 2015-07-16 at 14:51 -0400, Nicholas Krause wrote: This adds proper error handling for if the calls to the function tg3_phy_lpbk_set fail by returning -EIO by assigning the return value to the variable err and if it equals

Re: [PATCH] tg3:Add error handling to the function tg3_test_loopback

2015-07-16 Thread Michael Chan
On Thu, 2015-07-16 at 14:51 -0400, Nicholas Krause wrote: This adds proper error handling for if the calls to the function tg3_phy_lpbk_set fail by returning -EIO by assigning the return value to the variable err and if it equals anything other then zero jumps to the goto label done as no

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

2015-07-16 Thread Joe Perches
On Thu, 2015-07-16 at 11:17 -0700, David Miller wrote: From: Tom Herbert t...@herbertland.com Date: Thu, 16 Jul 2015 08:43:25 -0700 On Thu, Jul 16, 2015 at 5:40 AM, Denys Vlasenko dvlas...@redhat.com wrote: This patch deinlines jhash, jhash2 and __jhash_nwords. It also removes

[PATCH net-next] net: remove skb_frag_add_head

2015-07-16 Thread Jiri Benc
It's not used anywhere. Signed-off-by: Jiri Benc jb...@redhat.com --- include/linux/skbuff.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index d6cdd6e87d53..a5395be9fe7b 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h

[PATCH net-next 12/13] tipc: introduce node contact FSM

2015-07-16 Thread Jon Maloy
The logics for determining when a node is permitted to establish and maintain contact with its peer node becomes non-trivial in the presence of multiple parallel links that may come and go independently. A known failure scenario is that one endpoint registers both its links to the peer lost,

[PATCH net-next 13/13] tipc: reduce locking scope during packet reception

2015-07-16 Thread Jon Maloy
We convert packet/message reception according to the same principle we have been using for message sending and timeout handling: We move the function tipc_rcv() to node.c, hence handling the initial packet reception at the link aggregation level. The function grabs the node lock, selects the

[PATCH net-next 05/13] tipc: change sk_buffer handling in tipc_link_xmit()

2015-07-16 Thread Jon Maloy
When the function tipc_link_xmit() is given a buffer list for transmission, it currently consumes the list both when transmission is successful and when it fails, except for the special case when it encounters link congestion. This behavior is inconsistent, and needs to be corrected if we want to

[PATCH net-next 06/13] tipc: make media xmit call outside node spinlock context

2015-07-16 Thread Jon Maloy
Currently, message sending is performed through a deep call chain, where the node spinlock is grabbed and held during a significant part of the transmission time. This is clearly detrimental to overall throughput performance; it would be better if we could send the message after the spinlock has

[PATCH net-next 00/13] tipc: separate link and link aggregation layer

2015-07-16 Thread Jon Maloy
This is the first batch of a longer series that has two main objectives: o Finer lock granularity during message sending and reception, especially regarding usage of the node spinlock. o Better separation between the link layer implementation and the link aggregation layer, represented by

[PATCH net-next 01/13] tipc: introduce link entry structure to struct tipc_node

2015-07-16 Thread Jon Maloy
struct 'tipc_node' currently contains two arrays for link attributes, one for the link pointers, and one for the usable link MTUs. We now group those into a new struct 'tipc_link_entry', and intoduce one single array consisting of such enties. Apart from being a cosmetic improvement, this is a

  1   2   >