[PATCH iproute2-next v2] tc flower: use right ethertype in icmp/arp parsing

2020-11-09 Thread Zahari Doychev
Currently the icmp and arp parsing functions are called with incorrect ethtype in case of vlan or cvlan filter options. In this case either cvlan_ethtype or vlan_ethtype has to be used. The ethtype is now updated each time a vlan ethtype is matched during parsing. Signed-off-by: Zahari Doychev --

Re: [PATCH v5 8/8] can-dev: add len8_dlc support for various CAN USB adapters

2020-11-09 Thread Marc Kleine-Budde
On 11/10/20 7:55 AM, Oliver Hartkopp wrote: >>> diff --git a/drivers/net/can/usb/gs_usb.c b/drivers/net/can/usb/gs_usb.c >>> index 940589667a7f..cc0c30a5 100644 >>> --- a/drivers/net/can/usb/gs_usb.c >>> +++ b/drivers/net/can/usb/gs_usb.c >>> @@ -330,10 +330,13 @@ static void gs_usb_receive_bul

[PATCH net/next] net: ipconfig: Avoid spurious blank lines in boot log

2020-11-09 Thread Thierry Reding
From: Thierry Reding When dumping the name and NTP servers advertised by DHCP, a blank line is emitted if either of the lists is empty. This can lead to confusing issues such as the blank line getting flagged as warning. This happens because the blank line is the result of pr_cont("\n") and that

Duplicated ABI entries - Was: Re: [PATCH v2 20/39] docs: ABI: testing: make the files compatible with ReST output

2020-11-09 Thread Mauro Carvalho Chehab
Hi Jonathan, Em Sun, 8 Nov 2020 16:56:21 + Jonathan Cameron escreveu: > > PS.: the IIO subsystem is the one that currently has more duplicated > > ABI entries: > > $ ./scripts/get_abi.pl validate 2>&1|grep iio > > Warning: /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibbias is defined 2

[PATCH v6 net-next 3/3] net/sched: act_frag: add implict packet fragment support.

2020-11-09 Thread wenxu
From: wenxu Currently kernel tc subsystem can do conntrack in cat_ct. But when several fragment packets go through the act_ct, function tcf_ct_handle_fragments will defrag the packets to a big one. But the last action will redirect mirred to a device which maybe lead the reassembly big packet ove

[PATCH v6 net-next 0/3] net/sched: fix over mtu packet of defrag in

2020-11-09 Thread wenxu
From: wenxu Currently kernel tc subsystem can do conntrack in act_ct. But when several fragment packets go through the act_ct, function tcf_ct_handle_fragments will defrag the packets to a big one. But the last action will redirect mirred to a device which maybe lead the reassembly big packet ove

[PATCH v6 net-next 1/3] net/sched: fix miss init the mru in qdisc_skb_cb

2020-11-09 Thread wenxu
From: wenxu The mru in the qdisc_skb_cb should be init as 0. Only defrag packets in the act_ct will set the value. Fixes: 038ebb1a713d ("net/sched: act_ct: fix miss set mru for ovs after defrag in act_ct") Signed-off-by: wenxu --- v5: new patch v6: no change net/core/dev.c | 2 ++ 1 file cha

[PATCH v6 net-next 2/3] net/sched: act_mirred: refactor the handle of xmit

2020-11-09 Thread wenxu
From: wenxu This one is prepare for the next patch. Signed-off-by: wenxu --- v6: no change include/net/sch_generic.h | 5 - net/sched/act_mirred.c| 21 +++-- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/include/net/sch_generic.h b/include/net/sch_g

Re: [PATCH v3 01/10] Add auxiliary bus support

2020-11-09 Thread Oded Gabbay
On Fri, Nov 06, 2020 at 07:35:37PM +, Mark Brown wrote: > On Thu, Nov 05, 2020 at 08:37:14PM +, Parav Pandit wrote: > > > > > This example describes the mlx5 PCI subfunction use case. > > > > I didn't follow your question about 'explicit example'. > > > > What part is missing to identify i

[PATCH net-next] MAINTAINERS: Add entry for Hirschmann Hellcreek Switch Driver

2020-11-09 Thread Kurt Kanzenbach
Add myself to cover the Hirschmann Hellcreek TSN Ethernet Switch Driver. Suggested-by: Andrew Lunn Signed-off-by: Kurt Kanzenbach --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2a0fde12b650..7fe936fc7e76 100644 --- a/MAINTAINERS +++

Re: [Intel-wired-lan] [PATCH bpf-next 2/6] samples/bpf: increment Tx stats at sending

2020-11-09 Thread Magnus Karlsson
On Mon, Nov 9, 2020 at 9:47 PM John Fastabend wrote: > > Magnus Karlsson wrote: > > From: Magnus Karlsson > > > > Increment the statistics over how many Tx packets have been sent at > > the time of sending instead of at the time of completion. This as a > > completion event means that the buffer

[PATCH] Replace a set of atomic_add()

2020-11-09 Thread Yejune Deng
a set of atomic_inc() looks more readable Signed-off-by: Yejune Deng --- drivers/net/wireless/st/cw1200/bh.c | 10 +- drivers/net/wireless/st/cw1200/wsm.c | 8 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/wireless/st/cw1200/bh.c b/drivers/net/wir

Re: [PATCH v22 06/23] LSM: Use lsmblob in security_secid_to_secctx

