Re: pull request: bluetooth 2015-08-11

2015-08-11 Thread David Miller
From: Johan Hedberg johan.hedb...@gmail.com Date: Tue, 11 Aug 2015 23:04:06 +0300 Here's an important regression fix for the 4.2-rc series that ensures user space isn't given invalid LTK values. The bug essentially prevents the encryption of subsequent LE connections, i.e. makes it impossible

[PATCH net-next 2/3] mpls: consistently use u8 to store number of labels

2015-08-11 Thread Roopa Prabhu
From: Roopa Prabhu ro...@cumulusnetworks.com change all types representing number of labels to u8 to be consistent. This also changes labels to u8 in the light weight mpls_tunnel_encap structure. This is because the light weight mpls iptunnel code shares some of the label encoding functions like

Re: [BUG] net/ipv4: inconsistent routing table

2015-08-11 Thread Alexander Duyck
On 08/10/2015 04:50 AM, Hannes Frederic Sowa wrote: Hello, Zang MingJie zealot0...@gmail.com writes: Here comes several options: 1. reject local next hop w/ EINVAL 2. delete route when local next hop removed Will also cause some people to complain. 3. transition between RT_SCOPE_HOST amd

Re: ipv6_mc_check_mld - kernel BUG at net/core/skbuff.c:1128

2015-08-11 Thread Linus Lüssing
On Mon, Aug 10, 2015 at 02:56:12PM -0700, Brenden Blanco wrote: Doing some code reading with Alexei, we found a suspect commit, which introduces an skb_get and skb_may_pull of the same skb, which leads to the BUG when skb-len == len. Urgh, didn't know that pskb_may_pull() doesn't like an skb

Re: [BUG] net/ipv4: inconsistent routing table

2015-08-11 Thread David Miller
From: Alexander Duyck alexander.du...@gmail.com Date: Tue, 11 Aug 2015 13:52:27 -0700 On 08/10/2015 04:50 AM, Hannes Frederic Sowa wrote: 4. document it I prefer that one :) Yeah, me too. The fact is things have worked this way up until now and I suspect the reason why this hasn't been

[PATCH net-next 1/3] mpls: move mpls_route nexthop fields to a new nhlfe struct

2015-08-11 Thread Roopa Prabhu
From: Roopa Prabhu ro...@cumulusnetworks.com moves mpls_route nexthop fields to a new mpls_nhlfe struct. mpls_nhlfe represents a mpls nexthop label forwarding entry. It prepares mpls route structure for multipath support. In the process moves mpls_route structure into internal.h. Moves some of

[PATCH net-next 0/3] mpls: multipath support

2015-08-11 Thread Roopa Prabhu
From: Roopa Prabhu ro...@cumulusnetworks.com This patch series adds multipath support to mpls routes. resembles ipv4 multipath support. The multipath route nexthop selection algorithm is the same code as in ipv4 fib code. I understand that the multipath algorithm in ipv4 is undergoing some

[PATCH net-next 3/3] mpls: add multipath route support

2015-08-11 Thread Roopa Prabhu
From: Roopa Prabhu ro...@cumulusnetworks.com Adds support for MPLS multipath routes. supports parse/fill of RTA_MULTIPATH netlink attribute for multipath routes similar to ipv4 fib. Mostly based on multipath handling in ipv4 fib code. The multipath route nexthop selection algorithm is the same

Re: ipv6_mc_check_mld - kernel BUG at net/core/skbuff.c:1128

2015-08-11 Thread Linus Lüssing
On Tue, Aug 11, 2015 at 10:51:40PM +0200, Linus Lüssing wrote: On Mon, Aug 10, 2015 at 02:56:12PM -0700, Brenden Blanco wrote: Doing some code reading with Alexei, we found a suspect commit, which introduces an skb_get and skb_may_pull of the same skb, which leads to the BUG when skb-len

Re: [net-next PATCH 1/3] net: make default tx_queue_len configurable

2015-08-11 Thread Alexei Starovoitov
On Tue, Aug 11, 2015 at 06:23:35PM +0200, Phil Sutter wrote: I have an unfinished solution in the oven, but being kept busy with other things for now. The action plan is as follows: 1) Introduce IFF_NO_QUEUE net_device-priv_flag. 2) Have attach_default_qdiscs() and

[PATCHv3 net-next 09/10] openvswitch: Allow matching on conntrack label

2015-08-11 Thread Joe Stringer
Allow matching and setting the conntrack label field. As with ct_mark, this is populated by executing the ct() action, and is a writable field. The set_field() action may be used to modify the label, which will take effect on the most recent conntrack entry. E.g.:

[PATCHv3 net-next 10/10] openvswitch: Allow attaching helpers to ct action

2015-08-11 Thread Joe Stringer
Add support for using conntrack helpers to assist protocol detection. The new OVS_CT_ATTR_HELPER attribute of the ct action specifies a helper to be used for this connection. Example ODP flows allowing FTP connections from ports 1-2: in_port=1,tcp,action=ct(helper=ftp,commit),2

[PATCHv3 net-next 07/10] netfilter: Always export nf_connlabels_replace()

2015-08-11 Thread Joe Stringer
The following patches will reuse this code from OVS. Signed-off-by: Joe Stringer joestrin...@nicira.com --- net/netfilter/nf_conntrack_labels.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/netfilter/nf_conntrack_labels.c b/net/netfilter/nf_conntrack_labels.c index bb53f12..daa7c13

