[ovs-dev] tc-conntrack: inconsistent behaviour with icmpv6

2021-03-09 Thread Louis Peens
Hi all We've recently encountered an interesting situation with OVS conntrack when offloading to the TC datapath, and would like some feedback. Sorry about the longish wall of text, but I'm trying to explain the problem as clearly as possible. The very short summary is that there is a mismatch in

[PATCH] bpf: fix warning comparing pointer to 0

2021-03-09 Thread Jiapeng Chong
Fix the following coccicheck warning: ./tools/testing/selftests/bpf/progs/fentry_test.c:67:12-13: WARNING comparing pointer to 0. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/testing/selftests/bpf/progs/fentry_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

Re: Softirq error with mcp251xfd driver

2021-03-09 Thread Marc Kleine-Budde
On 10.03.2021 07:46:26, Daniel Glöckner wrote: > the mcp251xfd driver uses a threaded irq handler to queue skbs with the > can_rx_offload_* helpers. I get the following error on every packet until > the rate limit kicks in: > > NOHZ tick-stop error: Non-RCU local softirq work is pending, handler >

Re: [PATCH net] selftests/bpf: set gopt opt_class to 0 if get tunnel opt failed

2021-03-09 Thread Hangbin Liu
On Wed, Mar 10, 2021 at 01:37:48AM +, patchwork-bot+netdev...@kernel.org wrote: > Hello: > > This patch was applied to netdev/net-next.git (refs/heads/master): > > On Tue, 9 Mar 2021 11:22:14 +0800 you wrote: > > When fixing the bpf test_tunnel.sh genve failure. I only fixed > > the IPv4 pa

Softirq error with mcp251xfd driver

2021-03-09 Thread Daniel Glöckner
Hi, the mcp251xfd driver uses a threaded irq handler to queue skbs with the can_rx_offload_* helpers. I get the following error on every packet until the rate limit kicks in: NOHZ tick-stop error: Non-RCU local softirq work is pending, handler #08!!! Adding local_bh_disable/local_bh_enable aroun

Re: [Patch bpf-next v2 2/9] sock: introduce sk_prot->update_proto()

2021-03-09 Thread John Fastabend
Cong Wang wrote: > On Fri, Mar 5, 2021 at 5:55 PM John Fastabend > wrote: > > [...] > > > // tcp_bpf_prots->unhash == sock_map_unhash > > > sk_psock_restore_proto(); > > > // Now tcp_bpf_prots->unhash is inet_unhash > > > ... > > > sk_psock_update_proto(); > > > // sk->sk_proto is now tcp_bpf_

[PATCH] selftests/bpf: fix warning comparing pointer to 0

2021-03-09 Thread Jiapeng Chong
Fix the following coccicheck warning: ./tools/testing/selftests/bpf/progs/test_global_func10.c:17:12-13: WARNING comparing pointer to 0. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/testing/selftests/bpf/progs/test_global_func10.c | 2 +- 1 file changed, 1 insertion(+), 1 de

RE: [PATCH net 2/2] net: enetc: allow hardware timestamping on TX queues with tc-etf enabled

2021-03-09 Thread Po Liu
Ok to me. > -Original Message- > From: Vladimir Oltean > Sent: 2021年3月7日 21:24 > To: David S . Miller ; Jakub Kicinski ; > netdev@vger.kernel.org; Po Liu > Cc: Alexandru Marginean ; Claudiu Manoil > ; Michael Walle ; Vladimir > Oltean ; Vinicius Costa Gomes > > Subject: [PATCH net 2/2]

[PATCH RESEND][next] qed: Fix fall-through warnings for Clang

2021-03-09 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding a couple of break statements instead of just letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Reviewed-by: Igor Russkikh Signed-off-by: Gustavo A. R.

Re: [PATCH mlx5-next v7 0/4] Dynamically assign MSI-X vectors count

2021-03-09 Thread Leon Romanovsky
On Mon, Mar 01, 2021 at 09:55:20AM +0200, Leon Romanovsky wrote: > From: Leon Romanovsky <...> > Leon Romanovsky (4): > PCI: Add a sysfs file to change the MSI-X table size of SR-IOV VFs > net/mlx5: Add dynamic MSI-X capabilities bits > net/mlx5: Dynamically assign MSI-X vectors count >

Re: [RFC net-next] iavf: refactor plan proposal

2021-03-09 Thread Leon Romanovsky
On Tue, Mar 09, 2021 at 09:11:46PM -0800, Jesse Brandeburg wrote: > Leon Romanovsky wrote: > > > > 3) Plan is to make the "new" iavf driver the default iavf once > > >extensive regression testing can be completed. > > > a. Current proposal is to make CONFIG_IAVF have a sub-option > > > C

Re: DSA

2021-03-09 Thread Wyse, Chris
Subject: Re: DSA > On Mon, 30 Apr 2018 14:50:30 +0200, Andrew Lunn wrote: > > > On Fri, Apr 27, 2018 at 06:10:55PM +, Dave Richards wrote: > > > Hello, > > > > > > I am building a prototype for a new product based on a Lanner, Inc. embedded PC. > > > It is an Intel Celeron-based system with tw