2020-11-09 Thread James Morris
On Wed, 4 Nov 2020, Casey Schaufler wrote: > Change security_secid_to_secctx() to take a lsmblob as input > instead of a u32 secid. It will then call the LSM hooks > using the lsmblob element allocated for that module. The > callers have been updated as well. This allows for the > possibility that

Re: [PATCH v5 8/8] can-dev: add len8_dlc support for various CAN USB adapters

2020-11-09 Thread Oliver Hartkopp
On 09.11.20 21:12, Marc Kleine-Budde wrote: On 11/9/20 4:36 PM, Oliver Hartkopp wrote: Support the Classical CAN raw DLC functionality to send and receive DLC values from 9 .. 15 on various Classical CAN capable USB network drivers: - gs_usb - pcan_usb - pcan_usb_fd - usb_8dev Tested-by: Ol

Re: [PATCH v22 05/23] LSM: Use lsmblob in security_secctx_to_secid

2020-11-09 Thread James Morris
On Wed, 4 Nov 2020, Casey Schaufler wrote: > Change the security_secctx_to_secid interface to use a lsmblob > structure in place of the single u32 secid in support of > module stacking. Change its callers to do the same. > > The security module hook is unchanged, still passing back a secid. > The

Re: [PATCH v2 0/3] xfrm/compat: syzbot-found fixes

2020-11-09 Thread Steffen Klassert
On Mon, Nov 02, 2020 at 04:14:44PM +, Dmitry Safonov wrote: > v2: Added "Fixes" tags to the patches. > > WARN_ON() for XFRMA_UNSPEC translation which likely no-one except > syzkaller uses; properly zerofy tail-padding for 64-bit attribute; > don't use __GFP_ZERO as the memory is initialized du

Re: [PATCH 1/1] net/mlx5e: remove unnecessary memset

2020-11-09 Thread Saeed Mahameed
On Sat, 2020-11-07 at 11:54 +0800, Zhu Yanjun wrote: > Since kvzalloc will initialize the allocated memory, it is not > necessary to initialize it once again. > > Fixes: 11b717d61526 ("net/mlx5: E-Switch, Get reg_c0 value on CQE") > Signed-off-by: Zhu Yanjun > --- > .../ethernet/mellanox/mlx5/co

[PATCH next-queue v2 1/3] Revert "PCI: Make pci_enable_ptm() private"

2020-11-09 Thread Vinicius Costa Gomes
Make pci_enable_ptm() accessible from the drivers. Even if PTM still works on the platform I am using without calling this function, it might be possible that it's not always the case. Exposing this to the driver enables the driver to use the 'ptm_enabled' field of 'pci_dev' to check if PTM is en

[PATCH next-queue v2 0/3] igc: Add support for PCIe PTM

2020-11-09 Thread Vinicius Costa Gomes
Hi, Changes from v1: - This now should cross compile better, convert_art_ns_to_tsc() will only be used if CONFIG_X86_TSC is enabled; - PCIe PTM errors reported by the NIC are logged and PTM cycles are restarted in case an error is detected; Original cover letter: This adds support fo

[PATCH next-queue v2 2/3] igc: Enable PCIe PTM

2020-11-09 Thread Vinicius Costa Gomes
In practice, enabling PTM also sets the enabled_ptm flag in the PCI device, the flag will be used for detecting if PTM is enabled before adding support for the SYSOFFSET_PRECISE ioctl() (which is added by implementing the getcrosststamp() PTP function). Signed-off-by: Vinicius Costa Gomes --- dr

[PATCH next-queue v2 3/3] igc: Add support for PTP getcrosststamp()

2020-11-09 Thread Vinicius Costa Gomes
i225 has support for PCIe PTM, which allows us to implement support for the PTP_SYS_OFFSET_PRECISE ioctl(), implemented in the driver via the getcrosststamp() function. Support is added by having a delayed workqueue that checks if the current PTM cycle has finished and if it has finished, it store

Re: [PATCH net-next v2] drivers: net: sky2: Fix -Wstringop-truncation with W=1

2020-11-09 Thread Stephen Hemminger
On Tue, 10 Nov 2020 03:32:22 +0100 Andrew Lunn wrote: > In function ‘strncpy’, > inlined from ‘sky2_name’ at drivers/net/ethernet/marvell/sky2.c:4903:3, > inlined from ‘sky2_probe’ at drivers/net/ethernet/marvell/sky2.c:5049:2: > ./include/linux/string.h:297:30: warning: ‘__builtin_strncp

RE: [PATCH net-next] net: emaclite: Add error handling for of_address_ and phy read functions

2020-11-09 Thread Radhey Shyam Pandey
> -Original Message- > From: Jakub Kicinski > Sent: Sunday, November 8, 2020 1:05 AM > To: Radhey Shyam Pandey > Cc: da...@davemloft.net; Michal Simek ; > netdev@vger.kernel.org; linux-arm-ker...@lists.infradead.org; linux- > ker...@vger.kernel.org; git ; Shravya Kumbham > > Subject: Re:

Re: [PATCH net] net/tls: Fix kernel panic when socket is in TLS ULP

2020-11-09 Thread Vinay Kumar Yadav
On 11/10/2020 10:37 AM, Vinay Kumar Yadav wrote: On 11/10/2020 12:28 AM, Jakub Kicinski wrote: On Tue, 10 Nov 2020 00:21:13 +0530 Vinay Kumar Yadav wrote: On 11/7/2020 1:58 AM, Jakub Kicinski wrote: On Sat, 7 Nov 2020 02:02:42 +0530 Vinay Kumar Yadav wrote: On 11/6/2020 12:16 AM, Jakub K