[PATCHv3 net-next 05/10] openvswitch: Add conntrack action

2015-08-11 Thread Joe Stringer
Expose the kernel connection tracker via OVS. Userspace components can make use of the ct() action, followed by recirculate, to populate the conntracking state in the OVS flow key, and subsequently match on that state. Example ODP flows allowing traffic from 1-2, only replies from 2-1:

[PATCHv3 net-next 06/10] openvswitch: Allow matching on conntrack mark

2015-08-11 Thread Joe Stringer
From: Justin Pettit jpet...@nicira.com Allow matching and setting the conntrack mark field. As with conntrack state and zone, these are populated by executing the ct() action. Unlike these, the ct_mark is also a writable field. The set_field() action may be used to modify the mark, which will

[PATCHv3 net-next 08/10] netfilter: connlabels: Export setting connlabel length

2015-08-11 Thread Joe Stringer
Add functions to change connlabel length into nf_conntrack_labels.c so they may be reused by other modules like OVS and nftables without needing to jump through xt_match_check() hoops. Suggested-by: Florian Westphal f...@strlen.de Signed-off-by: Joe Stringer joestrin...@nicira.com --- v2: Protect

[PATCHv3 net-next 02/10] openvswitch: Move MASKED* macros to datapath.h

2015-08-11 Thread Joe Stringer
This will allow the ovs-conntrack code to reuse these macros. Signed-off-by: Joe Stringer joestrin...@nicira.com Acked-by: Thomas Graf tg...@suug.ch --- net/openvswitch/actions.c | 52 ++ net/openvswitch/datapath.h | 4 2 files changed, 29

[PATCHv3 net-next 01/10] openvswitch: Serialize acts with original netlink len

2015-08-11 Thread Joe Stringer
Previously, we used the kernel-internal netlink actions length to calculate the size of messages to serialize back to userspace. However,the sw_flow_actions may not be formatted exactly the same as the actions on the wire, so store the original actions length when de-serializing and re-use the

[PATCHv3 net-next 04/10] dst: Add __skb_dst_copy() variation

2015-08-11 Thread Joe Stringer
This variation on skb_dst_copy() doesn't require two skbs. Signed-off-by: Joe Stringer joestrin...@nicira.com --- include/net/dst.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/net/dst.h b/include/net/dst.h index 2578811..0539940 100644 ---

[PATCHv3 net-next 00/10] OVS conntrack support

2015-08-11 Thread Joe Stringer
The goal of this series is to allow OVS to send packets through the Linux kernel connection tracker, and subsequently match on fields populated by conntrack. This version addresses the feedback from v2, mostly going over the dst reference taking and skb metadata to check that they are restored

[PATCHv3 net-next 03/10] ipv6: Export nf_ct_frag6_gather()

2015-08-11 Thread Joe Stringer
Signed-off-by: Joe Stringer joestrin...@nicira.com Acked-by: Thomas Graf tg...@suug.ch --- net/ipv6/netfilter/nf_conntrack_reasm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c index 6d02498..701cd2b 100644

[PATCH v2 net-next] bpf: s390: Fix build error caused by the struct bpf_array member name changed

2015-08-11 Thread Kaixu Xia
There is a build error that 'struct bpf_array' has no member named 'prog' on s390. In commit 2a36f0b, the member 'prog' of struct bpf_array is replaced by 'ptrs'. So this patch fixes it. Signed-off-by: Kaixu Xia xiaka...@huawei.com --- arch/s390/net/bpf_jit_comp.c | 4 ++-- 1 file changed, 2

[PATCH v3 net-next] bpf: s390: Fix build error caused by the struct bpf_array member name changed

