[PATCH v2 2/2] netfilter: ip6t_SYNPROXY: fix sending window update to client

2015-08-09 Thread Phil Sutter
This is the identical fix as "netfilter: ipt_SYNPROXY: fix sending window update to client" but for the IPv6 variant which obviously suffers from the same issue. Signed-off-by: Phil Sutter --- Changes since v1: - Adjust for v2 changes of first patch. --- net/ipv6/netfilter/ip6t_SYNPROXY.c | 3 ++

[PATCH v2 1/2] netfilter: ip6t_SYNPROXY: fix NULL pointer dereference

2015-08-09 Thread Phil Sutter
This happens when networking namespaces are enabled. Suggested-by: Patrick McHardy Signed-off-by: Phil Sutter --- Changes since v1: - Moved snet param to first place. - Constify snet param. --- net/ipv6/netfilter/ip6t_SYNPROXY.c | 18 ++ 1 file changed, 10 insertions(+), 8 delet

[PATCH] r8169: Filtered data on Rx descriptor status context

2015-08-09 Thread Corcodel Marian
We want to start evaluate an RES Receive error summary only when LS (LastFrag) occurred but without FirstFrag Signed-off-by: Corcodel Marian diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 8bf8c3f..0ee0107 100644 --- a/drivers/net/ethernet/real

Re: [PATCHv2 net-next] dsa: Support multiple MDIO busses

2015-08-09 Thread Sergei Shtylyov
Hello. On 8/9/2015 4:29 AM, Andrew Lunn wrote: When using a cluster of switches, some topologies will have an MDIO bus per switch, not one for the whole cluster. Allow this to be represented in the device tree, by adding an optional mii-bus property at the switch level. Signed-off-by: Andrew

Re: [PATCH] r8169: Filtered data on Rx descriptor status context

2015-08-09 Thread Sergei Shtylyov
Hello. On 8/9/2015 2:57 PM, Corcodel Marian wrote: We want to start evaluate an RES Receive error summary only when LS (LastFrag) occurred but without FirstFrag Signed-off-by: Corcodel Marian diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c i

Re: [RFC PATCH 0/4] Shared vhost design

2015-08-09 Thread Michael S. Tsirkin
On Sat, Aug 08, 2015 at 07:06:38PM -0400, Bandan Das wrote: > Hi Michael, > > "Michael S. Tsirkin" writes: > > > On Mon, Jul 13, 2015 at 12:07:31AM -0400, Bandan Das wrote: > >> Hello, > >> > >> There have been discussions on improving the current vhost design. The > >> first > >> attempt, to

Re: [PATCHv2 net-next] dsa: Support multiple MDIO busses

2015-08-09 Thread Andrew Lunn
On Sun, Aug 09, 2015 at 03:39:25PM +0300, Sergei Shtylyov wrote: > Hello. > > On 8/9/2015 4:29 AM, Andrew Lunn wrote: > > >When using a cluster of switches, some topologies will have an MDIO > >bus per switch, not one for the whole cluster. Allow this to be > >represented in the device tree, by a

net: unix: lockdep warning in unix_stream_sendpage

2015-08-09 Thread Sasha Levin
Hi all, I'm seeing a lockdep warning that was introduced in 869e7c624 ("net: af_unix: implement stream sendpage support"): [377296.160447] == [377296.160449] [ INFO: possible circular locking dependency detected ] [377296.160455] 4.2.0-rc5-next-

Re: [RFC PATCH 0/4] Shared vhost design

2015-08-09 Thread Michael S. Tsirkin
On Sun, Aug 09, 2015 at 05:57:53PM +0300, Eyal Moscovici wrote: > Eyal Moscovici > HL-Cloud Infrastructure Solutions > IBM Haifa Research Lab > > "Michael S. Tsirkin" wrote on 08/09/2015 03:45:47 PM: > > > From: "Michael S. Tsirkin" > > To: Bandan Das > > Cc: k...@vger.kernel.org, netdev@vger.

Re: [PATCH net-next v4 1/4] openvswitch: Move tunnel destroy function to oppenvswitch module.