Re: [PATCH RFC PKS/PMEM 05/58] kmap: Introduce k[un]map_thread

2020-11-09 Thread Ira Weiny
On Tue, Nov 10, 2020 at 02:13:56AM +0100, Thomas Gleixner wrote: > Ira, > > On Fri, Oct 09 2020 at 12:49, ira weiny wrote: > > From: Ira Weiny > > > > To correctly support the semantics of kmap() with Kernel protection keys > > (PKS), kmap() may be required to set the protections on multiple > >

Re: [PATCH net] net/tls: Fix kernel panic when socket is in TLS ULP

2020-11-09 Thread Vinay Kumar Yadav
On 11/10/2020 12:28 AM, Jakub Kicinski wrote: On Tue, 10 Nov 2020 00:21:13 +0530 Vinay Kumar Yadav wrote: On 11/7/2020 1:58 AM, Jakub Kicinski wrote: On Sat, 7 Nov 2020 02:02:42 +0530 Vinay Kumar Yadav wrote: On 11/6/2020 12:16 AM, Jakub Kicinski wrote: On Thu, 5 Nov 2020 23:55:15 +0530 Vi

RE: [PATCH v2 bpf] tools: bpftool: Add missing close before bpftool net attach exit

2020-11-09 Thread John Fastabend
Wang Hai wrote: > progfd is created by prog_parse_fd(), before 'bpftool net attach' exit, > it should be closed. > > Fixes: 04949ccc273e ("tools: bpftool: add net attach command to attach XDP on > interface") > Signed-off-by: Wang Hai > --- > v1->v2: use cleanup tag instead of repeated closes >

Re: [PATCH v2 net-next] net: skb_vlan_untag(): don't reset transport offset if set by GRO layer

2020-11-09 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Mon, 09 Nov 2020 23:47:23 + you wrote: > Similar to commit fda55eca5a33f > ("net: introduce skb_transport_header_was_set()"), avoid resetting > transport offsets that were already set by GRO layer. This not only > mi

Re: [PATCHv3 iproute2-next 0/5] iproute2: add libbpf support

2020-11-09 Thread David Ahern
On 11/8/20 6:45 PM, Alexei Starovoitov wrote: > > I don't understand why on one side you're pointing out existing quirkiness > with > bpf usability while at the same time arguing to make it _less_ user friendly I believe you have confused my comments with others. My comments have focused on one

[PATCH AUTOSEL 5.9 22/55] mac80211: fix use of skb payload instead of header

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 14f46c1e5108696ec1e5a129e838ecedf108c7bf ] When ieee80211_skb_resize() is called from ieee80211_build_hdr() the skb has no 802.11 header yet, in fact it consist only of the payload as the ethernet frame is removed. As such, we're using the payload data for i

[PATCH AUTOSEL 5.9 24/55] mac80211: always wind down STA state

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit dcd479e10a0510522a5d88b29b8f79ea3467d501 ] When (for example) an IBSS station is pre-moved to AUTHORIZED before it's inserted, and then the insertion fails, we don't clean up the fast RX/TX states that might already have been created, since we don't go throu

[PATCH AUTOSEL 5.9 25/55] cfg80211: regulatory: Fix inconsistent format argument

2020-11-09 Thread Sasha Levin
From: Ye Bin [ Upstream commit db18d20d1cb0fde16d518fb5ccd38679f174bc04 ] Fix follow warning: [net/wireless/reg.c:3619]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. Reported-by: Hulk Robot Signed-off-by: Ye Bin Link: https://lore.kernel.org/r/

Re: [PATCH v2 net-next] net: skb_vlan_untag(): don't reset transport offset if set by GRO layer

2020-11-09 Thread Jakub Kicinski
On Mon, 09 Nov 2020 23:47:23 + Alexander Lobakin wrote: > Similar to commit fda55eca5a33f > ("net: introduce skb_transport_header_was_set()"), avoid resetting > transport offsets that were already set by GRO layer. This not only > mirrors the behavior of __netif_receive_skb_core(), but also mak

Re: [PATCH net] vrf: Fix fast path output packet handling with async Netfilter rules

2020-11-09 Thread David Ahern
On 11/9/20 4:44 PM, Jakub Kicinski wrote: > On Fri, 6 Nov 2020 08:30:30 +0100 Martin Willi wrote: >> VRF devices use an optimized direct path on output if a default qdisc >> is involved, calling Netfilter hooks directly. This path, however, does >> not consider Netfilter rules completing asynchron

[PATCH AUTOSEL 5.4 17/42] mac80211: fix use of skb payload instead of header

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 14f46c1e5108696ec1e5a129e838ecedf108c7bf ] When ieee80211_skb_resize() is called from ieee80211_build_hdr() the skb has no 802.11 header yet, in fact it consist only of the payload as the ethernet frame is removed. As such, we're using the payload data for i

[PATCH AUTOSEL 5.4 18/42] cfg80211: initialize wdev data earlier

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 9bdaf3b91efd229dd272b228e13df10310c80d19 ] There's a race condition in the netdev registration in that NETDEV_REGISTER actually happens after the netdev is available, and so if we initialize things only there, we might get called with an uninitialized wdev t

[PATCH AUTOSEL 5.4 34/42] net: usb: qmi_wwan: add Telit LE910Cx 0x1230 composition