2015-08-11 Thread Kaixu Xia
There is a build error that 'struct bpf_array' has no member named 'prog' on s390. In commit 2a36f0b92eb6 (bpf: Make the bpf_prog_array_map more generic), the member 'prog' of struct bpf_array is replaced by 'ptrs'. So this patch fixes it. Fixes: 2a36f0b92eb6 (bpf: Make the bpf_prog_array_map

Re: [PATCH v2 net-next] bpf: s390: Fix build error caused by the struct bpf_array member name changed

2015-08-11 Thread Daniel Borkmann
On 08/11/2015 08:53 AM, Kaixu Xia wrote: There is a build error that 'struct bpf_array' has no member named 'prog' on s390. In commit 2a36f0b, the member 'prog' of struct bpf_array is replaced by 'ptrs'. So this patch fixes it. Signed-off-by: Kaixu Xia xiaka...@huawei.com You were also asked

option driver crashes on modem removal

2015-08-11 Thread Yegor Yefremov
I have following problem. When removing USB dongle 07d1:3e01 or SierraWireless MC7304 I get following messages: option1 ttyUSB10: option_instat_callback: error -71 option1 ttyUSB9: option_instat_callback: error -71 option1 ttyUSB10: option_instat_callback: error -71 option1 ttyUSB9:

Re: [PATCH] eventfd: implementation of EFD_MASK flag

2015-08-11 Thread Damian Hobson-Garcia
On 2015-08-11 6:16 AM, Martin Sustrik wrote: On 2015-08-10 10:57, Damian Hobson-Garcia wrote: Hi Martin, Thanks for your comments. On 2015-08-10 3:39 PM, Martin Sustrik wrote: On 2015-08-10 08:23, Damian Hobson-Garcia wrote: Replying to my own post, but I had the following

Re: [PATCH v2 net-next] bpf: s390: Fix build error caused by the struct bpf_array member name changed

2015-08-11 Thread xiakaixu
于 2015/8/11 16:24, Daniel Borkmann 写道: On 08/11/2015 08:53 AM, Kaixu Xia wrote: There is a build error that 'struct bpf_array' has no member named 'prog' on s390. In commit 2a36f0b, the member 'prog' of struct bpf_array is replaced by 'ptrs'. So this patch fixes it. Signed-off-by: Kaixu Xia

[PATCH iproute2] ip: replace exit with return

2015-08-11 Thread Zhang Shengju
In our manual, we have this description of 'EXIT STATUS': Exit status is 0 if command was successful, and 1 if there is a syntax error. But we exit in command functions with code -1 when there is a syntax error. It's better to use return. Signed-off-by: Zhang Shengju

Re: [PATCH v2 Resend] net/fddi: remove HWM_REVERSE() macro

2015-08-11 Thread yalin wang
HWM_REVERSE() macro is unused, remove it. Signed-off-by: yalin wang yalin.wang2...@gmail.com --- drivers/net/fddi/skfp/h/hwmtm.h | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/net/fddi/skfp/h/hwmtm.h b/drivers/net/fddi/skfp/h/hwmtm.h index 5924d42..4ca2341 100644 ---

Реєcтрaція, ліквідaція

2015-08-11 Thread Експерт
Літо, спека...Хочеться відпочити, але cпокою не дає ваша юридичнa особa, яку давно cлід було ліквідувати? Чому б не взятися за це саме зараз, адже юридична фірма Еквітас Компані пропонує гарну ціну - ліквідaція юридичної оcоби від 4500 грн. Припинення діяльності ФOП - 4000 грн. А новий

[PATCH iproute2 net-next 1/2] iplink: bridge: add ageing_time, stp_state and priority when showing attributes

2015-08-11 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov niko...@cumulusnetworks.com When showing bridge attributes, show also ageing_time, stp_state and priority if available. Signed-off-by: Nikolay Aleksandrov niko...@cumulusnetworks.com --- ip/iplink_bridge.c | 12 1 file changed, 12 insertions(+) diff --git

[PATCH iproute2 net-next 2/2] iplink: bridge: add support for IFLA_BR_VLAN_FILTERING attribute

2015-08-11 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov niko...@cumulusnetworks.com This patch implements support for the IFLA_BR_VLAN_FILTERING attribute in iproute2 so it can enable/disable vlan_filtering. Example: $ ip link set br0 type bridge vlan_filtering 1 $ ip -d link show br0 6: br0: BROADCAST,MULTICAST,UP,LOWER_UP

[PATCH iproute2 net-next 0/2] iplink: bridge: add vlan filtering support and show more attributes

2015-08-11 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov niko...@cumulusnetworks.com Hi, Patch 01 adds support to show some additional attributes and patch 02 adds support for the recently added IFLA_BR_VLAN_FILTERING attribute. Cheers, Nik Nikolay Aleksandrov (2): iplink: bridge: add ageing_time, stp_state and priority

[PATCH 3.14] net: sysctl_net_core: remove compiler warning about unused variable 'one'

2015-08-11 Thread Vladimir Zapolskiy
From: Dirk Behme dirk.be...@de.bosch.com Remove the compiler warning net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable] static int one = 1; introduced by the 3.14.37 stable commit a1d55b36de6bf2 (net: sysctl_net_core: check SNDBUF and RCVBUF for

[PATCH] net: fs_enet: mask interrupts for TX partial frames.

2015-08-11 Thread Christophe Leroy
We are not interested in interrupts for partially transmitted frames. Unlike SCC and FCC, the FEC doesn't handle the I bit in buffer descriptors, instead it defines two interrupt bits, TXB and TXF. We have to mask TXB in order to only get interrupts once the frame is fully transmitted.

[PATCH] net: fs_enet: explicitly remove I flag on TX partial frames

2015-08-11 Thread Christophe Leroy
We are not interested in interrupts for partially transmitted frames, we have to clear BD_ENET_TX_INTR explicitly otherwise it may remain from a previously used descriptor. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 3 ++-

Re: [Xen-devel] [PATCH v3] xen-apic: Enable on domU as well

2015-08-11 Thread David Vrabel
On 10/08/15 14:40, Jason A. Donenfeld wrote: It turns out that domU also requires the Xen APIC driver. Otherwise we get stuck in busy loops that never exit, such as in this stack trace: Applied to for-linus-4.2 and tagged for stable, thanks. David -- To unsubscribe from this list: send the

RE: [v2 8/9] dpaa_eth: add debugfs entries

2015-08-11 Thread Madalin-Cristian Bucur
-Original Message- From: David Miller [mailto:da...@davemloft.net] From: Madalin Bucur madalin.bu...@freescale.com Date: Wed, 5 Aug 2015 18:41:28 +0300 Export per CPU counters through debugfs. Signed-off-by: Madalin Bucur madalin.bu...@freescale.com This is absolutely

Re: [RFC PATCH net] sctp: ASCONF-ACK with Unresolvable Address should be sent

2015-08-11 Thread Marcelo Ricardo Leitner
Em 11-08-2015 01:34, lucien xin escreveu: On Mon, Jul 27, 2015 at 9:44 PM, Marcelo Ricardo Leitner marcelo.leit...@gmail.com wrote: On Sat, Jul 25, 2015 at 01:08:08PM +0800, Xin Long wrote: RFC 5061: This is an opaque integer assigned by the sender to identify each request parameter.

Re: [PATCH 3.14] net: sysctl_net_core: remove compiler warning about unused variable 'one'

2015-08-11 Thread Dirk Behme
On 11.08.2015 14:42, Vladimir Zapolskiy wrote: From: Dirk Behme dirk.be...@de.bosch.com Remove the compiler warning net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable] static int one = 1; introduced by the 3.14.37 stable commit a1d55b36de6bf2

