Re: [PATCH net-next v2 0/8] net: thunderx: New features and fixes

2015-08-31 Thread Sunil Kovvuri
>> >> Series applied, thanks. >> -- Thanks a lot. -- 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 v2 net-next] netfilter: ipset: Fixing unnamed union initg

2015-08-31 Thread Vinson Lee
On Fri, Aug 28, 2015 at 4:21 PM, Akemi Yagi wrote: > On Fri, Aug 28, 2015 at 3:59 PM, Pablo Neira Ayuso > wrote: >> On Sat, Aug 22, 2015 at 08:44:48PM +0200, Pablo Neira Ayuso wrote: >> [...] >>> I'll wait for some little time just in case someone raises

Re: IPv6 xfrm GSO fragmentation bug

2015-08-31 Thread Steffen Klassert
On Sun, Aug 30, 2015 at 04:24:32PM +0800, Herbert Xu wrote: > Hi Steffen: > > I received a bug report regarding poor IPComp performance over > IPv6: > > https://bugzilla.redhat.com/show_bug.cgi?id=1257952 > > It appears to have been caused by > > commit

Re: [PATCH 2/2] usbnet: Fix a race between usbnet_stop() and the BH

2015-08-31 Thread Bjørn Mork
Eugene Shatokhin writes: > 28.08.2015 11:55, Bjørn Mork пишет: > >> I guess you are right. At least I cannot prove that you are not :) >> >> There is a bit too much complexity involved here for me... > > :-) > > Yes, it is quite complex. > > I admit, it was easier

[PATCH net-next] tun_dst: Remove opts_size

2015-08-31 Thread Pravin B Shelar
opts_size is only written and never read. Following patch removes this unused variable. Signed-off-by: Pravin B Shelar --- include/net/dst_metadata.h |1 - net/core/dst.c |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git

Re: [PATCH net] skbuff: Fix skb checksum flag on skb pull

2015-08-31 Thread Pravin Shelar
On Mon, Aug 31, 2015 at 6:40 PM, Alexei Starovoitov wrote: > On Mon, Aug 31, 2015 at 03:55:46PM -0700, Pravin B Shelar wrote: >> VXLAN device can receive skb with checksum partial. But the checksum >> offset could be in outer header which is pulled on receive. Such

[PATCH net-next] lib: move strncpy_from_unsafe() into mm/maccess.c