2020-11-09 Thread Sasha Levin
From: Daniele Palmas [ Upstream commit 5fd8477ed8ca77e64b93d44a6dae4aa70c191396 ] Add support for Telit LE910Cx 0x1230 composition: 0x1230: tty, adb, rmnet, audio, tty, tty, tty, tty Signed-off-by: Daniele Palmas Acked-by: Bjørn Mork Link: https://lore.kernel.org/r/20201102110108.17244-1-dnl

[PATCH AUTOSEL 5.4 19/42] mac80211: always wind down STA state

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit dcd479e10a0510522a5d88b29b8f79ea3467d501 ] When (for example) an IBSS station is pre-moved to AUTHORIZED before it's inserted, and then the insertion fails, we don't clean up the fast RX/TX states that might already have been created, since we don't go throu

[PATCH AUTOSEL 5.4 20/42] cfg80211: regulatory: Fix inconsistent format argument

2020-11-09 Thread Sasha Levin
From: Ye Bin [ Upstream commit db18d20d1cb0fde16d518fb5ccd38679f174bc04 ] Fix follow warning: [net/wireless/reg.c:3619]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. Reported-by: Hulk Robot Signed-off-by: Ye Bin Link: https://lore.kernel.org/r/

[PATCH AUTOSEL 4.19 10/21] mac80211: fix use of skb payload instead of header

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 14f46c1e5108696ec1e5a129e838ecedf108c7bf ] When ieee80211_skb_resize() is called from ieee80211_build_hdr() the skb has no 802.11 header yet, in fact it consist only of the payload as the ethernet frame is removed. As such, we're using the payload data for i

[PATCH AUTOSEL 4.19 11/21] mac80211: always wind down STA state

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit dcd479e10a0510522a5d88b29b8f79ea3467d501 ] When (for example) an IBSS station is pre-moved to AUTHORIZED before it's inserted, and then the insertion fails, we don't clean up the fast RX/TX states that might already have been created, since we don't go throu

[PATCH AUTOSEL 4.19 12/21] cfg80211: regulatory: Fix inconsistent format argument

2020-11-09 Thread Sasha Levin
From: Ye Bin [ Upstream commit db18d20d1cb0fde16d518fb5ccd38679f174bc04 ] Fix follow warning: [net/wireless/reg.c:3619]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. Reported-by: Hulk Robot Signed-off-by: Ye Bin Link: https://lore.kernel.org/r/

Re: [PATCH net V2] Exempt multicast addresses from five-second neighbor lifetime

2020-11-09 Thread David Ahern
in addition to Jakub's comments ... On 11/8/20 7:50 PM, Jeff Dike wrote: > @@ -1706,6 +1708,11 @@ static void pndisc_redo(struct sk_buff *skb) > kfree_skb(skb); > } > > +static int ndisc_is_multicast(const void *pkey) > +{ > + return (((struct in6_addr *)pkey)->in6_u.u6_addr8[0] & 0xf

[PATCH AUTOSEL 4.19 17/21] net: usb: qmi_wwan: add Telit LE910Cx 0x1230 composition

2020-11-09 Thread Sasha Levin
From: Daniele Palmas [ Upstream commit 5fd8477ed8ca77e64b93d44a6dae4aa70c191396 ] Add support for Telit LE910Cx 0x1230 composition: 0x1230: tty, adb, rmnet, audio, tty, tty, tty, tty Signed-off-by: Daniele Palmas Acked-by: Bjørn Mork Link: https://lore.kernel.org/r/20201102110108.17244-1-dnl

[PATCH AUTOSEL 4.14 08/14] mac80211: always wind down STA state

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit dcd479e10a0510522a5d88b29b8f79ea3467d501 ] When (for example) an IBSS station is pre-moved to AUTHORIZED before it's inserted, and then the insertion fails, we don't clean up the fast RX/TX states that might already have been created, since we don't go throu

[PATCH AUTOSEL 4.14 09/14] cfg80211: regulatory: Fix inconsistent format argument

2020-11-09 Thread Sasha Levin
From: Ye Bin [ Upstream commit db18d20d1cb0fde16d518fb5ccd38679f174bc04 ] Fix follow warning: [net/wireless/reg.c:3619]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. Reported-by: Hulk Robot Signed-off-by: Ye Bin Link: https://lore.kernel.org/r/

[PATCH AUTOSEL 4.14 07/14] mac80211: fix use of skb payload instead of header

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 14f46c1e5108696ec1e5a129e838ecedf108c7bf ] When ieee80211_skb_resize() is called from ieee80211_build_hdr() the skb has no 802.11 header yet, in fact it consist only of the payload as the ethernet frame is removed. As such, we're using the payload data for i

[PATCH AUTOSEL 4.14 12/14] net: usb: qmi_wwan: add Telit LE910Cx 0x1230 composition

2020-11-09 Thread Sasha Levin
From: Daniele Palmas [ Upstream commit 5fd8477ed8ca77e64b93d44a6dae4aa70c191396 ] Add support for Telit LE910Cx 0x1230 composition: 0x1230: tty, adb, rmnet, audio, tty, tty, tty, tty Signed-off-by: Daniele Palmas Acked-by: Bjørn Mork Link: https://lore.kernel.org/r/20201102110108.17244-1-dnl

[PATCH AUTOSEL 4.9 08/12] cfg80211: regulatory: Fix inconsistent format argument