RE: [PATCH 3/3] gianfar: remove faulty filer optimizer

2015-08-11 Thread Manoil Claudiu
-Original Message- From: Jakub Kicinski [mailto:moorr...@wp.pl] Sent: Monday, August 10, 2015 11:12 PM To: David S. Miller; Manoil Claudiu-B08782 Cc: netdev@vger.kernel.org; Jakub Kicinski Subject: [PATCH 3/3] gianfar: remove faulty filer optimizer From: Jakub Kicinski kubak...@wp.pl

Re: [PATCH 3/3] gianfar: remove faulty filer optimizer

2015-08-11 Thread Jakub Kiciński
On Tue, 11 Aug 2015 14:00:23 +, Manoil Claudiu wrote: -Original Message- From: Jakub Kicinski [mailto:moorr...@wp.pl] Sent: Monday, August 10, 2015 11:12 PM To: David S. Miller; Manoil Claudiu-B08782 Cc: netdev@vger.kernel.org; Jakub Kicinski Subject: [PATCH 3/3] gianfar: remove

[PATCH] bonding: Gratuitous ARP gets dropped when first slave added

2015-08-11 Thread Venkat Venkatsubra
When the first slave is added (such as during bootup) the first gratuitous ARP gets dropped. We don't see this drop during a failover. The packet gets dropped in qdisc (noop_enqueue). The fix is to delay the sending of gratuitous ARPs till the bond dev's carrier is present. It can also be worked

[PATCH v2 net-next] sky2: use random address if EEPROM is bad