2015-08-31 Thread Alexei Starovoitov
To fix build errors: kernel/built-in.o: In function `bpf_trace_printk': bpf_trace.c:(.text+0x11a254): undefined reference to `strncpy_from_unsafe' kernel/built-in.o: In function `fetch_memory_string': trace_kprobe.c:(.text+0x11acf8): undefined reference to `strncpy_from_unsafe' move

[PATCH net-next] net: Add tos to validate source tracepoint

2015-08-31 Thread David Ahern
TOS is another key aspect of the lookup passed to fib_validate_source. Add it to the tracepoint. Signed-off-by: David Ahern --- include/trace/events/fib.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/trace/events/fib.h

[PATCH net-next] net: Remove VRF change to udp_sendmsg

2015-08-31 Thread David Ahern
Remove the VRF change in udp_sendmsg to set the source address. The VRF driver already has access to the packet on the TX path via the dst. It can be used to update the source address in the header. Update function based on OVS. Cc: Tom Herbert Signed-off-by: David Ahern

Re: igmp broadcast storm Red Hat EL7 3.1 Kernel

2015-08-31 Thread Cong Wang
(Cc'ing netdev) On Sat, Aug 29, 2015 at 3:50 PM, Jeffrey Merkey wrote: > When installing Centos 7 running kernel 3.1 (Centos 7 distro) the > system generates an igmp broadcast storm which locks up and knocks > down a Century Link DSL router. Powering the router off clears

Re: [PATCH net-next] net: Remove VRF change to udp_sendmsg

2015-08-31 Thread Tom Herbert
On Mon, Aug 31, 2015 at 9:29 AM, David Ahern wrote: > Remove the VRF change in udp_sendmsg to set the source address. The VRF > driver already has access to the packet on the TX path via the dst. It > can be used to update the source address in the header. > I don't

Re: [PATCH] net/smsc911x: Fix deferred probe for interrupt

2015-08-31 Thread Sergei Shtylyov
Hello. On 08/31/2015 05:03 PM, Grygorii Strashko wrote: The interrupt handler may not be available when smsc911x probes if the interrupt handler is a GPIO controller for example. Let's fix that by adding handling for -EPROBE_DEFER. Cc: Steve Glendinning

Re: [PATCH net-next] net: Remove VRF change to udp_sendmsg

2015-08-31 Thread David Ahern
On 8/31/15 11:02 AM, Tom Herbert wrote: On Mon, Aug 31, 2015 at 9:29 AM, David Ahern wrote: Remove the VRF change in udp_sendmsg to set the source address. The VRF driver already has access to the packet on the TX path via the dst. It can be used to update the source

Re: [PATCH net-next] net: Remove VRF change to udp_sendmsg

2015-08-31 Thread Tom Herbert
On Mon, Aug 31, 2015 at 10:05 AM, David Ahern wrote: > On 8/31/15 11:02 AM, Tom Herbert wrote: >> >> On Mon, Aug 31, 2015 at 9:29 AM, David Ahern >> wrote: >>> >>> Remove the VRF change in udp_sendmsg to set the source address. The VRF >>>

Re: [PATCH net-next] net: Remove VRF change to udp_sendmsg

2015-08-31 Thread David Ahern
Hi Tom: On 8/31/15 11:22 AM, Tom Herbert wrote: It's a major departure from current convention. The source address of the packet should be set before doing ip_send_skb. In UDP unconnected case ip_route_output_flow calls inet_select_addr. AKAIK there is no provision for not setting the source

[PATCH net] sctp: support global vtag assochash and per endpoint s(d)port assochash table

2015-08-31 Thread Xin Long
for telecom center, the usual case is that a server is connected by thousands of clients. but if the server with only one enpoint(udp style) use the same sport and dport to communicate with every clients, and every assoc in server will be hashed in the same chain of global assoc hashtable due to

[PATCH net] mpls: fix mpls_net_init memory leak

2015-08-31 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov Fix a memory leak in the mpls netns init function in case of failure. If register_net_sysctl fails then we need to free the ctl_table. Fixes: 7720c01f3f59 ("mpls: Add a sysctl to control the size of the mpls label table") Signed-off-by:

[PATCH] mwifiex: Make mwifiex_dbg a function, reduce object size

2015-08-31 Thread Joe Perches
The mwifiex_dbg macro has two tests that could be consolidated into a function reducing overall object size ~10KB (~4%). So convert the macro into a function. $ size drivers/net/wireless/mwifiex/built-in.o* (x86-64 defconfig) textdata bss dec hex filename 2331028628

Re: [PATCH net] sctp: support global vtag assochash and per endpoint s(d)port assochash table

2015-08-31 Thread lucien xin
attachment is the test script above-mentioned. sctperf.tar.gz Description: GNU Zip compressed data

Re: [PATCH net-next] net: Remove VRF change to udp_sendmsg

2015-08-31 Thread David Ahern
On 8/31/15 11:22 AM, Tom Herbert wrote: It's a major departure from current convention. The source address of the packet should be set before doing ip_send_skb. In UDP unconnected case ip_route_output_flow calls inet_select_addr. AKAIK there is no provision for not setting the source address and

Re: [PATCH net-next] net: Remove VRF change to udp_sendmsg

2015-08-31 Thread Tom Herbert
On Mon, Aug 31, 2015 at 10:40 AM, David Ahern wrote: > Hi Tom: > > On 8/31/15 11:22 AM, Tom Herbert wrote: >> >> It's a major departure from current convention. The source address of >> the packet should be set before doing ip_send_skb. In UDP unconnected >> case

Re: igmp broadcast storm Red Hat EL7 3.1 Kernel

2015-08-31 Thread Jeffrey Merkey
I was able to reproduce it last night with 2.6.32 on Centos 6.3 so it does not seem confined to just the 3.X tree. I think this is something that's been lurking in the kernel for years and just has a hard time showing up. Bugs that go away on their own come back on their own. I got a trace of

Re: [PATCH net] sctp: support global vtag assochash and per endpoint s(d)port assochash table

2015-08-31 Thread lucien xin
that patch is actually meant for net-next, need to state. -- 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: [net-next:master 1512/1524] net/ipv4/af_inet.c:1486:26: error: 'offt' undeclared

2015-08-31 Thread Florian Fainelli
On 31/08/15 05:25, Madalin-Cristian Bucur wrote: >> -Original Message- >> From: netdev-ow...@vger.kernel.org [mailto:netdev- >> Subject: Re: [net-next:master 1512/1524] net/ipv4/af_inet.c:1486:26: error: >> 'offt' undeclared >> >> From: kbuild test robot >> Date:

[PATCH] net: qmi_wwan: Sierra Wireless MC73xx -> Sierra Wireless MC7304/MC7354

2015-08-31 Thread David Ward
Other Sierra Wireless MC73xx devices exist, with different USB IDs. Cc: Bjørn Mork Signed-off-by: David Ward --- drivers/net/usb/qmi_wwan.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/qmi_wwan.c

Re: [PATCH] ipv4: fix 32b build

2015-08-31 Thread David Miller
From: Madalin Bucur Date: Mon, 31 Aug 2015 15:46:07 +0300 > Address remaining issue after 80ec192. > > Signed-off-by: Madalin Bucur Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a

Re: [PATCH net-next] ip-tunnel: Use API to access tunnel metadata options.

2015-08-31 Thread Jesse Gross
On Sun, Aug 30, 2015 at 6:09 PM, Pravin B Shelar wrote: > Currently tun-info options pointer is used in few cases to > pass options around. But tunnel options can be accessed using > ip_tunnel_info_opts() API without using the pointer. Following > patch removes the redundant

Re: [PATCH v4 10/10] ss: extended json_writer for hex field and value output

2015-08-31 Thread Stephen Hemminger
> diff --git a/lib/json_writer.c b/lib/json_writer.c > index 2af16e1..495ce57 100644 > --- a/lib/json_writer.c > +++ b/lib/json_writer.c > @@ -22,6 +22,8 @@ > > #include "json_writer.h" > > +#define notused > + Gack. Just take out the #ifdef > struct json_writer { > FILE

[PATCH 1/2] airo: fix IW_AUTH_ALG_OPEN_SYSTEM

2015-08-31 Thread Ondrej Zary
Handle IW_AUTH_ALG_OPEN_SYSTEM in set_auth. This allows wpa_supplicant (and thus NetworkManager) to work with open APs. Signed-off-by: Ondrej Zary --- drivers/net/wireless/airo.c |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH 2/2] airo: Implement netif_carrier_on/off

2015-08-31 Thread Ondrej Zary
Add calls to netif_carrier_on and netif_carrier_off Signed-off-by: Ondrej Zary --- drivers/net/wireless/airo.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 2066a1f..1a9ddcd

Re: [PATCH net-next] ip-tunnel: Use API to access tunnel metadata options.

2015-08-31 Thread David Miller
From: Pravin B Shelar Date: Sun, 30 Aug 2015 18:09:38 -0700 > Currently tun-info options pointer is used in few cases to > pass options around. But tunnel options can be accessed using > ip_tunnel_info_opts() API without using the pointer. Following > patch removes the

Re: [PATCH 2/2] IGMP: Inhibit reports for local multicast groups - DOCUMENT

2015-08-31 Thread David Miller
From: Philip Downey Date: Mon, 31 Aug 2015 11:30:38 +0100 > Document the addition of a new sysctl variable which controls the > generation of IGMP reports for link local multicast groups in the > 224.0.0.X range. > > IGMP reports for local multicast groups can now be

Re: [PATCH net-next v2 0/4] tcp: receive-side per route dctcp handling

2015-08-31 Thread David Miller
From: Daniel Borkmann Date: Mon, 31 Aug 2015 15:58:43 +0200 > Original cover letter: > > Currently, the following case doesn't use DCTCP, even if it should: > > - responder has f.e. cubic as system wide default > - 'ip route congctl dctcp $src' was set > >

Re: [PATCH net-next] lib: move strncpy_from_unsafe() into mm/maccess.c

2015-08-31 Thread David Miller
From: Alexei Starovoitov Date: Mon, 31 Aug 2015 08:57:10 -0700 > To fix build errors: > kernel/built-in.o: In function `bpf_trace_printk': > bpf_trace.c:(.text+0x11a254): undefined reference to `strncpy_from_unsafe' > kernel/built-in.o: In function `fetch_memory_string': >

Re: [PATCH net-next] net: Add tos to validate source tracepoint

2015-08-31 Thread David Miller
From: David Ahern Date: Mon, 31 Aug 2015 09:57:12 -0600 > TOS is another key aspect of the lookup passed to fib_validate_source. > Add it to the tracepoint. > > Signed-off-by: David Ahern Applied. -- To unsubscribe from this list: send the

Re: [PATCH net-next] lib: move strncpy_from_unsafe() into mm/maccess.c

2015-08-31 Thread Guenter Roeck
On 08/31/2015 12:36 PM, David Miller wrote: From: Alexei Starovoitov Date: Mon, 31 Aug 2015 08:57:10 -0700 To fix build errors: kernel/built-in.o: In function `bpf_trace_printk': bpf_trace.c:(.text+0x11a254): undefined reference to `strncpy_from_unsafe' kernel/built-in.o:

Re: [PATCH net-next] net: Remove VRF change to udp_sendmsg

2015-08-31 Thread David Miller
From: David Ahern Date: Mon, 31 Aug 2015 09:29:40 -0700 > Remove the VRF change in udp_sendmsg to set the source address. The VRF > driver already has access to the packet on the TX path via the dst. It > can be used to update the source address in the header. > >

Re: [PATCH net] mpls: fix mpls_net_init memory leak

2015-08-31 Thread David Miller
From: Nikolay Aleksandrov Date: Mon, 31 Aug 2015 10:44:19 -0700 > From: Nikolay Aleksandrov > > Fix a memory leak in the mpls netns init function in case of failure. If > register_net_sysctl fails then we need to free the ctl_table. > > Fixes:

vethpair creation performance, 3.14 versus 4.2.0

2015-08-31 Thread Rick Jones
On 08/29/2015 10:59 PM, Raghavendra K T wrote: > Please note that similar overhead was also reported while creating > veth pairs https://lkml.org/lkml/2013/3/19/556 That got me curious, so I took the veth pair creation script from there, and started running it out to 10K pairs, comparing a

Re: [PATCH net-next] net: Remove VRF change to udp_sendmsg

2015-08-31 Thread David Ahern
On 8/31/15 1:44 PM, David Miller wrote: From: David Ahern Date: Mon, 31 Aug 2015 09:29:40 -0700 Remove the VRF change in udp_sendmsg to set the source address. The VRF driver already has access to the packet on the TX path via the dst. It can be used to update the