2020-11-09 Thread Sasha Levin
From: Ye Bin [ Upstream commit db18d20d1cb0fde16d518fb5ccd38679f174bc04 ] Fix follow warning: [net/wireless/reg.c:3619]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. Reported-by: Hulk Robot Signed-off-by: Ye Bin Link: https://lore.kernel.org/r/

[PATCH AUTOSEL 4.9 06/12] mac80211: fix use of skb payload instead of header

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 14f46c1e5108696ec1e5a129e838ecedf108c7bf ] When ieee80211_skb_resize() is called from ieee80211_build_hdr() the skb has no 802.11 header yet, in fact it consist only of the payload as the ethernet frame is removed. As such, we're using the payload data for i

Re: [PATCH net-next v3 00/10] net: add and use dev_get_tstats64

2020-11-09 Thread Jakub Kicinski
On Sat, 7 Nov 2020 21:48:13 +0100 Heiner Kallweit wrote: > It's a frequent pattern to use netdev->stats for the less frequently > accessed counters and per-cpu counters for the frequently accessed > counters (rx/tx bytes/packets). Add a default ndo_get_stats64() > implementation for this use case.

[PATCH AUTOSEL 4.4 06/10] mac80211: always wind down STA state

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit dcd479e10a0510522a5d88b29b8f79ea3467d501 ] When (for example) an IBSS station is pre-moved to AUTHORIZED before it's inserted, and then the insertion fails, we don't clean up the fast RX/TX states that might already have been created, since we don't go throu

[PATCH AUTOSEL 4.4 05/10] mac80211: fix use of skb payload instead of header

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 14f46c1e5108696ec1e5a129e838ecedf108c7bf ] When ieee80211_skb_resize() is called from ieee80211_build_hdr() the skb has no 802.11 header yet, in fact it consist only of the payload as the ethernet frame is removed. As such, we're using the payload data for i

[PATCH AUTOSEL 4.4 07/10] cfg80211: regulatory: Fix inconsistent format argument

2020-11-09 Thread Sasha Levin
From: Ye Bin [ Upstream commit db18d20d1cb0fde16d518fb5ccd38679f174bc04 ] Fix follow warning: [net/wireless/reg.c:3619]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. Reported-by: Hulk Robot Signed-off-by: Ye Bin Link: https://lore.kernel.org/r/

[PATCH AUTOSEL 4.9 07/12] mac80211: always wind down STA state

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit dcd479e10a0510522a5d88b29b8f79ea3467d501 ] When (for example) an IBSS station is pre-moved to AUTHORIZED before it's inserted, and then the insertion fails, we don't clean up the fast RX/TX states that might already have been created, since we don't go throu

[PATCH AUTOSEL 5.9 42/55] net: usb: qmi_wwan: add Telit LE910Cx 0x1230 composition

2020-11-09 Thread Sasha Levin
From: Daniele Palmas [ Upstream commit 5fd8477ed8ca77e64b93d44a6dae4aa70c191396 ] Add support for Telit LE910Cx 0x1230 composition: 0x1230: tty, adb, rmnet, audio, tty, tty, tty, tty Signed-off-by: Daniele Palmas Acked-by: Bjørn Mork Link: https://lore.kernel.org/r/20201102110108.17244-1-dnl

[PATCH AUTOSEL 5.9 26/55] wireguard: selftests: check that route_me_harder packets use the right sk

2020-11-09 Thread Sasha Levin
From: "Jason A. Donenfeld" [ Upstream commit af8afcf1fdd5f365f70e2386c2d8c7a1abd853d7 ] If netfilter changes the packet mark, the packet is rerouted. The ip_route_me_harder family of functions fails to use the right sk, opting to instead use skb->sk, resulting in a routing loop when used with tu

[PATCH AUTOSEL 5.9 23/55] cfg80211: initialize wdev data earlier

2020-11-09 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 9bdaf3b91efd229dd272b228e13df10310c80d19 ] There's a race condition in the netdev registration in that NETDEV_REGISTER actually happens after the netdev is available, and so if we initialize things only there, we might get called with an uninitialized wdev t

[PATCH net] net: switch to the kernel.org patchwork instance

2020-11-09 Thread Jakub Kicinski
Move to the kernel.org patchwork instance, it has significantly lower latency for accessing from Europe and the US. Other quirks include the reply bot. Signed-off-by: Jakub Kicinski --- We were in process of transitioning already before Dave had to step away, so after double checking with him let

Re: [PATCH net-next 00/18] nexthop: Add support for nexthop objects offload

2020-11-09 Thread David Ahern
On 11/9/20 8:41 AM, Ido Schimmel wrote: > Great, thank you. And thanks David for the awesome work on the nexthop > infrastructure. thanks. Looking forward to the next round of patches for h/w offload.

[PATCH 02/10] dt-bindings: net: dsa: Document sfp and managed properties

2020-11-09 Thread Florian Fainelli
The 'sfp' and 'managed' properties are commonly used to describe Ethernet switch ports connecting to SFP/SFF cages, describe these two properties as valid that we inherit from ethernet-controller.yaml. Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/dsa/dsa.yaml | 4 +++

[PATCH 10/10] dt-bindings: net: dsa: b53: Add YAML bindings

2020-11-09 Thread Florian Fainelli
From: Kurt Kanzenbach Convert the b53 DSA device tree bindings to YAML in order to allow for automatic checking and such. Suggested-by: Florian Fainelli Signed-off-by: Kurt Kanzenbach --- .../devicetree/bindings/net/dsa/b53.txt | 149 --- .../devicetree/bindings/net/dsa/b53.yaml

