[PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread Roopa Prabhu
From: Roopa Prabhu seen with CONFIG_IPV6 disabled. Wrap the code around IS_ENABLED(CONFIG_IPV6) Reported-by: kbuild test robot Signed-off-by: Roopa Prabhu --- net/mpls/af_mpls.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c index 49f1b0e

Re: [RFC PATCH net-next] ebpf: Allow dereferences of PTR_TO_STACK registers

2015-07-22 Thread Alex Gartrell
On Tue, Jul 21, 2015 at 8:00 PM, Alexei Starovoitov wrote: > On Tue, Jul 21, 2015 at 07:00:40PM -0700, Alex Gartrell wrote: >> mov %rsp, %r1 ; r1 = rsp >> add $-8, %r1; r1 = rsp - 8 >> store_q $123, -8(%rsp) ; *(u64*)r1 = 123 <- valid >> stor

[PATCH net-next] r8152: support the new RTL8153 chip

2015-07-22 Thread Hayes Wang
Support the new USB gigabit ethernet. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 7f6419e..57b72ec 100644 --- a/drivers/net/usb/r8152.c +++ b/d

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

2015-07-22 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. Signe

[PATCH net 0/2] ipv4: fib_select_default changes

2015-07-22 Thread Julian Anastasov
This patchset contains 2 changes for the alternative routes, one to add tb_id/fa_slen check needed after the recent fib_trie optimizations for fib aliases and the second change attempts to support alternative routes with TOS requirement. Sorry that I don't have access to the original repor

[PATCH net 1/2] ipv4: fib_select_default should match the prefix

2015-07-22 Thread Julian Anastasov
fib_trie starting from 4.1 can link fib aliases from different prefixes in same list. Make sure the alternative gateways are in same table and for same prefix (0) by checking tb_id and fa_slen. Fixes: 79e5ad2ceb00 ("fib_trie: Remove leaf_info") Signed-off-by: Julian Anastasov --- net/ipv4/fib_se

[PATCH net 2/2] ipv4: consider TOS in fib_select_default

2015-07-22 Thread Julian Anastasov
fib_select_default considers alternative routes only when res->fi is for the first alias in res->fa_head. In the common case this can happen only when the initial lookup matches the first alias with highest TOS value. This prevents the alternative routes to require specific TOS. This patch solves

Re: ARP response with link local IP, why not broadcast

2015-07-22 Thread Sebastian Fett
On Tue, Jul 21, 2015 at 4:38 PM, Sebastian Fett wrote: Hello! According to RFC3927 every ARP packet (reply and request) should be sent as link layer broadcast as long as the sender IP is a link local address. (see chapter 2.5). Because broadcast replies are noisy and should be avoided. if pos

[PATCH] Documentation: Mention chunk format for irq affinity

2015-07-22 Thread Sebastian Poehn
It may not be obvious for everyone that bitmasks in proc require 32bit chunking Signed-off-by: Sebastian Poehn --- Documentation/IRQ-affinity.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/IRQ-affinity.txt b/Documentation/IRQ-affinity.txt index 01a6751..d873dab 10

Re: reproducable panic eviction work queue

2015-07-22 Thread Frank Schreuder
Op 7/21/2015 om 8:34 PM schreef Florian Westphal: Frank Schreuder wrote: [ inet frag evictor crash ] We believe we found the bug. This patch should fix it. We cannot share list for buckets and evictor, the flag member is subject to race conditions so flags & INET_FRAG_EVICTED test is not r

Re: reproducable panic eviction work queue

2015-07-22 Thread Frank Schreuder
I got some additional information from syslog: Jul 22 09:49:33 dommy0 kernel: [ 675.987890] NMI watchdog: BUG: soft lockup - CPU#3 stuck for 22s! [kworker/3:1:42] Jul 22 09:49:42 dommy0 kernel: [ 685.114033] INFO: rcu_sched self-detected stall on CPU { 3} (t=39918 jiffies g=988 c=987 q=23168

Re: ARP response with link local IP, why not broadcast

2015-07-22 Thread Sowmini Varadhan
On Wed, Jul 22, 2015 at 9:49 AM, Sebastian Fett wrote: >> what is your use case? >> > > My problem ist a local network of audio devices. It is a valid possibility > that two halfs of the setup are set up individually (Stage left and stage > right). Both local networks will auto configure themselv

[PATCH V3 net-next 1/5] tcp: TCP experimental option for SMC - definitions

2015-07-22 Thread Ursula Braun
From: Ursula Braun The SMC-R protocol defines dynamic discovery of peers. This is done by implementing experimental TCP options as defined in RFC6994. The TCP code needs to be extended to support RFC6994. Setting the TCP experimental option for SMC-R [2] will be triggered from kernel exploiters

[PATCH V3 net-next 3/5] net: introduce socket family constants

2015-07-22 Thread Ursula Braun
From: Ursula Braun The new socket family is assigned the next available address / protocol family constant 41. Implementing SO_KEEPALIVE for SMC-R requires an extra hook in net/ipv4/timer.c. Signed-off-by: Ursula Braun --- include/linux/socket.h | 4 +++- include/net/smc.h | 13 +

[PATCH V3 net-next 0/5] net: implement SMC-R solution

2015-07-22 Thread Ursula Braun
From: Ursula Braun Dave, this is V3 of my SMC-R patches, containing mainly a new version of the required tcp changes. Dave, you requested the new feature to be nearly zero cost. Thus my approach is a technique using Static Keys. Do you basicly agree with such an approach? For now I kept the CON

[PATCH V3 net-next 2/5] tcp: TCP experimental option for SMC - TCP hooks

2015-07-22 Thread Ursula Braun
From: Ursula Braun The SMC-R protocol defines dynamic discovery of peers. This is done by implementing experimental TCP options as defined in RFC6994. The TCP code needs to be extended to support RFC6994. Setting the TCP experimental option for SMC-R [2] will be triggered from kernel exploiters

[PATCH V3 net-next 5/5] smc: increase / decrease static key

2015-07-22 Thread Ursula Braun
From: Ursula Braun To activate the smc-specific hooks in the TCP-code, static key "tcp_have_smc" is increased and decreased. For now this is done at module load / unload time. Signed-off-by: Ursula Braun --- net/smc/af_smc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/smc/af_smc.

Re: [ovs-dev] [PATCH net-next 00/22 v2] Lightweight & flow based encapsulation

2015-07-22 Thread thomas.morin
Hi Thomas, This looks promising. One question: will this approach allow MPLS-in-GRE and MPLS-in-UDP ? -Thomas 2015-07-21, 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:

Re: reproducable panic eviction work queue

2015-07-22 Thread Nikolay Aleksandrov
On 07/22/2015 10:17 AM, Frank Schreuder wrote: > I got some additional information from syslog: > > Jul 22 09:49:33 dommy0 kernel: [ 675.987890] NMI watchdog: BUG: soft lockup > - CPU#3 stuck for 22s! [kworker/3:1:42] > Jul 22 09:49:42 dommy0 kernel: [ 685.114033] INFO: rcu_sched self-detected

[PATCH v2] cgroup: net_cls: fix false-positive "suspicious RCU usage"

2015-07-22 Thread Konstantin Khlebnikov
In dev_queue_xmit() net_cls protected with rcu-bh. [ 270.730026] === [ 270.730029] [ INFO: suspicious RCU usage. ] [ 270.730033] 4.2.0-rc3+ #2 Not tainted [ 270.730036] --- [ 270.730040] include/linux/cgroup.h:353 suspicious rcu_derefere

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

2015-07-22 Thread Michael S. Tsirkin
On Mon, Jul 20, 2015 at 12:42:59PM -0700, David Miller wrote: > From: "Michael S. Tsirkin" > Date: Wed, 15 Jul 2015 15:26:19 +0300 > > > 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 accord

[PATCH v1 net-next 1/1] net: fec: add stop mode request on/off implemention

2015-07-22 Thread Fugang Duan
The current driver depends on platform data to implement stop mode request on/off that call api pdata->sleep_mode_enable(). To reduce arch platform redundancy code, since the function only set SOC GPR register bit to request stop mode of/off, so we can move the function into driver. And the specif

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

2015-07-22 Thread Dexuan Cui
> From: Vitaly Kuznetsov > Sent: Tuesday, July 21, 2015 22:07 > > diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c >> ... > > +int vmbus_recvpacket_hvsock(struct vmbus_channel *channel, void *buffer, > > + u32 bufferlen, u32 *buffer_actual_len) > > +{ > > + struct vm

[PATCH net-next] bridge: mcast: when multicast is disabled flush the groups

2015-07-22 Thread Nikolay Aleksandrov
From: Satish Ashok Once multicast gets disabled we should flush the groups. Example: # bridge mdb add dev br0 port eth3 grp 239.0.0.1 # bridge mdb dev br0 port eth3 grp 239.0.0.1 temp # echo 0 > multicast_snooping # bridge mdb Signed-off-by: Satish Ashok Signed-off-by: Nikolay Aleksandrov ---

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

2015-07-22 Thread Dan Carpenter
On Wed, Jul 22, 2015 at 10:09:10AM +, Dexuan Cui wrote: > > I'd suggest you do something like > > > > if (ret == -EAGIAIN) > > return 0; > > else if (ret) > > return ret; > > > > to make it future-proof (e.g. when a new error is returned by > > hv_ringbuffer_peek). And

Re: reproducable panic eviction work queue

2015-07-22 Thread Frank Schreuder
Hi Nikolay, Thanks for this patch. I'm no longer able to reproduce this panic on our test environment! The server has been handling >120k fragmented UDP packets per second for over 40 minutes So far everything is running stable without stacktraces in the logs. All other panics happened within

[PATCH net] bridge: netlink: fix slave_changelink/br_setport race conditions

2015-07-22 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov Since slave_changelink support was added there have been a few race conditions when using br_setport() since some of the port functions it uses require the bridge lock. It is very easy to trigger a lockup due to some internal spin_lock() usage without bh disabled, also i

Re: [RFC PATCH v2 net-next 1/3] tcp: replace cnt & rtt with struct in pkts_acked()

2015-07-22 Thread Neal Cardwell
On Wed, Jul 22, 2015 at 1:46 AM, Eric Dumazet wrote: > On Tue, 2015-07-21 at 21:21 -0700, Lawrence Brakmo wrote: >> Replace 2 arguments (cnt and rtt) in the congestion control modules' >> pkts_acked() function with a struct. This will allow adding more >> information without having to modify exist

Re: [RFC PATCH v2 net-next 3/3] tcp: add NV congestion control

2015-07-22 Thread Neal Cardwell
On Wed, Jul 22, 2015 at 2:50 AM, Yuchung Cheng wrote: > On Tue, Jul 21, 2015 at 9:21 PM, Lawrence Brakmo wrote: >> This is a request for comments. >> >> TCP-NV (New Vegas) is a major update to TCP-Vegas. An earlier version of >> NV was presented at 2010's LPC (slides). It is a delayed based >> co

RE: [RFC net-next 1/1] : sctp: denoise deprecation log on SCTP_EVENTS

2015-07-22 Thread David Laight
From: Jamal Hadi Salim > Sent: 09 July 2015 11:38 > > In the newer kernels this message is extremely noisy. After a quick > discussion with Daniel it seems to me it will be very hard to get > existing apps that nobody is going to update to continue to work > (i.e no forward compat). And newer apps

Re: [PATCH v2] cgroup: net_cls: fix false-positive "suspicious RCU usage"

2015-07-22 Thread Daniel Borkmann
On 07/22/2015 11:23 AM, Konstantin Khlebnikov wrote: In dev_queue_xmit() net_cls protected with rcu-bh. ... Signed-off-by: Konstantin Khlebnikov --- net/core/netclassid_cgroup.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/core/netclassid_cgroup.c b/net/core/

Re: [PATCH v2] cgroup: net_cls: fix false-positive "suspicious RCU usage"

2015-07-22 Thread Konstantin Khlebnikov
On 22.07.2015 14:56, Daniel Borkmann wrote: On 07/22/2015 11:23 AM, Konstantin Khlebnikov wrote: In dev_queue_xmit() net_cls protected with rcu-bh. ... Signed-off-by: Konstantin Khlebnikov --- net/core/netclassid_cgroup.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --g

Re: [RFC net-next 1/1] : sctp: denoise deprecation log on SCTP_EVENTS

2015-07-22 Thread Daniel Borkmann
On 07/22/2015 01:48 PM, David Laight wrote: From: Jamal Hadi Salim Sent: 09 July 2015 11:38 In the newer kernels this message is extremely noisy. After a quick discussion with Daniel it seems to me it will be very hard to get existing apps that nobody is going to update to continue to work (i.e

Re: [PATCH v2] cgroup: net_cls: fix false-positive "suspicious RCU usage"

2015-07-22 Thread Daniel Borkmann
On 07/22/2015 02:03 PM, Konstantin Khlebnikov wrote: On 22.07.2015 14:56, Daniel Borkmann wrote: On 07/22/2015 11:23 AM, Konstantin Khlebnikov wrote: In dev_queue_xmit() net_cls protected with rcu-bh. ... Signed-off-by: Konstantin Khlebnikov --- net/core/netclassid_cgroup.c |3 ++- 1

[PATCH net-next] cxgb4: Allow firmware flash, only if cxgb4 is the master driver

2015-07-22 Thread Hariprasad Shenai
Adapter can go for a toss, if cxgb4 is loaded as slave and we try to upgrade the firmware. So add a check for the same before flashing firmware using ethtool. Signed-off-by: Hariprasad Shenai --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 14 ++ 1 file changed, 14 insertion

$0.92/pc monopod selfie stick,on promotion

2015-07-22 Thread Raymond
Dear Good day $0.92/pc monopod selfie stick with cable take pole,only from us,the arcpeaks factory Please feel free to contact me for more details Thanks Best Regards Ray arcpeaks.en.alibaba.com Skype:sixiwenzhi MOBIL:+86 18924649532 We will attend Hong kong Electronics Fair(Autumn Edition) On

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread Thomas Graf
On 07/22/15 at 12:10am, Roopa Prabhu wrote: > From: Roopa Prabhu > > seen with CONFIG_IPV6 disabled. Wrap the code > around IS_ENABLED(CONFIG_IPV6) > > Reported-by: kbuild test robot > Signed-off-by: Roopa Prabhu We need the same for CONFIG_INET=n in inet_fib_lookup_dev: /home/tgraf/dev/linu

Re: [RFC net-next 1/1] : sctp: denoise deprecation log on SCTP_EVENTS

2015-07-22 Thread Michael Tuexen
> On 22 Jul 2015, at 14:04, Daniel Borkmann wrote: > > On 07/22/2015 01:48 PM, David Laight wrote: >> From: Jamal Hadi Salim >>> Sent: 09 July 2015 11:38 >>> >>> In the newer kernels this message is extremely noisy. After a quick >>> discussion with Daniel it seems to me it will be very hard to

[PATCH iproute2] tc: fix bpf compilation with old glibc

2015-07-22 Thread Nicolas Dichtel
Error was: f_bpf.o: In function `bpf_parse_opt': f_bpf.c:(.text+0x88f): undefined reference to `secure_getenv' m_bpf.o: In function `parse_bpf': m_bpf.c:(.text+0x587): undefined reference to `secure_getenv' collect2: error: ld returned 1 exit status CC: Daniel Borkmann Fixes: 88eea5395483 ("tc: {

[PATCH net-next] ip_tunnel: Provide tunnel metadata API for CONFIG_INET=n

2015-07-22 Thread Thomas Graf
Account for the configuration FIB_RULES=y && INET=n as FIB_RULES can be selected by IPV6 or DECNET without INET. Fixes: e7030878fc84 ("fib: Add fib rule match on tunnel id") Fixes: 3093fbe7ff4b ("route: Per route IP tunnel metadata via lightweight tunnel") Reported-by: kbuild test robot Signed-o

Re: [PATCH net] bridge: netlink: fix slave_changelink/br_setport race conditions

2015-07-22 Thread Jiri Pirko
Wed, Jul 22, 2015 at 01:03:40PM CEST, ra...@blackwall.org wrote: >From: Nikolay Aleksandrov > >Since slave_changelink support was added there have been a few race >conditions when using br_setport() since some of the port functions it >uses require the bridge lock. It is very easy to trigger a loc

Re: [PATCH iproute2] tc: fix bpf compilation with old glibc

2015-07-22 Thread Daniel Borkmann
On 07/22/2015 02:29 PM, Nicolas Dichtel wrote: Error was: f_bpf.o: In function `bpf_parse_opt': f_bpf.c:(.text+0x88f): undefined reference to `secure_getenv' m_bpf.o: In function `parse_bpf': m_bpf.c:(.text+0x587): undefined reference to `secure_getenv' collect2: error: ld returned 1 exit status

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

2015-07-22 Thread David Laight
From: Marcelo Ricardo Leitner > Sent: 14 July 2015 18:13 > 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

[RFC PATCH 0/5] netlink: mmap kernel panic and some issues

2015-07-22 Thread Ken-ichirou MATSUZAWA
Hello, I got a kernel panic below when I dumped using mmaped netlink socket while monitoring it by nlmon tap device. I realized it is because mmaped netlink skb does not have skb_shared_info but don't know how to fix it in sane. This patch series seems to work fine for me but I'm not sure it's ri

Re: [PATCH iproute2] tc: fix bpf compilation with old glibc

2015-07-22 Thread Nicolas Dichtel
Le 22/07/2015 15:05, Daniel Borkmann a écrit : On 07/22/2015 02:29 PM, Nicolas Dichtel wrote: Error was: f_bpf.o: In function `bpf_parse_opt': f_bpf.c:(.text+0x88f): undefined reference to `secure_getenv' m_bpf.o: In function `parse_bpf': m_bpf.c:(.text+0x587): undefined reference to `secure_get

[RFC PATCH 1/5] netlink: mmap: introduce mmaped skb helper functions

2015-07-22 Thread Ken-ichirou MATSUZAWA
It seems that we need helper functions for skb which is allocated at netlink_alloc_skb() since it does not have skb_shared_info. Signed-off-by: Ken-ichirou MATSUZAWA --- include/linux/netlink.h | 22 - net/netlink/af_netlink.c | 81 ++

[RFC PATCH 2/5] netlink: mmap: apply mmaped skb helper functions

2015-07-22 Thread Ken-ichirou MATSUZAWA
Signed-off-by: Ken-ichirou MATSUZAWA --- net/netfilter/nfnetlink_log.c|2 +- net/netfilter/nfnetlink_queue_core.c |8 net/netlink/af_netlink.c | 26 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/net/netfilter/nf

[RFC PATCH 3/5] netlink: mmap: fix status for not delivered skb

2015-07-22 Thread Ken-ichirou MATSUZAWA
Signed-off-by: Ken-ichirou MATSUZAWA --- net/netlink/af_netlink.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 5632ad0..a6fba4c 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -847,7 +847,

[RFC PATCH 5/5] netlink: rx mmap: notify only when NL_MMAP_STATUS_VALID frame exists

2015-07-22 Thread Ken-ichirou MATSUZAWA
Signed-off-by: Ken-ichirou MATSUZAWA --- net/netlink/af_netlink.c | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 7e1610e..8901acd 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlin

[RFC PATCH 4/5] netlink: mmap: update tx type check

2015-07-22 Thread Ken-ichirou MATSUZAWA
We need to accept msg_iter.type 1(WRITE) which is set in sendto/sendmsg. Signed-off-by: Ken-ichirou MATSUZAWA --- net/netlink/af_netlink.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index a6fba4c..7e1610e 100644 ---

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

2015-07-22 Thread Marcelo
Em 22 de julho de 2015 10:13:22 BRT, David Laight escreveu: >From: Marcelo Ricardo Leitner >> Sent: 14 July 2015 18:13 >> 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

[PATCH net 1/4] net/mlx4_core: Use sink counter for the VF default as fallback

2015-07-22 Thread Or Gerlitz
Some old PF drivers don't let VFs allocate counters, in that case, use the sink counter so the VF can load and operate properly. Fixes: 6de5f7f6a1fa ('net/mlx4_core: Allocate default counter per port') Reported-by: Sebastian Ott Signed-off-by: Or Gerlitz Signed-off-by: Eran Ben Elisha --- driv

[PATCH net 0/4] mlx4 driver fixes, July 22nd 2015

2015-07-22 Thread Or Gerlitz
Hi Dave, Just few mlx4 fixes.. the fix related to propagating port state changes to VF should go to -stable of >= 3.11, all the rest just to 4.2-rc Or. Ido Shamay (1): net/mlx4_en: Remove BUG_ON assert when checking if ring is full Jack Morgenstein (2): net/mlx4_core: Fix wrong index in pro

via rhine build regression for arch/sh

2015-07-22 Thread Paul Gortmaker
The builds of arch/sh are failing in linux-next with: drivers/net/ethernet/via/via-rhine.c:1098:2: error: implicit declaration of function 'pci_iomap' [-Werror=implicit-function-declaration] drivers/net/ethernet/via/via-rhine.c:1119:2: error: implicit declaration of function 'pci_iounmap' [-Werror

[PATCH net 4/4] net/mlx4_en: Remove BUG_ON assert when checking if ring is full

2015-07-22 Thread Or Gerlitz
From: Ido Shamay In mlx4_en_is_ring_empty we check if ring surpassed its size. Since the prod and cons indicators are u32, there might be a state where prod wrapped around and cons, making this assert false, although no actual bug exists (other code segment can cope with this state). Signed-off-

[PATCH net 3/4] net/mlx4_core: Relieve cpu load average on the port sending flow

2015-07-22 Thread Or Gerlitz
From: Jack Morgenstein When a port is not attached, the FW requires a longer than usual time to execute the SENSE_PORT command. In the command flow, the wait_for_completion_timeout call used in mlx4_cmd_wait puts the kernel thread into the uninterruptible state during this time. This, in turn, du

[PATCH net 2/4] net/mlx4_core: Fix wrong index in propagating port change event to VFs

2015-07-22 Thread Or Gerlitz
From: Jack Morgenstein The port-change event processing in procedure mlx4_eq_int() uses "slave" as the vf_oper array index. Since the value of "slave" is the PF function index, the result is that the PF link state is used for deciding to propagate the event for all the VFs. The VF link state shou

Re: reproducable panic eviction work queue

2015-07-22 Thread Florian Westphal
Nikolay Aleksandrov wrote: > On 07/22/2015 10:17 AM, Frank Schreuder wrote: > > I got some additional information from syslog: > > > > Jul 22 09:49:33 dommy0 kernel: [ 675.987890] NMI watchdog: BUG: soft > > lockup - CPU#3 stuck for 22s! [kworker/3:1:42] > > Jul 22 09:49:42 dommy0 kernel: [ 68

Re: reproducable panic eviction work queue

2015-07-22 Thread Nikolay Aleksandrov
On 07/22/2015 03:58 PM, Florian Westphal wrote: > Nikolay Aleksandrov wrote: >> On 07/22/2015 10:17 AM, Frank Schreuder wrote: >>> I got some additional information from syslog: >>> >>> Jul 22 09:49:33 dommy0 kernel: [ 675.987890] NMI watchdog: BUG: soft >>> lockup - CPU#3 stuck for 22s! [kworke

[PATCH net-next 2/3] tipc: introduce new tipc_sk_respond() function

2015-07-22 Thread Jon Maloy
Currently, we use the code sequence if (msg_reverse()) tipc_link_xmit_skb() at numerous locations in socket.c. The preparation of arguments for these calls, as well as the sequence itself, makes the code unecessarily complex. In this commit, we introduce a new function, tipc_sk_respond(), tha

[PATCH net-next 0/3] tipc: clean up socket message reception

2015-07-22 Thread Jon Maloy
Despite recent improvements the message reception code in socket.c is perceived as obscure and hard to follow, especially regarding the logics for message rejection. With the commits in this series we try to remedy this situation. Jon Maloy (3): tipc: let function tipc_msg_reverse() expand heade

[PATCH net-next 1/3] tipc: let function tipc_msg_reverse() expand header when needed

2015-07-22 Thread Jon Maloy
The shortest TIPC message header, for cluster local CONNECTED messages, is 24 bytes long. With this format, the fields "dest_node" and "orig_node" are optimized away, since they in reality are redundant in this particular case. However, the absence of these fields leads to code inconsistencies tha

[PATCH net-next 3/3] tipc: clean up socket layer message reception

2015-07-22 Thread Jon Maloy
When a message is received in a socket, one of the call chains tipc_sk_rcv()->tipc_sk_enqueue()->filter_rcv()(->tipc_sk_proto_rcv()) or tipc_sk_backlog_rcv()->filter_rcv()(->tipc_sk_proto_rcv()) are followed. At each of these levels we may encounter situations where the message may need to be rejec

Re: reproducable panic eviction work queue

2015-07-22 Thread Nikolay Aleksandrov
On 07/22/2015 04:03 PM, Nikolay Aleksandrov wrote: > On 07/22/2015 03:58 PM, Florian Westphal wrote: >> Nikolay Aleksandrov wrote: >>> On 07/22/2015 10:17 AM, Frank Schreuder wrote: I got some additional information from syslog: Jul 22 09:49:33 dommy0 kernel: [ 675.987890] NMI watc

[PATCH net] net: sctp: stop spamming klog with rfc6458, 5.3.2. deprecation warnings

2015-07-22 Thread Daniel Borkmann
Back then when we added support for SCTP_SNDINFO/SCTP_RCVINFO from RFC6458 5.3.4/5.3.5, we decided to add a deprecation warning for the (as per RFC deprecated) SCTP_SNDRCV via commit bbbea41d5e53 ("net: sctp: deprecate rfc6458, 5.3.2. SCTP_SNDRCV support"), see [1]. Imho, it was not a good idea, a

Re: [RFC net-next 1/1] : sctp: denoise deprecation log on SCTP_EVENTS

2015-07-22 Thread Daniel Borkmann
On 07/22/2015 02:30 PM, Michael Tuexen wrote: On 22 Jul 2015, at 14:04, Daniel Borkmann wrote: ... Anyway, as previously stated, I doubt we'd get rid of the deprecated SCTP uapi from the RFC any time soon, so, imho, we should just remove these rate-limited messages altogether to stop spamming

Re: [PATCH net] net: sctp: stop spamming klog with rfc6458, 5.3.2. deprecation warnings

2015-07-22 Thread Jamal Hadi Salim
On 07/22/15 10:31, Daniel Borkmann wrote: Back then when we added support for SCTP_SNDINFO/SCTP_RCVINFO from RFC6458 5.3.4/5.3.5, we decided to add a deprecation warning for the (as per RFC deprecated) SCTP_SNDRCV via commit bbbea41d5e53 ("net: sctp: deprecate rfc6458, 5.3.2. SCTP_SNDRCV support"

Re: [PATCH net] net: sctp: stop spamming klog with rfc6458, 5.3.2. deprecation warnings

2015-07-22 Thread Michael Tuexen
> On 22 Jul 2015, at 16:31, Daniel Borkmann wrote: > > Back then when we added support for SCTP_SNDINFO/SCTP_RCVINFO from > RFC6458 5.3.4/5.3.5, we decided to add a deprecation warning for the > (as per RFC deprecated) SCTP_SNDRCV via commit bbbea41d5e53 ("net: > sctp: deprecate rfc6458, 5.3.2. S

[PATCH net-next] vxlan: Use proper endian type for vni in vxlan[6]_xmit_skb

2015-07-22 Thread Thomas Graf
Silences the following sparse warnings: drivers/net/vxlan.c:1818:21: warning: incorrect type in assignment (different base types) drivers/net/vxlan.c:1818:21:expected restricted __be32 [usertype] vx_vni drivers/net/vxlan.c:1818:21:got unsigned int [unsigned] [usertype] vni drivers/net/vxla

[v3, 0/9] Freescale DPAA FMan

2015-07-22 Thread igal.liberman
From: Igal Liberman The Freescale Data Path Acceleration Architecture (DPAA) is a set of hardware components on specific QorIQ multicore processors. This architecture provides the infrastructure to support simplified sharing of networking interfaces and accelerators by multiple CPU cores and the

[v3, 2/9] fsl/fman: Add the FMan port FLIB

2015-07-22 Thread igal.liberman
From: Igal Liberman The FMan Port FLib provides basic API used by the drivers to configure and control the FMan Port hardware. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Kconfig|1 + drivers/net/ethernet/freescale/fman/Makefile |2 + .../ethernet

[v3, 7/9] fsl/fman: Add FMan SP support

2015-07-22 Thread igal.liberman
From: Igal Liberman Add Storage Profiles support. The Storage Profiles contain parameters that are used by the FMan in order to store frames being received on the Rx ports, or to determine the parameters that affect writing the Internal Context in the frame margin on Tx. Signed-off-by: Igal Libe

[v3, 5/9] fsl/fman: Add Frame Manager support

2015-07-22 Thread igal.liberman
From: Igal Liberman Add Frame Manger Driver support. This patch adds The FMan configuration, initialization and runtime control routines. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Kconfig|1 - drivers/net/ethernet/freescale/fman/Makefile |2 +-

[v3, 8/9] fsl/fman: Add FMan Port Support

2015-07-22 Thread igal.liberman
From: Igal Liberman This patch adds The FMan Port configuration, initialization and runtime control routines. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Makefile |2 +- drivers/net/ethernet/freescale/fman/fm.c | 251 - drivers/net/ethernet/fre

[v3, 6/9] fsl/fman: Add FMan MAC support

2015-07-22 Thread igal.liberman
From: Igal Liberman Add Frame Manger MAC Driver support. This patch adds The FMan MAC configuration, initialization and runtime control routines. This patch contains support for these types of MACs: tGEC, dTSEC and mEMAC Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/f

Re: reproducable panic eviction work queue

2015-07-22 Thread Frank Schreuder
Op 7/22/2015 om 4:14 PM schreef Nikolay Aleksandrov: On 07/22/2015 04:03 PM, Nikolay Aleksandrov wrote: On 07/22/2015 03:58 PM, Florian Westphal wrote: Nikolay Aleksandrov wrote: On 07/22/2015 10:17 AM, Frank Schreuder wrote: I got some additional information from syslog: Jul 22 09:49:33 d

[v3, 4/9] fsl/fman: Add FMan MURAM support

2015-07-22 Thread igal.liberman
From: Igal Liberman Add Frame Manager Multi-User RAM support. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Kconfig|1 + drivers/net/ethernet/freescale/fman/Makefile |6 +- drivers/net/ethernet/freescale/fman/fm_muram.c | 115 ++

[v3, 1/9] fsl/fman: Add the FMan FLIB

2015-07-22 Thread igal.liberman
From: Igal Liberman The FMan FLib provides the basic API used by the FMan drivers to configure and control the FMan hardware. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/Kconfig |1 + drivers/net/ethernet/freescale/Makefile|2 + drivers/net/e

[v3, 9/9] fsl/fman: Add FMan MAC driver

2015-07-22 Thread igal.liberman
From: Igal Liberman This patch adds the Ethernet MAC driver support. Signed-off-by: Igal Liberman Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/inc/mac.h | 134 drivers/net/ethernet/freescale/fman/mac/Makefile |3 +- drivers/net/ethernet/freescale/fman/ma

[v3, 3/9] fsl/fman: Add the FMan MAC FLIB

2015-07-22 Thread igal.liberman
From: Igal Liberman The FMan MAC FLib provides basic API used by the drivers to configure and control the FMan MAC hardware. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Makefile |1 + .../net/ethernet/freescale/fman/flib/fsl_enet.h| 135 .../etherne

Re: [ovs-dev] [PATCH net-next 00/22 v2] Lightweight & flow based encapsulation

2015-07-22 Thread roopa
On 7/22/15, 1:58 AM, thomas.mo...@orange.com wrote: Hi Thomas, This looks promising. One question: will this approach allow MPLS-in-GRE and MPLS-in-UDP ? The current series was focused on IP to MPLS tunnels. But, the infrastructure allows associating encap state with routes and calling the r

[PATCH 00/10] dpaa_eth: Add the Freescale DPAA Ethernet driver

2015-07-22 Thread Madalin Bucur
This patch series adds the Ethernet driver for the Freescale QorIQ Data Path Acceleration Architecture (DPAA). This version includes changes following the feedback received on previous RFC versions from Eric Dumazet, Bob Cochran, Joe Perches, Paul Bolle, Joakim Tjernlund, Scott Wood - thank you fo

[PATCH 06/10] dpaa_eth: add ethtool functionality

2015-07-22 Thread Madalin Bucur
Add support for basic ethtool operations. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- .../net/ethernet/freescale/dpaa/dpaa_eth_common.c | 2 + .../net/ethernet/freescale/dpaa/dpaa_eth_common.h | 3 + drivers/net/ethernet/freescale/dpaa/dpaa

[PATCH 08/10] dpaa_eth: add debugfs counters

2015-07-22 Thread Madalin Bucur
Add a series of counters to be exported through debugfs: - add detailed counters for reception errors; - add detailed counters for QMan enqueue reject events; - count the number of fragmented skbs received from the stack; - count all frames received on the Tx confirmation path; - add congestion gro

[PATCH 09/10] dpaa_eth: add debugfs entries

2015-07-22 Thread Madalin Bucur
Export per CPU counters through debugfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig| 7 + drivers/net/ethernet/freescale/dpaa/Makefile | 3 + drivers/net/ethernet/freescale/dpaa/dpaa_debugfs.c | 273 + drivers/net/ethernet/f

[PATCH 10/10] dpaa_eth: add trace points

2015-07-22 Thread Madalin Bucur
Add trace points on the hot processing path. Signed-off-by: Ruxandra Ioana Radulescu --- drivers/net/ethernet/freescale/dpaa/Makefile | 1 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 12 ++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 4 + .../net/ethernet/freescale

[PATCH 05/10] dpaa_eth: add driver's Tx queue selection mechanism

2015-07-22 Thread Madalin Bucur
Allow the selection of the transmission queue based on the CPU id. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig | 10 ++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.c| 3 +++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h| 6 ++

[PATCH 02/10] dpaa_eth: add support for DPAA Ethernet

2015-07-22 Thread Madalin Bucur
This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, BMan, PAMU and FMan drivers to deliver Ethernet connectivity on the Freescale DPAA QorIQ platforms. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/

RE: [PATCH net-next 1/1] Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver

2015-07-22 Thread Woojung.Huh
Hi David, > > +static int eee_control = -1; > > +module_param(eee_control, int, 0444); > > +MODULE_PARM_DESC(eee_control, "EEPROM default(-1), disable(0) & > enable(1)"); > > Please don't add module parameters for things configurable via ethtool and > other generic, standard, mechanisms. Per you

Re: via rhine build regression for arch/sh

2015-07-22 Thread Antonio Borneo
On Wed, Jul 22, 2015 at 9:54 PM, Paul Gortmaker wrote: > The builds of arch/sh are failing in linux-next with: > > drivers/net/ethernet/via/via-rhine.c:1098:2: error: implicit declaration > of function 'pci_iomap' [-Werror=implicit-function-declaration] > drivers/net/ethernet/via/via-rhine.c:1119:

[PATCH 03/10] dpaa_eth: add configurable bpool thresholds

2015-07-22 Thread Madalin Bucur
Allow the user to tweak the refill threshold and the total number of buffers in the buffer pool. The provided values are for one CPU. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig | 18 ++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.c| 2

[PATCH 07/10] dpaa_eth: add sysfs exports

2015-07-22 Thread Madalin Bucur
Export Frame Queue and Buffer Pool IDs through sysfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 3 + .../net/ethernet/freescale/d

[PATCH] net: via/Kconfig: GENERIC_PCI_IOMAP required if PCI not selected

2015-07-22 Thread Antonio Borneo
The builds of arch/sh are failing in linux-next with: drivers/net/ethernet/via/via-rhine.c:1098:2: error: implicit declaration of function 'pci_iomap' [-Werror=implicit-function-declaration] drivers/net/ethernet/via/via-rhine.c:1119:2: error: implicit declaration of function 'pci_iounmap' [-Werror

[PATCH 04/10] dpaa_eth: add support for S/G frames

2015-07-22 Thread Madalin Bucur
Add support for Scater/Gather (S/G) frames. The FMan can place the frame content into multiple buffers and provide a S/G Table (SGT) into one first buffer with references to the others. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 6 + .../net/ethernet/

Re: [PATCH iproute2] tc: fix bpf compilation with old glibc

2015-07-22 Thread Stephen Hemminger
On Wed, 22 Jul 2015 13:05:32 + Daniel Borkmann wrote: > On 07/22/2015 02:29 PM, Nicolas Dichtel wrote: > > Error was: > > f_bpf.o: In function `bpf_parse_opt': > > f_bpf.c:(.text+0x88f): undefined reference to `secure_getenv' > > m_bpf.o: In function `parse_bpf': > > m_bpf.c:(.text+0x587): un

[PATCH 01/10] devres: add devm_alloc_percpu()

2015-07-22 Thread Madalin Bucur
Introduce managed counterparts for alloc_percpu() and free_percpu(). Add devm_alloc_percpu() and devm_free_percpu() into the managed interfaces list. Signed-off-by: Madalin Bucur --- Documentation/driver-model/devres.txt | 4 +++ drivers/base/devres.c | 64 ++

Re: [v3, 2/9] fsl/fman: Add the FMan port FLIB

2015-07-22 Thread Stephen Hemminger
On Wed, 22 Jul 2015 14:21:48 +0300 wrote: > diff --git a/drivers/net/ethernet/freescale/fman/Kconfig > b/drivers/net/ethernet/freescale/fman/Kconfig > index 8aeae29..af42c3a 100644 > --- a/drivers/net/ethernet/freescale/fman/Kconfig > +++ b/drivers/net/ethernet/freescale/fman/Kconfig > @@ -5,3 +

Re: [PATCH net-next] bridge: mcast: when multicast is disabled flush the groups

2015-07-22 Thread Cong Wang
On Wed, Jul 22, 2015 at 3:28 AM, Nikolay Aleksandrov wrote: > From: Satish Ashok > > Once multicast gets disabled we should flush the groups. > Example: > # bridge mdb add dev br0 port eth3 grp 239.0.0.1 > # bridge mdb > dev br0 port eth3 grp 239.0.0.1 temp > # echo 0 > multicast_snooping > # bri

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

2015-07-22 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 ma

Re: [PATCH] iwlwifi:Fix error handling in the function iwl_pcie_enqueue_hcmd

2015-07-22 Thread Grumbach, Emmanuel
On 07/22/2015 07:39 PM, Nicholas Krause wrote: > This fixes error handling in the function iwl_pcie_enqueue_hcmd > by checking if all calls to the function wl_pcie_txq_build_tfd > have failed by returning a error code and if so jump to the goto > label out from the cleaning up of acquired resourc

  1   2   >