Re: [PATCH 1/2] airo: fix IW_AUTH_ALG_OPEN_SYSTEM

2015-08-31 Thread Dan Williams
On Mon, 2015-08-31 at 21:19 +0200, Ondrej Zary wrote: > Handle IW_AUTH_ALG_OPEN_SYSTEM in set_auth. > This allows wpa_supplicant (and thus NetworkManager) to work with open APs. > > Signed-off-by: Ondrej Zary > --- > drivers/net/wireless/airo.c |7 +++ > 1

[PATCH net-next] gro_cells: remove spinlock protecting receive queues

2015-08-31 Thread Eric Dumazet
From: Eric Dumazet As David pointed out, spinlock are no longer needed to protect the per cpu queues used in gro cells infrastructure. Also use new napi_complete_done() API so that gro_flush_timeout tweaks have an effect. Signed-off-by: Eric Dumazet

[PATCH] e1000: fix e1000e_disable_aspm_locked() warning

2015-08-31 Thread Dave Hansen
From: Dave Hansen I have a .config with CONFIG_PM disabled. I get the following whenever compiling the e1000 driver: ...net/ethernet/intel/e1000e/netdev.c:6450:13: warning: 'e1000e_disable_aspm_locked' defined but not used [-Wunused-function] static void

Re: vethpair creation performance, 3.14 versus 4.2.0

2015-08-31 Thread David Ahern
On 8/31/15 1:48 PM, Rick Jones wrote: My attempts to get a call-graph have been met with very limited success. Even though I've installed the dbg package from "make deb-pkg" the symbol resolution doesn't seem to be working. Looks like Debian does not enable framepointers by default: $ grep

Re: vethpair creation performance, 3.14 versus 4.2.0

2015-08-31 Thread Rick Jones
On 08/31/2015 02:29 PM, David Ahern wrote: On 8/31/15 1:48 PM, Rick Jones wrote: My attempts to get a call-graph have been met with very limited success. Even though I've installed the dbg package from "make deb-pkg" the symbol resolution doesn't seem to be working. Looks like Debian does

Re: [Patch v2 RFT net-next 0/9] DSA port configuration and status

2015-08-31 Thread David Miller
From: Andrew Lunn Date: Mon, 31 Aug 2015 15:56:45 +0200 > This patchset allows various switch port settings to be configured and > port status to be sampled. Some of these patches have been posted > before. > > The first three patches provide infrastructure for configuring a >

Re: [PATCH] ipv6: send NEWLINK on RA managed/otherconf changes

2015-08-31 Thread David Miller
From: Marius Tomaschewski Date: Mon, 31 Aug 2015 15:59:22 +0200 > The kernel is applying the RA managed/otherconf flags silently and > forgets to send ifinfo notify to inform about their change when the > router provides a zero reachable_time and retrans_timer as dnsmasq > and many

Re: [PATCH 1/2] airo: fix IW_AUTH_ALG_OPEN_SYSTEM

2015-08-31 Thread Ondrej Zary
On Monday 31 August 2015 22:44:54 Dan Williams wrote: > On Mon, 2015-08-31 at 21:19 +0200, Ondrej Zary wrote: > > Handle IW_AUTH_ALG_OPEN_SYSTEM in set_auth. > > This allows wpa_supplicant (and thus NetworkManager) to work with open > > APs. > > > > Signed-off-by: Ondrej Zary

Re: [PATCH net] sctp: support global vtag assochash and per endpoint s(d)port assochash table