[PATCH 01/10] dt-bindings: net: dsa: Extend switch nodes pattern

2020-11-09 Thread Florian Fainelli
Upon discussion with Kurt, Rob and Vladimir it appears that we should be allowing ethernet-switch as a node name, update dsa.yaml accordingly. Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/dsa/dsa.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 04/10] ARM: dts: BCM5301X: Add a default compatible for switch node

2020-11-09 Thread Florian Fainelli
Provide a default compatible string which is based on the 53010 SRAB compatible, this allows us to have sane defaults and silences the following warnings: arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dt.yaml: ethernet-switch@18007000: compatible: 'oneOf' conditional failed, one must be fixed: [

[PATCH 06/10] ARM: dts: NSP: Update ethernet switch node name

2020-11-09 Thread Florian Fainelli
Update the switch unit name from srab to ethernet-switch, allowing us to fix warnings such as: CHECK arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dt.yaml arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dt.yaml: srab@18007000: $nodename:0: 'srab@18007000' does not match '^(etherne

[PATCH 05/10] ARM: dts: BCM5301X: Provide defaults ports container node

2020-11-09 Thread Florian Fainelli
Provide an empty 'ports' container node with the correct #address-cells and #size-cells properties. This silences the following warning: arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dt.yaml: ethernet-switch@18007000: 'oneOf' conditional failed, one must be fixed: 'ports' is a required property

[PATCH 03/10] ARM: dts: BCM5301X: Update Ethernet switch node name

2020-11-09 Thread Florian Fainelli
Update the switch unit name from srab to ethernet-switch, allowing us to fix warnings such as: CHECK arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dt.yaml arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dt.yaml: srab@18007000: $nodename:0: 'srab@18007000' does not match '^(ethernet-)?switch(@.*)

[PATCH 09/10] ARM: dts: NSP: Provide defaults ports container node

2020-11-09 Thread Florian Fainelli
Provide an empty 'ports' container node with the correct #address-cells and #size-cells properties. This silences the following warning: arch/arm/boot/dts/bcm958522er.dt.yaml: ethernet-switch@36000: 'oneOf' conditional failed, one must be fixed: 'ports' is a required property

[PATCH 08/10] ARM: dts: NSP: Add a default compatible for switch node

2020-11-09 Thread Florian Fainelli
Provide a default compatible string which is based on the 58522 SRAB compatible, this allows us to have sane defaults and silences the following warnings: arch/arm/boot/dts/bcm958522er.dt.yaml: ethernet-switch@36000: compatible: 'oneOf' conditional failed, one must be fixed: [

[PATCH 07/10] ARM: dts: NSP: Fix Ethernet switch SGMII register name

2020-11-09 Thread Florian Fainelli
The register name should be "sgmii_config", not "sgmii", this is not a functional change since no code is currently looking for that register by name (or at all). Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/bcm-nsp.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 00/10] Broadcom b53 YAML bindings

2020-11-09 Thread Florian Fainelli
Hi, This patch series fixes the various Broadcom SoCs DTS files and the existing YAML binding for missing properties before adding a proper b53 switch YAML binding from Kurt. If this all looks good, given that there are quite a few changes to the DTS files, it might be best if I take them through

[PATCH v3 net-next 2/7] drivers: net: smc91x: Fix missing kerneldoc reported by W=1

2020-11-09 Thread Andrew Lunn
drivers/net/ethernet/smsc/smc91x.c:2199: warning: Function parameter or member 'dev' not described in 'try_toggle_control_gpio' drivers/net/ethernet/smsc/smc91x.c:2199: warning: Function parameter or member 'desc' not described in 'try_toggle_control_gpio' drivers/net/ethernet/smsc/smc91x.c:2199:

[PATCH v3 net-next 1/7] drivers: net: smc91x: Fix set but unused W=1 warning

2020-11-09 Thread Andrew Lunn
drivers/net/ethernet/smsc/smc91x.c:706:51: warning: variable ‘pkt_len’ set but not used [-Wunused-but-set-variable] 706 | unsigned int saved_packet, packet_no, tx_status, pkt_len; The read of the packet length in the descriptor probably needs to be kept in order to keep the hardware happy. So

[PATCH v3 net-next 4/7] drivers: net: smc911x: Fix set but unused status because of DBG macro

2020-11-09 Thread Andrew Lunn
drivers/net/ethernet/smsc/smc911x.c: In function ‘smc911x_timeout’: drivers/net/ethernet/smsc/smc911x.c:1251:6: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] 1251 | int status, mask; The status is read in order to print it via the DBG macro. However, due to the way DBG

[PATCH v3 net-next 0/7] smsc W=1 warning fixes

2020-11-09 Thread Andrew Lunn
Fixup various W=1 warnings, and then add COMPILE_TEST support, which explains why these where missed on the previous pass. v2: Use while (0) Rework buffer alignment to make it clearer v3: Access the length from the hardware and Use __always_unused to tell the compiler we want to discard the value

[PATCH v3 net-next 5/7] drivers: net: smc911x: Fix passing wrong number of parameters to DBG() macro

2020-11-09 Thread Andrew Lunn
Now that the compiler always sees the parameters passed to the DBG() macro, it gives an error message about wrong parameters. The comment says it all: /* ndev is not valid yet, so avoid passing it in. */ DBG(SMC_DEBUG_FUNC, "--> %s\n", __func__); You cannot not just pass a parame

