Re: [PATCH] netfilter: ipvs: avoid unused variable warning

2015-11-30 Thread Simon Horman
On Mon, Nov 30, 2015 at 10:48:34PM +0200, Julian Anastasov wrote: > > Hello, > > On Mon, 30 Nov 2015, Arnd Bergmann wrote: > > > When CONFIG_PROC_FS is disabled, the local 'net' variable in > > ip_vs_app_net_init becomes unused, as gcc warns: > > > > net/netfilter/ipvs/ip_vs_app.c: In fun

Re: [PATCH v2] ravb: add R8A7791 support

2015-11-30 Thread Simon Horman
On Tue, Dec 01, 2015 at 01:01:18AM +0300, Sergei Shtylyov wrote: > Add support for yet another ARM member of the R-Car family, R-Car M2-W, > also known as R8A7791. > > Signed-off-by: Sergei Shtylyov > > --- > The patch is against DaveM's 'net-next.git' repo but I wouldn't mind if it's > applied

[PATCH 1/2 net-next] ravb: Add fallback compatibility strings

2015-11-30 Thread Simon Horman
Add fallback compatibility strings for R-Car Gen 2 & 3 SoC Families. This is in keeping with the fallback scheme being adopted wherever appropriate for drivers for Renesas SoCs. Also correct typo. Signed-off-by: Simon Horman --- Documentation/devicetree/bindings/net/renesas,ravb.txt | 11 ++

[PATCH 2/2 net-next] ravb: Add device tree support for r8a779[123]

2015-11-30 Thread Simon Horman
Simply document new compat strings. As a previous patch adds a generic R-Car Gen2 compat string there appears to be no need for a driver updates. Signed-off-by: Simon Horman --- Documentation/devicetree/bindings/net/renesas,ravb.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Document

[PATCH 0/2 net-next] ravb: More compat strings

2015-11-30 Thread Simon Horman
Hi, this short series adds generic gen2 and gen3, and soc-specific compat strings for the missing gen2 SoCs. Simon Horman (2): ravb: Add fallback compatibility strings ravb: Add device tree support for r8a779[123] Documentation/devicetree/bindings/net/renesas,ravb.txt | 14 -- d

Re: [RFC] ipv6: use a random ifid for headerless devices

2015-11-30 Thread YOSHIFUJI Hideaki
Hi, Bjørn Mork wrote: > 吉藤英明 writes: > +static int addrconf_ifid_random(u8 *eui, struct net_device *dev) >>> +{ >>> + get_random_bytes(eui, 8); >>> + eui[0] |= 0x02; >>> + return 0; >>> +} >>> + >> >> Since random identifier is locally assigned, drop the global bit >> inst

RE: [PATCH 0/3] net: fec: Reset ethernet PHY whenever the enet_out clock

2015-11-30 Thread Duan Andy
From: Lothar Waßmann Sent: Tuesday, December 01, 2015 3:25 PM > To: Duan Fugang-B38611 > Cc: Andrew Lunn; David S. Miller; Estevam Fabio-R49496; Greg Ungerer; > Kevin Hao; Lucas Stach; Philippe Reynes; Richard Cochran; Russell King; > Sascha Hauer; Stefan Agner; linux-ker...@vger.kernel.org; > ne

Re: [PATCH 0/3] net: fec: Reset ethernet PHY whenever the enet_out clock

2015-11-30 Thread Lothar Waßmann
Hi, > From: Lothar Waßmann Sent: Monday, November 30, > 2015 7:33 PM > > To: Andrew Lunn; David S. Miller; Estevam Fabio-R49496; Greg Ungerer; > > Kevin Hao; Lothar Waßmann; Lucas Stach; Duan Fugang-B38611; Philippe > > Reynes; Richard Cochran; Russell King; Sascha Hauer; Stefan Agner; linux- >

Re: [PATCH 1/3] net: fec: Remove redundant checks for NULL clk pointer

2015-11-30 Thread Lothar Waßmann
Hi, > From: Lothar Waßmann Sent: Monday, November 30, > 2015 7:33 PM > > To: Andrew Lunn; David S. Miller; Estevam Fabio-R49496; Greg Ungerer; > > Kevin Hao; Lothar Waßmann; Lucas Stach; Duan Fugang-B38611; Philippe > > Reynes; Richard Cochran; Russell King; Sascha Hauer; Stefan Agner; linux- >

Re: [PATCH v3 4/4] net: diag: Support destroying TCP sockets.

2015-11-30 Thread Lorenzo Colitti
On Tue, Dec 1, 2015 at 3:23 PM, kbuild test robot wrote: >>> ERROR: "tcp_send_active_reset" undefined! I used tcp_send_active_reset from tcp_diag.ko without an EXPORT_SYMBOL_GPL in net/ipv4/tcp_output.c. Fixed in patch v4. -- To unsubscribe from this list: send the line "unsubscribe netdev" in th

BUG: soft lockup happened for ixgbevf