2015-08-31 Thread David Miller
From: Xin Long Date: Tue, 1 Sep 2015 01:44:28 +0800 > @@ -524,18 +524,16 @@ static inline int sctp_assoc_hashfn(struct net *net, > __u16 lport, __u16 rport) > { > int h = (lport << 16) + rport + net_hash_mix(net); > h ^= h>>8; > - return h &

Re: [PATCH] net: qmi_wwan: Sierra Wireless MC73xx -> Sierra Wireless MC7304/MC7354

2015-08-31 Thread David Miller
From: David Ward Date: Mon, 31 Aug 2015 14:15:14 -0400 > Other Sierra Wireless MC73xx devices exist, with different USB IDs. > > Cc: Bjørn Mork > Signed-off-by: David Ward Applied. -- To unsubscribe from this list: send the line

Re: [PATCH net-next] gro_cells: remove spinlock protecting receive queues

2015-08-31 Thread David Miller
From: Eric Dumazet Date: Mon, 31 Aug 2015 13:57:34 -0700 > From: Eric Dumazet > > As David pointed out, spinlock are no longer needed > to protect the per cpu queues used in gro cells infrastructure. > > Also use new napi_complete_done() API so

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

2015-08-31 Thread Jarod Wilson
On 2015-08-17 4:51 PM, Uwe Koziolek wrote: On Mon, Aug 17, 2015 at 09:14PM +0200, Jay Vosburgh wrote: Uwe Koziolek wrote: On2015-08-17 07:12 PM,Jarod Wilson wrote: ... Uwe, can you perhaps further enlighten us as to what num_grat_arp settings were tried that

[PATCH net] skbuff: Fix skb checksum flag on skb pull

2015-08-31 Thread Pravin B Shelar
VXLAN device can receive skb with checksum partial. But the checksum offset could be in outer header which is pulled on receive. Such skb can cause the panic when checksum is calculated on skb. Following patch fixes the bug by setting checksum unnecessary while pulling outer header. ---8<--- [

Re: vethpair creation performance, 3.14 versus 4.2.0

2015-08-31 Thread Eric Dumazet
On Mon, 2015-08-31 at 12:48 -0700, Rick Jones wrote: > On 08/29/2015 10:59 PM, Raghavendra K T wrote: > > Please note that similar overhead was also reported while creating > > veth pairs https://lkml.org/lkml/2013/3/19/556 > > > That got me curious, so I took the veth pair creation script

Re: ss format bug

2015-08-31 Thread Stephen Hemminger
On Wed, 26 Aug 2015 11:59:17 -0400 Mike Saal wrote: > Hi: > > I found a formatting bug in the 4.1.1 ss command. The following line was > incorrectly output due to passing a negative length to printf() when > displaying the local address. In this instance hostapd does a "bind

Re: [PATCH iproute2 v3] add support for brief output for link and addresses

2015-08-31 Thread Stephen Hemminger
On Fri, 28 Aug 2015 17:45:41 + Andy Gospodarek wrote: > This adds support for slightly less output than is normally provided by > 'ip link show' and 'ip addr show'. This is a bit better when you have a > host with lots of interfaces. Sample output: > > $ ip -br

Re: [PATCH iproute2 v3] add 'vti'/'vti6' tunnel modes to ip-tunnel manual page

2015-08-31 Thread Stephen Hemminger
On Sat, 29 Aug 2015 18:36:32 + Konstantin Shemyak wrote: > * "vti" and "vti6" tunnel modes added to ip-tunnel.8 manual page > * Added "hoplimit" terminology for IPv6 > * Corrected usage line > * Minor language fix > --- > man/man8/ip-tunnel.8 | 24

Re: [PATCH iproute2] iplink: Add support for IFLA_BR_VLAN_PROTOCOL attribute

2015-08-31 Thread Stephen Hemminger
On Mon, 31 Aug 2015 18:48:46 +0900 Toshiaki Makita wrote: > This patch adds support for bridge vlan_protocol. > > Example: > $ ip link set br0 type bridge vlan_protocol 802.1ad > $ ip -d link show br0 > 4: br0: mtu 1500 qdisc

[ANNOUNCE] iproute2 4.2.0

2015-08-31 Thread Stephen Hemminger
Regular release of iproute2 for Linux 4.2 Update to iproute2 utility to support new features in Linux 4.2. Lots of work went into extending ss and bpf. Also some nicer formatting in ip commands with brief mode. Source: http://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-4.2.0.tar.gz

Re: [PATCH] ipv6: send NEWLINK on RA managed/otherconf changes

2015-08-31 Thread Marius Tomaschewski
Am 01.09.2015 um 00:13 schrieb David Miller: > From: Marius Tomaschewski > Date: Mon, 31 Aug 2015 15:59:22 +0200 > >> The kernel is applying the RA managed/otherconf flags silently and >> forgets to send ifinfo notify to inform about their change when the >> router provides a zero

Re: [PATCH net] skbuff: Fix skb checksum flag on skb pull

2015-08-31 Thread Tom Herbert
On Mon, Aug 31, 2015 at 3:55 PM, Pravin B Shelar wrote: > VXLAN device can receive skb with checksum partial. But the checksum > offset could be in outer header which is pulled on receive. Such skb > can cause the panic when checksum is calculated on skb. Following patch >

Re: [PATCH] ipv6: send NEWLINK on RA managed/otherconf changes

2015-08-31 Thread David Miller
From: Marius Tomaschewski Date: Tue, 1 Sep 2015 01:43:39 +0200 > I've attached a follow-up patch doing this. Please let me know if you > need it in a separate mail. I want it in a separate mail, and please use "bool" for the type. -- To unsubscribe from this list: send the line

Re: [PATCH net] sctp: support global vtag assochash and per endpoint s(d)port assochash table

2015-08-31 Thread Vlad Yasevich
On 08/31/2015 01:44 PM, Xin Long wrote: > for telecom center, the usual case is that a server is connected by thousands > of clients. but if the server with only one enpoint(udp style) use the same > sport and dport to communicate with every clients, and every assoc in server > will be hashed in

[PATCH] ipv6: send only one NEWLINK when RA causes changes

2015-08-31 Thread Marius Tomaschewski
Signed-off-by: Marius Tomaschewski diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 99ea9dd..8456c75 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -1075,6 +1075,7 @@ static void ndisc_router_discovery(struct sk_buff *skb) int optlen; unsigned int

Re: [PATCH 1/2] airo: fix IW_AUTH_ALG_OPEN_SYSTEM

2015-08-31 Thread Dan Williams
On Tue, 2015-09-01 at 00:12 +0200, Ondrej Zary wrote: > > On Monday 31 August 2015 22:44:54 Dan Williams wrote: > > On Mon, 2015-08-31 at 21:19 +0200, Ondrej Zary wrote: > > > Handle IW_AUTH_ALG_OPEN_SYSTEM in set_auth. > > > This allows wpa_supplicant (and thus NetworkManager) to work with open

Re: [PATCH net] skbuff: Fix skb checksum flag on skb pull

2015-08-31 Thread Alexei Starovoitov
On Mon, Aug 31, 2015 at 03:55:46PM -0700, Pravin B Shelar wrote: > VXLAN device can receive skb with checksum partial. But the checksum > offset could be in outer header which is pulled on receive. Such skb > can cause the panic when checksum is calculated on skb. Following patch > fixes the bug

Re: [PATCH net-next] ip-tunnel: Use API to access tunnel metadata options.

2015-08-31 Thread Thomas Graf
On 08/30/15 at 06:09pm, Pravin B Shelar wrote: > Currently tun-info options pointer is used in few cases to > pass options around. But tunnel options can be accessed using > ip_tunnel_info_opts() API without using the pointer. Following > patch removes the redundant pointer and consistently make

[PATCH iproute2] iplink: Add support for IFLA_BR_VLAN_PROTOCOL attribute

2015-08-31 Thread Toshiaki Makita
This patch adds support for bridge vlan_protocol. Example: $ ip link set br0 type bridge vlan_protocol 802.1ad $ ip -d link show br0 4: br0: mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000 link/ether 44:37:e6:ab:cd:ef brd

Re: [PATCH v2 net-next 0/3] ipv4: Hash-based multipath routing

2015-08-31 Thread Thomas Graf
On 08/30/15 at 03:29pm, Tom Herbert wrote: > On Sun, Aug 30, 2015 at 2:28 PM, Peter N??rlund wrote: > > It would definitely be simpler, and it would be nice to just fetch the > > hash directly from the NIC - and for link aggregation it would probably > > be fine. But with L4,

Re: [PATCH 2/2] usbnet: Fix a race between usbnet_stop() and the BH

2015-08-31 Thread Eugene Shatokhin
31.08.2015 10:32, Bjørn Mork пишет: Eugene Shatokhin writes: 28.08.2015 11:55, Bjørn Mork пишет: I guess you are right. At least I cannot prove that you are not :) There is a bit too much complexity involved here for me... :-) Yes, it is quite complex. I