2015-08-11 Thread Liviu Dudau
On some embedded systems the EEPROM does not contain a valid MAC address. In that case it is better to fallback to a generated mac address and let init scripts fix the value later. Reported-by: Liviu Dudau liviu.du...@arm.com Signed-off-by: Stephen Hemminger step...@networkplumber.org [Changed

[PATCH net-next v2] tcp: reduce cpu usage under tcp memory pressure when SO_SNDBUF is set

2015-08-11 Thread Jason Baron
From: Jason Baron jba...@akamai.com When SO_SNDBUF is set and we are under tcp memory pressure, the effective write buffer space can be much lower than what was set using SO_SNDBUF. For example, we may have set the buffer to 100kb, but we may only be able to write 10kb. In this scenario

Re: [PATCH net-next v2] tcp: reduce cpu usage under tcp memory pressure when SO_SNDBUF is set

2015-08-11 Thread Jason Baron
On 08/11/2015 10:49 AM, Eric Dumazet wrote: On Tue, 2015-08-11 at 14:38 +, Jason Baron wrote: From: Jason Baron jba...@akamai.com In my testing, this brought a single threaad's cpu usage down from 100% to ~1% while maintaining the same level of throughput. Hi Jason. Could you

Re: [PATCH net-next v2] tcp: reduce cpu usage under tcp memory pressure when SO_SNDBUF is set

2015-08-11 Thread Eric Dumazet
On Tue, 2015-08-11 at 14:38 +, Jason Baron wrote: From: Jason Baron jba...@akamai.com In my testing, this brought a single threaad's cpu usage down from 100% to ~1% while maintaining the same level of throughput. Hi Jason. Could you give more details on this test ? How many flows are

Re: [net-next PATCH 1/3] net: make default tx_queue_len configurable

2015-08-11 Thread Phil Sutter
On Tue, Aug 11, 2015 at 05:48:07PM +0200, Jesper Dangaard Brouer wrote: On Wed, 29 Jul 2015 14:37:31 -0700 (PDT) David Miller da...@davemloft.net wrote: [...] Which is that there are devices (virtual or whatever) which don't want a qdisc attached no matter what. Flag those devices as

[PATCH 10/10] batman-adv: Fix potentially broken skb network header access

2015-08-11 Thread Antonio Quartulli
From: Linus Lüssing linus.luess...@c0d3.blue The two commits noted below added calls to ip_hdr() and ipv6_hdr(). They need a correctly set skb network header. Unfortunately we cannot rely on the device drivers to set it for us. Therefore setting it in the beginning of the according

[PATCH net-next 1/2] lan78xx: Fix Smatch Warnings

2015-08-11 Thread Woojung.Huh
lan78xx.c:2282 tx_complete() warn: variable dereferenced before check 'skb' (see line 2249) lan78xx.c:2885 lan78xx_bh() info: ignoring unreachable code. lan78xx.c:3159 lan78xx_probe() info: ignoring unreachable code. Reported-by: Dan Carpenter dan.carpen...@oracle.com Signed-off-by: Woojung Huh

Re: [PATCH net-next v2] tcp: reduce cpu usage under tcp memory pressure when SO_SNDBUF is set

2015-08-11 Thread Eric Dumazet
On Tue, 2015-08-11 at 11:03 -0400, Jason Baron wrote: Yes, so the test case I'm using to test against is somewhat contrived. In that I am simply allocating around 40,000 sockets that are idle to create a 'permanent' memory pressure in the background. Then, I have just 1 flow that sets

RE: [PATCH 0/2] of: fsl/fman: reuse the fixed node parsing code

2015-08-11 Thread Madalin-Cristian Bucur
+ Joakim, Shaohui -Original Message- From: Stas Sergeev [mailto:s...@list.ru] 08.08.2015 20:32, Florian Fainelli пишет: CC'ing Stas, Hi. Le 08/05/15 07:42, Madalin Bucur a écrit : The FMan MAC configuration code needs the speed and duplex information for fixed-link

Re: [net-next PATCH 1/3] net: make default tx_queue_len configurable

2015-08-11 Thread Jesper Dangaard Brouer
On Wed, 29 Jul 2015 14:37:31 -0700 (PDT) David Miller da...@davemloft.net wrote: [...] Which is that there are devices (virtual or whatever) which don't want a qdisc attached no matter what. Flag those devices as such and adjust the qdisc attachment logic to check that new flag. I agree on

Question on behavior of tg3_self_test() (ethtool -t on tg3 driver)

2015-08-11 Thread Douglas Miller
(Sorry if you got several duplicates, am trying to work through rejected messages due to supposed HTML content) The following behavior is being observed when running ethtool -t dev offline on ports on the Broadcom BCM5719 adapter (tg3 driver). The ports have wrap plugs on them, although I'm

Re: [PATCH net-next v2 0/7] net: dsa: mv88e6xxx: support switchdev FDB objects

2015-08-11 Thread Vivien Didelot
Hi David, On Aug 10, 2015, at 9:39 AM, Vivien Didelot vivien.dide...@savoirfairelinux.com wrote: Hi David, On 15-08-09 22:48:22, David Miller wrote: From: Vivien Didelot vivien.dide...@savoirfairelinux.com Date: Thu, 6 Aug 2015 01:44:01 -0400 This patchset refactors the DSA and

[PATCH 08/10] batman-adv: protect tt request from double deletion

2015-08-11 Thread Antonio Quartulli
From: Marek Lindner mareklind...@neomailbox.ch The list_del() calls were changed to list_del_init() to prevent an accidental double deletion in batadv_tt_req_node_new(). Signed-off-by: Marek Lindner mareklind...@neomailbox.ch Signed-off-by: Antonio Quartulli anto...@meshcoding.com ---

[PATCH 04/10] batman-adv: Make NC capability changes atomic

2015-08-11 Thread Antonio Quartulli
From: Linus Lüssing linus.luess...@c0d3.blue Bitwise OR/AND assignments in C aren't guaranteed to be atomic. One OGM handler might undo the set/clear of a specific bit from another handler run in between. Fix this by using the atomic set_bit()/clear_bit()/test_bit() functions. Fixes:

[PATCH 07/10] batman-adv: Fix potential synchronization issues in mcast tvlv handler

2015-08-11 Thread Antonio Quartulli
From: Linus Lüssing linus.luess...@c0d3.blue So far the mcast tvlv handler did not anticipate the processing of multiple incoming OGMs from the same originator at the same time. This can lead to various issues: * Broken refcounting: For instance two mcast handlers might both assume that an

[PATCH 09/10] batman-adv: remove broadcast packets scheduled for purged outgoing if

2015-08-11 Thread Antonio Quartulli
From: Simon Wunderlich si...@open-mesh.com When an interface is purged, the broadcast packets scheduled for this interface should get purged as well. Signed-off-by: Simon Wunderlich si...@open-mesh.com Signed-off-by: Marek Lindner mareklind...@neomailbox.ch Signed-off-by: Antonio Quartulli

[PATCH 02/10] batman-adv: Avoid u32 overflow during gateway select

2015-08-11 Thread Antonio Quartulli
From: Ruben Wisniewski ru...@freifunk-nrw.de The gateway selection based on fast connections is using a single value calculated from the average tq (0-255) and the download bandwidth (in 100Kibit). The formula for the first step (tq ** 2 * 1 * bandwidth) tends to overflow a u32 with low

[PATCH net-next 2/2] lan78xx: Remove BUG_ON()

2015-08-11 Thread Woojung.Huh
Removing BUG_ON() Signed-off-by: Woojung Huh woojung@microchip.com --- drivers/net/usb/lan78xx.c | 31 --- 1 file changed, 31 deletions(-) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index 3a6a4c1..39364a4 100644 ---

Re: [PATCH 0/2] of: fsl/fman: reuse the fixed node parsing code

2015-08-11 Thread Stas Sergeev
08.08.2015 20:32, Florian Fainelli пишет: CC'ing Stas, Hi. Le 08/05/15 07:42, Madalin Bucur a écrit : The FMan MAC configuration code needs the speed and duplex information for fixed-link interfaces that is parsed now by the of function of_phy_register_fixed_link(). This parses the

pull request: batman-adv 20150811

2015-08-11 Thread Antonio Quartulli
Hi David, this is our first batch intended for net-next. Here you have all those non-critical fixes/changes that we couldn't merge into the net tree as it was already too late in the release cycle. This is a summary of what each patch does: - patch 1 by Sven Eckelmann is changing the way the

[PATCH 03/10] batman-adv: Make DAT capability changes atomic

2015-08-11 Thread Antonio Quartulli
From: Linus Lüssing linus.luess...@c0d3.blue Bitwise OR/AND assignments in C aren't guaranteed to be atomic. One OGM handler might undo the set/clear of a specific bit from another handler run in between. Fix this by using the atomic set_bit()/clear_bit()/test_bit() functions. Fixes:

[PATCH 06/10] batman-adv: Make MCAST capability changes atomic

2015-08-11 Thread Antonio Quartulli
From: Linus Lüssing linus.luess...@c0d3.blue Bitwise OR/AND assignments in C aren't guaranteed to be atomic. One OGM handler might undo the set/clear of a specific bit from another handler run in between. Fix this by using the atomic set_bit()/clear_bit()/test_bit() functions. Fixes:

[PATCH 05/10] batman-adv: Make TT capability changes atomic

2015-08-11 Thread Antonio Quartulli
From: Linus Lüssing linus.luess...@c0d3.blue Bitwise OR/AND assignments in C aren't guaranteed to be atomic. One OGM handler might undo the set/clear of a specific bit from another handler run in between. Fix this by using the atomic set_bit()/clear_bit()/test_bit() functions. Fixes:

[PATCH 01/10] batman-adv: Replace gw_reselect divisor with simple shift

2015-08-11 Thread Antonio Quartulli
From: Sven Eckelmann s...@narfation.org The gw_factor is divided by BATADV_TQ_LOCAL_WINDOW_SIZE ** 2 * 64. But the rest of the calculation has nothing to do with the tq window size and therefore the calculation is just (tmp_gw_factor / (64 ** 3)). Replace it with a simple shift to avoid a costly

Re: [PATCH v2 net-next] sky2: use random address if EEPROM is bad

2015-08-11 Thread Stephen Hemminger
On Tue, 11 Aug 2015 15:35:56 +0100 Liviu Dudau liviu.du...@arm.com wrote: On some embedded systems the EEPROM does not contain a valid MAC address. In that case it is better to fallback to a generated mac address and let init scripts fix the value later. Reported-by: Liviu Dudau

Re: [PATCH net-next v2] tcp: reduce cpu usage under tcp memory pressure when SO_SNDBUF is set

2015-08-11 Thread Jason Baron
On 08/11/2015 12:12 PM, Eric Dumazet wrote: On Tue, 2015-08-11 at 11:03 -0400, Jason Baron wrote: Yes, so the test case I'm using to test against is somewhat contrived. In that I am simply allocating around 40,000 sockets that are idle to create a 'permanent' memory pressure in the

Re: [PATCH net-next v2 0/7] net: dsa: mv88e6xxx: support switchdev FDB objects

2015-08-11 Thread David Miller
From: Florian Fainelli f.faine...@gmail.com Date: Tue, 11 Aug 2015 11:03:35 -0700 Put differently, my question is how do you value not rewriting history vs. breaking bisectability (by accident of course)? I never will rewrite history, ever. Too many people clone my tree and depend upon it.

REDIRECT and UDP in client

2015-08-11 Thread Madhan
Hi All , I am trying to redirect the udp packet to particular port where I run my proxy (SOCKS) . I am supposed to obtain the original destination ipaddress of the client to add to the data field of socks message as per the RFC . However , when I use REDIRECT chain as it sets the dest addr to the

RE: VxLAN support question

2015-08-11 Thread Andrew Qu
Hi Alexei, I support using mcast group for all VNIs in control plane/data plane. But in case there is no mcast routing enabled, I need to support P2P vxlan underlay, hence use of the configuration I showed. Thanks for the confirmation. By the way, any informational doc I can read to know about

Re: [PATCH net-next 1/9] net: Introduce VRF related flags and helpers

2015-08-11 Thread David Miller
From: David Ahern d...@cumulusnetworks.com Date: Mon, 10 Aug 2015 11:50:28 -0600 +static inline int vrf_dev_table(const struct net_device *dev) +{ + int tb_id = 0; + + rcu_read_lock(); + tb_id = vrf_dev_table_rcu(dev); + rcu_read_unlock(); + + return tb_id; +} The

Re: [PATCH net-next 6/9] net: Fix up inet_addr_type checks

2015-08-11 Thread David Miller
From: David Ahern d...@cumulusnetworks.com Date: Mon, 10 Aug 2015 11:50:33 -0600 @@ -427,6 +428,7 @@ int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) struct net *net = sock_net(sk); unsigned short snum; int chk_addr_ret; + int tb_id = 0;