2015-11-30 Thread Ding Tianhong
Hi Everyone: I found this problem when using the Testgine to send package to the 82599 ethernet: 1.wait for the speed to 10G/bit, it's ok. 2.then down the eth and then up, loop for several times. 3.then the softlockup happened. [ 317.005148] IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes read

[PATCH v4 2/4] net: diag: Add the ability to destroy a socket from userspace.

2015-11-30 Thread Lorenzo Colitti
This allows a privileged userspace process, such as a connection manager or system administration tool, to close sockets belonging to other apps when the network they were established on has disconnected. It is needed on laptops and mobile hosts to ensure that network switches / disconnects do not

[PATCH v4 4/4] net: diag: Support destroying TCP sockets.

2015-11-30 Thread Lorenzo Colitti
This implements SOCK_DESTROY for TCP sockets. It causes all blocking calls on the socket to fail fast with ECONNABORTED and causes a protocol close of the socket. It informs the other end of the connection by sending a RST, i.e., initiating a TCP ABORT as per RFC 793. ECONNABORTED was chosen for co

[PATCH v4 1/4] net: diag: split inet_diag_dump_one_icsk into two

2015-11-30 Thread Lorenzo Colitti
Currently, inet_diag_dump_one_icsk finds a socket and then dumps its information to userspace. Split it into a part that finds the socket and a part that dumps the information. Signed-off-by: Lorenzo Colitti --- include/linux/inet_diag.h | 5 + net/ipv4/inet_diag.c | 42 +++

[PATCH v4 3/4] net: diag: Support SOCK_DESTROY for inet sockets.

2015-11-30 Thread Lorenzo Colitti
This passes the SOCK_DESTROY operation to the underlying protocol diag handler, or returns -EINVAL if that handler does not define a destroy operation. Most of this patch is just renaming functions. This is not strictly necessary, but it would be fairly counterintuitive to have the code to destroy

[PATCH V2 1/3] vhost: introduce vhost_has_work()

2015-11-30 Thread Jason Wang
This path introduces a helper which can give a hint for whether or not there's a work queued in the work list. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 7 +++ drivers/vhost/vhost.h | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.

[PATCH V2 2/3] vhost: introduce vhost_vq_more_avail()

2015-11-30 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 13 + drivers/vhost/vhost.h | 1 + 2 files changed, 14 insertions(+) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 163b365..4f45a03 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -1633,6 +163

[PATCH V2 3/3] vhost_net: basic polling support

2015-11-30 Thread Jason Wang
This patch tries to poll for new added tx buffer or socket receive queue for a while at the end of tx/rx processing. The maximum time spent on polling were specified through a new kind of vring ioctl. Signed-off-by: Jason Wang --- drivers/vhost/net.c| 72 +

[PATCH V2 0/3] basic busy polling support for vhost_net

2015-11-30 Thread Jason Wang
Hi all: This series tries to add basic busy polling for vhost net. The idea is simple: at the end of tx/rx processing, busy polling for new tx added descriptor and rx receive socket for a while. The maximum number of time (in us) could be spent on busy polling was specified ioctl. Test A were don

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-11-30 Thread Alexander Duyck
On Mon, Nov 30, 2015 at 7:48 PM, David Miller wrote: > From: "Singhai, Anjali" > Date: Mon, 30 Nov 2015 21:42:37 + > >> The reason for receive being different than transmit is, on TX side >> driver can provide the meta data for where the checksum field is and >> what is the length that needs

Re: [PATCH v3 4/4] net: diag: Support destroying TCP sockets.

2015-11-30 Thread kbuild test robot
Hi Lorenzo, [auto build test ERROR on net/master] [also build test ERROR on v4.4-rc3 next-20151127] url: https://github.com/0day-ci/linux/commits/Lorenzo-Colitti/net-diag-split-inet_diag_dump_one_icsk-into-two/20151201-103636 config: i386-allmodconfig (attached as .config) reproduce:

Re: [PATCH] ravb: add R8A7791 support

2015-11-30 Thread Simon Horman
On Mon, Nov 30, 2015 at 10:08:22PM +0300, Sergei Shtylyov wrote: > Hello. > > On 11/30/2015 03:42 AM, Simon Horman wrote: > > Add support for yet another ARM member of the R-Car family, R-Car M2, > also > >> > >>>R-Car M2-W? > >> > >>Right, forgot about the postfixes. > >> > kno

Re: [PATCH] ravb: add R8A7791 support

2015-11-30 Thread Simon Horman
On Mon, Nov 30, 2015 at 09:08:57AM +0100, Geert Uytterhoeven wrote: > Hi Simon, > > On Mon, Nov 30, 2015 at 1:42 AM, Simon Horman wrote: > > On Mon, Nov 30, 2015 at 12:14:21AM +0300, Sergei Shtylyov wrote: > >> On 11/29/2015 10:26 PM, Geert Uytterhoeven wrote: > >> >>Add support for yet another

[PATCH] ath6kl: Use vmalloc to allocate ar->fw for api1 method