[PATCH RESEND][next] net: plip: Fix fall-through warnings for Clang

2021-03-09 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- Changes in RESEND: - N

[PATCH RESEND][next] net: rose: Fix fall-through warnings for Clang

2021-03-09 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- Changes in RESEND: - N

[PATCH RESEND][next] net: core: Fix fall-through warnings for Clang

2021-03-09 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- Changes in RESEND: - None. Resending n

[PATCH RESEND][next] net: bridge: Fix fall-through warnings for Clang

2021-03-09 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Acked-by: Nikolay Aleksandrov Signed-off-by: Gustavo A. R. Silva --- Changes

[PATCH RESEND][next] net: ax25: Fix fall-through warnings for Clang

2021-03-09 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- Changes in RESEND: - None. Resending n

[PATCH RESEND][next] decnet: Fix fall-through warnings for Clang

2021-03-09 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- Changes in RESEND: - None. Resending n

[PATCH RESEND][next] net: cassini: Fix fall-through warnings for Clang

2021-03-09 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of just letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- Changes in RESEND: - None. Resend

[PATCH RESEND][next] net: 3c509: Fix fall-through warnings for Clang

2021-03-09 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of just letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- Changes in RESEND: - None. Resend

[PATCH RESEND][next] net: mscc: ocelot: Fix fall-through warnings for Clang

2021-03-09 Thread Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of just letting the code fall through to the next case. Signed-off-by: Gustavo A. R. Silva Reviewed-by: Vladimir Oltean Link: https://github.com/KSPP/linux/issues/115 --- Chan

[Patch bpf-next v4 07/11] udp: implement ->read_sock() for sockmap

2021-03-09 Thread Cong Wang
From: Cong Wang This is similar to tcp_read_sock(), except we do not need to worry about connections, we just need to retrieve skb from UDP receive queue. Cc: John Fastabend Cc: Daniel Borkmann Cc: Jakub Sitnicki Cc: Lorenz Bauer Signed-off-by: Cong Wang --- include/net/udp.h | 2 ++ ne

[Patch bpf-next v4 11/11] selftests/bpf: add a test case for udp sockmap

2021-03-09 Thread Cong Wang
From: Cong Wang Add a test case to ensure redirection between two UDP sockets work. Cc: John Fastabend Cc: Daniel Borkmann Cc: Jakub Sitnicki Cc: Lorenz Bauer Signed-off-by: Cong Wang --- .../selftests/bpf/prog_tests/sockmap_listen.c | 140 ++ .../selftests/bpf/progs/test_s

[Patch bpf-next v4 06/11] sock: introduce sk->sk_prot->psock_update_sk_prot()

2021-03-09 Thread Cong Wang
From: Cong Wang Currently sockmap calls into each protocol to update the struct proto and replace it. This certainly won't work when the protocol is implemented as a module, for example, AF_UNIX. Introduce a new ops sk->sk_prot->psock_update_sk_prot(), so each protocol can implement its own way

[Patch bpf-next v4 08/11] skmsg: extract __tcp_bpf_recvmsg() and tcp_bpf_wait_data()

2021-03-09 Thread Cong Wang
From: Cong Wang Although these two functions are only used by TCP, they are not specific to TCP at all, both operate on skmsg and ingress_msg, so fit in net/core/skmsg.c very well. And we will need them for non-TCP, so rename and move them to skmsg.c and export them to modules. Cc: John Fastabe

[Patch bpf-next v4 02/11] skmsg: introduce a spinlock to protect ingress_msg

2021-03-09 Thread Cong Wang
From: Cong Wang Currently we rely on lock_sock to protect ingress_msg, it is too big for this, we can actually just use a spinlock to protect this list like protecting other skb queues. __tcp_bpf_recvmsg() is still special because of peeking, it still has to use lock_sock. Cc: John Fastabend C

[Patch bpf-next v4 03/11] skmsg: introduce skb_send_sock() for sock_map

2021-03-09 Thread Cong Wang
From: Cong Wang We only have skb_send_sock_locked() which requires callers to use lock_sock(). Introduce a variant skb_send_sock() which locks on its own, callers do not need to lock it any more. This will save us from adding a ->sendmsg_locked for each protocol. To reuse the code, pass function

[Patch bpf-next v4 01/11] skmsg: lock ingress_skb when purging

2021-03-09 Thread Cong Wang
From: Cong Wang Currently we purge the ingress_skb queue only when psock refcnt goes down to 0, so locking the queue is not necessary, but in order to be called during ->close, we have to lock it here. Cc: John Fastabend Cc: Daniel Borkmann Cc: Jakub Sitnicki Cc: Lorenz Bauer Signed-off-by:

[Patch bpf-next v4 10/11] sock_map: update sock type checks for UDP

2021-03-09 Thread Cong Wang
From: Cong Wang Now UDP supports sockmap and redirection, we can safely update the sock type checks for it accordingly. Cc: John Fastabend Cc: Daniel Borkmann Cc: Jakub Sitnicki Cc: Lorenz Bauer Signed-off-by: Cong Wang --- net/core/sock_map.c | 5 - 1 file changed, 4 insertions(+), 1