Re: IPv6 xfrm GSO fragmentation bug

2015-08-31 Thread Herbert Xu
On Mon, Aug 31, 2015 at 09:19:16AM +0200, Steffen Klassert wrote: > > As far as I remember, this was to catch local message size > errors before __xfrm6_output calls ip6_fragment which would > use icmpv6_send for the error notification. IPv4 does not do > fragmentation in the xfrm4_output

[PATCH 2/2] IGMP: Inhibit reports for local multicast groups - DOCUMENT

2015-08-31 Thread Philip Downey
Document the addition of a new sysctl variable which controls the generation of IGMP reports for link local multicast groups in the 224.0.0.X range. IGMP reports for local multicast groups can now be optionally inhibited by setting the value to zero e.g.: echo 0 >

RE: [PATCH] IGMP: Inhibit reports for local multicast groups

2015-08-31 Thread Philip Downey
> -Original Message- > From: Cong Wang [mailto:cw...@twopensource.com] > Sent: Friday, August 28, 2015 10:20 PM > To: Philip Downey > Cc: David Miller; Alexey Kuznetsov; James Morris; Hideaki YOSHIFUJI; Patrick > McHardy; linux-ker...@vger.kernel.org; netdev > Subject: Re: [PATCH] IGMP:

Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads

2015-08-31 Thread Phil Sutter
On Sun, Aug 30, 2015 at 03:47:17PM +0800, Herbert Xu wrote: > Phil Sutter wrote: > > > > Should we introduce a new field to struct rhashtable to track the > > internal state? This might allow to clean up some rather obscure tests, > > e.g. whether a table resize is in progress or

Re: [PATCH net-next] tun_dst: Remove opts_size

2015-08-31 Thread David Miller
From: Pravin B Shelar Date: Mon, 31 Aug 2015 20:05:57 -0700 > opts_size is only written and never read. Following patch > removes this unused variable. > > Signed-off-by: Pravin B Shelar Applied, thanks. -- To unsubscribe from this list: send the line