2015-11-30 Thread Brent Taylor
Since commit 8437754c83351d6213c1a47ff029c1126d6042a7, ar->fw is expected to be pointing to memory allocated by vmalloc. If the api1 method (via ath6kl_fetch_fw_api1) is used to allocate memory for ar->fw, then kmemdup is used. This patch checks if the firmware being loaded is the 'fw' image,

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-11-30 Thread Tom Herbert
On Mon, Nov 30, 2015 at 5:28 PM, Jesse Gross wrote: > On Mon, Nov 30, 2015 at 5:02 PM, Tom Herbert wrote: >> On Mon, Nov 30, 2015 at 4:25 PM, Jesse Gross wrote: >>> On Sun, Nov 29, 2015 at 7:21 PM, David Miller wrote: From: Tom Herbert Date: Mon, 23 Nov 2015 13:53:44 -0800 >

Re: [PATCH net-next 3/3] vhost_net: basic polling support

2015-11-30 Thread Jason Wang
On 11/30/2015 06:44 PM, Michael S. Tsirkin wrote: > On Wed, Nov 25, 2015 at 03:11:29PM +0800, Jason Wang wrote: >> > This patch tries to poll for new added tx buffer or socket receive >> > queue for a while at the end of tx/rx processing. The maximum time >> > spent on polling were specified thro

Re: [PATCH net-next 2/3] vhost: introduce vhost_vq_more_avail()

2015-11-30 Thread Jason Wang
On 11/30/2015 04:22 PM, Michael S. Tsirkin wrote: > On Wed, Nov 25, 2015 at 03:11:28PM +0800, Jason Wang wrote: >> Signed-off-by: Jason Wang >> --- >> drivers/vhost/vhost.c | 26 +- >> drivers/vhost/vhost.h | 1 + >> 2 files changed, 18 insertions(+), 9 deletions(-) >>

Re: Increasing skb->mark size

2015-11-30 Thread Luuk Paulussen
On 12/01/2015 04:55 PM, David Miller wrote: > Lots of things are interesting and useful to many people. > > Even the most useful feature I would balk at it's implementation > if it bloated up sk_buff. Period. > > You don't understand what the core issue is, which is sk_buff size > which has an eff

Re: size overflow in function qdisc_tree_decrease_qlen net/sched/sch_api.c

2015-11-30 Thread Cong Wang
On Mon, Nov 30, 2015 at 5:00 PM, Daniele Fucini wrote: > Hello, > > I'm using a Grsecurity patched kernel (version 4.2.6-201511282239) and > I'm getting system freezes due to PaX detecting a size overflow in > function qdisc_tree_decrease_qlen net/sched/sch_api.c:769 whenever I use > Transmission

Re: Increasing skb->mark size

2015-11-30 Thread David Miller
From: Luuk Paulussen Date: Tue, 1 Dec 2015 00:12:24 + > On 11/30/2015 05:49 PM, David Miller wrote: >> From: Luuk Paulussen >> Date: Mon, 30 Nov 2015 04:10:43 + >> >>> On 11/30/2015 02:58 PM, David Miller wrote: If you guys, really anyone, can find a way to remove some other 32-bit

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-11-30 Thread David Miller
Please learn how to properly quote people and respond to list postings. The material from Tom you are quoting looks like it is something you are writing. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-11-30 Thread David Miller
From: Tom Herbert Date: Mon, 30 Nov 2015 13:48:36 -0800 > Please look at how CHECKSUM_COMPLETE interface works. Description is > in sk_buff.h or > http://people.netfilter.org/pablo/netdev0.1/papers/UDP-Encapsulation-in-Linux.pdf. +1 -- To unsubscribe from this list: send the line "unsubscribe ne

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-11-30 Thread David Miller
From: "Singhai, Anjali" Date: Mon, 30 Nov 2015 21:42:37 + > The reason for receive being different than transmit is, on TX side > driver can provide the meta data for where the checksum field is and > what is the length that needs to be check summed to the HW on a per > packet basis. On Rx th

Re: Add a SOCK_DESTROY operation to close sockets from userspace

2015-11-30 Thread Tom Herbert
On Mon, Nov 30, 2015 at 6:32 PM, Lorenzo Colitti wrote: > Here is an updated version of the SOCK_DESTROY patch > incorporating some of the feedback received. > > There were two substantial concerns expressed on the approach > taken in this patch. The first was that it allows applications > to caus

Re: [ovs-dev] [PATCH net-next v3 1/8] netfilter: Remove IP_CT_NEW_REPLY definition.

2015-11-30 Thread Jarno Rajahalme
> On Nov 30, 2015, at 10:16 AM, Jarno Rajahalme wrote: > > >> On Nov 25, 2015, at 21:41, Simon Horman wrote: >> >>> On Wed, Nov 25, 2015 at 04:08:14PM -0800, Jarno Rajahalme wrote: >>> Remove the definition of IP_CT_NEW_REPLY from the kernel as it does >>> not make sense. This allows the def

[PATCH v3 1/4] net: diag: split inet_diag_dump_one_icsk into two