[Patch bpf-next v4 05/11] sock_map: introduce BPF_SK_SKB_VERDICT

2021-03-09 Thread Cong Wang
From: Cong Wang Reusing BPF_SK_SKB_STREAM_VERDICT is possible but its name is confusing and more importantly we still want to distinguish them from user-space. So we can just reuse the stream verdict code but introduce a new type of eBPF program, skb_verdict. Users are not allowed to set stream_v

[Patch bpf-next v4 04/11] skmsg: avoid lock_sock() in sk_psock_backlog()

2021-03-09 Thread Cong Wang
From: Cong Wang We do not have to lock the sock to avoid losing sk_socket, instead we can purge all the ingress queues when we close the socket. Sending or receiving packets after orphaning socket makes no sense. We do purge these queues when psock refcnt reaches 0 but here we want to purge them

[Patch bpf-next v4 09/11] udp: implement udp_bpf_recvmsg() for sockmap

2021-03-09 Thread Cong Wang
From: Cong Wang We have to implement udp_bpf_recvmsg() to replace the ->recvmsg() to retrieve skmsg from ingress_msg. Cc: John Fastabend Cc: Daniel Borkmann Cc: Jakub Sitnicki Cc: Lorenz Bauer Signed-off-by: Cong Wang --- net/ipv4/udp_bpf.c | 64

[Patch bpf-next v4 00/11] sockmap: introduce BPF_SK_SKB_VERDICT and support UDP

2021-03-09 Thread Cong Wang
From: Cong Wang We have thousands of services connected to a daemon on every host via AF_UNIX dgram sockets, after they are moved into VM, we have to add a proxy to forward these communications from VM to host, because rewriting thousands of them is not practical. This proxy uses an AF_UNIX socke

[PATCH RESEND][next] net: fddi: skfp: smt: Replace one-element array with flexible-array member

2021-03-09 Thread Gustavo A. R. Silva
There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use “flexible array members”[1] for these cases. The older style of one-element or zero-length arrays should no longer be used[2]. Refacto

Re: [RFC net-next] iavf: refactor plan proposal

2021-03-09 Thread Jesse Brandeburg
Jakub Kicinski wrote: > On Mon, 8 Mar 2021 16:28:58 -0800 Jesse Brandeburg wrote: > > Hello, > > > > We plan to refactor the iavf module and would appreciate community and > > maintainer feedback on our plans. We want to do this to realize the > > usefulness of the common code module for multipl

Re: [RFC net-next] iavf: refactor plan proposal

2021-03-09 Thread Jesse Brandeburg
Leon Romanovsky wrote: > > 3) Plan is to make the "new" iavf driver the default iavf once > >extensive regression testing can be completed. > > a. Current proposal is to make CONFIG_IAVF have a sub-option > >CONFIG_IAVF_V2 that lets the user adopt the new code, > >without c

Re: [PATCH v3] bcm63xx_enet: fix internal phy IRQ assignment

2021-03-09 Thread kernel test robot
Hi "Daniel, Thank you for the patch! Yet something to improve: [auto build test ERROR on ipvs/master] [also build test ERROR on linus/master sparc-next/master v5.12-rc2 next-20210309] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we su

RE: [Intel-wired-lan] [PATCH net-next 2/3] ixgbe: optimize for XDP_REDIRECT in xsk path