Re: [PATCH net] skbuff: Fix skb checksum flag on skb pull

2015-08-31 Thread Pravin Shelar
On Mon, Aug 31, 2015 at 4:44 PM, Tom Herbert wrote: > On Mon, Aug 31, 2015 at 3:55 PM, Pravin B Shelar wrote: >> VXLAN device can receive skb with checksum partial. But the checksum >> offset could be in outer header which is pulled on receive. Such skb

Re: [PATCH] ipv6: send only one NEWLINK when RA causes changes

2015-08-31 Thread David Miller
From: Marius Tomaschewski Date: Tue, 1 Sep 2015 01:57:30 +0200 > Signed-off-by: Marius Tomaschewski Applied, thanks. I wonder what to do about the situations right before the first assignment of send_ifinfo_notify to true where the dst_neigh_lookup() fails. Since

Re: [PATCH net] skbuff: Fix skb checksum flag on skb pull

2015-08-31 Thread Pravin Shelar
On Mon, Aug 31, 2015 at 9:12 PM, Tom Herbert wrote: > On Mon, Aug 31, 2015 at 3:55 PM, Pravin B Shelar wrote: >> VXLAN device can receive skb with checksum partial. But the checksum >> offset could be in outer header which is pulled on receive. Such skb

Re: [PATCH net] skbuff: Fix skb checksum flag on skb pull

2015-08-31 Thread Tom Herbert
On Mon, Aug 31, 2015 at 8:25 PM, Pravin Shelar wrote: > On Mon, Aug 31, 2015 at 4:44 PM, Tom Herbert wrote: >> On Mon, Aug 31, 2015 at 3:55 PM, Pravin B Shelar wrote: >>> VXLAN device can receive skb with checksum partial. But the

Re: [PATCH net] skbuff: Fix skb checksum flag on skb pull

2015-08-31 Thread Tom Herbert
On Mon, Aug 31, 2015 at 3:55 PM, Pravin B Shelar wrote: > VXLAN device can receive skb with checksum partial. But the checksum > offset could be in outer header which is pulled on receive. Such skb > can cause the panic when checksum is calculated on skb. Following patch >

[Patch v2 RFT net-next 4/9] net: dsa: Allow configuration of CPU & DSA port speeds/duplex

2015-08-31 Thread Andrew Lunn
By default, DSA and CPU ports are configured to the maximum speed the switch supports. However there can be use cases where the peer devices port is slower. Allow a fixed-link property to be used with the DSA and CPU port in the device tree, and use this information to configure the port.

[Patch v2 RFT net-next 8/9] phy: fixed_phy: Add gpio to determine link up/down.

2015-08-31 Thread Andrew Lunn
An SFP module may have a link up/down status pin which can be connection to a GPIO line of the host. Add support for reading such an GPIO in the fixed_phy driver. Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli ---

[Patch v2 RFT net-next 3/9] phy: fixed_phy: Set supported speed in phydev

2015-08-31 Thread Andrew Lunn
Set the supported field of the phydev to indicate the speed features of the phy. If the phy is never attached to a netdev, but used in an adjust_link() function, the speed will be incorrectly evaluated to 10/half rather than the correct speed/duplex. Signed-off-by: Andrew Lunn

[Patch v2 RFT net-next 7/9] dsa: mv88e6xxx: Don't poll forced interfaces for state changes

2015-08-31 Thread Andrew Lunn
When polling for link status, don't consider ports which have a forced link. Such ports don't monitor their phy or may not even have a phy. Signed-off-by: Andrew Lunn Acked-by: Florian Fainelli --- drivers/net/dsa/mv88e6xxx.c | 5 + 1 file changed, 5

Re: [Patch v2 RFT net-next 0/9] DSA port configuration and status

2015-08-31 Thread Stas Sergeev
31.08.2015 16:56, Andrew Lunn пишет: > Changes since v1: > > Rewrite 9/9 so that it hopefully does not regression on > 868a4215be9a6d80 ("net: phy: fixed_phy: handle link-down case") > > Stas, please could you test your use case. This was actually not mine. The change was fixing the regression

RE: [net-next:master 1512/1524] net/ipv4/af_inet.c:1486:26: error: 'offt' undeclared

2015-08-31 Thread Madalin-Cristian Bucur
> -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev- > Subject: Re: [net-next:master 1512/1524] net/ipv4/af_inet.c:1486:26: error: > 'offt' undeclared > > From: kbuild test robot > Date: Mon, 31 Aug 2015 13:06:10 +0800 > > >

[Patch v2 RFT net-next 2/9] dsa: mv88e6xxx: Allow speed/duplex of port to be configured

2015-08-31 Thread Andrew Lunn
The current code sets user ports to perform auto negotiation using the phy. CPU and DSA ports are configured to full duplex and maximum speed the switch supports. There are however use cases where the CPU has a slower port, and when user ports have SFP modules with fixed speed. In these cases,

[Patch v2 RFT net-next 5/9] net: dsa: Allow DSA and CPU ports to have a phy-mode property