[PATCH v3 net-next 7/7] drivers: net: smsc: Add COMPILE_TEST support

2020-11-09 Thread Andrew Lunn
Improve the build testing of these SMSC drivers by enabling them when COMPILE_TEST is selected. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/smsc/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/smsc/Kconfig b/drivers/net/ethernet/sms

[PATCH v3 net-next 3/7] drivers: net: smc911x: Work around set but unused status

2020-11-09 Thread Andrew Lunn
drivers/net/ethernet/smsc/smc911x.c: In function ‘smc911x_phy_interrupt’: drivers/net/ethernet/smsc/smc911x.c:976:6: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] 976 | int status; A comment indicates the status needs to be read from the PHY, otherwise bad things happ

[PATCH v3 net-next 6/7] drivers: net: smc911x: Fix cast from pointer to integer of different size

2020-11-09 Thread Andrew Lunn
drivers/net/ethernet/smsc/smc911x.c: In function ‘smc911x_hardware_send_pkt’: drivers/net/ethernet/smsc/smc911x.c:471:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 471 | cmdA = (((u32)skb->data & 0x3) << 16) | When built on 64bit targets, the skb->data poi

[MPTCP][PATCH v2 net-next] mptcp: fix static checker warnings in mptcp_pm_add_timer

2020-11-09 Thread Geliang Tang
Fix the following Smatch complaint: net/mptcp/pm_netlink.c:213 mptcp_pm_add_timer() warn: variable dereferenced before check 'msk' (see line 208) net/mptcp/pm_netlink.c 207 struct mptcp_sock *msk = entry->sock; 208 struct sock *sk = (struct sock *)msk; 209

KASAN: vmalloc-out-of-bounds Read in bpf_trace_run1

2020-11-09 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:4e0396c5 net: marvell: prestera: fix compilation with CONF.. git tree: bpf console output: https://syzkaller.appspot.com/x/log.txt?x=11697b8250 kernel config: https://syzkaller.appspot.com/x/.config?x=61033507391c77ff dashboar

[PATCH v2 net-next] net: udp: remove redundant initialization in udp_gro_complete