2015-11-30 Thread Lorenzo Colitti
Currently, inet_diag_dump_one_icsk finds a socket and then dumps its information to userspace. Split it into a part that finds the socket and a part that dumps the information. Signed-off-by: Lorenzo Colitti --- include/linux/inet_diag.h | 5 + net/ipv4/inet_diag.c | 42 +++

RE: [PATCH 2/3] net: fec: convert to using gpiod framework

2015-11-30 Thread Duan Andy
From: Lothar Waßmann Sent: Monday, November 30, 2015 7:33 PM > To: Andrew Lunn; David S. Miller; Estevam Fabio-R49496; Greg Ungerer; > Kevin Hao; Lothar Waßmann; Lucas Stach; Duan Fugang-B38611; Philippe > Reynes; Richard Cochran; Russell King; Sascha Hauer; Stefan Agner; linux- > ker...@vger.ker

[PATCH v3 3/4] net: diag: Support SOCK_DESTROY for inet sockets.

2015-11-30 Thread Lorenzo Colitti
This passes the SOCK_DESTROY operation to the underlying protocol diag handler, or returns -EINVAL if that handler does not define a destroy operation. Most of this patch is just renaming functions. This is not strictly necessary, but it would be fairly counterintuitive to have the code to destroy

Re: Add a SOCK_DESTROY operation to close sockets from userspace

2015-11-30 Thread Lorenzo Colitti
Here is an updated version of the SOCK_DESTROY patch incorporating some of the feedback received. There were two substantial concerns expressed on the approach taken in this patch. The first was that it allows applications to cause the Linux TCP stack to behave improperly. I believe this is addres

[PATCH v3 2/4] net: diag: Add the ability to destroy a socket from userspace.

2015-11-30 Thread Lorenzo Colitti
This allows a privileged userspace process, such as a connection manager or system administration tool, to close sockets belonging to other apps when the network they were established on has disconnected. It is needed on laptops and mobile hosts to ensure that network switches / disconnects do not

RE: [PATCH 3/3] net: fec: Reset ethernet PHY whenever the enet_out clock is being enabled

2015-11-30 Thread Duan Andy
From: Lothar Waßmann Sent: Monday, November 30, 2015 7:33 PM > To: Andrew Lunn; David S. Miller; Estevam Fabio-R49496; Greg Ungerer; > Kevin Hao; Lothar Waßmann; Lucas Stach; Duan Fugang-B38611; Philippe > Reynes; Richard Cochran; Russell King; Sascha Hauer; Stefan Agner; linux- > ker...@vger.ker

[PATCH v3 4/4] net: diag: Support destroying TCP sockets.

2015-11-30 Thread Lorenzo Colitti
This implements SOCK_DESTROY for TCP sockets. It causes all blocking calls on the socket to fail fast with ECONNABORTED and causes a protocol close of the socket. It informs the other end of the connection by sending a RST, i.e., initiating a TCP ABORT as per RFC 793. ECONNABORTED was chosen for co

RE: [PATCH 1/3] net: fec: Remove redundant checks for NULL clk pointer

2015-11-30 Thread Duan Andy
From: Lothar Waßmann Sent: Monday, November 30, 2015 7:33 PM > To: Andrew Lunn; David S. Miller; Estevam Fabio-R49496; Greg Ungerer; > Kevin Hao; Lothar Waßmann; Lucas Stach; Duan Fugang-B38611; Philippe > Reynes; Richard Cochran; Russell King; Sascha Hauer; Stefan Agner; linux- > ker...@vger.ker

Re: [PATCH net] ipv6: kill sk_dst_lock

2015-11-30 Thread Eric Dumazet
On Tue, 2015-12-01 at 10:44 +0900, YOSHIFUJI Hideaki wrote: > Hi, > > Eric Dumazet wrote: > > diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h > > index 2bfb2ad2fab1..877f682989b8 100644 > > --- a/include/net/ip6_route.h > > +++ b/include/net/ip6_route.h > > @@ -133,27 +133,18 @@ voi

Re: [PATCH net-next v3 03/17] net: ethtool: add new ETHTOOL_GSETTINGS/SSETTINGS API

2015-11-30 Thread Ben Hutchings
On Mon, 2015-11-30 at 14:05 -0800, David Decotigny wrote: > From: David Decotigny > > This patch defines a new ETHTOOL_GSETTINGS/SSETTINGS API, handled by > the new get_ksettings/set_ksettings callbacks. This API provides > support for most legacy ethtool_cmd fields, adds support for larger > lin

RE: [PATCH 0/3] net: fec: Reset ethernet PHY whenever the enet_out clock

2015-11-30 Thread Duan Andy
From: Lothar Waßmann Sent: Monday, November 30, 2015 7:33 PM > To: Andrew Lunn; David S. Miller; Estevam Fabio-R49496; Greg Ungerer; > Kevin Hao; Lothar Waßmann; Lucas Stach; Duan Fugang-B38611; Philippe > Reynes; Richard Cochran; Russell King; Sascha Hauer; Stefan Agner; linux- > ker...@vger.ker

Re: [PATCH net] ipv6: kill sk_dst_lock