2021-03-09 Thread Jambekar, Vishakha
> From: Intel-wired-lan On Behalf Of > Magnus Karlsson > Sent: Wednesday, December 2, 2020 8:37 PM > To: Karlsson, Magnus ; Topel, Bjorn > ; intel-wired-...@lists.osuosl.org; Nguyen, Anthony L > > Cc: netdev@vger.kernel.org; maciejromanfijalkow...@gmail.com > Subject: [Intel-wired-lan] [PATCH net

[RFC net-next] net: stmmac: support FPE link partner hand-shaking procedure

2021-03-09 Thread mohammad . athari . ismail
From: Ong Boon Leong In order to discover whether remote station supports frame preemption, local station sends verify mPacket and expects response mPacket in return from the remote station. So, we add the functions to send and handle event when verify mPacket and response mPacket are exchanged

[PATCH bpf-next 10/10] selftests/bpf: add multi-file statically linked BPF object file test

2021-03-09 Thread Andrii Nakryiko
Add Makefile infra to specify multi-file BPF object files (and derivative skeletons). Add first selftest validating BPF static linker can merge together successfully two independent BPF object files and resulting object and skeleton are correct and usable. Signed-off-by: Andrii Nakryiko --- tool

[PATCH bpf-next 09/10] selftests/bpf: pass all BPF .o's through BPF static linker

2021-03-09 Thread Andrii Nakryiko
Pass all individual BPF object files (progs/*.o) through `bpftool gen bpfo` command to validate that BPF static linker doesn't corrupt them. Signed-off-by: Andrii Nakryiko --- tools/testing/selftests/bpf/.gitignore | 1 + tools/testing/selftests/bpf/Makefile | 8 +++- 2 files changed, 4 in

[PATCH bpf-next 07/10] bpftool: add `gen bpfo` command to perform BPF static linking

2021-03-09 Thread Andrii Nakryiko
Add `bpftool gen bpfo ...` command to statically link multiple BPF object files into a single output BPF object file. Similarly to existing '*.o' convention, bpftool is establishing a '*.bpfo' convention for statically-linked BPF object files. Both .o and .bpfo suffixes will be stripped out durin

[PATCH bpf-next 04/10] libbpf: add generic BTF type shallow copy API

2021-03-09 Thread Andrii Nakryiko
Add btf__add_type() API that performs shallow copy of a given BTF type from the source BTF into the destination BTF. All the information and type IDs are preserved, but all the strings encountered are added into the destination BTF and corresponding offsets are rewritten. BTF type IDs are assumed t

[PATCH bpf-next 08/10] selftests/bpf: re-generate vmlinux.h and BPF skeletons if bpftool changed

2021-03-09 Thread Andrii Nakryiko
Trigger vmlinux.h and BPF skeletons re-generation if detected that bpftool was re-compiled. Otherwise full `make clean` is required to get updated skeletons, if bpftool is modified. Fixes: acbd06206bbb ("selftests/bpf: Add vmlinux.h selftest exercising tracing of syscalls") Signed-off-by: Andrii

[PATCH bpf-next 06/10] libbpf: add BPF static linker BTF and BTF.ext support

2021-03-09 Thread Andrii Nakryiko
Add .BTF and .BTF.ext static linking logic. When multiple BPF object files are linked together, their respective .BTF and .BTF.ext sections are merged together. BTF types are not just concatenated, but also deduplicated. .BTF.ext data is grouped by type (func info, line info, core_relos) and targe

[PATCH bpf-next 03/10] libbpf: generalize BTF and BTF.ext type ID and strings iteration

2021-03-09 Thread Andrii Nakryiko
Extract and generalize the logic to iterate BTF type ID and string offset fields within BTF types and .BTF.ext data. Expose this internally in libbpf for re-use by bpf_linker. Additionally, complete strings deduplication handling for BTF.ext (e.g., CO-RE access strings), which was previously missi

[PATCH bpf-next 01/10] libbpf: expose btf_type_by_id() internally

2021-03-09 Thread Andrii Nakryiko
btf_type_by_id() is internal-only convenience API returning non-const pointer to struct btf_type. Expose it outside of btf.c for re-use. Signed-off-by: Andrii Nakryiko --- tools/lib/bpf/btf.c | 2 +- tools/lib/bpf/libbpf_internal.h | 5 + 2 files changed, 6 insertions(+), 1 delet

[PATCH bpf-next 00/10] BPF static linking

2021-03-09 Thread Andrii Nakryiko
This patch set adds new libbpf APIs and their bpftool integration that allows to perform static linking of BPF object files. Currently no extern resolution across object files is performed. This is going to be the focus of the follow up patches. But, given amount of code and logic necessary to perf

[PATCH bpf-next 05/10] libbpf: add BPF static linker APIs

2021-03-09 Thread Andrii Nakryiko
Introduce BPF static linker APIs to libbpf. BPF static linker allows to perform static linking of multiple BPF object files into a single combined resulting object file, preserving all the BPF programs, maps, global variables, etc. Data sections (.bss, .data, .rodata, .maps, maps, etc) with the sa

[PATCH bpf-next 02/10] libbpf: add internal helper to get raw BTF strings section

2021-03-09 Thread Andrii Nakryiko
struct btf is an efficient and convenient data structure to be used as a set of deduplicated strings. This patch adds libbpf-internal btf_raw_str() helper that gives access to strings section raw data (regardless of whether BTF object is read-only or writeable) and its size in bytes. This is going

[PATCH] net/rds: Drop duplicate sin and sin6 assignments

2021-03-09 Thread Yejune Deng
There is no need to assign the msg->msg_name to sin or sin6, because there is DECLARE_SOCKADDR statement. Signed-off-by: Yejune Deng --- net/rds/recv.c | 4 1 file changed, 4 deletions(-) diff --git a/net/rds/recv.c b/net/rds/recv.c index aba4afe4dfed..4db109fb6ec2 100644 --- a/net/rds/rec

[PATCH] perf tools: Remove redundant code

2021-03-09 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./tools/perf/util/evlist.c:1315:5-8: Unneeded variable: "err". Return "- ENOMEM" on line 1340. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/perf/util/evlist.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/p

[PATCH] drivers: isdn: mISDN: fix spelling typo of 'wheter'

2021-03-09 Thread Wang Qing
wheter -> whether Signed-off-by: Wang Qing --- drivers/isdn/mISDN/l1oip_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/mISDN/l1oip_core.c b/drivers/isdn/mISDN/l1oip_core.c index b57dcb8..facbd88 --- a/drivers/isdn/mISDN/l1oip_core.c +++ b/drivers/isdn/mIS

[PATCH] net: ethernet: chelsiofix: spelling typo of 'rewriteing'

2021-03-09 Thread Wang Qing
rewriteing -> rewriting Signed-off-by: Wang Qing --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c index 83b4644..b1cae5a

RE: [PATCH v10 14/20] dlb: add start domain ioctl

2021-03-09 Thread Chen, Mike Ximing
> -Original Message- > From: Greg KH > On Wed, Feb 10, 2021 at 11:54:17AM -0600, Mike Ximing Chen wrote: > > > > diff --git a/drivers/misc/dlb/dlb_ioctl.c b/drivers/misc/dlb/dlb_ioctl.c > > index 6a311b969643..9b05344f03c8 100644 > > --- a/drivers/misc/dlb/dlb_ioctl.c > > +++ b/drivers/

Re: [PATCH] net: sock: simplify tw proto registration

2021-03-09 Thread Alexander Duyck
On Tue, Mar 9, 2021 at 5:48 PM Tonghao Zhang wrote: > > On Wed, Mar 10, 2021 at 1:39 AM Alexander Duyck > wrote: > > > > On Mon, Mar 8, 2021 at 7:15 PM wrote: > > > > > > From: Tonghao Zhang > > > > > > Introduce a new function twsk_prot_init, inspired by > > > req_prot_init, to simplify the "p

[PATCH] netdevsim: fib: Remove redundant code

2021-03-09 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/net/netdevsim/fib.c:874:5-8: Unneeded variable: "err". Return "0" on line 889. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/netdevsim/fib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/n

[PATCH v8 net-next] virtio-net: support XDP when not more queues

2021-03-09 Thread Xuan Zhuo
The number of queues implemented by many virtio backends is limited, especially some machines have a large number of CPUs. In this case, it is often impossible to allocate a separate queue for XDP_TX/XDP_REDIRECT, then xdp cannot be loaded to work, even xdp does not use the XDP_TX/XDP_REDIRECT. Th

Re: [RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system

2021-03-09 Thread Andrew Lunn
On Tue, Mar 09, 2021 at 06:57:06PM +0100, Eric Dumazet wrote: > > > On 3/9/21 6:10 PM, Shay Agroskin wrote: > > The page cache holds pages we allocated in the past during napi cycle, > > and tracks their availability status using page ref count. > > > > The cache can hold up to 2048 pages. Upon

Re: [PATCH net-next] net: dpaa2-mac: add support for more ethtool 10G link modes

2021-03-09 Thread Andrew Lunn
On Tue, Mar 09, 2021 at 03:35:05PM +, Russell King wrote: > Phylink documentation says: > * Note that the PHY may be able to transform from one connection > * technology to another, so, eg, don't clear 1000BaseX just > * because the MAC is unable to BaseX mode. This is more about > * cleari

pull-request: bpf-next 2021-03-09

2021-03-09 Thread Alexei Starovoitov
Hi David, hi Jakub, The following pull-request contains BPF updates for your *net-next* tree. We've added 90 non-merge commits during the last 17 day(s) which contain a total of 114 files changed, 5158 insertions(+), 1288 deletions(-). The main changes are: 1) Faster bpf_redirect_map(), from Bj

[PATCH v4 RESEND net-next] net: socket: use BIT() for MSG_*

2021-03-09 Thread menglong8 . dong
From: Menglong Dong The bit mask for MSG_* seems a little confused here. Replace it with BIT() to make it clear to understand. Signed-off-by: Menglong Dong --- v4: - CC netdev v3: - move changelog here v2: - use BIT() instead of BIT_MASK() --- include/linux/socket.h | 71 ++

Re: [PATCH] net: sock: simplify tw proto registration

2021-03-09 Thread Tonghao Zhang
On Wed, Mar 10, 2021 at 1:39 AM Alexander Duyck wrote: > > On Mon, Mar 8, 2021 at 7:15 PM wrote: > > > > From: Tonghao Zhang > > > > Introduce a new function twsk_prot_init, inspired by > > req_prot_init, to simplify the "proto_register" function. > > > > Signed-off-by: Tonghao Zhang > > --- >

Re: [PATCH net] selftests/bpf: set gopt opt_class to 0 if get tunnel opt failed

2021-03-09 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Tue, 9 Mar 2021 11:22:14 +0800 you wrote: > When fixing the bpf test_tunnel.sh genve failure. I only fixed > the IPv4 part but forgot the IPv6 issue. Similar with the IPv4 > fixes 557c223b643a ("selftests/bpf: No need t

RE: [PATCH v10 05/20] dlb: add scheduling domain configuration

2021-03-09 Thread Chen, Mike Ximing
> -Original Message- > From: Greg KH > > On Wed, Feb 10, 2021 at 11:54:08AM -0600, Mike Ximing Chen wrote: > > +static inline int dlb_bitmap_clear_range(struct dlb_bitmap *bitmap, > > +unsigned int bit, > > +unsign

RE: [PATCH v10 04/20] dlb: add device ioctl layer and first three ioctls

2021-03-09 Thread Chen, Mike Ximing
> From: Greg KH > On Wed, Feb 10, 2021 at 11:54:07AM -0600, Mike Ximing Chen wrote: > > +/* > > + * DLB_CMD_CREATE_SCHED_DOMAIN: Create a DLB 2.0 scheduling domain and > reserve > > + * its hardware resources. This command returns the newly created domain > > + * ID and a file descriptor for acces

RE: [PATCH v10 03/20] dlb: add resource and device initialization

2021-03-09 Thread Chen, Mike Ximing
> -Original Message- > From: Greg KH > > On Wed, Feb 10, 2021 at 11:54:06AM -0600, Mike Ximing Chen wrote: > > + > > +#include "dlb_bitmap.h" > > + > > +#define BITS_SET(x, val, mask) (x = ((x) & ~(mask)) \ > > +| (((val) << (mask##_LOC)) & (mask))) >

net-next is OPEN

2021-03-09 Thread David Miller
Ready for your submissions as always :)

Re: [RFC net] net: dsa: Centralize validation of VLAN configuration

2021-03-09 Thread Vladimir Oltean
On Wed, Mar 10, 2021 at 01:30:33AM +0100, Andrew Lunn wrote: > On Tue, Mar 09, 2021 at 10:28:11PM +0100, Tobias Waldekranz wrote: > > Hi Tobias > > As with Florian, i've not been following the discussion. I'm afraid there isn't much context for these patches, except Tobias pointing out that some

[PATCH net 1/2] net: Consolidate common blackhole dst ops

2021-03-09 Thread Daniel Borkmann
Move generic blackhole dst ops to the core and use them from both ipv4_dst_blackhole_ops and ip6_dst_blackhole_ops where possible. No functional change otherwise. We need these also in other locations and having to define them over and over again is not great. Signed-off-by: Daniel Borkmann ---

[PATCH net 2/2] net, bpf: Fix ip6ip6 crash with collect_md populated skbs

2021-03-09 Thread Daniel Borkmann
I ran into a crash where setting up a ip6ip6 tunnel device which was /not/ set to collect_md mode was receiving collect_md populated skbs for xmit. The BPF prog was populating the skb via bpf_skb_set_tunnel_key() which is assigning special metadata dst entry and then redirecting the skb to the dev

[PATCH net 0/2] Fix ip6ip6 crash for collect_md skbs

2021-03-09 Thread Daniel Borkmann
Fix a NULL pointer deref panic I ran into for regular ip6ip6 tunnel devices when collect_md populated skbs were redirected to them for xmit. See patches for further details, thanks! Daniel Borkmann (2): net: Consolidate common blackhole dst ops net, bpf: Fix ip6ip6 crash with collect_md popula

Re: [RFC net] net: dsa: Centralize validation of VLAN configuration

2021-03-09 Thread Andrew Lunn
> > .100 br0 .100 > >\ / \ / > >lan0 lan1 > > > > $ ip link add dev br0 type bridge vlan_filtering 1 > > $ ip link add dev lan0.100 link lan0 type vlan id 100 > > $ ip link add dev lan1.100 link lan1 type vlan id 100 > > $ ip link set dev lan0 master br0 > > $ ip link set dev lan1 mast

Re: [RFC net] net: dsa: Centralize validation of VLAN configuration

2021-03-09 Thread Andrew Lunn
On Tue, Mar 09, 2021 at 10:28:11PM +0100, Tobias Waldekranz wrote: Hi Tobias As with Florian, i've not been following the discussion. > Yeah sorry, I can imagine that makes no sense whatsoever without the > context of the recent discussions. It is basically guarding against this > situation: >

Re: [PATCH net-next v3 0/6] net: qualcomm: rmnet: stop using C bit-fields

2021-03-09 Thread Vladimir Oltean
Hi Alex, On Tue, Mar 09, 2021 at 05:39:20PM -0600, Alex Elder wrote: > On 3/9/21 6:48 AM, Alex Elder wrote: > > Version 3 of this series uses BIT() rather than GENMASK() to define > > single-bit masks. It then uses a simple AND (&) operation rather > > than (e.g.) u8_get_bits() to access such fla

Re: [PATCH bpf-next v6 0/2] Optimize bpf_redirect_map()/xdp_do_redirect()

2021-03-09 Thread patchwork-bot+netdevbpf
Hello: This series was applied to bpf/bpf-next.git (refs/heads/master): On Mon, 8 Mar 2021 12:29:05 +0100 you wrote: > Hi XDP-folks, > > This two patch series contain two optimizations for the > bpf_redirect_map() helper and the xdp_do_redirect() function. > > The bpf_redirect_map() optimizati

Re: [PATCH net 0/4] s390/qeth: fixes 2021-03-09

2021-03-09 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (refs/heads/master): On Tue, 9 Mar 2021 17:52:17 +0100 you wrote: > Hi Dave & Jakub, > > please apply the following patch series to netdev's net tree. > > This brings one fix for a memleak in an error path of the setup code. > Also several fixes

Re: [PATCH net v3 0/2] net: prevent infinite loop caused by incorrect proto from virtio_net_hdr_set_proto

2021-03-09 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (refs/heads/master): On Tue, 9 Mar 2021 12:30:59 +0100 you wrote: > These patches prevent an infinite loop for gso packets with a protocol > from virtio net hdr that doesn't match the protocol in the packet. > Note that packets coming from a devic

Re: [PATCH net] net: dsa: xrs700x: check if partner is same as port in hsr join

2021-03-09 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Mon, 8 Mar 2021 17:38:22 -0600 you wrote: > Don't assign dp to partner if it's the same port that xrs700x_hsr_join > was called with. The partner port is supposed to be the other port in > the HSR/PRP redundant pair not the

Re: [PATCH bpf-next v6 0/2] Optimize bpf_redirect_map()/xdp_do_redirect()

2021-03-09 Thread Daniel Borkmann
On 3/8/21 12:29 PM, Björn Töpel wrote: Hi XDP-folks, This two patch series contain two optimizations for the bpf_redirect_map() helper and the xdp_do_redirect() function. The bpf_redirect_map() optimization is about avoiding the map lookup dispatching. Instead of having a switch-statement and s

Re: [PATCH net-next v3 5/6] net: qualcomm: rmnet: don't use C bit-fields in rmnet checksum trailer

2021-03-09 Thread Alex Elder
On 3/9/21 6:48 AM, Alex Elder wrote: Replace the use of C bit-fields in the rmnet_map_dl_csum_trailer structure with a single one-byte field, using constant field masks to encode or get at embedded values. Signed-off-by: Alex Elder Reviewed-by: Bjorn Andersson --- v3: Use BIT(x) and don't use

Re: [PATCH net] net: lapbether: Remove netif_start_queue / netif_stop_queue

2021-03-09 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Sun, 7 Mar 2021 03:33:07 -0800 you wrote: > For the devices in this driver, the default qdisc is "noqueue", > because their "tx_queue_len" is 0. > > In function "__dev_queue_xmit" in "net/core/dev.c", devices with the > "no

[PATCH bpf-next 1/2] libbpf: add explicit padding to bpf_xdp_set_link_opts

2021-03-09 Thread Andrii Nakryiko
Adding such anonymous padding fixes the issue with uninitialized portions of bpf_xdp_set_link_opts when using LIBBPF_DECLARE_OPTS macro with inline field initialization: DECLARE_LIBBPF_OPTS(bpf_xdp_set_link_opts, opts, .old_fd = -1); When such code is compiled in debug mode, compiler is generatin

RE: [Intel-wired-lan] [PATCH RESEND][next] ice: Fix fall-through warnings for Clang

2021-03-09 Thread Brelinski, TonyX
> -Original Message- > From: Intel-wired-lan On Behalf Of > Paul Menzel > Sent: Friday, March 5, 2021 1:04 AM > To: Gustavo A. R. Silva ; Brandeburg, Jesse > ; Nguyen, Anthony L > ; David S. Miller ; > Jakub Kicinski > Cc: netdev@vger.kernel.org; intel-wired-...@lists.osuosl.org; linux- >

Re: [RFC] devlink: health: add remediation type

2021-03-09 Thread Jacob Keller
On 3/9/2021 2:52 PM, Jakub Kicinski wrote: > On Tue, 9 Mar 2021 16:18:58 +0200 Eran Ben Elisha wrote: DLH_REMEDY_LOCAL_FIX: associated component will undergo a local un-harmful fix attempt. (e.g look for lost interrupt in mlx5e_tx_reporter_timeout_recover()) >>> >>> Should we make

Re: [PATCH net-next v3 0/6] net: qualcomm: rmnet: stop using C bit-fields

2021-03-09 Thread Alex Elder
On 3/9/21 6:48 AM, Alex Elder wrote: Version 3 of this series uses BIT() rather than GENMASK() to define single-bit masks. It then uses a simple AND (&) operation rather than (e.g.) u8_get_bits() to access such flags. This was suggested by David Laight and really prefer the result. With Bjorn'

Re: [RFC] devlink: health: add remediation type

2021-03-09 Thread Jakub Kicinski
On Tue, 9 Mar 2021 16:18:58 +0200 Eran Ben Elisha wrote: > >> DLH_REMEDY_LOCAL_FIX: associated component will undergo a local > >> un-harmful fix attempt. > >> (e.g look for lost interrupt in mlx5e_tx_reporter_timeout_recover()) > > > > Should we make it more specific? Maybe DLH_REMEDY_STALL: de

Re: DSA

2021-03-09 Thread Andrew Lunn
> > Take a look at arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi > > > > &pcie { > > pinctrl-names = "default"; > > pinctrl-0 = <&pinctrl_pcie>; > > reset-gpio = <&gpio7 12 GPIO_ACTIVE_LOW>; > > status = "okay"; > > > > host@0 { > > reg = <0 0 0 0 0

Re: [RFC] devlink: health: add remediation type

2021-03-09 Thread Jakub Kicinski
On Tue, 9 Mar 2021 16:06:49 +0200 Eran Ben Elisha wrote: > On 3/8/2021 7:59 PM, Jakub Kicinski wrote: > >> Hm, export and extend devlink_health_reporter_state? I like that idea. > > > > Trying to type it up it looks less pretty than expected. > > > > Let's looks at some examples. > > > > A que

Re: [patch 12/14] PCI: hv: Use tasklet_disable_in_atomic()

2021-03-09 Thread Bjorn Helgaas
On Tue, Mar 09, 2021 at 09:42:15AM +0100, Thomas Gleixner wrote: > From: Sebastian Andrzej Siewior > > The hv_compose_msi_msg() callback in irq_chip::irq_compose_msi_msg is > invoked via irq_chip_compose_msi_msg(), which itself is always invoked from > atomic contexts from the guts of the interru

Re: [RFC net-next] iavf: refactor plan proposal

2021-03-09 Thread Jakub Kicinski
On Mon, 8 Mar 2021 16:28:58 -0800 Jesse Brandeburg wrote: > Hello, > > We plan to refactor the iavf module and would appreciate community and > maintainer feedback on our plans. We want to do this to realize the > usefulness of the common code module for multiple drivers. This > proposal aims to

Re: [RFC net] net: dsa: Centralize validation of VLAN configuration

2021-03-09 Thread Vladimir Oltean
On Tue, Mar 09, 2021 at 10:28:11PM +0100, Tobias Waldekranz wrote: > On Tue, Mar 09, 2021 at 12:40, Florian Fainelli wrote: > > On 3/9/21 10:42 AM, Tobias Waldekranz wrote: > >> There are three kinds of events that have an inpact on VLAN > >> configuration of DSA ports: > >> > >> - Adding of stac

Re: DSA

2021-03-09 Thread Wyse, Chris
On Tue, 2021-03-09 at 17:46 +0100, Andrew Lunn wrote: > > > I have a board that uses the Intel i210, and I'd like it be the DSA > > master. I'm looking for suggestions on how to proceed. > > > > My configuration is an Intel E3950 CPU running Linux 4.19.62, > > Hi Chris > > That is old. Can you up

Re: [PATCH] ethernet: ucc_geth: Use kmemdup instead of kmalloc and memcpy

2021-03-09 Thread Rasmus Villemoes
On 05/03/2021 15.27, angkery wrote: > From: Junlin Yang > > Fixes coccicheck warnings: > ./drivers/net/ethernet/freescale/ucc_geth.c:3594:11-18: > WARNING opportunity for kmemdup > > Signed-off-by: Junlin Yang > --- > drivers/net/ethernet/freescale/ucc_geth.c | 3 +-- > 1 file changed, 1 inser

Re: [RFC net] net: dsa: Centralize validation of VLAN configuration

2021-03-09 Thread Tobias Waldekranz
On Tue, Mar 09, 2021 at 12:40, Florian Fainelli wrote: > On 3/9/21 10:42 AM, Tobias Waldekranz wrote: >> There are three kinds of events that have an inpact on VLAN >> configuration of DSA ports: >> >> - Adding of stacked VLANs >> (ip link add dev swp0.1 link swp0 type vlan id 1) >> >> - Addin

[PATCH] mac80211: Check crypto_aead_encrypt for errors

2021-03-09 Thread Daniel Phan
From: panda crypto_aead_encrypt returns <0 on error, so if these calls are not checked, execution may continue with failed encrypts. It also seems that these two crypto_aead_encrypt calls are the only instances in the codebase that are not checked for errors. Signed-off-by: Daniel Phan --- ne

Re: [PATCH] net: add net namespace inode for all net_dev events

2021-03-09 Thread Alexei Starovoitov
On Tue, Mar 9, 2021 at 12:37 PM Steven Rostedt wrote: > > The size of the fields and order changes all the time in various events. I > recommend doing so *all the time*. If you upgrade a kernel, then all the bpf > programs you have for that kernel should also be updated. You can't rely on > fields

Re: [RFC net] net: dsa: Centralize validation of VLAN configuration

2021-03-09 Thread Florian Fainelli
On 3/9/21 10:42 AM, Tobias Waldekranz wrote: > There are three kinds of events that have an inpact on VLAN > configuration of DSA ports: > > - Adding of stacked VLANs > (ip link add dev swp0.1 link swp0 type vlan id 1) > > - Adding of bridged VLANs > (bridge vlan add dev swp0 vid 1) > > - Ch

Re: [PATCH] net: add net namespace inode for all net_dev events

2021-03-09 Thread Steven Rostedt
On Tue, 9 Mar 2021 13:17:23 -0700 David Ahern wrote: > On 3/9/21 1:02 PM, Steven Rostedt wrote: > > On Tue, 9 Mar 2021 12:53:37 -0700 > > David Ahern wrote: > > > >> Changing the order of the fields will impact any bpf programs expecting > >> the existing format > > > > I thought bpf progr

Re: [PATCH] net: add net namespace inode for all net_dev events

2021-03-09 Thread Alexei Starovoitov
On Tue, Mar 9, 2021 at 12:18 PM David Ahern wrote: > > On 3/9/21 1:02 PM, Steven Rostedt wrote: > > On Tue, 9 Mar 2021 12:53:37 -0700 > > David Ahern wrote: > > > >> Changing the order of the fields will impact any bpf programs expecting > >> the existing format > > > > I thought bpf programs wer

  1   2   3   >