Re: [PATCH 0/2] of: fsl/fman: reuse the fixed node parsing code

2015-08-11 Thread Stas Sergeev
11.08.2015 19:33, Madalin-Cristian Bucur пишет: + Joakim, Shaohui -Original Message- From: Stas Sergeev [mailto:s...@list.ru] 08.08.2015 20:32, Florian Fainelli пишет: CC'ing Stas, Hi. Le 08/05/15 07:42, Madalin Bucur a écrit : The FMan MAC configuration code needs the speed and

Re: [Xen-devel] [PATCH v3 0/9] Use correctly the Xen memory terminologies

2015-08-11 Thread David Vrabel
On 07/08/15 17:34, Julien Grall wrote: Hi all, This patch series aims to use the memory terminologies described in include/xen/mm.h [1] for Linux xen code. Applied to for-linus-4.3, thanks. David -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to

Re: [PATCH net-next v2 0/7] net: dsa: mv88e6xxx: support switchdev FDB objects

2015-08-11 Thread David Miller
From: Vivien Didelot vivien.dide...@savoirfairelinux.com Date: Tue, 11 Aug 2015 12:25:06 -0400 (EDT) I can work on fixup patches to restore v3 changes on top of v2, but this won't fix the bisectability issue. Instead of fixing individual portions, reverting the merge commit f1d5ca4: Merge