2015-11-30 Thread YOSHIFUJI Hideaki
Hi, Eric Dumazet wrote: > diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h > index 2bfb2ad2fab1..877f682989b8 100644 > --- a/include/net/ip6_route.h > +++ b/include/net/ip6_route.h > @@ -133,27 +133,18 @@ void rt6_clean_tohost(struct net *net, struct in6_addr > *gateway); > /* >

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-11-30 Thread Jesse Gross
On Mon, Nov 30, 2015 at 5:02 PM, Tom Herbert wrote: > On Mon, Nov 30, 2015 at 4:25 PM, Jesse Gross wrote: >> On Sun, Nov 29, 2015 at 7:21 PM, David Miller wrote: >>> From: Tom Herbert >>> Date: Mon, 23 Nov 2015 13:53:44 -0800 >>> The bad effect of this model is that it is encourages HW ven

Re: 4.4-rc2 xfrm_lookup kasan trace

2015-11-30 Thread Eric Dumazet
On Mon, 2015-11-30 at 18:27 -0500, Dave Jones wrote: > My router fell off the internet. When I got home, I found a few hundred > of these traces in the logs, and it refusing to route packets. > > Oddly, it only prints a stack trace, and no clue as to why it printed that > trace. > > There was al

[PATCH] drivers/net/usb/ax88179_178a: added Cypress GX3 VID_04b4/PID_3610

2015-11-30 Thread ASIX_Allan [Office]
Added to support Cypress GX3 SuperSpeed to Gigabit Ethernet Bridge Controller (VID_04b4/PID_3610). Signed-off-by: Allan Chou Tested-by: Allan Chou --- This patch had been verified on x86 Linux kernel 4.1.6 system with Cypress GX3 SuperSpeed to Gigabit Ethernet Bridge Controller (VID_04b4/PID_36

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-11-30 Thread Tom Herbert
On Mon, Nov 30, 2015 at 4:25 PM, Jesse Gross wrote: > On Sun, Nov 29, 2015 at 7:21 PM, David Miller wrote: >> From: Tom Herbert >> Date: Mon, 23 Nov 2015 13:53:44 -0800 >> >>> The bad effect of this model is that it is encourages HW vendors to >>> continue implement HW protocol specific support

size overflow in function qdisc_tree_decrease_qlen net/sched/sch_api.c

2015-11-30 Thread Daniele Fucini
Hello, I'm using a Grsecurity patched kernel (version 4.2.6-201511282239) and I'm getting system freezes due to PaX detecting a size overflow in function qdisc_tree_decrease_qlen net/sched/sch_api.c:769 whenever I use Transmission BitTorrent client. On the Grsecurity forum I was told it's probabl

Re: [PATCH net-next v3 03/17] net: ethtool: add new ETHTOOL_GSETTINGS/SSETTINGS API

2015-11-30 Thread David Decotigny
On Mon, Nov 30, 2015 at 4:04 PM, kbuild test robot wrote: >>> include/linux/ethtool.h:129:3: warning: comparison of unsigned expression >>> >= 0 is always true [-Wtype-limits] prepared a fix for that, will be part of next patch update after feedback. -- To unsubscribe from this list: send the li

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-11-30 Thread Jesse Gross
On Sun, Nov 29, 2015 at 7:21 PM, David Miller wrote: > From: Tom Herbert > Date: Mon, 23 Nov 2015 13:53:44 -0800 > >> The bad effect of this model is that it is encourages HW vendors to >> continue implement HW protocol specific support for encapsulations, we >> get so much more benefit if they i

Re: Increasing skb->mark size

2015-11-30 Thread Luuk Paulussen
On 11/30/2015 05:49 PM, David Miller wrote: > From: Luuk Paulussen > Date: Mon, 30 Nov 2015 04:10:43 + > >> On 11/30/2015 02:58 PM, David Miller wrote: >>> If you guys, really anyone, can find a way to remove some other 32-bit >>> item from sk_buff, you can expand skb->mark to 64-bits. But oth

Re: [PATCH net-next v3 03/17] net: ethtool: add new ETHTOOL_GSETTINGS/SSETTINGS API

2015-11-30 Thread kbuild test robot
Hi David, [auto build test WARNING on: net-next/master] [also build test WARNING on: v4.4-rc3 next-20151127] url: https://github.com/0day-ci/linux/commits/David-Decotigny/RFC-new-ETHTOOL_GSETTINGS-SSETTINGS-API/20151201-062040 config: blackfin-allyesconfig (attached as .config) reproduce:

Re: [PATCH net-next v3 04/17] tx4939: use __ethtool_get_ksettings

2015-11-30 Thread Ralf Baechle
On Mon, Nov 30, 2015 at 02:05:42PM -0800, David Decotigny wrote: Acked-by: Ralf Baechle Ralf -- 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] net: add support for netdev notifier error injection

2015-11-30 Thread Nikolay Aleksandrov
On 12/01/2015 12:48 AM, Akinobu Mita wrote: > 2015-11-28 21:45 GMT+09:00 Nikolay Aleksandrov : >> From: Nikolay Aleksandrov >> >> This module allows to insert errors in some of netdevice's notifier >> events. All network drivers use these notifiers to signal various events >> and to check if they

Re: [PATCH] net: add support for netdev notifier error injection

2015-11-30 Thread Akinobu Mita
2015-11-28 21:45 GMT+09:00 Nikolay Aleksandrov : > From: Nikolay Aleksandrov > > This module allows to insert errors in some of netdevice's notifier > events. All network drivers use these notifiers to signal various events > and to check if they are allowed, e.g. PRECHANGEMTU and CHANGEMTU > afte

Re: [PATCH net] bpf: fix allocation warnings in bpf maps and integer overflow

2015-11-30 Thread Alexei Starovoitov
On Mon, Nov 30, 2015 at 11:16:46PM +0100, Daniel Borkmann wrote: > > So, when creating a sufficiently large map where map->key_size + > map->value_size > would be > MAX_BPF_STACK (but map->key_size still <= MAX_BPF_STACK), we can > only > read the map from an eBPF program, but not update it. In

4.4-rc2 xfrm_lookup kasan trace

2015-11-30 Thread Dave Jones
My router fell off the internet. When I got home, I found a few hundred of these traces in the logs, and it refusing to route packets. Oddly, it only prints a stack trace, and no clue as to why it printed that trace. There was also nothing in the log prior to this that indicates how it got that

Re: user controllable usermodehelper in br_stp_if.c

2015-11-30 Thread Richard Weinberger
Am 30.11.2015 um 21:14 schrieb Kees Cook: > On Sun, Nov 29, 2015 at 2:43 PM, Richard Weinberger wrote: >> Hi! >> >> By spawning new network and user namesapces an unprivileged user >> is able to execute /sbin/bridge-stp within the initial mount namespace >> with global root rights. >> While this c

Re: [PATCH net-next v6] mpls: support for dead routes

2015-11-30 Thread Robert Shearman
On 29/11/15 03:38, Roopa Prabhu wrote: From: Roopa Prabhu } } - nh_index = hash % rt->rt_nhn; + return hash; +} + +static struct mpls_nh *mpls_select_multipath(struct mpls_route *rt, +struct sk_buff *skb, bool bos)

Re: [PATCH net] bridge: Only call /sbin/bridge-stp for the initial network namespace

2015-11-30 Thread Richard Weinberger
Am 30.11.2015 um 22:38 schrieb Eric W. Biederman: > > There is no defined mechanism to pass network namespace information > into /sbin/bridge-stp therefore don't even try to invoke it except > for bridge devices in the initial network namespace. > > It is possible for unprivileged users to cause

[PATCH iproute] ila: Add support for ILA lwtunnels

2015-11-30 Thread Tom Herbert
This patch: - Adds a utility function for parsing a 64 bit address - Adds a utility function for converting a 64 bit address to ASCII - Adds and ILA encap type in lwt tunnels Signed-off-by: Tom Herbert --- include/utils.h | 3 +++ ip/iproute_lwtunnel.c | 45

Re: [PATCH 09/13] mm: memcontrol: generalize the socket accounting jump label

2015-11-30 Thread Johannes Weiner
On Mon, Nov 30, 2015 at 05:28:49PM -0500, Jason Baron wrote: > On 11/30/2015 04:50 PM, Johannes Weiner wrote: > > On Mon, Nov 30, 2015 at 04:08:18PM -0500, Jason Baron wrote: > >> We're trying to move to the updated API, so this should be: > >> static_branch_unlikely(&memcg_sockets_enabled_key) > >

[RESEND PATCH] arm64: bpf: add 'store immediate' instruction

2015-11-30 Thread Yang Shi
aarch64 doesn't have native store immediate instruction, such operation has to be implemented by the below instruction sequence: Load immediate to register Store register Signed-off-by: Yang Shi CC: Zi Shen Lim CC: Xi Wang --- Thsi patch might be buried by the storm of xadd discussion, however

[PATCH net-next] alx: remove pointless assignment

2015-11-30 Thread Jarod Wilson
Reasonably sure this doesn't serve any purpose. CC: Jay Cliburn CC: Chris Snook CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson --- drivers/net/ethernet/atheros/alx/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/atheros/alx/main.c b/drivers/net/ethernet/

Re: [PATCH net-next v5] mpls: support for dead routes

2015-11-30 Thread Robert Shearman
On 28/11/15 06:15, roopa wrote: On 11/25/15, 8:18 AM, David Miller wrote: From: Roopa Prabhu Date: Tue, 24 Nov 2015 15:22:22 -0800 v4 -v5 - if kmemdup fails, modify the original route in place. This is a corner case and only side effect is that in the remote case of km

Re: [PATCH 09/13] mm: memcontrol: generalize the socket accounting jump label

2015-11-30 Thread Jason Baron
On 11/30/2015 04:50 PM, Johannes Weiner wrote: > On Mon, Nov 30, 2015 at 04:08:18PM -0500, Jason Baron wrote: >> We're trying to move to the updated API, so this should be: >> static_branch_unlikely(&memcg_sockets_enabled_key) >> >> see: include/linux/jump_label.h for details. > > Good point. Ther

Re: [PATCH net] bridge: Only call /sbin/bridge-stp for the initial network namespace

2015-11-30 Thread Eric W. Biederman
Stephen Hemminger writes: > On Mon, 30 Nov 2015 15:38:15 -0600 > ebied...@xmission.com (Eric W. Biederman) wrote: > >> >> There is no defined mechanism to pass network namespace information >> into /sbin/bridge-stp therefore don't even try to invoke it except >> for bridge devices in the initial

Re: [PATCH net] bpf: fix allocation warnings in bpf maps and integer overflow

2015-11-30 Thread Daniel Borkmann
On 11/30/2015 07:13 PM, Alexei Starovoitov wrote: On Mon, Nov 30, 2015 at 03:34:35PM +0100, Daniel Borkmann wrote: diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c index 3f4c99e06c6b..b1e53b79c586 100644 --- a/kernel/bpf/arraymap.c +++ b/kernel/bpf/arraymap.c @@ -28,11 +28,17 @@ static

[PATCH] ip neigh: device is optional for proxy entries

2015-11-30 Thread Konstantin Khlebnikov
Though dumping such entries crashes present kernels. Signed-off-by: Konstantin Khlebnikov --- ip/ipneigh.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ip/ipneigh.c b/ip/ipneigh.c index 54655842ed38..92b7cd6f2a75 100644 --- a/ip/ipneigh.c +++ b/ip/ipneigh.c

[PATCH net-next v3 00/17] RFC: new ETHTOOL_GSETTINGS/SSETTINGS API

2015-11-30 Thread David Decotigny
From: David Decotigny History: v3 - rebased v2 on top of latest net-next, minor checkpatch/printf %*pb updates v2 - keep return 0 in get_settings when successful, instead of propagating positive result from driver's get_settings callback. v1 - original submission The main goal of t

[PATCH] net/neighbour: fix crash at dumping device-agnostic proxy entries

2015-11-30 Thread Konstantin Khlebnikov
Proxy entries could have null pointer to net-device. Signed-off-by: Konstantin Khlebnikov Fixes: 84920c1420e2 ("net: Allow ipv6 proxies and arp proxies be shown with iproute2") Cc: # v3.4 --- net/core/neighbour.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/co

[PATCH net-next v3 01/17] net: usnic: remove unused call to ethtool_ops::get_settings

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/infiniband/hw/usnic/usnic_ib_verbs.c b/drivers/infiniband/hw/usnic/usnic_ib_verbs.c index f8e3211..5b60579 100644 --- a/drivers/inf

[PATCH net-next v3 05/17] net: usnic: use __ethtool_get_ksettings

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/usnic/usnic_ib_verbs.c b/drivers/infiniband/hw/usnic/usnic_ib_verbs.c index e082170..e0d12d4 1

[PATCH net-next v3 02/17] net: usnic: use __ethtool_get_settings

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/usnic/usnic_ib_verbs.c b/drivers/infiniband/hw/usnic/usnic_ib_verbs.c index 5b60579..e082170 100644 --

[PATCH net-next v3 06/17] net: bonding: use __ethtool_get_ksettings

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/bonding/bond_main.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 9e0f8a7..67d724d 100644 --- a/drivers/net/bonding/b

[PATCH net-next v3 03/17] net: ethtool: add new ETHTOOL_GSETTINGS/SSETTINGS API

2015-11-30 Thread David Decotigny
From: David Decotigny This patch defines a new ETHTOOL_GSETTINGS/SSETTINGS API, handled by the new get_ksettings/set_ksettings callbacks. This API provides support for most legacy ethtool_cmd fields, adds support for larger link mode masks (up to 4064 bits, variable length), and removes ethtool_c

[PATCH net-next v3 04/17] tx4939: use __ethtool_get_ksettings

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- arch/mips/txx9/generic/setup_tx4939.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/mips/txx9/generic/setup_tx4939.c b/arch/mips/txx9/generic/setup_tx4939.c index e3733cd..4a3ebf6 100644 --- a/arch/mips/

[PATCH net-next v3 09/17] net: team: use __ethtool_get_ksettings

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/team/team.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index 651d35e..288ca01 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.

Re: [PATCH net] bridge: Only call /sbin/bridge-stp for the initial network namespace

2015-11-30 Thread Stephen Hemminger
On Mon, 30 Nov 2015 15:38:15 -0600 ebied...@xmission.com (Eric W. Biederman) wrote: > > There is no defined mechanism to pass network namespace information > into /sbin/bridge-stp therefore don't even try to invoke it except > for bridge devices in the initial network namespace. > > It is possib

[PATCH net-next] sfc: use ALIGN macro for aligning frame sizes

2015-11-30 Thread Jarod Wilson
Don't open-code it. CC: Solarflare linux maintainers CC: Shradha Shah CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson --- drivers/net/ethernet/sfc/net_driver.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethe

[PATCH net-next v3 10/17] net: fcoe: use __ethtool_get_ksettings

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/scsi/fcoe/fcoe_transport.c | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/drivers/scsi/fcoe/fcoe_transport.c b/drivers/scsi/fcoe/fcoe_transport.c index d7597c0..9049197

[PATCH net-next v3 08/17] net: macvlan: use __ethtool_get_ksettings

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/macvlan.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 06c8bfe..a95b793 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -940,

[3.19.y-ckt stable] Patch "can: Use correct type in sizeof() in nla_put()" has been added to staging queue

2015-11-30 Thread Kamal Mostafa
This is a note to let you know that I have just added a patch titled can: Use correct type in sizeof() in nla_put() to the linux-3.19.y-queue branch of the 3.19.y-ckt extended stable tree which can be found at: http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.19.y-queue Thi

[PATCH net-next v3 12/17] net: 8021q: use __ethtool_get_ksettings

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- net/8021q/vlan_dev.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c index fded865..e607fee 100644 --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_dev.c @@ -620,12 +6

[PATCH net-next v3 07/17] net: ipvlan: use __ethtool_get_ksettings

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/ipvlan/ipvlan_main.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c index a9268db..63b3aa5 100644 --- a/drivers/net/ipvlan/ipvlan

[PATCH net-next v3 11/17] net: rdma: use __ethtool_get_ksettings

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- include/rdma/ib_addr.h | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/include/rdma/ib_addr.h b/include/rdma/ib_addr.h index 1152859..1820f26 100644 --- a/include/rdma/ib_addr.h +++ b/include/rdma/ib_add

[PATCH net-next v3 13/17] net: bridge: use __ethtool_get_ksettings

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- net/bridge/br_if.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index ec02f58..e6de008 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -36,10 +36,10 @@ */