2015-08-09 Thread Thomas Graf
On 08/05/15 at 08:12pm, Pravin B Shelar wrote: > This function will be used in gre and geneve vport implementations. > > Signed-off-by: Pravin B Shelar Acked-by: Thomas Graf -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.or

Re: [PATCH net-next v4 2/4] ip_gre: Add support to collect tunnel metadata.

2015-08-09 Thread Thomas Graf
On 08/05/15 at 08:12pm, Pravin B Shelar wrote: > Following patch create new tunnel flag which enable > tunnel metadata collection on given device. > > Signed-off-by: Pravin B Shelar LGTM Acked-by: Thomas Graf -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a

Re: [PATCH net-next v4 3/4] openvswitch: Use regular GRE net_device instead of vport

2015-08-09 Thread Thomas Graf
On 08/05/15 at 08:12pm, Pravin B Shelar wrote: > Using flow based tunneling, we can implement > OVS GRE vport. This patch removes all of the OVS > specific GRE code and make OVS use a ip_gre net_device. > Minimal GRE vport is kept to handle compatibility with > current userspace application. > > S

Re: [PATCH net-next v4 4/4] gre: Remove support for sharing GRE protocol hook.

2015-08-09 Thread Thomas Graf
On 08/05/15 at 08:12pm, Pravin B Shelar wrote: > Support for sharing GREPROTO_CISCO port was added so that > OVS gre port and kernel GRE devices can co-exist. After > flow-based tunneling patches OVS GRE protocol processing > is completely moved to ip_gre module. so there is no need > for GRE proto

Re: [PATCHv2 net-next] dsa: Support multiple MDIO busses

2015-08-09 Thread Sergei Shtylyov
On 8/9/2015 5:20 PM, Andrew Lunn wrote: When using a cluster of switches, some topologies will have an MDIO bus per switch, not one for the whole cluster. Allow this to be represented in the device tree, by adding an optional mii-bus property at the switch level. Signed-off-by: Andrew Lunn R

Re: [PATCHv2 net-next] dsa: Support multiple MDIO busses