Re: [PATCH net-next v2 0/7] net: dsa: mv88e6xxx: support switchdev FDB objects

2015-08-11 Thread Florian Fainelli
On 11/08/15 10:38, David Miller wrote: From: Vivien Didelot vivien.dide...@savoirfairelinux.com Date: Tue, 11 Aug 2015 12:25:06 -0400 (EDT) I can work on fixup patches to restore v3 changes on top of v2, but this won't fix the bisectability issue. Instead of fixing individual portions,

Re: [PATCH net-next 6/9] net: Fix up inet_addr_type checks

2015-08-11 Thread David Ahern
On 8/11/15 12:14 PM, David Miller wrote: From: David Ahern d...@cumulusnetworks.com Date: Mon, 10 Aug 2015 11:50:33 -0600 @@ -427,6 +428,7 @@ int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) struct net *net = sock_net(sk); unsigned short snum;

Re: [PATCH net] netconsole: Check for carrier before calling netpoll_send_udp()

2015-08-11 Thread David Miller
From: Jonathan Maxwell jmaxwel...@gmail.com Date: Tue, 11 Aug 2015 15:53:18 +1000 What if the carrier check passes, and then the chip reset starts on another cpu? You'll have the same problem. Okay, let me see if I can come up with a better way to mitigate this. I personally think that

Re: Question on behavior of tg3_self_test() (ethtool -t on tg3 driver)

2015-08-11 Thread Michael Chan
On Tue, 2015-08-11 at 10:59 -0500, Douglas Miller wrote: (Sorry if you got several duplicates, am trying to work through rejected messages due to supposed HTML content) The following behavior is being observed when running ethtool -t dev offline on ports on the Broadcom BCM5719 adapter

Re: [PATCH net-next v2 0/7] net: dsa: mv88e6xxx: support switchdev FDB objects

2015-08-11 Thread Vivien Didelot
Hi David, On Aug 11, 2015, at 2:07 PM, David da...@davemloft.net wrote: From: Florian Fainelli f.faine...@gmail.com Date: Tue, 11 Aug 2015 11:03:35 -0700 Put differently, my question is how do you value not rewriting history vs. breaking bisectability (by accident of course)? I never

Re: [PATCH v2 0/2] net: thunder: Add ACPI support.

2015-08-11 Thread David Miller
From: David Daney ddaney.c...@gmail.com Date: Mon, 10 Aug 2015 17:58:35 -0700 Change from v1: Drop PHY binding part, use fwnode_property* APIs. The first patch (1/2) rearranges the existing code a little with no functional change to get ready for the second. The second (2/2) does the

Re: [PATCH net-next v2 0/7] net: dsa: mv88e6xxx: support switchdev FDB objects

2015-08-11 Thread David Miller
From: Vivien Didelot vivien.dide...@savoirfairelinux.com Date: Tue, 11 Aug 2015 14:18:42 -0400 (EDT) On Aug 11, 2015, at 2:07 PM, David da...@davemloft.net wrote: From: Florian Fainelli f.faine...@gmail.com Date: Tue, 11 Aug 2015 11:03:35 -0700 Put differently, my question is how do you

RE: [Intel-wired-lan] [PATCH v2 1/2] igb: Teardown SR-IOV before unregister_netdev()

2015-08-11 Thread Brown, Aaron F
From: Intel-wired-lan [mailto:intel-wired-lan-boun...@lists.osuosl.org] On Behalf Of Alex Williamson Sent: Wednesday, July 29, 2015 1:38 PM To: intel-wired-...@lists.osuosl.org; da...@davemloft.net; Kirsher, Jeffrey T Cc: netdev@vger.kernel.org; linux-ker...@vger.kernel.org Subject:

Re: [PATCH] net: fs_enet: mask interrupts for TX partial frames.

2015-08-11 Thread David Miller
From: Christophe Leroy christophe.le...@c-s.fr Date: Tue, 11 Aug 2015 12:11:03 +0200 (CEST) We are not interested in interrupts for partially transmitted frames. Unlike SCC and FCC, the FEC doesn't handle the I bit in buffer descriptors, instead it defines two interrupt bits, TXB and TXF.

Re: [PATCH] net: fs_enet: explicitly remove I flag on TX partial frames

2015-08-11 Thread David Miller
From: Christophe Leroy christophe.le...@c-s.fr Date: Tue, 11 Aug 2015 12:11:00 +0200 (CEST) We are not interested in interrupts for partially transmitted frames, we have to clear BD_ENET_TX_INTR explicitly otherwise it may remain from a previously used descriptor. Signed-off-by: Christophe

Re: [PATCH] iproute2: Add support for VRF device

2015-08-11 Thread Nikolay Aleksandrov
Hi, Since there will be another version a few minor nits below, On Aug 10, 2015, at 8:50 PM, David Ahern d...@cumulusnetworks.com wrote: Allow user to create a vrf device and specify its table binding. Based on the iplink_vlan implementation. Signed-off-by: Shrijeet Mukherjee