[PATCH net-next v3 15/17] net: ethtool: remove unused __ethtool_get_settings

2015-11-30 Thread David Decotigny
From: David Decotigny replaced by __ethtool_get_ksettings. Signed-off-by: David Decotigny --- include/linux/ethtool.h | 4 net/core/ethtool.c | 49 ++--- 2 files changed, 14 insertions(+), 39 deletions(-) diff --git a/include/linux/ethtoo

[PATCH net-next v3 16/17] net: mlx4: convenience predicate for debug messages

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h b/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h index 35de7d2..b04054d 100644

[PATCH net-next v3 14/17] net: core: use __ethtool_get_ksettings

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- net/core/net-sysfs.c | 15 +-- net/packet/af_packet.c | 11 +-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index f88a62a..3dd4bb1 100644 --- a/net/cor

[PATCH net-next v3 17/17] net: mlx4: use new ETHTOOL_G/SSETTINGS API

2015-11-30 Thread David Decotigny
From: David Decotigny Signed-off-by: David Decotigny --- drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 323 drivers/net/ethernet/mellanox/mlx4/en_main.c| 1 + drivers/net/ethernet/mellanox/mlx4/mlx4_en.h| 1 + 3 files changed, 157 insertions(+), 168 dele

[PATCH v2] ravb: add R8A7791 support