2015-08-31 Thread Andrew Lunn
It can be useful for DSA and CPU ports to have a phy-mode property, in particular to specify RGMII delays. Parse the property and set it in the fixed-link phydev. Signed-off-by: Andrew Lunn Acked-by: Florian Fainelli --- net/dsa/dsa.c | 8 +++- 1 file

[Patch v2 RFT net-next 6/9] dsa: mv88e6xxx: Set the RGMII delay based on phy interface

2015-08-31 Thread Andrew Lunn
Some Marvell switches allow the RGMII Rx and Tx clock to be delayed when the port is using RGMII. Have the adjust_link function look at the phy interface type and enable this delay as requested. Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli ---

[PATCH net-next v2 2/4] net: fib6: reduce identation in ip6_convert_metrics

2015-08-31 Thread Daniel Borkmann
Reduce the identation a bit, there's no need to artificically have it increased. Signed-off-by: Daniel Borkmann --- net/ipv6/route.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/net/ipv6/route.c b/net/ipv6/route.c

[PATCH net-next v2 0/4] tcp: receive-side per route dctcp handling

2015-08-31 Thread Daniel Borkmann
Original cover letter: Currently, the following case doesn't use DCTCP, even if it should: - responder has f.e. cubic as system wide default - 'ip route congctl dctcp $src' was set Then, DCTCP is NOT used if a DCTCP sender attempts to connect from a host in the $src range: ECT(0)

[PATCH] ipv6: send NEWLINK on RA managed/otherconf changes

2015-08-31 Thread Marius Tomaschewski
The kernel is applying the RA managed/otherconf flags silently and forgets to send ifinfo notify to inform about their change when the router provides a zero reachable_time and retrans_timer as dnsmasq and many routers send it, which just means unspecified by this router and the host should

[Patch v2 RFT net-next 9/9] net: phy: fixed_phy: Set phy capabilities even when link down.

2015-08-31 Thread Andrew Lunn
What features a phy supports is masked in genphy_config_init() by looking at the PHYs BMSR register. If the link is down, fixed_phy_update_regs() will only set the auto- negotiation capable bit in BMSR. Thus genphy_config_init() comes to the conclusion the PHY can only perform 10/Half, and masks

[Patch v2 RFT net-next 0/9] DSA port configuration and status

2015-08-31 Thread Andrew Lunn
Changes since v1: Rewrite 9/9 so that it hopefully does not regression on 868a4215be9a6d80 ("net: phy: fixed_phy: handle link-down case") Stas, please could you test your use case. Added the Acked-by and Reviewed by from Florian Andrew This patchset allows various switch port settings

[Patch v2 RFT net-next 1/9] net: phy: Allow PHY devices to identify themselves as Ethernet switches, etc.

2015-08-31 Thread Andrew Lunn
From: Florian Fainelli Some Ethernet MAC drivers using the PHY library require the hardcoding of link parameters when interfaced to a switch device, SFP module, switch to switch port, etc. This has typically lead to various ad-hoc implementations looking like this: - using

[PATCH net-next v2 3/4] fib, fib6: reject invalid feature bits

2015-08-31 Thread Daniel Borkmann
Feature bits that are invalid should not be accepted by the kernel, only the lower 4 bits may be configured, but not the remaining ones. Even from these 4, 2 of them are unused. Signed-off-by: Daniel Borkmann --- include/uapi/linux/rtnetlink.h | 11 +++

[PATCH net-next v2 4/4] tcp: use dctcp if enabled on the route to the initiator

2015-08-31 Thread Daniel Borkmann
Currently, the following case doesn't use DCTCP, even if it should: A responder has f.e. Cubic as system wide default, but for a specific route to the initiating host, DCTCP is being set in RTAX_CC_ALGO. The initiating host then uses DCTCP as congestion control, but since the initiator sets

[PATCH net-next v2 1/4] net: fib: move metrics parsing to a helper

2015-08-31 Thread Daniel Borkmann
From: Florian Westphal fib_create_info() is already quite large, so before adding more code to the metrics section move that to a helper, similar to ip6_convert_metrics. Suggested-by: Daniel Borkmann Signed-off-by: Florian Westphal ---

Re: [PATCH] net/smsc911x: Fix deferred probe for interrupt

2015-08-31 Thread Grygorii Strashko
On 08/30/2015 12:33 AM, Sergei Shtylyov wrote: > Hello. > > On 8/28/2015 9:50 PM, Tony Lindgren wrote: > >> The interrupt handler may not be available when smsc911x probes if the >> interrupt handler is a GPIO controller for example. Let's fix that >> by adding handling for -EPROBE_DEFER. > >>

[PATCH] ipv4: fix 32b build

2015-08-31 Thread Madalin Bucur
Address remaining issue after 80ec192. Signed-off-by: Madalin Bucur --- net/ipv4/af_inet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index c2d0ebc..96773a2 100644 --- a/net/ipv4/af_inet.c +++

  1   2   >