RE: [PATCH net-next 1/8] qed: LL2 to use packed information for tx

2017-06-09 Thread Mintz, Yuval
> > +struct qed_ll2_tx_pkt_info { > > + u8 num_of_bds; > > + u16 vlan; > > + u8 bd_flags; > > + u16 l4_hdr_offset_w;/* from start of packet */ > > + enum qed_ll2_tx_dest tx_dest; > > + enum qed_ll2_roce_flavor_type qed_roce_flavor; > > + dma_addr_t first_frag; > > + u16 first_fr

Re: [PATCH 2/2 net-next] net: stmmac: Improve documentation on AVB parameters

2017-06-09 Thread Giuseppe CAVALLARO
Hi Joao On 6/8/2017 8:02 PM, Joao Pinto wrote: This patch fixes the description of the DT AVB parameters and gives an accurate example. It was also included the base values that were used to get the example' CBS paremeter values. Signed-off-by: Joao Pinto --- Documentation/devicetree/binding

Re: [PATCH net-next 0/8] Bug fixes in ena ethernet driver

2017-06-09 Thread Belgazal, Netanel
My apologies, I was not aware. Will make sure this won't happen again. Regards, Netanel From: David Miller Sent: Friday, June 9, 2017 2:17 AM To: Belgazal, Netanel Cc: netdev@vger.kernel.org; Woodhouse, David; Machulsky, Zorik; Matushevsky, Alexander; BSH

Re: [B.A.T.M.A.N.] [PATCH net] net: batman-adv: Fix possible memleaks when fail to register_netdevice

2017-06-09 Thread Sven Eckelmann
On Dienstag, 25. April 2017 20:03:20 CEST gfree.w...@foxmail.com wrote: > From: Gao Feng > > Because the func batadv_softif_init_late allocate some resources and > it would be invoked in register_netdevice. So we need to invoke the > func batadv_softif_free instead of free_netdev to cleanup when

RE: [B.A.T.M.A.N.] [PATCH net] net: batman-adv: Fix possible memleaks when fail to register_netdevice

2017-06-09 Thread 高峰
> From: Sven Eckelmann [mailto:s...@narfation.org] > Sent: Friday, June 9, 2017 3:23 PM > Subject: Re: [B.A.T.M.A.N.] [PATCH net] net: batman-adv: Fix possible memleaks > when fail to register_netdevice > > On Dienstag, 25. April 2017 20:03:20 CEST gfree.w...@foxmail.com wrote: > > From: Gao Feng

RE: [PATCH net-next 1/8] qed: LL2 to use packed information for tx

2017-06-09 Thread David Laight
From: David Miller > Sent: 09 June 2017 00:24 > > From: Yuval Mintz > Date: Thu, 8 Jun 2017 19:13:16 +0300 > > > @@ -67,6 +79,21 @@ struct qed_ll2_stats { > > u64 sent_bcast_pkts; > > }; > > > > +struct qed_ll2_tx_pkt_info { > > + u8 num_of_bds; > > + u16 vlan; > > + u8 bd_flags; > >

RE: [PATCH net-next 1/8] qed: LL2 to use packed information for tx

2017-06-09 Thread Mintz, Yuval
> -Original Message- > From: David Laight [mailto:david.lai...@aculab.com] > Sent: Friday, June 09, 2017 10:28 AM > To: 'David Miller' ; Mintz, Yuval > > Cc: netdev@vger.kernel.org; linux-r...@vger.kernel.org; Kalderon, Michal > > Subject: RE: [PATCH net-next 1/8] qed: LL2 to use packed

Re: [PATCH] wireless: wlcore: spi: remove unnecessary variable

2017-06-09 Thread Kalle Valo
"Gustavo A. R. Silva" writes: > Remove unnecessary variable and refactor the code. > > Addresses-Coverity-ID: 1365000 > Signed-off-by: Gustavo A. R. Silva I'll remove "wireless:" from the prefix. -- Kalle Valo

[PATCH net] net/flow: fix fc->percpu NULL pointer dereference

2017-06-09 Thread Hangbin Liu
Now we will force to do garbage collection if any policy removed in xfrm_policy_flush(). But during xfrm_net_exit(). We call flow_cache_fini() first and set set fc->percpu to NULL. Then after we call xfrm_policy_fini() -> frxm_policy_flush() -> flow_cache_flush(), we will get NULL pointer dereferen

Re: [PATCH net] net/flow: fix fc->percpu NULL pointer dereference

2017-06-09 Thread Hangbin Liu
Hi Steffen, BTW, If we put the check in xfrm_policy_flush(), we can prevent it earlier. But If we put the check in flow_cache_percpu_empty(), we can prevent other functions set fc->percpu to NULL, although not much possible : ) So I'm not quite sure whether we should put the check in flow_cache_p

Re: [PATCH 1/5] net: mvpp2: remove mvpp2_bm_cookie_{build,pool_get}

2017-06-09 Thread kbuild test robot
-cleanups/20170609-083211 config: arm64-defconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save

RE: [PATCH net-next 1/8] qed: LL2 to use packed information for tx

2017-06-09 Thread David Laight
From: Mintz, Yuval > Sent: 09 June 2017 08:52 > > From: David Laight [mailto:david.lai...@aculab.com] > > Sent: Friday, June 09, 2017 10:28 AM > > To: 'David Miller' ; Mintz, Yuval > > > > Cc: netdev@vger.kernel.org; linux-r...@vger.kernel.org; Kalderon, Michal > > > > Subject: RE: [PATCH net-nex

Re: [PATCH v2 7/8] net: mvmdio: add xmdio support

2017-06-09 Thread Antoine Tenart
On Thu, Jun 08, 2017 at 09:42:21AM -0700, Florian Fainelli wrote: > On 06/08/2017 02:26 AM, Antoine Tenart wrote: > > This patch adds the xMDIO interface support in the mvmdio driver. This > > interface is used in Ethernet controllers on Marvell 370, 7k and 8k (as > > of now). The xSMI interface su

Re: [PATCH net] net/flow: fix fc->percpu NULL pointer dereference

2017-06-09 Thread Steffen Klassert
On Fri, Jun 09, 2017 at 04:23:01PM +0800, Hangbin Liu wrote: > Hi Steffen, > > BTW, If we put the check in xfrm_policy_flush(), we can prevent it earlier. > But If we put the check in flow_cache_percpu_empty(), we can prevent > other functions set fc->percpu to NULL, although not much possible : )

Re: [PATCH net] net/flow: fix fc->percpu NULL pointer dereference

2017-06-09 Thread Xin Long
On Fri, Jun 9, 2017 at 4:32 PM, Steffen Klassert wrote: > On Fri, Jun 09, 2017 at 04:23:01PM +0800, Hangbin Liu wrote: >> Hi Steffen, >> >> BTW, If we put the check in xfrm_policy_flush(), we can prevent it earlier. >> But If we put the check in flow_cache_percpu_empty(), we can prevent >> other f

[PATCH net RESEND] net: rps: send out pending IPI's on CPU hotplug

2017-06-09 Thread Ashwanth Goli
IPI's from the victim cpu are not handled in dev_cpu_callback. So these pending IPI's would be sent to the remote cpu only when NET_RX is scheduled on the victim cpu and since this trigger is unpredictable it would result in packet latencies on the remote cpu. This patch add support to send the pe

Re: [PATCH net-next] net: phy: use of_mdio_parse_addr

2017-06-09 Thread Michael Ellerman
Liviu Dudau writes: > On Fri, Jun 02, 2017 at 02:22:51PM -0400, David Miller wrote: >> From: Jon Mason >> Date: Wed, 31 May 2017 15:43:30 -0400 >> >> > use of_mdio_parse_addr() in place of an OF read of reg and a bounds >> > check (which is litterally the exact same thing that >> > of_mdio_pars

Re: [PATCH net] net/flow: fix fc->percpu NULL pointer dereference

2017-06-09 Thread Hangbin Liu
2017-06-09 16:43 GMT+08:00 Xin Long : > On Fri, Jun 9, 2017 at 4:32 PM, Steffen Klassert > wrote: >> On Fri, Jun 09, 2017 at 04:23:01PM +0800, Hangbin Liu wrote: >>> Hi Steffen, >>> >>> BTW, If we put the check in xfrm_policy_flush(), we can prevent it earlier. >>> But If we put the check in flow_

[PATCH 07/11] wireless: ipw2x00: convert to use DRIVER_ATTR_RW

2017-06-09 Thread Greg Kroah-Hartman
We are trying to get rid of DRIVER_ATTR(), and the ipw2x00 driver's attributes can be trivially changed to use DRIVER_ATTR_RW(). Cc: Stanislav Yakovlev Cc: Kalle Valo Cc: Cc: Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/ipw2x00/ipw2100.c | 8 +++- drivers/net/wireless

[PATCH 06/11] net: ehea: convert to use DRIVER_ATTR_RO

2017-06-09 Thread Greg Kroah-Hartman
We are trying to get rid of DRIVER_ATTR(), and the ehea driver's attribute can be trivially changed to use DRIVER_ATTR_RO(). Cc: Douglas Miller Cc: Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/ibm/ehea/ehea_main.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff

[PATCH net-next 11/11] r8152: replace napi_complete with napi_complete_done

2017-06-09 Thread Hayes Wang
Change from using napi_complete to napi_complete_done to allow for the use of gro_flush_timeout in tuning network processing. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r81

[PATCH net-next 10/11] r8152: avoid rx queue more than 1000 packets

2017-06-09 Thread Hayes Wang
Stop queuing rx packets if it is more than 1000. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 204f4b2..fa29583 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152

[PATCH net-next 09/11] r8152: check if disabling ALDPS is finished

2017-06-09 Thread Hayes Wang
Use PLA 0xe000 bit 8 to check if disabling ALDPS is finished. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index f43b7a8..204f4b2 100644 --- a/drivers/net/usb/r81

Re: [PATCH v3 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-06-09 Thread Ding Tianhong
Hi John: Thanks for the reviewing, I will fix it in next version. Ding On 2017/6/8 1:55, John Garry wrote: > On 07/06/2017 10:16, Ding Tianhong wrote: > > Hi Ding, > > A few general style comments: > >> The PCIe Device Control Register use the bit 4 to indicate that >> whether the device is

[PATCH net-next 08/11] r8152: move the initialization to reset_resume function

2017-06-09 Thread Hayes Wang
Move tp->rtl_ops.init() from rtl8152_resume() to rtl8152_reset_resume(). The initialization is only necessary for reset_resume(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/n

[PATCH net-next 07/11] r8152: move the default coalesce setting for RTL8153

2017-06-09 Thread Hayes Wang
Only RTL8153 could set coalesce, so move the default setting for rtl8152_probe() to r8153_init(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152

[PATCH net-next 05/11] r8152: adjust rtl8153_runtime_enable function

2017-06-09 Thread Hayes Wang
Adjust the order of rtl8153_runtime_enable() according to the suggestion from the engineer. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index e569c48..32e83fd 10064

[PATCH net-next 06/11] r8152: adjust U2P3 for RTL8153

2017-06-09 Thread Hayes Wang
Use another way to keep disabling the U2P3 for both RTL_VER_03 and RTL_VER_04. Move enabling U2P3 from r8153_init() to r8153_hw_phy_cfg(). The engineer ask the setting should be done after PHY settings. Disable U2P3 first in rtl8153_up(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c |

[PATCH net-next 04/11] r8152: move the setting of rx aggregation

2017-06-09 Thread Hayes Wang
Move the setting from r8153_first_init() to r8153_init(). It only needs to be set once. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 9a794db..e569c48 1006

[PATCH net-next 03/11] r8152: adjust the settings about MAC clock speed down for RTL8153

2017-06-09 Thread Hayes Wang
The MAC clock speed down could be enabled if the U1/U2 is disabled. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index b8c904f..9a794

[PATCH net-next 01/11] r8152: add r8153_phy_status function

2017-06-09 Thread Hayes Wang
Use r8153_phy_status() to check phy status of RTL8153. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 37 + 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index fd31fab..9239dfb 100644

[PATCH net-next 02/11] r8152: adjust lpm settings for RTL8153

2017-06-09 Thread Hayes Wang
Enable lpm after r8153_init() and remove other enable/disable lpm. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 9239dfb..b8c904f 100644 --- a/drivers/net/usb/r

[PATCH net-next 00/11] r8152: minor adjustment

2017-06-09 Thread Hayes Wang
Adjust some code to make it reasonable or satisfy the suggestion from the engineers. Hayes Wang (11): r8152: add r8153_phy_status function r8152: adjust lpm settings for RTL8153 r8152: adjust the settings about MAC clock speed down for RTL8153 r8152: move the setting of rx aggregation r8

[PATCH 05/11] net: caif: convert to use DRIVER_ATTR_RO

2017-06-09 Thread Greg Kroah-Hartman
We are trying to get rid of DRIVER_ATTR(), and the caif driver's attributes can be trivially changed to use DRIVER_ATTR_RO(). Cc: Dmitry Tarnyagin Cc: Signed-off-by: Greg Kroah-Hartman --- drivers/net/caif/caif_spi.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-)

Re: [PATCH 07/11] wireless: ipw2x00: convert to use DRIVER_ATTR_RW

2017-06-09 Thread Kalle Valo
Greg Kroah-Hartman writes: > We are trying to get rid of DRIVER_ATTR(), and the ipw2x00 driver's > attributes can be trivially changed to use DRIVER_ATTR_RW(). > > Cc: Stanislav Yakovlev > Cc: Kalle Valo > Cc: > Cc: > Signed-off-by: Greg Kroah-Hartman Looks good to me. I assume that I shoul

Re: [PATCH 07/11] wireless: ipw2x00: convert to use DRIVER_ATTR_RW

2017-06-09 Thread Greg Kroah-Hartman
On Fri, Jun 09, 2017 at 12:25:44PM +0300, Kalle Valo wrote: > Greg Kroah-Hartman writes: > > > We are trying to get rid of DRIVER_ATTR(), and the ipw2x00 driver's > > attributes can be trivially changed to use DRIVER_ATTR_RW(). > > > > Cc: Stanislav Yakovlev > > Cc: Kalle Valo > > Cc: > > Cc:

[PATCH v4.11 -stable] esp4: Fix udpencap for local TCP packets.

2017-06-09 Thread Steffen Klassert
Locally generated TCP packets are usually cloned, so we do skb_cow_data() on this packets. After that we need to reload the pointer to the esp header. On udpencap this header has an offset to skb_transport_header, so take this offset into account. This is a backport of: commit 0e78a87306a ("esp4:

Re: [PATCH net] net/flow: fix fc->percpu NULL pointer dereference

2017-06-09 Thread Xin Long
On Fri, Jun 9, 2017 at 5:06 PM, Hangbin Liu wrote: > 2017-06-09 16:43 GMT+08:00 Xin Long : >> On Fri, Jun 9, 2017 at 4:32 PM, Steffen Klassert >> wrote: >>> On Fri, Jun 09, 2017 at 04:23:01PM +0800, Hangbin Liu wrote: Hi Steffen, BTW, If we put the check in xfrm_policy_flush(), we

Re: [PATCH net-next 1/2] bpf: Fix test_bpf_obj_id() when the bpf_jit_enable sysctl is diabled

2017-06-09 Thread Daniel Borkmann
On 06/09/2017 07:30 AM, Martin KaFai Lau wrote: test_bpf_obj_id() should not expect a non zero jited_prog_len to be returned by bpf_obj_get_info_by_fd() when net.core.bpf_jit_enable is 0. The patch checks for net.core.bpf_jit_enable and has different expectation on jited_prog_len. This patch al

Re: [PATCH net-next 2/2] bpf: Fix test_obj_id.c for llvm 5.0

2017-06-09 Thread Daniel Borkmann
On 06/09/2017 07:30 AM, Martin KaFai Lau wrote: llvm 5.0 does not like the section name and the function name to be the same: clang -I. -I./include/uapi -I../../../include/uapi \ -I../../../../samples/bpf/ \ -Wno-compare-distinct-pointer-types \ -O2 -target bpf -c \

Re: [PATCH net-next 3/6] netvsc: use typed pointer for internal state

2017-06-09 Thread Sergei Shtylyov
Hello. On 6/9/2017 2:21 AM, Stephen Hemminger wrote: The element netvsc_device:extension is always a point to RNDIS Pointer, maybe? information. Signed-off-by: Stephen Hemminger --- drivers/net/hyperv/hyperv_net.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/d

Re: [Intel-wired-lan] [i40e] regression on TCP stream and TCP maerts, kernel-4.12.0-0.rc2

2017-06-09 Thread Adrian Tomasov
On Thu, 2017-06-01 at 19:18 +, Duyck, Alexander H wrote: > On Thu, 2017-06-01 at 12:14 +0200, Adrian Tomasov wrote: > > > > On Wed, 2017-05-31 at 14:42 -0700, Alexander Duyck wrote: > > > > > > > > > On Wed, May 31, 2017 at 6:48 AM, Adrian Tomasov > > com> > > > wrote: > > > > > > > > > >

[PATCH net-next] qed: add qed_int_sb_init() stub function

2017-06-09 Thread Arnd Bergmann
When CONFIG_QED_SRIOV is disabled, we get a build error: drivers/net/ethernet/qlogic/qed/qed_int.c: In function 'qed_int_sb_init': drivers/net/ethernet/qlogic/qed/qed_int.c:1499:4: error: implicit declaration of function 'qed_vf_set_sb_info'; did you mean 'qed_mcp_get_resc_info'? [-Werror=implic

Re: [PATCH] net: vrf: Make add_fib_rules per network namespace flag

2017-06-09 Thread Petr Machata
David Ahern writes: > Commit 1aa6c4f6b8cd8 ("net: vrf: Add l3mdev rules on first device create") > adds the l3mdev FIB rule the first time a VRF device is created. However, > it only creates the rule once and only in the namespace the first device > is created - which may not be init_net. Fix by

Re: [PATCH] af_unix: Add sockaddr length checks before accessing sa_family in bind and connect handlers

2017-06-09 Thread Mateusz Jurczyk
On Thu, Jun 8, 2017 at 10:04 PM, David Miller wrote: > From: Mateusz Jurczyk > Date: Thu, 8 Jun 2017 11:13:36 +0200 > >> Verify that the caller-provided sockaddr structure is large enough to >> contain the sa_family field, before accessing it in bind() and connect() >> handlers of the AF_UNIX so

[PATCH] mwifiex: fixes the trivial print

2017-06-09 Thread Caesar Wang
We have always met the unused log be printed as following. ... [23193.523182] mwifiex_pcie :01:00.0: mwifiex_get_cfp: cannot find cfp by band 2& channel=13 freq=0 [23378.633684] mwifiex_pcie :01:00.0: mwifiex_get_cfp: cannot find cfp by band 2& channel=13 freq=0 Maybe that's relat

Re: [PATCH 33/44] openrisc: remove arch-specific dma_supported implementation

2017-06-09 Thread Geert Uytterhoeven
Hi Christoph, On Thu, Jun 8, 2017 at 3:25 PM, Christoph Hellwig wrote: > This implementation is simply bogus - hexagon only has a simple openrisc? > direct mapped DMA implementation and thus doesn't care about the > address. > > Signed-off-by: Christoph Hellwig > --- > arch/openrisc/include/a

Re: [PATCH net] net/flow: fix fc->percpu NULL pointer dereference

2017-06-09 Thread Hangbin Liu
On Fri, Jun 09, 2017 at 05:49:50PM +0800, Xin Long wrote: > another fix is to move xfrm_garbage_collect out of xfrm_policy_flush. > I could only see two places need to call it. > something like: > > --- a/net/key/af_key.c > +++ b/net/key/af_key.c > @@ -2755,6 +2755,8 @@ static int pfkey_spdflush(s

Re: [PATCH net] net/flow: fix fc->percpu NULL pointer dereference

2017-06-09 Thread Hangbin Liu
2017-06-09 20:29 GMT+08:00 Hangbin Liu : > On Fri, Jun 09, 2017 at 05:49:50PM +0800, Xin Long wrote: >> another fix is to move xfrm_garbage_collect out of xfrm_policy_flush. >> I could only see two places need to call it. >> something like: >> >> --- a/net/key/af_key.c >> +++ b/net/key/af_key.c >>

Re: [PATCH] net: Fix inconsistent teardown and release of private netdev state.

2017-06-09 Thread Johannes Berg
Hi Dave, I hope you don't mind a question or two for my understanding here. Actually, this got pretty long... but I think there's a bug in here. (For background, I'm looking into this because I'm interested in what to do about backporting this to older kernels, or better, how to deal with it in

Re: [PATCH v6 00/21] net-next: stmmac: add dwmac-sun8i ethernet driver

2017-06-09 Thread Maxime Ripard
On Sat, Jun 03, 2017 at 12:24:22AM +0200, Maxime Ripard wrote: > Hi, > > On Fri, Jun 02, 2017 at 10:22:05AM -0400, David Miller wrote: > > From: Maxime Ripard > > Date: Fri, 2 Jun 2017 11:13:20 +0200 > > > > > On Fri, Jun 02, 2017 at 08:37:52AM +0200, Maxime Ripard wrote: > > >> On Thu, Jun 01,

[PATCH 3/6] can: peak_usb: fix product-id endianness in error message

2017-06-09 Thread Marc Kleine-Budde
From: Johan Hovold Make sure to use the USB device product-id stored in host-byte order in a probe error message. Also remove a redundant reassignment of the local usb_dev variable which had already been used to retrieve the product id. Signed-off-by: Johan Hovold Signed-off-by: Marc Kleine-Bu

[PATCH 5/6] can: af_can: namespace support: fix lockdep splat: properly initialize spin_lock

2017-06-09 Thread Marc Kleine-Budde
This patch uses spin_lock_init() instead of __SPIN_LOCK_UNLOCKED() to initialize the per namespace net->can.can_rcvlists_lock lock to fix this lockdep warning: | INFO: trying to register non-static key. | the code is fine but needs lockdep annotation. | turning off the locking correctness validato

[PATCH 6/6] can: enable CAN FD for virtual CAN devices by default

2017-06-09 Thread Marc Kleine-Budde
From: Oliver Hartkopp CAN FD capable CAN interfaces can handle (classic) CAN 2.0 frames too. New users usually fail at their first attempt to explore CAN FD on virtual CAN interfaces due to the current CAN_MTU default. Set the MTU to CANFD_MTU by default to reduce this confusion. If someone *rea

[PATCH 1/6] can: dev: make can_change_state() robust to be called with cf == NULL

2017-06-09 Thread Marc Kleine-Budde
In OOM situations where no skb can be allocated, can_change_state() may be called with cf == NULL. As this function updates the state and error statistics it's not an option to skip the call to can_change_state() in OOM situations. This patch makes can_change_state() robust, so that it can be call

[PATCH 4/6] can: gs_usb: fix memory leak in gs_cmd_reset()

2017-06-09 Thread Marc Kleine-Budde
This patch adds the missing kfree() in gs_cmd_reset() to free the memory that is not used anymore after usb_control_msg(). Cc: linux-stable Cc: Maximilian Schneider Signed-off-by: Marc Kleine-Budde --- drivers/net/can/usb/gs_usb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/n

pull-request: can 2017-06-09

2017-06-09 Thread Marc Kleine-Budde
n.git tags/linux-can-fixes-for-4.12-20170609 for you to fetch changes up to 97edec3a11cf6f73f2e45c3035b5ff8e4c3543dd: can: enable CAN FD for virtual CAN devices by default (2017-06-09 14:39:02 +0200) linux-can-fixes-for-4.12-201

[PATCH 2/6] can: peak_canfd: fix uninitialized symbol warnings

2017-06-09 Thread Marc Kleine-Budde
From: Stephane Grosjean This patch fixes two uninitialized symbol warnings in the new code adding support of the PEAK-System PCAN-PCI Express FD boards, in the socket-CAN network protocol family. Signed-off-by: Stephane Grosjean Reported-by: Dan Carpenter Signed-off-by: Marc Kleine-Budde ---

[PATCHv2 net] net/flow: fix fc->percpu NULL pointer dereference

2017-06-09 Thread Hangbin Liu
Now we will force to do garbage collection if any policy removed in xfrm_policy_flush(). But during xfrm_net_exit(). We call flow_cache_fini() first and set set fc->percpu to NULL. Then after we call xfrm_policy_fini() -> frxm_policy_flush() -> flow_cache_flush(), we will get NULL pointer dereferen

Re: [PATCH net-next v2 1/7] net: dsa: mv888e6xxx: do not use netdev printing

2017-06-09 Thread Andrew Lunn
On Thu, Jun 08, 2017 at 06:34:08PM -0400, Vivien Didelot wrote: > The mv888e6xxx driver accesses a port's netdev mostly for printing. > > This is bad for 2 reasons: DSA and CPU ports do not have a netdev > pointer; it doesn't give us a correct picture of why a DSA driver might > need to access a p

Re: [PATCH net-next v2 3/7] net: dsa: mv88e6xxx: use bridge state values

2017-06-09 Thread Andrew Lunn
On Thu, Jun 08, 2017 at 06:34:10PM -0400, Vivien Didelot wrote: > Reuse the BR_STATE_* values to abstract a port STP state value. > > This provides shorter names and better control over the DSA switch > operation call. > > Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn Andrew

Re: [PATCH v4 3/7] dt-bindings: net: Document Intel pch_gbe binding

2017-06-09 Thread Rob Herring
On Mon, Jun 05, 2017 at 10:31:32AM -0700, Paul Burton wrote: > Introduce documentation for a device tree binding for the Intel Platform > Controller Hub (PCH) GigaBit Ethernet (GBE) device. Although this is a > PCIe device & thus largely auto-detectable, this binding will be used to > provide the d

Re: [RFC PATCH net-next 2/5] bpf/verifier: rework value tracking

2017-06-09 Thread Daniel Borkmann
On 06/08/2017 06:45 PM, Alexei Starovoitov wrote: [...] I think Daniel will be happy to test your next rev of the patches. I'll test them as well. At least 'insn_processed' from C code in tools/testing/selftests/bpf/ is a good estimate of how these changes affect pruning. Without having looked

Re: [PATCH v2 7/8] net: mvmdio: add xmdio support

2017-06-09 Thread Andrew Lunn
On Fri, Jun 09, 2017 at 10:25:41AM +0200, Antoine Tenart wrote: > On Thu, Jun 08, 2017 at 09:42:21AM -0700, Florian Fainelli wrote: > > On 06/08/2017 02:26 AM, Antoine Tenart wrote: > > > This patch adds the xMDIO interface support in the mvmdio driver. This > > > interface is used in Ethernet cont

Re: Repeatable inet6_dump_fib crash in stock 4.12.0-rc4+

2017-06-09 Thread David Ahern
On 6/8/17 11:55 PM, Cong Wang wrote: > On Thu, Jun 8, 2017 at 2:27 PM, Ben Greear wrote: >> >> As far as I can tell, the patch did not help, or at least we still reproduce >> the >> crash easily. > > netlink dump is serialized by nlk->cb_mutex so I don't think that > patch makes any sense w.r.t r

[PATCH net-next] bonding: warn user when 802.3ad speed is unknown

2017-06-09 Thread Nicolas Dichtel
Make it explicit in the log. Suggested-by: Andrew Lunn Signed-off-by: Nicolas Dichtel --- drivers/net/bonding/bond_3ad.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c index b44a6aeb346d..b15b177662b0 100644 --- a/drivers/n

RE: [PATCH net-next] qed: add qed_int_sb_init() stub function

2017-06-09 Thread Mintz, Yuval
> When CONFIG_QED_SRIOV is disabled, we get a build error: > > drivers/net/ethernet/qlogic/qed/qed_int.c: In function 'qed_int_sb_init': > drivers/net/ethernet/qlogic/qed/qed_int.c:1499:4: error: implicit declaration > of function 'qed_vf_set_sb_info'; did you mean 'qed_mcp_get_resc_info'? [- > We

[no subject]

2017-06-09 Thread Mrs Alice Walton
I have a charity proposal for you

[PATCH net] net: phy: add missing SPEED_14000

2017-06-09 Thread Nicolas Dichtel
From: Joe Perches Fixes: 0d7e2d2166f6 ("IB/ipoib: add get_link_ksettings in ethtool") Signed-off-by: Joe Perches Signed-off-by: Nicolas Dichtel --- drivers/net/phy/phy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 7524caa0f29d..eebb

[PATCH net-next] cxgb4: fix memory leak in init_one()

2017-06-09 Thread Ganesh Goudar
Free up mbox_log allocated for PF0 to PF3. Fixes: 7829451c695e ("cxgb4: Add control net_device for configuring PCIe VF") Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/

[PATCH net-next 2/2] netns: fix error code when the nsid is already used

2017-06-09 Thread Nicolas Dichtel
When the user tries to assign a specific nsid, idr_alloc() is called with the range [nsid, nsid+1]. If this nsid is already used, idr_alloc() returns ENOSPC (No space left on device). In our case, it's better to return EEXIST to make it clear that the nsid is not available. CC: Jamal Hadi Salim S

[PATCH net-next 1/2] netns: define extack error msg for nsis cmds

2017-06-09 Thread Nicolas Dichtel
It helps the user to identify errors. CC: Jamal Hadi Salim Signed-off-by: Nicolas Dichtel --- net/core/net_namespace.c | 42 +- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 26bbfa

Re: [PATCH net-next 1/8] qed: LL2 to use packed information for tx

2017-06-09 Thread David Miller
From: "Mintz, Yuval" Date: Fri, 9 Jun 2017 07:08:54 + > But one thing I thought of asking - do we consider layouts of relatively > insignificant structures to be some golden coding standard? It just shows lack of thought when writing things. I want to see code that shows the author put some

Re: [PATCH v2 7/8] net: mvmdio: add xmdio support

2017-06-09 Thread Antoine Tenart
Hi Andrew, On Fri, Jun 09, 2017 at 03:26:24PM +0200, Andrew Lunn wrote: > On Fri, Jun 09, 2017 at 10:25:41AM +0200, Antoine Tenart wrote: > > On Thu, Jun 08, 2017 at 09:42:21AM -0700, Florian Fainelli wrote: > > > > > > If I get this right, the xMDIO controller is actually a superset of the > > >

Re: [PATCH] af_unix: Add sockaddr length checks before accessing sa_family in bind and connect handlers

2017-06-09 Thread David Miller
From: Mateusz Jurczyk Date: Fri, 9 Jun 2017 13:15:40 +0200 > On Thu, Jun 8, 2017 at 10:04 PM, David Miller wrote: >> From: Mateusz Jurczyk >> Date: Thu, 8 Jun 2017 11:13:36 +0200 >> >>> Verify that the caller-provided sockaddr structure is large enough to >>> contain the sa_family field, befor

[PATCH] Fix some mroute forwarding issues in vrf's

2017-06-09 Thread Donald Sharp
This patch fixes two issues: 1) When forwarding on *,G mroutes that are in a vrf, the kernel was dropping information about the actual incoming interface when calling ip_mr_forward from ip_mr_input. This caused ip_mr_forward to send the multicast packet back out the incoming interface. Fix this b

[PATCH v2 net-next 1/8] qed: LL2 to use packed information for tx

2017-06-09 Thread Yuval Mintz
First step in revising the LL2 interface, this declares qed_ll2_tx_pkt_info as part of the ll2 interface, and uses it for transmission instead of receiving lots of parameters. Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed_ll2.c | 127 + drivers/n

[PATCH v2 net-next 0/8] qed*: Light L2 updates

2017-06-09 Thread Yuval Mintz
This series does a major overhaul of the LL2 logic in qed. The single biggest change done here is in #5 where we're changing the API qed provides for LL2 [both internally in case of storage and externally in case of RoCE] to become callback-based to allow cleaner scalability in preperation to the f

[PATCH v2 net-next 2/8] qed: Revise ll2 Rx completion

2017-06-09 Thread Yuval Mintz
This introduces qed_ll2_comp_rx_data as a public struct and moves handling of Rx packets in LL2 into using it. Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed_ll2.c | 84 ++- include/linux/qed/qed_ll2_if.h| 26 ++ 2 files changed

[PATCH v2 net-next 4/8] qed: LL2 code relocations

2017-06-09 Thread Yuval Mintz
Instead of having the OOO logic packetd, divide it with rest of code according to establish/release flows. Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed_ll2.c | 58 +++ 1 file changed, 28 insertions(+), 30 deletions(-) diff --git a/drivers/net/et

[PATCH v2 net-next 5/8] qed*: LL2 callback operations

2017-06-09 Thread Yuval Mintz
From: Michal Kalderon LL2 today is interrupt driven - when tx/rx completion arrives [or any other indication], qed needs to operate on the connection and pass the information to the protocol-driver [or internal qed consumer]. Since we have several flavors of ll2 employeed by the driver, each hand

[PATCH v2 net-next 3/8] qed: Cleaner seperation of LL2 inputs

2017-06-09 Thread Yuval Mintz
A LL2 connection [qed_ll2_info] has a sub-structure of type qed_ll2_conn that contain various inputs for ll2 acquisition, but the connection also utilizes a couple of other inputs. Restructure the input structure to include all the inputs and refactor the code necessary to populate those. Signed-

[PATCH v2 net-next 6/8] qed: No need for LL2 frags indication

2017-06-09 Thread Yuval Mintz
This is a legacy leftover; There's no current flow where 'frags_mapped' would be set. Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed_ll2.c | 31 --- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_

[PATCH v2 net-next 8/8] qed: collect GSI port statistics

2017-06-09 Thread Yuval Mintz
The LL2 statistics already have place holders for these, but haven't populated them so far. Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed_ll2.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/net/ethernet/qlogic/qed/qed_ll2.c b/drivers/n

[PATCH v2 net-next 7/8] qed: Call rx_release_cb() when flushing LL2

2017-06-09 Thread Yuval Mintz
Driver to inform the connection owner that the its buffers are being released as part of a flush. Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed_ll2.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_ll2.c

[PATCH net 0/2] bnx2x: Fix malicious VFs indication

2017-06-09 Thread Yuval Mintz
It was discovered that for a VF there's a simple [yet uncommon] scenario which would cause device firmware to declare that VF as malicious - Add a vlan interface on top of a VF and disable txvlan offloading for that VF [causing VF to transmit packets where vlan is on payload]. Patch #1 corrects dr

Re: [PATCH] net: Fix inconsistent teardown and release of private netdev state.

2017-06-09 Thread David Miller
From: Johannes Berg Date: Fri, 09 Jun 2017 14:45:25 +0200 > Under drivers/ in general, I count more than 400 calls to > register_netdev[ice](), but only 39 that set the new needs_free_netdev. > Some will overlap and have the same ops, but still, that's a rather > small portion of them. The logic

[PATCH net 2/2] bnx2x: Don't post statistics to malicious VFs

2017-06-09 Thread Yuval Mintz
Once firmware indicates that a given VF is malicious and until that VF passes an FLR all bets are off - PF can't know anything is happening to the VF [since VF can't communicate anything to its PF]. But PF is currently still periodically asking device to collect statistics for the VF which might in

[PATCH net 1/2] bnx2x: Allow vfs to disable txvlan offload

2017-06-09 Thread Yuval Mintz
VF clients are configured as enforced, meaning firmware is validating the correctness of their ethertype/vid during transmission. Once txvlan is disabled, VF would start getting SKBs for transmission here vlan is on the payload - but it'll pass the packet's ethertype instead of the vid, leading to

[PATCH net v2] net: ipmr: Fix some mroute forwarding issues in vrf's

2017-06-09 Thread Donald Sharp
This patch fixes two issues: 1) When forwarding on *,G mroutes that are in a vrf, the kernel was dropping information about the actual incoming interface when calling ip_mr_forward from ip_mr_input. This caused ip_mr_forward to send the multicast packet back out the incoming interface. Fix this b

Re: [PATCH net-next] bonding: warn user when 802.3ad speed is unknown

2017-06-09 Thread Andrew Lunn
On Fri, Jun 09, 2017 at 03:34:43PM +0200, Nicolas Dichtel wrote: > Make it explicit in the log. > > Suggested-by: Andrew Lunn > Signed-off-by: Nicolas Dichtel Hi Nicolas How often is this called? It seems like it is used by ad_port_selection_logic, which has the comment: is called in

Re: [PATCH net v2] net: ipmr: Fix some mroute forwarding issues in vrf's

2017-06-09 Thread Andrew Lunn
> static void ip_mr_forward(struct net *net, struct mr_table *mrt, > - struct sk_buff *skb, struct mfc_cache *cache, > - int local); > + struct net_device *dev, struct sk_buff *skb, > + struct mfc_cache *cac

[PATCH] l2tp: cast l2tp traffic counter to unsigned

2017-06-09 Thread Dominik Heidler
This fixes a counter problem on 32bit systems: When the rx_bytes counter reached 2 GiB, it jumpd to (2^64 Bytes - 2GiB) Bytes. rtnl_link_stats64 has __u64 type and atomic_long_read returns atomic_long_t which is signed. Due to the conversation we get an incorrect value on 32bit systems if the MSB

Re: [PATCH] net: Fix inconsistent teardown and release of private netdev state.

2017-06-09 Thread Johannes Berg
On Fri, 2017-06-09 at 10:17 -0400, David Miller wrote: > > > I guess this must mean that that all others are dealing with the > > problem "manually", right? Perhaps needs_free_netdev isn't all that > > necessary then? > > Yeah, the major two modes of operation are manual freeing of the > netdev (

Re: [PATCH net-next] bonding: warn user when 802.3ad speed is unknown

2017-06-09 Thread Nicolas Dichtel
Le 09/06/2017 à 16:23, Andrew Lunn a écrit : > On Fri, Jun 09, 2017 at 03:34:43PM +0200, Nicolas Dichtel wrote: >> Make it explicit in the log. >> >> Suggested-by: Andrew Lunn >> Signed-off-by: Nicolas Dichtel > > Hi Nicolas Hi Andrew, > > How often is this called? It seems like it is used by

Re: [PATCH net-next] bonding: warn user when 802.3ad speed is unknown

2017-06-09 Thread Andy Gospodarek
On Fri, Jun 09, 2017 at 04:39:06PM +0200, Nicolas Dichtel wrote: > Le 09/06/2017 à 16:23, Andrew Lunn a écrit : > > On Fri, Jun 09, 2017 at 03:34:43PM +0200, Nicolas Dichtel wrote: > >> Make it explicit in the log. > >> > >> Suggested-by: Andrew Lunn > >> Signed-off-by: Nicolas Dichtel > > > > H

Re: [PATCH v2 7/8] net: mvmdio: add xmdio support

2017-06-09 Thread Andrew Lunn
On Fri, Jun 09, 2017 at 04:09:22PM +0200, Antoine Tenart wrote: > Hi Andrew, > > On Fri, Jun 09, 2017 at 03:26:24PM +0200, Andrew Lunn wrote: > > On Fri, Jun 09, 2017 at 10:25:41AM +0200, Antoine Tenart wrote: > > > On Thu, Jun 08, 2017 at 09:42:21AM -0700, Florian Fainelli wrote: > > > > > > > >

Re: [PATCH net v2] net: ipmr: Fix some mroute forwarding issues in vrf's

2017-06-09 Thread David Ahern
On 6/9/17 8:22 AM, Donald Sharp wrote: > @@ -988,7 +988,16 @@ static void ipmr_cache_resolve(struct net *net, struct > mr_table *mrt, > > rtnl_unicast(skb, net, NETLINK_CB(skb).portid); > } else { > - ip_mr_forward(net, mrt, skb, c, 0); > +

Re: [PATCH v2 7/8] net: mvmdio: add xmdio support

2017-06-09 Thread Antoine Tenart
Hi Andrew, On Fri, Jun 09, 2017 at 04:49:36PM +0200, Andrew Lunn wrote: > On Fri, Jun 09, 2017 at 04:09:22PM +0200, Antoine Tenart wrote: > > > > The MDIO/xMDIO registers are embedded into the network controller. The > > mvmdio driver was created at first to abstract this functionality > > outsid

Re: [PATCH net-next] bonding: warn user when 802.3ad speed is unknown

2017-06-09 Thread Andrew Lunn
> > I just wonder if this should be rate limited? > So using net_warn_ratelimited()? > > Displaying this message continuously in the log, even at a low rate, seems not > the best things to do. The first time seems enough, but it would require more > code for that. Is it not over-engineering? Mayb

  1   2   3   >