Re: [PATCH 04/10] batman-adv: Make NC capability changes atomic

2015-08-11 Thread Sergei Shtylyov
On 08/11/2015 07:35 PM, Antonio Quartulli wrote: From: Linus Lüssing linus.luess...@c0d3.blue Bitwise OR/AND assignments in C aren't guaranteed to be atomic. One OGM handler might undo the set/clear of a specific bit from another handler run in between. Fix this by using the atomic

Re: [PATCH 3/3] gianfar: remove faulty filer optimizer

2015-08-11 Thread David Miller
From: Jakub Kiciński moorr...@wp.pl Date: Tue, 11 Aug 2015 16:51:09 +0200 On Tue, 11 Aug 2015 14:00:23 +, Manoil Claudiu wrote: -Original Message- From: Jakub Kicinski [mailto:moorr...@wp.pl] Sent: Monday, August 10, 2015 11:12 PM To: David S. Miller; Manoil Claudiu-B08782 Cc:

Re: [PATCH net-next 6/9] net: Fix up inet_addr_type checks

2015-08-11 Thread David Miller
From: David Ahern d...@cumulusnetworks.com Date: Tue, 11 Aug 2015 12:18:20 -0600 The intent here was to default to current behavior and to keep the details of that in one place. If you prefer table id to always enter with the right value I can make that happen. I think it looks better that

Re: [PATCH net-next v2 0/7] net: dsa: mv88e6xxx: support switchdev FDB objects

2015-08-11 Thread David Miller
From: David Miller da...@davemloft.net Date: Tue, 11 Aug 2015 11:52:49 -0700 (PDT) From: Vivien Didelot vivien.dide...@savoirfairelinux.com Date: Tue, 11 Aug 2015 14:18:42 -0400 (EDT) On Aug 11, 2015, at 2:07 PM, David da...@davemloft.net wrote: From: Florian Fainelli f.faine...@gmail.com

Re: [PATCH v3 net-next] bpf: s390: Fix build error caused by the struct bpf_array member name changed

2015-08-11 Thread David Miller
From: Kaixu Xia xiaka...@huawei.com Date: Tue, 11 Aug 2015 08:56:51 + There is a build error that 'struct bpf_array' has no member named 'prog' on s390. In commit 2a36f0b92eb6 (bpf: Make the bpf_prog_array_map more generic), the member 'prog' of struct bpf_array is replaced by 'ptrs'. So

Re: [PATCH net-next v2 0/7] net: dsa: mv88e6xxx: support switchdev FDB objects

2015-08-11 Thread David Miller
From: David Miller da...@davemloft.net Date: Tue, 11 Aug 2015 12:00:27 -0700 (PDT) Ok, if you guys really want me to I'll do the revert-reapply thing. Done. -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH v2 net-next] sky2: use random address if EEPROM is bad

2015-08-11 Thread Sergei Shtylyov
Hello. On 08/11/2015 05:35 PM, Liviu Dudau wrote: On some embedded systems the EEPROM does not contain a valid MAC address. In that case it is better to fallback to a generated mac address and let init scripts fix the value later. Reported-by: Liviu Dudau liviu.du...@arm.com Signed-off-by:

Re: Question on behavior of tg3_self_test() (ethtool -t on tg3 driver)

2015-08-11 Thread Douglas Miller
Thanks Michael for getting back to me. Yes, the wrap plugs are the loopback cables/plugs. It is my understanding that the offline tests do not require anything to be plugged into the ports, as they do not in any way touch the external port. They perform an internal loopback test which does

Re: [PATCH 03/10] batman-adv: Make DAT capability changes atomic

2015-08-11 Thread Sergei Shtylyov
Hello. On 08/11/2015 07:35 PM, Antonio Quartulli wrote: From: Linus Lüssing linus.luess...@c0d3.blue Bitwise OR/AND assignments in C aren't guaranteed to be atomic. One OGM handler might undo the set/clear of a specific bit from another handler run in between. Fix this by using the

Re: [PATCH net-next v2 0/7] net: dsa: mv88e6xxx: support switchdev FDB objects

2015-08-11 Thread Vivien Didelot
Hi David, On 15-08-11 12:05:18, David Miller wrote: From: David Miller da...@davemloft.net Date: Tue, 11 Aug 2015 12:00:27 -0700 (PDT) Ok, if you guys really want me to I'll do the revert-reapply thing. Done. Thank you, this is much appreciated. -v -- To unsubscribe from this list:

[net-next PATCH] net: Document xfrm4_gc_thresh and xfrm6_gc_thresh

2015-08-11 Thread Alexander Duyck
This change adds documentation for xfrm4_gc_thresh and xfrm6_gc_thresh based on the comments in commit eeb1b73378b56 (xfrm: Increase the garbage collector threshold). Signed-off-by: Alexander Duyck alexander.h.du...@redhat.com --- Documentation/networking/ip-sysctl.txt | 10 ++ 1 file

Re: [PATCH v2 0/2] net: thunder: Add ACPI support.

2015-08-11 Thread David Miller
From: Robert Richter robert.rich...@caviumnetworks.com Date: Tue, 11 Aug 2015 22:12:37 +0200 On 11.08.15 13:04:55, David Daney wrote: In the future it might be better structured to try and get the OF node, and if that fails then try and use the ACPI method to obtain these values. Our

  1   2   >