2015-08-09 Thread Andrew Lunn
> >The optional mii-bus properties i'm adding should be used in > >preference to this global one, for this switch. Keeping the names the > >same makes sense. But i did drop the dsa prefix to indicate it is > >local, not global scope, > >Dropping a vendor prefix usually means that it's (standar

Re: [PATCHv2 net-next] dsa: Support multiple MDIO busses

2015-08-09 Thread Florian Fainelli
Le 08/09/15 10:35, Andrew Lunn a écrit : >>> The optional mii-bus properties i'm adding should be used in >>> preference to this global one, for this switch. Keeping the names the >>> same makes sense. But i did drop the dsa prefix to indicate it is >>> local, not global scope, >> >>Dropping a

Re: [PATCH] r8169: Filtered data on Rx descriptor status context

2015-08-09 Thread Francois Romieu
Corcodel Marian : > We want to start evaluate an RES Receive error summary only > when LS (LastFrag) occurred but without FirstFrag No. The driver does not care about fragmented rx frames (hint: RxMaxSize). -- Ueimor -- To unsubscribe from this list: send the line "unsubscribe netdev" in th

[PATCH 05/10] ss: framed skeleton for json output in ss

2015-08-09 Thread Matthias Tafelmeier
This patch just adds the --json flag to ss. Also it ensures proper stats components bracketization – that goes for ex. TCP, UDP, NETLINK etc. Moreover, this patch prevents human readable headers to be printed. The first element flag ensures, that every first output json container element is treate

[PATCH 09/10] ss: symmetrical formatter extension example

2015-08-09 Thread Matthias Tafelmeier
This commit shall show shortly where to place changes when one wants to extend an ss output formatter with a new handler (format print procedure). The extension is done symmetrically. That means, every up to now existing formatter is extended with a semantically equivalent handler (hr and json form

[PATCH 03/10] ss: removed obsolet fmt functions

2015-08-09 Thread Matthias Tafelmeier
Those functions are obsoleted since the new fmt handler mechanism subsumes their tasks. Rendundancy would be contradictory to the new mechanism. Signed-off-by: Matthias Tafelmeier Suggested-by: Hagen Paul Pfeifer --- misc/ss.c | 190 --

[PATCH 10/10] ss: fixed free on local array for valid json output

2015-08-09 Thread Matthias Tafelmeier
Minor fix to enable json output. Freeing of automatic char array name which will get freed after function stack cleanup. Another one after tcp_stats_fmt for freeing automatic tcpstats struct instance. Signed-off-by: Matthias Tafelmeier Suggested-by: Hagen Paul Pfeifer --- misc/ss.c | 6 --

[PATCH 07/10] ss: renaming and export of current_filter

2015-08-09 Thread Matthias Tafelmeier
Exported current_filter as ss_current_filter, because in the fmt handlers, I need that piece of info to resolve out issues of json. Signed-off-by: Matthias Tafelmeier Suggested-by: Hagen Paul Pfeifer --- misc/ss.c | 218 +++--- 1 file chan

[PATCH 01/10] ss: rooted out ss type declarations for output formatters

2015-08-09 Thread Matthias Tafelmeier
The prospected output formatters and ss do share type declarations like slabstat or tcpstat so that the decision has been made to centralize those declarations in ss_types.h. Potential future declarations shall be placed there. The latter should help amend the extent of ss.c as well. Signed-off-b

[PATCH 04/10] ss: prepare timer for output handler usage

2015-08-09 Thread Matthias Tafelmeier
Minor preparation Patch Renamed, and exported timer to not have to pass it as a function local parameter argument. Signed-off-by: Matthias Tafelmeier Suggested-by: Hagen Paul Pfeifer --- misc/ss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/ss.c b/misc/ss.c index e

[PATCH 08/10] ss: symmetrical subhandler output extension example

2015-08-09 Thread Matthias Tafelmeier
This small sized patch shall convey the locations which have to be changed for a symmetrical output extension. Symmetrical means in this context all existing semantically related handlers in the diverse formatters (for hr and json up to now). Signed-off-by: Matthias Tafelmeier Suggested-by: Hagen

[PATCH 02/10] ss: created formatters for json and hr

2015-08-09 Thread Matthias Tafelmeier
This patch creates a central formatter module that acts as a kind of switch. From there, more specific handler modules for the certain output formats are called. Up to now, humand readable and json do exist. That prepares ss for potential output format extensions in the future. With the help of su

full ss json support and general output simplification

2015-08-09 Thread Matthias Tafelmeier
TLDR: - add full JSON support for ss - Patchset provides a general and easy to use abstraction to extend ss later - Patchset size is large to minimize daily use ("user" should not deal with formation (json, human readble) later on) - Patches 8/10 and 9/10 illustrate how to extend ss for ne

[PATCH 06/10] ss: replaced old output mechanisms with fmt handlers interfaces

2015-08-09 Thread Matthias Tafelmeier
Now, since the fmt (json, hr) handlers are in place, all can be output via these newly deviced code parts. Signed-off-by: Matthias Tafelmeier Suggested-by: Hagen Paul Pfeifer --- misc/ss.c | 332 +- 1 file changed, 153 insertions(+), 1

linux-next: manual merge of the net-next tree with the net tree

2015-08-09 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/ethernet/cavium/Kconfig between commit: 22f54bf932a0 ("net: thunderx: remove effective "default y" from Kconfig if ARCH_THUNDER=y") from the net tree and commit: 274b0b3984a9 ("net: thunderx: Select CO

[PATCH net-next v5 0/4] GRE: Use flow based tunneling for OVS GRE vport.

2015-08-09 Thread Pravin B Shelar
Following patches make use of new Using GRE tunnel meta data collection feature. This allows us to directly use netdev based GRE tunnel implementation. While doing so I have removed GRE demux API which were targeted for OVS. Most of GRE protocol code is now consolidated in ip_gre module. v5-v4: Fi

[PATCH net-next v5 1/4] openvswitch: Move tunnel destroy function to oppenvswitch module.

2015-08-09 Thread Pravin B Shelar
This function will be used in gre and geneve vport implementations. Signed-off-by: Pravin B Shelar Acked-by: Thomas Graf --- net/openvswitch/vport-netdev.c | 21 ++--- net/openvswitch/vport-netdev.h | 2 +- net/openvswitch/vport-vxlan.c | 17 + 3 files changed,

[PATCH net-next v5 2/4] ip_gre: Add support to collect tunnel metadata.

2015-08-09 Thread Pravin B Shelar
Following patch create new tunnel flag which enable tunnel metadata collection on given device. Signed-off-by: Pravin B Shelar Acked-by: Thomas Graf --- include/net/ip_tunnels.h | 7 +- include/uapi/linux/if_tunnel.h | 1 + net/ipv4/ip_gre.c | 195

[PATCH net-next v5 4/4] gre: Remove support for sharing GRE protocol hook.

2015-08-09 Thread Pravin B Shelar
Support for sharing GREPROTO_CISCO port was added so that OVS gre port and kernel GRE devices can co-exist. After flow-based tunneling patches OVS GRE protocol processing is completely moved to ip_gre module. so there is no need for GRE protocol hook. Following patch consolidates GRE protocol relat

[PATCH net-next v5 3/4] openvswitch: Use regular GRE net_device instead of vport

2015-08-09 Thread Pravin B Shelar
Using GRE tunnel meta data collection feature, we can implement OVS GRE vport. This patch removes all of the OVS specific GRE code and make OVS use a ip_gre net_device. Minimal GRE vport is kept to handle compatibility with current userspace application. Signed-off-by: Pravin B Shelar Acked-by: T

Re: [PATCH net-next v4 3/4] openvswitch: Use regular GRE net_device instead of vport

2015-08-09 Thread Pravin Shelar
Thanks for reviews, I sent out patches with the Kconfig fix. On Sun, Aug 9, 2015 at 9:19 AM, Thomas Graf wrote: > On 08/05/15 at 08:12pm, Pravin B Shelar wrote: >> Using flow based tunneling, we can implement >> OVS GRE vport. This patch removes all of the OVS >> specific GRE code and make OVS us

Re: [RFC PATCH] net: ipv4: increase dhcp inter device timeout

2015-08-09 Thread Mugunthan V N
On Friday 07 August 2015 12:45 PM, YOSHIFUJI Hideaki wrote: >> diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c >> > index 8e7328c..bdb8cb5 100644 >> > --- a/net/ipv4/ipconfig.c >> > +++ b/net/ipv4/ipconfig.c >> > @@ -94,7 +94,7 @@ >> > /* Define the timeout for waiting for a DHCP/BOOTP/RARP

Re: [PATCH] net: Unbreak resetting default values for tcp_wmem/udp_wmem_min

2015-08-09 Thread David Miller
From: Calvin Owens Date: Wed, 5 Aug 2015 13:26:54 -0700 > Commit 8133534c760d4083 ("net: limit tcp/udp rmem/wmem to > SOCK_{RCV,SND}BUF_MIN") modified four sysctls to enforce that the values > written to them are not less than SOCK_MIN_{RCV,SND}BUF. > > This change is fine for tcp_rmem and udp_r

Re: [PATCH net-next 1/1] lan78xx: Fix Smatch warnings

2015-08-09 Thread David Miller
From: Date: Wed, 5 Aug 2015 21:26:14 + > diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c > index ec8bd34..3ac405f 100644 > --- a/drivers/net/usb/lan78xx.c > +++ b/drivers/net/usb/lan78xx.c > @@ -291,7 +291,7 @@ static int lan78xx_read_reg(struct lan78xx_net *dev, u32 > ind

Re: [PATCH] [trivial] net:wimax: Fix doucble word "the the" in networking.xml

2015-08-09 Thread David Miller
From: Masanari Iida Date: Thu, 6 Aug 2015 12:52:47 +0900 > This patch fix a double word "the the" > in Documentation/DocBook/networking.xml and > Documentation/DocBook/networking/API-Wimax-report-rfkill-sw.html. > > These files are generated from comment in source, so I had to > fix the typo in

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

2015-08-09 Thread David Miller
From: Vivien Didelot Date: Thu, 6 Aug 2015 01:44:01 -0400 > This patchset refactors the DSA and mv88e6xxx code to use the switchdev FDB > objects. Series applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org M

Re: [PATCH v7 0/5] bpf: Introduce the new ability of eBPF programs to access hardware PMU counter

2015-08-09 Thread David Miller
From: Kaixu Xia Date: Thu, 6 Aug 2015 07:02:31 + > The detail of patches is as follow: > > Patch 1/5 add the necessary core perf APIs perf_event_attrs(), > perf_event_get(),perf_event_read_local() when accessing events > counters in eBPF programs > > Patch 2/5 rewrites part of the bpf_prog_

Re: [PATCH net-next] mpls: Enforce payload type of traffic sent using explicit NULL

2015-08-09 Thread David Miller
From: Robert Shearman Date: Thu, 6 Aug 2015 11:04:56 +0100 > RFC 4182 s2 states that if an IPv4 Explicit NULL label is the only > label on the stack, then after popping the resulting packet must be > treated as a IPv4 packet and forwarded based on the IPv4 header. The > same is true for IPv6 Expl

Re: [PATCH] net: phy: add RealTek RTL8211DN phy id

2015-08-09 Thread David Miller
From: Date: Thu, 6 Aug 2015 19:03:35 +0800 > From: Shaohui Xie > > RTL8211DN is compatible with RTL8211E. > > Signed-off-by: Shaohui Xie Applied to net-next, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org Mor

Re: [PATCH] [trivial] net: ethernet: Fix double word "the the" in eth.c

2015-08-09 Thread David Miller
From: Masanari Iida Date: Thu, 6 Aug 2015 21:27:54 +0900 > This patch fix double word "the the" in > Documentation/DocBook/networking/API-eth-get-headlen.html > Documentation/DocBook/networking/netdev.html > Documentation/DocBook/networking.xml > > These files are generated from comment in sour

[PATCH] eventfd: implementation of EFD_MASK flag

2015-08-09 Thread Damian Hobson-Garcia
From: Martin Sustrik When implementing network protocols in user space, one has to implement fake file descriptors to represent the sockets for the protocol. Polling on such fake file descriptors is a problem (poll/select/epoll accept only true file descriptors) and forces protocol implementers

[RFC/PATCH] Generalize poll events from eventfd

2015-08-09 Thread Damian Hobson-Garcia
Hello all, eventfd is very useful for generating POLLIN/POLLOUT poll events from user space but some applications may want to generate POLLPRI/POLLERR events as well. This patch submission aims to generalize the events generated by an eventfd. This is a resubmission of a patch from Feb 2013[1]. Th

Re: [patch net-next 0/7] mlxsw: Couple of fixes/adjustments

2015-08-09 Thread David Miller
From: Jiri Pirko Date: Thu, 6 Aug 2015 16:41:51 +0200 > From: Jiri Pirko > > Ido Schimmel (5): > mlxsw: Call free_netdev when removing port > mlxsw: Make system port to local port mapping explicit > mlxsw: Simplify mlxsw_sx_port_xmit function > mlxsw: Use correct skb length when dumpin

[PATCH V1 Resend 06/11] drivers: net: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-09 Thread Viresh Kumar
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Acked-by: Murali Karicheri Signed-off-by: Viresh Kumar --- drivers/net/ethernet/ti/netcp_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d

[PATCH V1 Resend 11/11] net: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-09 Thread Viresh Kumar
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Signed-off-by: Viresh Kumar --- net/openvswitch/datapath.c | 2 +- net/sctp/socket.c | 2 +- net/socket.c | 6 +++--- 3 files changed, 5 insertions

Re: [PATCH] eventfd: implementation of EFD_MASK flag

2015-08-09 Thread Damian Hobson-Garcia
Replying to my own post, but I had the following comments/questions. Martin, if you have any response to my comments I would be very happy to hear them. On 2015-08-10 2:51 PM, Damian Hobson-Garcia wrote: > From: Martin Sustrik > [snip] > > write(2): > > User is allowed to write only buffers co

Re: [PATCH] eventfd: implementation of EFD_MASK flag

2015-08-09 Thread Martin Sustrik
On 2015-08-10 08:23, Damian Hobson-Garcia wrote: Replying to my own post, but I had the following comments/questions. Martin, if you have any response to my comments I would be very happy to hear them. On 2015-08-10 2:51 PM, Damian Hobson-Garcia wrote: From: Martin Sustrik [snip] write(2