2015-11-30 Thread Sergei Shtylyov
Add support for yet another ARM member of the R-Car family, R-Car M2-W, also known as R8A7791. Signed-off-by: Sergei Shtylyov --- The patch is against DaveM's 'net-next.git' repo but I wouldn't mind if it's applied to 'net.git' instead. :-) Changes in version 2: - fixed the SoC name in the cha

[PATCH net] bridge: Only call /sbin/bridge-stp for the initial network namespace

2015-11-30 Thread Eric W. Biederman
There is no defined mechanism to pass network namespace information into /sbin/bridge-stp therefore don't even try to invoke it except for bridge devices in the initial network namespace. It is possible for unprivileged users to cause /sbin/bridge-stp to be invoked for any network device name whi

RE: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-11-30 Thread Singhai, Anjali
-Original Message- From: Tom Herbert [mailto:t...@herbertland.com] Sent: Monday, November 30, 2015 8:36 AM To: Singhai, Anjali Cc: Linux Kernel Network Developers ; Jesse Gross ; Patil, Kiran Subject: Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload On Mon, Nov 23, 2015 at

Re: [PATCH 09/13] mm: memcontrol: generalize the socket accounting jump label

2015-11-30 Thread Johannes Weiner
On Mon, Nov 30, 2015 at 04:08:18PM -0500, Jason Baron wrote: > We're trying to move to the updated API, so this should be: > static_branch_unlikely(&memcg_sockets_enabled_key) > > see: include/linux/jump_label.h for details. Good point. There is another struct static_key in there as well. How abo

Re: [PATCH v1 1/6] net: Generalize udp based tunnel offload

2015-11-30 Thread Tom Herbert
On Mon, Nov 30, 2015 at 1:42 PM, Singhai, Anjali wrote: > > > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Sunday, November 29, 2015 7:23 PM > To: t...@herbertland.com > Cc: Brandeburg, Jesse ; Singhai, Anjali > ; je...@kernel.org; netdev@vger.kernel.org; P

  1   2   3   >