2020-11-09 Thread menglong8 . dong
From: Menglong Dong The initialization for 'err' with '-ENOSYS' is redundant and can be removed, as it is updated soon and not used. Changes since v1: - Move the err declaration below struct sock *sk Signed-off-by: Menglong Dong --- net/ipv4/udp_offload.c | 2 +- 1 file changed, 1 insertion(+

Re: Subject: [RFC] clang tooling cleanups

2020-11-09 Thread Joe Perches
On Tue, 2020-10-27 at 09:42 -0700, t...@redhat.com wrote: > This rfc will describe > An upcoming treewide cleanup. > How clang tooling was used to programatically do the clean up. > Solicit opinions on how to generally use clang tooling. > > The clang warning -Wextra-semi-stmt produces about 10k w

[PATCH net-next v2 1/3] drivers: net: xilinx_emaclite: Add missing parameter kerneldoc

2020-11-09 Thread Andrew Lunn
The txqueue parameter to the watchdog callback is unused in this driver. But it still needs to be documented. Reviewed-by: Michal Simek Signed-off-by: Andrew Lunn --- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/xilinx/xi

[PATCH net-next v2 3/3] drivers: net: xilinx_emaclite: Add COMPILE_TEST support

2020-11-09 Thread Andrew Lunn
To improve build testing of this driver, add COMPILE_TEST support. Acked-by: Michal Simek Signed-off-by: Andrew Lunn --- drivers/net/ethernet/xilinx/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/xilinx/Kconfig b/drivers/net/ethernet/xilinx/Kco

[PATCH net-next v2 2/3] drivers: net: xilinx_emaclite: Fix -Wpointer-to-int-cast warnings with W=1

2020-11-09 Thread Andrew Lunn
drivers/net/ethernet//xilinx/xilinx_emaclite.c:341:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 341 | addr = (void __iomem __force *)((u32 __force)addr ^ Use uintptr_t instead of u32 to avoid problems on 64 bit systems. Also, cast the address to an unsi

[PATCH net-next v2 0/3] xilinx_emaclite W=1 fixes

2020-11-09 Thread Andrew Lunn
kerneldoc, pointer issues, and add COMPILE_TEST support to easy finding future issues via build testing. v2: Use uintptr_t instead of long Added Acked-by's. Andrew Lunn (3): drivers: net: xilinx_emaclite: Add missing parameter kerneldoc drivers: net: xilinx_emaclite: Fix -Wpointer-to-int-cast

[PATCH net-next v2] drivers: net: sky2: Fix -Wstringop-truncation with W=1

2020-11-09 Thread Andrew Lunn
In function ‘strncpy’, inlined from ‘sky2_name’ at drivers/net/ethernet/marvell/sky2.c:4903:3, inlined from ‘sky2_probe’ at drivers/net/ethernet/marvell/sky2.c:5049:2: ./include/linux/string.h:297:30: warning: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Wstringop-trunc

[PATCHv2 2/2] selftests: pmtu.sh: improve the test result processing

2020-11-09 Thread Po-Hsu Lin
This test will treat all non-zero return codes as failures, it will make the pmtu.sh test script being marked as FAILED when some sub-test got skipped. Improve the result processing by * Only mark the whole test script as SKIP when all of the sub-tests were skipped * If the sub-tests were

[PATCHv2 0/2] selftests: pmtu.sh: improve the test result processing

2020-11-09 Thread Po-Hsu Lin
The pmtu.sh test script treats all non-zero return code as a failure, thus it will be marked as FAILED when some sub-test got skipped. This patchset will: 1. Use the kselftest framework skip code $ksft_skip to replace the hardcoded SKIP return code. 2. Improve the result processing, the t

[PATCHv2 1/2] selftests: pmtu.sh: use $ksft_skip for skipped return code

2020-11-09 Thread Po-Hsu Lin
This test uses return code 2 as a hard-coded skipped state, let's use the kselftest framework skip code variable $ksft_skip instead to make it more readable and easier to maintain. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/pmtu.sh | 64 ++--- 1 fil

Re: [PATCH 1/1] RDMA/rxe: Fetch skb packets from ethernet layer

2020-11-09 Thread Zhu Yanjun
On Tue, Nov 10, 2020 at 2:25 AM Jakub Kicinski wrote: > > On Sun, 8 Nov 2020 13:27:32 +0800 Zhu Yanjun wrote: > > On Sun, Nov 8, 2020 at 1:24 PM Zhu Yanjun wrote: > > > On Thu, 5 Nov 2020 19:12:01 +0800 Zhu Yanjun wrote: > > > > > > In the original design, in rx, skb packet would pass ethernet >

Re: [PATCH bpf] tools: bpftool: Add missing close before bpftool net attach exit

2020-11-09 Thread wanghai (M)
在 2020/11/9 18:51, Michal Rostecki 写道: On 11/9/20 8:04 AM, Wang Hai wrote: progfd is created by prog_parse_fd(), before 'bpftool net attach' exit, it should be closed. Fixes: 04949ccc273e ("tools: bpftool: add net attach command to attach XDP on interface") Signed-off-by: Wang Hai ---   to

[PATCHv3 bpf 0/2] Remove unused test_ipip.sh test and add missed ip6ip6 test

2020-11-09 Thread Hangbin Liu
In comment 173ca26e9b51 ("samples/bpf: add comprehensive ipip, ipip6, ip6ip6 test") we added some bpf tunnel tests. In commit 933a741e3b82 ("selftests/bpf: bpf tunnel test.") when we moved it to the current folder, we missed some points: 1. ip6ip6 test is not added 2. forgot to remove test_ipip.sh

[PATCHv3 bpf 2/2] samples/bpf: remove unused test_ipip.sh

2020-11-09 Thread Hangbin Liu
The tcbpf2_kern.o and related kernel sections are moved to bpf selftest folder since b05cd7404323 ("samples/bpf: remove the bpf tunnel testsuite."). Remove this one as well. Fixes: b05cd7404323 ("samples/bpf: remove the bpf tunnel testsuite.") Acked-by: Martin KaFai Lau Signed-off-by: Hangbin Liu

[PATCHv3 bpf 1/2] selftest/bpf: add missed ip6ip6 test back

2020-11-09 Thread Hangbin Liu
In comment 173ca26e9b51 ("samples/bpf: add comprehensive ipip, ipip6, ip6ip6 test") we added ip6ip6 test for bpf tunnel testing. But in commit 933a741e3b82 ("selftests/bpf: bpf tunnel test.") when we moved it to the current folder, we didn't add it. This patch add the ip6ip6 test back to bpf tunne

Re: [PATCH net-next] net: dsa: mv88e6xxx: Export VTU as devlink region

2020-11-09 Thread Jakub Kicinski
On Mon, 9 Nov 2020 18:44:15 +0100 Andrew Lunn wrote: > > static void > > @@ -574,9 +670,16 @@ static int > > mv88e6xxx_setup_devlink_regions_global(struct dsa_switch *ds, > > ops = mv88e6xxx_regions[i].ops; > > size = mv88e6xxx_regions[i].size; > > > > - if (i

[PATCH v2 bpf] tools: bpftool: Add missing close before bpftool net attach exit

2020-11-09 Thread Wang Hai
progfd is created by prog_parse_fd(), before 'bpftool net attach' exit, it should be closed. Fixes: 04949ccc273e ("tools: bpftool: add net attach command to attach XDP on interface") Signed-off-by: Wang Hai --- v1->v2: use cleanup tag instead of repeated closes tools/bpf/bpftool/net.c | 14

Re: [RFC PATCH net-next 7/9] net: dsa: microchip: ksz9477: add hardware time stamping support

2020-11-09 Thread Vladimir Oltean
Sorry for getting back late to you. It did not compute when I read your email the first time around, then I let it sit for a while. On Thu, Nov 05, 2020 at 09:18:04PM +0100, Christian Eggers wrote: > unfortunately I made a mistake when testing. Actually the timestamp *must* be > moved from the cor

Re: [PATCH net-next] net: phy: microchip_t1: Don't set .config_aneg

2020-11-09 Thread Jakub Kicinski
On Mon, 9 Nov 2020 18:36:22 +0100 Andrew Lunn wrote: > On Mon, Nov 09, 2020 at 09:16:05AM +0800, Jisheng Zhang wrote: > > The .config_aneg in microchip_t1 is genphy_config_aneg, so it's not > > needed, because the phy core will call genphy_config_aneg() if the > > .config_aneg is NULL. > > > > Sig

  1   2   3   4   5   >