[PATCH] net/ethernet: update ret when ptp_clock is ERROR

2020-11-05 Thread Wang Qing
We always have to update the value of ret, otherwise the error value may be the previous one. Signed-off-by: Wang Qing --- drivers/net/ethernet/ti/am65-cpts.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ti/am65-cpts.c b/drivers/net/ethernet/ti/am6

[PATCH] net: usb: fix spelling typo in cdc_ncm.c

2020-11-05 Thread Wang Qing
Actually, withing should be within. Signed-off-by: Wang Qing --- drivers/net/usb/cdc_ncm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c index e04f588..746353c --- a/drivers/net/usb/cdc_ncm.c +++ b/drivers/net/usb/cdc_nc

Re: [PATCH bpf-next 2/2] selftest/bpf: remove unused bpf tunnel testing code

2020-11-05 Thread Hangbin Liu
On Thu, Nov 05, 2020 at 11:30:35PM -0800, Martin KaFai Lau wrote: > [ ... ] > > > @@ -585,12 +571,11 @@ int _ipip6_set_tunnel(struct __sk_buff *skb) > > struct bpf_tunnel_key key = {}; > > void *data = (void *)(long)skb->data; > > struct iphdr *iph = data; > v4 hdr here. Ah, right, I

Re: [PATCH net-next v2 03/10] tun: switch to net core provided statistics counters

2020-11-05 Thread Heiner Kallweit
On 06.11.2020 02:14, Jakub Kicinski wrote: > On Wed, 4 Nov 2020 15:25:24 +0100 Heiner Kallweit wrote: >> @@ -1066,7 +1054,7 @@ static netdev_tx_t tun_net_xmit(struct sk_buff *skb, >> struct net_device *dev) >> return NETDEV_TX_OK; >> >> drop: >> -this_cpu_inc(tun->pcpu_stats->tx_droppe

[PATCH] xdp: auto off xdp by bond fd

2020-11-05 Thread Xuan Zhuo
By default, off xdp is implemented by actively calling netlink on the command line or in the program. This is very inconvenient for apps based on xdp. For example, an app based on xdp + xsk exits abnormally, but xdp is still working, which may cause some exceptions. And xsk cannot be automatically

RE: [PATCH net-next 3/5] r8152: add MCU typed read/write functions

2020-11-05 Thread Hayes Wang
Marek Behún > Sent: Friday, November 6, 2020 2:40 PM [...] > Hi Hayes, > > just to be clear: > Are you against defining these functions via macros? > If so, I can simply rewrite this so that it does not use macros... I would like the way which let me find the source of the function easily. I don

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

2020-11-05 Thread Martin Willi
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 asynchronously, such as with NFQUEUE. The Netfilter okfn() is called for asynchronously accepted packets, but the VRF

Re: [PATCH bpf-next 2/2] selftest/bpf: remove unused bpf tunnel testing code

2020-11-05 Thread Martin KaFai Lau
On Tue, Nov 03, 2020 at 12:29:08PM +0800, Hangbin Liu wrote: > 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 forgot to re

[PATCH] libbpf: Remove unnecessary conversion to bool

2020-11-05 Thread xiakaixu1987
From: Kaixu Xia Fix following warning from coccinelle: ./tools/lib/bpf/libbpf.c:1478:43-48: WARNING: conversion to bool not needed here Signed-off-by: Kaixu Xia --- tools/lib/bpf/libbpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bp

Re: [PATCH mlx5-next v1 04/11] vdpa/mlx5: Make hardware definitions visible to all mlx5 devices

2020-11-05 Thread Leon Romanovsky
On Thu, Nov 05, 2020 at 04:36:57PM -0400, Jason Gunthorpe wrote: > On Thu, Nov 05, 2020 at 12:31:52PM -0800, Saeed Mahameed wrote: > > On Sun, 2020-11-01 at 22:15 +0200, Leon Romanovsky wrote: > > > From: Leon Romanovsky > > > > > > Move mlx5_vdpa IFC header file to the general include folder, so

Re: [PATCH mlx5-next v1 05/11] net/mlx5: Register mlx5 devices to auxiliary virtual bus

2020-11-05 Thread Leon Romanovsky
On Thu, Nov 05, 2020 at 05:09:48PM -0400, Jason Gunthorpe wrote: > On Thu, Nov 05, 2020 at 12:59:20PM -0800, Saeed Mahameed wrote: > > > 2. you can always load a driver without its underlying device existed. > > for example, you can load a pci device driver/module and it will load > > and wait for

[PATCH] net: udp: remove redundant initialization in udp_send_skb

2020-11-05 Thread menglong8 . dong
From: Menglong Dong The initialization for 'err' with 0 is redundant and can be removed, as it is updated by ip_send_skb and not used before that. Signed-off-by: Menglong Dong --- net/ipv4/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c

Re: [PATCH bpf-next 4/5] bpf: load and verify kernel module BTFs

2020-11-05 Thread Greg Kroah-Hartman
On Thu, Nov 05, 2020 at 09:51:09PM -0800, Andrii Nakryiko wrote: > Add kernel module listener that will load/validate and unload module BTF. > Module BTFs gets ID generated for them, which makes it possible to iterate > them with existing BTF iteration API. They are given their respective module's

[PATCH] net: udp: remove redundant initialization in udp_dump_one

2020-11-05 Thread menglong8 . dong
From: Menglong Dong The initialization for 'err' with '-EINVAL' is redundant and can be removed, as it is updated soon and not used. Signed-off-by: Menglong Dong --- net/ipv4/udp_diag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/udp_diag.c b/net/ipv4/udp_diag.

[PATCH] net: udp: remove redundant initialization in udp_gro_complete

2020-11-05 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. Signed-off-by: Menglong Dong --- net/ipv4/udp_offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/udp_offload.c b/net/ipv4/udp

[PATCH] net: ipv4: remove redundant initialization in inet_rtm_deladdr

2020-11-05 Thread menglong8 . dong
From: Menglong Dong The initialization for 'err' with '-EINVAL' is redundant and can be removed, as it is updated soon. Signed-off-by: Menglong Dong --- net/ipv4/devinet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 123a6d3.

Re: [PATCH net-next 3/5] r8152: add MCU typed read/write functions

2020-11-05 Thread Marek Behún
On Fri, 6 Nov 2020 03:01:22 + Hayes Wang wrote: > Vladimir Oltean > > Sent: Thursday, November 5, 2020 6:57 PM > > On Thu, Nov 05, 2020 at 10:54:18AM +0100, Marek Behún wrote: > > > I thought that static inline functions are preferred to macros, since > > > compiler warns better if they ar

Re: [PATCH net-next v2 12/15] net/smc: Add support for obtaining SMCD device list

2020-11-05 Thread Karsten Graul
On 04/11/2020 02:31, Saeed Mahameed wrote: > On Tue, 2020-11-03 at 11:25 +0100, Karsten Graul wrote: >> From: Guvenc Gulce >> >> Deliver SMCD device information via netlink based >> diagnostic interface. >> >> Signed-off-by: Guvenc Gulce >> Signed-off-by: Karsten Graul >> --- >> include/uapi/li

Re: [PATCH v2] ath10k: sdio: remove redundant check in for loop

2020-11-05 Thread Kalle Valo
Alex Dewar wrote: > The for loop checks whether cur_section is NULL on every iteration, but > we know it can never be NULL as there is another check towards the > bottom of the loop body. Refactor to avoid this unnecessary check. > > Also, increment the variable i inline for clarity > > Address

Re: [PATCH] net/dsa: remove unused macros to tame gcc warning

2020-11-05 Thread Joe Perches
On Fri, 2020-11-06 at 13:37 +0800, Alex Shi wrote: > There are some macros unused, they causes much gcc warnings. Let's > remove them to tame gcc. I believe these to be essentially poor warnings. Aren't these warnings generated only when adding W=2 to the make command line? Perhaps it's better

Re: [net-next v4 7/8] net: smc: convert tasklets to use new tasklet_setup() API

2020-11-05 Thread Karsten Graul
On 03/11/2020 10:18, Allen Pais wrote: > From: Allen Pais > > In preparation for unconditionally passing the > struct tasklet_struct pointer to all tasklet > callbacks, switch to using the new tasklet_setup() > and from_tasklet() to pass the tasklet pointer explicitly. > > Signed-off-by: Romain

Re: [PATCH v2] net/x25: Fix null-ptr-deref in x25_connect

2020-11-05 Thread Martin Schiller
On 2020-10-06 07:45, Martin Schiller wrote: This fixes a regression for blocking connects introduced by commit 4becb7ee5b3d ("net/x25: Fix x25_neigh refcnt leak when x25 disconnect"). The x25->neighbour is already set to "NULL" by x25_disconnect() now, while a blocking connect is waiting in x2

Re: [PATCH net-next] net: x25_asy: Delete the x25_asy driver

2020-11-05 Thread Martin Schiller
On 2020-11-05 16:06, Arnd Bergmann wrote: ... Adding Martin Schiller and Andrew Hendry, plus the linux-x25 mailing list to Cc. When I last looked at the wan drivers, I think I concluded that this should still be kept around, but I do not remember why. OTOH if it was broken for a long time, that i

[PATCH] net/xdp: remove unused macro REG_STATE_NEW

2020-11-05 Thread Alex Shi
To tame gcc warning on it: net/core/xdp.c:20:0: warning: macro "REG_STATE_NEW" is not used [-Wunused-macros] Signed-off-by: Alex Shi Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Jesper Dangaard Brouer Cc: John Fastabend Cc: netdev@vger.kernel

[PATCH] net/dsa: remove unused macros to tame gcc warning

2020-11-05 Thread Alex Shi
There are some macros unused, they causes much gcc warnings. Let's remove them to tame gcc. net/dsa/tag_brcm.c:51:0: warning: macro "BRCM_EG_RC_SWITCH" is not used [-Wunused-macros] net/dsa/tag_brcm.c:53:0: warning: macro "BRCM_EG_RC_MIRROR" is not used [-Wunused-macros] net/dsa/tag_brcm.c:55:0: w

[PATCH] net/l2tp: remove unused macros to tame gcc warning

2020-11-05 Thread Alex Shi
There some unused macros cause gcc complain: net/l2tp/l2tp_core.c:73:0: warning: macro "L2TP_HDRFLAG_P" is not used [-Wunused-macros] net/l2tp/l2tp_core.c:80:0: warning: macro "L2TP_SLFLAG_S" is not used [-Wunused-macros] net/l2tp/l2tp_core.c:81:0: warning: macro "L2TP_SL_SEQ_MASK" is not used [-W

Re: [PATCH v10 1/2] bus: mhi: Add mhi_queue_is_full function

2020-11-05 Thread Manivannan Sadhasivam
On Thu, Nov 05, 2020 at 04:57:08PM -0800, Jakub Kicinski wrote: > On Tue, 3 Nov 2020 18:23:53 +0100 Loic Poulain wrote: > > This function can be used by client driver to determine whether it's > > possible to queue new elements in a channel ring. > > > > Signed-off-by: Loic Poulain > > Reviewed-

Re: [PATCH bpf-next v2] Update perf ring buffer to prevent corruption

2020-11-05 Thread Alexei Starovoitov
On Thu, Nov 5, 2020 at 7:18 AM Kevin Sheldrake wrote: > > Resent due to some failure at my end. Apologies if it arrives twice. > > From 63e34d4106b4dd767f9bfce951f8a35f14b52072 Mon Sep 17 00:00:00 2001 > From: Kevin Sheldrake > Date: Thu, 5 Nov 2020 12:18:53 + > Subject: [PATCH] Update perf

Re: [PATCH] compiler-clang: remove version check for BPF Tracing

2020-11-05 Thread Alexei Starovoitov
On Wed, Nov 4, 2020 at 11:11 AM Nick Desaulniers wrote: > > bpftrace parses the kernel headers and uses Clang under the hood. Remove > the version check when __BPF_TRACING__ is defined (as bpftrace does) so > that this tool can continue to parse kernel headers, even with older > clang sources. > >

Re: [PATCH bpf-next v5] bpf: Lift hashtab key_size limit

2020-11-05 Thread Alexei Starovoitov
On Thu, Oct 29, 2020 at 1:38 PM Andrii Nakryiko wrote: > > On Thu, Oct 29, 2020 at 1:16 PM Florian Lehner wrote: > > > > Currently key_size of hashtab is limited to MAX_BPF_STACK. > > As the key of hashtab can also be a value from a per cpu map it can be > > larger than MAX_BPF_STACK. > > > > The

Re: [PATCH bpf v4] bpf: zero-fill re-used per-cpu map element

2020-11-05 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf.git (refs/heads/master): On Wed, 4 Nov 2020 12:23:32 +0100 you wrote: > Zero-fill element values for all other cpus than current, just as > when not using prealloc. This is the only way the bpf program can > ensure known initial values for all cpus ('onal

[PATCH v4 net-next 3/3] ptp: idt82p33: optimize _idt82p33_adjfine

2020-11-05 Thread min.li.xe
From: Min Li Use div_s64 so that the neg_adj is not needed. Signed-off-by: Min Li Acked-by: Richard Cochran --- drivers/ptp/ptp_idt82p33.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/ptp/ptp_idt82p33.c b/drivers/ptp/ptp_idt82p33.c index 223bc11..c1c9

[PATCH v4 net-next 1/3] ptp: idt82p33: add adjphase support

2020-11-05 Thread min.li.xe
From: Min Li Add idt82p33_adjphase() to support PHC write phase mode. Changes since v1: -Fix broken build Changes since v2: -Fix trailing space Changes since v3: -Improvements suggested by Jakub Signed-off-by: Min Li Acked-by: Richard Cochran --- drivers/ptp/ptp_idt82p33.c | 217 +

[PATCH v4 net-next 2/3] ptp: idt82p33: use i2c_master_send for bus write

2020-11-05 Thread min.li.xe
From: Min Li Refactor idt82p33_xfer and use i2c_master_send for write operation. Because some I2C controllers are only working with single-burst write transaction. Changes since v1: - Fix broken build. Signed-off-by: Min Li Acked-by: Richard Cochran --- drivers/ptp/ptp_idt82p33.c | 47 +

Re: [RFC PATCH bpf-next 3/5] kbuild: Add CONFIG_DEBUG_INFO_BTF_MODULES option or module BTFs

2020-11-05 Thread Alexei Starovoitov
On Thu, Nov 5, 2020 at 7:48 PM Andrii Nakryiko wrote: > > On Thu, Nov 5, 2020 at 7:13 PM Alexei Starovoitov > wrote: > > > > On Wed, Nov 04, 2020 at 08:51:38PM -0800, Andrii Nakryiko wrote: > > > > > > +config DEBUG_INFO_BTF_MODULES > > > + bool "Generate BTF for kernel modules" > > > + d

Re: [RFC PATCH bpf-next 3/5] kbuild: Add CONFIG_DEBUG_INFO_BTF_MODULES option or module BTFs

2020-11-05 Thread Andrii Nakryiko
On Thu, Nov 5, 2020 at 7:13 PM Alexei Starovoitov wrote: > > On Wed, Nov 04, 2020 at 08:51:38PM -0800, Andrii Nakryiko wrote: > > > > +config DEBUG_INFO_BTF_MODULES > > + bool "Generate BTF for kernel modules" > > + def_bool y > > + depends on DEBUG_INFO_BTF && MODULES && PAHOLE_HAS_SP

Re: [RFC PATCH bpf-next 2/5] bpf: assign ID to vmlinux BTF and return extra info for BTF in GET_OBJ_INFO

2020-11-05 Thread Andrii Nakryiko
On Thu, Nov 5, 2020 at 7:19 PM Alexei Starovoitov wrote: > > On Wed, Nov 04, 2020 at 08:51:37PM -0800, Andrii Nakryiko wrote: > > @@ -215,6 +215,8 @@ struct btf { > > struct btf *base_btf; > > u32 start_id; /* first type ID in this BTF (0 for base BTF) */ > > u32 start_str_off; /

Re: [RFC PATCH bpf-next 2/5] bpf: assign ID to vmlinux BTF and return extra info for BTF in GET_OBJ_INFO

2020-11-05 Thread Alexei Starovoitov
On Wed, Nov 04, 2020 at 08:51:37PM -0800, Andrii Nakryiko wrote: > @@ -215,6 +215,8 @@ struct btf { > struct btf *base_btf; > u32 start_id; /* first type ID in this BTF (0 for base BTF) */ > u32 start_str_off; /* first string offset (0 for base BTF) */ > + char name[MODULE_NAM

Re: [RFC PATCH bpf-next 3/5] kbuild: Add CONFIG_DEBUG_INFO_BTF_MODULES option or module BTFs

2020-11-05 Thread Alexei Starovoitov
On Wed, Nov 04, 2020 at 08:51:38PM -0800, Andrii Nakryiko wrote: > > +config DEBUG_INFO_BTF_MODULES > + bool "Generate BTF for kernel modules" > + def_bool y > + depends on DEBUG_INFO_BTF && MODULES && PAHOLE_HAS_SPLIT_BTF Does it need to be a new config ? Can the build ran pahole if

RE: [PATCH net-next 3/5] r8152: add MCU typed read/write functions

2020-11-05 Thread Hayes Wang
Vladimir Oltean > Sent: Thursday, November 5, 2020 6:57 PM > On Thu, Nov 05, 2020 at 10:54:18AM +0100, Marek Behún wrote: > > I thought that static inline functions are preferred to macros, since > > compiler warns better if they are used incorrectly... > > Citation needed. Also, how do static in

Re: [PATCH] bpf: BPF_PRELOAD depends on BPF_SYSCALL

2020-11-05 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf.git (refs/heads/master): On Thu, 5 Nov 2020 11:51:09 -0800 you wrote: > Fix build error when BPF_SYSCALL is not set/enabled but BPF_PRELOAD is > by making BPF_PRELOAD depend on BPF_SYSCALL. > > ERROR: modpost: "bpf_preload_ops" [kernel/bpf/preload/bpf_pr

[PATCH] net: atlantic: Remove unnecessary conversion to bool

2020-11-05 Thread xiakaixu1987
From: Kaixu Xia The '!=' expression itself is bool, no need to convert it to bool. Fix the following coccicheck warning: ./drivers/net/ethernet/aquantia/atlantic/aq_nic.c:1477:34-39: WARNING: conversion to bool not needed here Reported-by: Tosk Robot Signed-off-by: Kaixu Xia --- drivers/net

Re: [PATCH v2 bpf-next 00/11] libbpf: split BTF support

2020-11-05 Thread patchwork-bot+netdevbpf
Hello: This series was applied to bpf/bpf-next.git (refs/heads/master): On Wed, 4 Nov 2020 20:33:50 -0800 you wrote: > This patch set adds support for generating and deduplicating split BTF. This > is an enhancement to the BTF, which allows to designate one BTF as the "base > BTF" (e.g., vmlinux

Re: [pull request][net-next v2 00/12] mlx5 updates 2020-11-03

2020-11-05 Thread Jakub Kicinski
On Thu, 5 Nov 2020 12:12:30 -0800 Saeed Mahameed wrote: > This series makes some updates to mlx5 software steering. > and some other misc trivial changes. > > v1->v2: >- use %zu for size_t printk in patch 9. > > For more information please see tag log below. > > For the DR memory buddy alloc

Re: [PATCH bpf] tools/bpftool: fix attaching flow dissector

2020-11-05 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf.git (refs/heads/master): On Thu, 5 Nov 2020 11:52:30 + you wrote: > My earlier patch to reject non-zero arguments to flow dissector attach > broke attaching via bpftool. Instead of 0 it uses -1 for target_fd. > Fix this by passing a zero argument when

Re: [PATCH v8 4/4] net: dsa: mv88e6xxx: Add support for mv88e6393x family of Marvell

2020-11-05 Thread Jakub Kicinski
On Tue, 3 Nov 2020 18:50:38 +1000 Pavana Sharma wrote: > The Marvell 88E6393X device is a single-chip integration of a 11-port > Ethernet switch with eight integrated Gigabit Ethernet (GbE) transceivers > and three 10-Gigabit interfaces. > > This patch adds functionalities specific to mv88e6393x

[PATCH v2 net-next] net: udp: introduce UDP_MIB_MEMERRORS for udp_mem

2020-11-05 Thread menglong8 . dong
From: Menglong Dong When udp_memory_allocated is at the limit, __udp_enqueue_schedule_skb will return a -ENOBUFS, and skb will be dropped in __udp_queue_rcv_skb without any counters being done. It's hard to find out what happened once this happen. So we introduce a UDP_MIB_MEMERRORS to do this j

Re: [PATCH v8 1/4] dt-bindings: net: Add 5GBASER phy interface mode

2020-11-05 Thread Jakub Kicinski
On Tue, 3 Nov 2020 18:49:02 +1000 Pavana Sharma wrote: > Add 5gbase-r PHY interface mode. > > Signed-off-by: Pavana Sharma Please always CC device tree maintainers and list on patches which touch bindings. Even if there is no need for review Rob has a bot which will catch any formatting errors.

Re: [PATCH v8 3/4] net: dsa: mv88e6xxx: Change serdes lane parameter from u8 type to int

2020-11-05 Thread Jakub Kicinski
On Tue, 3 Nov 2020 18:50:02 +1000 Pavana Sharma wrote: > Returning 0 is no more an error case with MV88E6393 family > which has serdes lane numbers 0, 9 or 10. > So with this change .serdes_get_lane will return lane number > or error (-ENODEV). > > Signed-off-by: Pavana Sharma > mv88e6xxx

Re: [PATCH v3 net-next 1/3] ptp: idt82p33: add adjphase support

2020-11-05 Thread Jakub Kicinski
On Wed, 4 Nov 2020 19:22:13 -0500 min.li...@renesas.com wrote: > From: Min Li > > Add idt82p33_adjphase() to support PHC write phase mode. > > Changes since v1: > -Fix broken build > > Changes since v2: > -Fix trailing space > > Signed-off-by: Min Li > Please drop the empty line between tag

Re: [PATCH net-next v2 03/10] tun: switch to net core provided statistics counters

2020-11-05 Thread Jakub Kicinski
On Wed, 4 Nov 2020 15:25:24 +0100 Heiner Kallweit wrote: > @@ -1066,7 +1054,7 @@ static netdev_tx_t tun_net_xmit(struct sk_buff *skb, > struct net_device *dev) > return NETDEV_TX_OK; > > drop: > - this_cpu_inc(tun->pcpu_stats->tx_dropped); > + dev->stats.tx_dropped++; > skb_

Re: [PATCH net-next v2 RESEND] net/usb/r8153_ecm: support ECM mode for RTL8153

2020-11-05 Thread Jakub Kicinski
On Wed, 4 Nov 2020 10:19:22 +0800 Hayes Wang wrote: > Support ECM mode based on cdc_ether with relative mii functions, > when CONFIG_USB_RTL8152 is not set, or the device is not supported > by r8152 driver. > > Both r8152 and r8153_ecm would check the return value of > rtl8152_get_version() in por

Re: [PATCH v10 1/2] bus: mhi: Add mhi_queue_is_full function

2020-11-05 Thread Jakub Kicinski
On Tue, 3 Nov 2020 18:23:53 +0100 Loic Poulain wrote: > This function can be used by client driver to determine whether it's > possible to queue new elements in a channel ring. > > Signed-off-by: Loic Poulain > Reviewed-by: Manivannan Sadhasivam Applied.

Re: [PATCH v10 2/2] net: Add mhi-net driver

2020-11-05 Thread Jakub Kicinski
On Tue, 3 Nov 2020 18:23:54 +0100 Loic Poulain wrote: > This patch adds a new network driver implementing MHI transport for > network packets. Packets can be in any format, though QMAP (rmnet) > is the usual protocol (flow control + PDN mux). > > It support two MHI devices, IP_HW0 which is, the p

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

2020-11-05 Thread Hangbin Liu
On Thu, Nov 05, 2020 at 09:02:15AM -0700, David Ahern wrote: > On 11/5/20 8:57 AM, Toke Høiland-Jørgensen wrote: > > I guess we could split it further into lib/bpf_{libbpf,legacy,glue}.c > > and have the two former ones be completely devoid of ifdefs and > > conditionally included based on whether

Re: [net-next v4 7/8] net: smc: convert tasklets to use new tasklet_setup() API

2020-11-05 Thread Jakub Kicinski
On Tue, 3 Nov 2020 14:48:22 +0530 Allen Pais wrote: > From: Allen Pais > > In preparation for unconditionally passing the > struct tasklet_struct pointer to all tasklet > callbacks, switch to using the new tasklet_setup() > and from_tasklet() to pass the tasklet pointer explicitly. > > Signed-o

Re: [net-next v4 8/8] net: xfrm: convert tasklets to use new tasklet_setup() API

2020-11-05 Thread Jakub Kicinski
On Tue, 3 Nov 2020 14:48:23 +0530 Allen Pais wrote: > From: Allen Pais > > In preparation for unconditionally passing the > struct tasklet_struct pointer to all tasklet > callbacks, switch to using the new tasklet_setup() > and from_tasklet() to pass the tasklet pointer explicitly. > > Signed-o

Re: [net-next v4 5/8] net: rds: convert tasklets to use new tasklet_setup() API

2020-11-05 Thread Jakub Kicinski
On Tue, 3 Nov 2020 14:48:20 +0530 Allen Pais wrote: > From: Allen Pais > > In preparation for unconditionally passing the > struct tasklet_struct pointer to all tasklet > callbacks, switch to using the new tasklet_setup() > and from_tasklet() to pass the tasklet pointer explicitly. > > Signed-o

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

2020-11-05 Thread Hangbin Liu
On Thu, Nov 05, 2020 at 08:25:12AM -0700, David Ahern wrote: > > Sorry, when trying to rename the functions. I just found another issue. > > Even we fix the conflicts right now. What if libbpf add new functions > > and we got another conflict in future? There are too much bpf functions > > in bpf_l

Re: [PATCH net-next v2 00/19] net: phy: add support for shared interrupts (part 1)

2020-11-05 Thread Jakub Kicinski
On Sun, 1 Nov 2020 14:50:55 +0200 Ioana Ciornei wrote: > From: Ioana Ciornei > > This patch set aims to actually add support for shared interrupts in > phylib and not only for multi-PHY devices. While we are at it, > streamline the interrupt handling in phylib. Applied, thank you!

Re: [PATCH v2 net-next 3/3] octeontx2-af: Add devlink health reporters for NIX

2020-11-05 Thread Jakub Kicinski
On Thu, 05 Nov 2020 15:52:32 -0800 Saeed Mahameed wrote: > On Thu, 2020-11-05 at 12:42 -0800, Jakub Kicinski wrote: > > On Thu, 05 Nov 2020 11:23:54 -0800 Saeed Mahameed wrote: > > > If you report an error without recovering, devlink health will > > > report a > > > bad device state > > > > > >

Re: [net-next,v1,4/5] seg6: add support for the SRv6 End.DT4 behavior

2020-11-05 Thread David Ahern
On 11/5/20 4:57 PM, Andrea Mayer wrote: > I spent some time figuring out what happened with this patch. It seems that > the > patchset was not applied by the kernel test robot in the correct order. In > particular, patch 3 is missing from this build attempt. > > I applied one patch after another

[PATCH v2 net-next 5/8] ionic: use mc sync for multicast filters

2020-11-05 Thread Shannon Nelson
We should be using the multicast sync routines for the multicast filters. Also, let's just flatten the logic a bit and pull the small unicast routine back into ionic_set_rx_mode(). Fixes: 1800eee16676 ("net: ionic: Replace in_interrupt() usage.") Signed-off-by: Shannon Nelson --- .../net/ethern

[PATCH v2 net-next 7/8] ionic: change set_rx_mode from_ndo to can_sleep

2020-11-05 Thread Shannon Nelson
Instead of having two different ways of expressing the same sleepability concept, using opposite logic, we can rework the from_ndo to can_sleep for a more consistent usage. Fixes: 1800eee16676 ("net: ionic: Replace in_interrupt() usage.") Signed-off-by: Shannon Nelson --- .../net/ethernet/pensan

[PATCH v2 net-next 6/8] ionic: flatten calls to ionic_lif_rx_mode

2020-11-05 Thread Shannon Nelson
The _ionic_lif_rx_mode() is only used once and really doesn't need to be broken out. Signed-off-by: Shannon Nelson --- .../net/ethernet/pensando/ionic/ionic_lif.c | 38 --- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/drivers/net/ethernet/pensando/ionic/ionic

[PATCH v2 net-next 8/8] ionic: useful names for booleans

2020-11-05 Thread Shannon Nelson
With a few more uses of true and false in function calls, we need to give them some useful names so we can tell from the calling point what we're doing. Signed-off-by: Shannon Nelson --- drivers/net/ethernet/pensando/ionic/ionic_dev.c | 2 +- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 16

[PATCH v2 net-next 1/8] ionic: start queues before announcing link up

2020-11-05 Thread Shannon Nelson
Change the order of operations in the link_up handling to be sure that the queues are up and ready before we announce that the link is up. Signed-off-by: Shannon Nelson --- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --

[PATCH v2 net-next 4/8] ionic: batch rx buffer refilling

2020-11-05 Thread Shannon Nelson
We don't need to refill the rx descriptors on every napi if only a few were handled. Waiting until we can batch up a few together will save us a few Rx cycles. Signed-off-by: Shannon Nelson --- .../net/ethernet/pensando/ionic/ionic_dev.h| 4 +++- .../net/ethernet/pensando/ionic/ionic_txrx.

[PATCH v2 net-next 0/8] ionic updates

2020-11-05 Thread Shannon Nelson
These updates are a bit of code cleaning and a minor bit of performance tweaking. v2: added void cast on call to ionic_lif_quiesce() lowered batching threshold added patch to flatten calls to ionic_lif_rx_mode added patch to change from_ndo to can_sleep Shannon Nelson (8): ionic: st

[PATCH v2 net-next 3/8] ionic: add lif quiesce

2020-11-05 Thread Shannon Nelson
After the queues are stopped, expressly quiesce the lif. This assures that even if the queues were in an odd state, the firmware will close up everything cleanly. Signed-off-by: Shannon Nelson --- .../net/ethernet/pensando/ionic/ionic_lif.c | 24 +++ 1 file changed, 24 insertio

[PATCH v2 net-next 2/8] ionic: check for link after netdev registration

2020-11-05 Thread Shannon Nelson
Request a link check as soon as the netdev is registered rather than waiting for the watchdog to go off in order to get the interface operational a little more quickly. Signed-off-by: Shannon Nelson --- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 2 ++ 1 file changed, 2 insertions(+) diff

Re: [net-next,v1,4/5] seg6: add support for the SRv6 End.DT4 behavior

2020-11-05 Thread Andrea Mayer
Hi all, On Wed, 4 Nov 2020 04:00:10 +0800 kernel test robot wrote: > Hi Andrea, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on ipvs/master] > [also build test WARNING on linus/master v5.10-rc2 next-20201103] > [If your patch is applied to the wrong g

Re: [PATCH v2 net-next 3/3] octeontx2-af: Add devlink health reporters for NIX

2020-11-05 Thread Saeed Mahameed
On Thu, 2020-11-05 at 12:42 -0800, Jakub Kicinski wrote: > On Thu, 05 Nov 2020 11:23:54 -0800 Saeed Mahameed wrote: > > If you report an error without recovering, devlink health will > > report a > > bad device state > > > > $ ./devlink health > >pci/0002:01:00.0: > > reporter npa > >

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

2020-11-05 Thread Ertman, David M
> -Original Message- > From: Dan Williams > Sent: Thursday, November 5, 2020 2:00 PM > To: Ertman, David M > Cc: alsa-de...@alsa-project.org; Takashi Iwai ; Mark Brown > ; linux-rdma ; Jason > Gunthorpe ; Doug Ledford ; > Netdev ; David Miller ; > Jakub Kicinski ; Greg KH ; > Ranjani Srid

Re: [PATCH v3 bpf-next] bpf: make verifier log more relevant by default

2020-11-05 Thread Jakub Kicinski
On Thu, 5 Nov 2020 14:41:12 -0800 Andrii Nakryiko wrote: > On Thu, Nov 5, 2020 at 1:53 PM Jakub Kicinski wrote: > > On Thu, 5 Nov 2020 13:22:12 -0800 Andrii Nakryiko wrote: > > > Should we just drop check_verifier_log() checks? > > > > Drivers only print error messages when something goes wron

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

2020-11-05 Thread Jakub Kicinski
On Wed, 4 Nov 2020 16:48:57 +0100 Andrew Lunn wrote: > - buf = (char*)((u32)skb->data & ~0x3); > - len = (skb->len + 3 + ((u32)skb->data & 3)) & ~0x3; > - cmdA = (((u32)skb->data & 0x3) << 16) | > + offset = (unsigned long)skb->data & 3; > + buf = skb->data - offset; > + le

Re: [PATCH net-next] net: x25_asy: Delete the x25_asy driver

2020-11-05 Thread Xie He
On Thu, Nov 5, 2020 at 12:40 PM Arnd Bergmann wrote: > > > I think this driver never worked. Looking at the original code in > > Linux 2.1.31, it already has the problems I fixed in commit > > 8fdcabeac398. > > > > I guess when people (or bots) say they "tested", they have not > > necessarily used

Re: [PATCH v3 bpf-next] bpf: make verifier log more relevant by default

2020-11-05 Thread Andrii Nakryiko
On Thu, Nov 5, 2020 at 1:53 PM Jakub Kicinski wrote: > > On Thu, 5 Nov 2020 13:22:12 -0800 Andrii Nakryiko wrote: > > On Thu, Nov 5, 2020 at 8:02 AM Jiri Benc wrote: > > > On Thu, 23 Apr 2020 12:58:50 -0700, Andrii Nakryiko wrote: > > > > To make BPF verifier verbose log more releavant and easier

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

2020-11-05 Thread Jakub Kicinski
On Wed, 4 Nov 2020 16:48:52 +0100 Andrew Lunn wrote: > 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; > > Add a new macro for getting fields out of the head

RE: [PATCH net-next] net: x25_asy: Delete the x25_asy driver

2020-11-05 Thread David Laight
From: Xie He > Sent: 05 November 2020 19:35 > > On Thu, Nov 5, 2020 at 1:10 AM David Laight wrote: > > > > > This driver transports LAPB (X.25 link layer) frames over TTY links. > > > > I don't remember any requests to run LAPB over anything other > > than synchronous links when I was writing LAP

Re: [PATCH net-next] sctp: bring inet(6)_skb_parm back to sctp_input_cb

2020-11-05 Thread Jakub Kicinski
On Thu, 5 Nov 2020 00:49:09 -0300 Marcelo Ricardo Leitner wrote: > On Wed, Nov 04, 2020 at 02:55:32PM +0800, Xin Long wrote: > > inet(6)_skb_parm was removed from sctp_input_cb by Commit a1dd2cf2f1ae > > ("sctp: allow changing transport encap_port by peer packets"), as it > > thought sctp_input_cb-

Re: [PATCH v5 2/5] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter

2020-11-05 Thread Rob Herring
On Tue, 03 Nov 2020 16:15:33 +0100, Łukasz Stelmach wrote: > Add bindings for AX88796C SPI Ethernet Adapter. > > Signed-off-by: Łukasz Stelmach > --- > .../bindings/net/asix,ax88796c.yaml | 73 +++ > 1 file changed, 73 insertions(+) > create mode 100644 Documentation/d

Inconclusive KASAN report on ARM32

2020-11-05 Thread Ahmad Fatoum
Hello, I am looking at an arm32 KernelAddressSanitizer report[1] and trying to make sense of it. According to the report, KASAN chokes on the second line: rt = skb_rtable(skb); if (rt->rt_type == RTN_MULTICAST) { /* rt shouldn't have been dereferenced here */ The log itself do

Re: [PATCH v3 net-next 2/2] net/sched: act_frag: add implict packet fragment support.

2020-11-05 Thread Jakub Kicinski
On Thu, 5 Nov 2020 18:41:33 +0800 we...@ucloud.cn wrote: > 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 redire

Re: [PATCH net-next v8 0/8] Hirschmann Hellcreek DSA driver

2020-11-05 Thread Jakub Kicinski
On Tue, 3 Nov 2020 08:10:53 +0100 Kurt Kanzenbach wrote: > this series adds a DSA driver for the Hirschmann Hellcreek TSN switch > IP. Characteristics of that IP: > > * Full duplex Ethernet interface at 100/1000 Mbps on three ports > * IEEE 802.1Q-compliant Ethernet Switch > * IEEE 802.1Qbv Ti

Re: [PATCH net-next] net: udp: introduce UDP_MIB_MEMERRORS for udp_mem

2020-11-05 Thread Jakub Kicinski
On Thu, 5 Nov 2020 02:16:11 -0500 menglong8.d...@gmail.com wrote: > From: Menglong Dong > > When udp_memory_allocated is at the limit, __udp_enqueue_schedule_skb > will return a -ENOBUFS, and skb will be dropped in __udp_queue_rcv_skb > without any counters being done. It's hard to find out what

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

2020-11-05 Thread Dan Williams
On Thu, Nov 5, 2020 at 11:28 AM Ertman, David M wrote: [..] > > > Each auxiliary_device represents a part of its parent > > > +functionality. The generic behavior can be extended and specialized as > > needed > > > +by encapsulating an auxiliary_device within other domain-specific > > structures a

Re: [PATCH v3 bpf-next] bpf: make verifier log more relevant by default

2020-11-05 Thread Jakub Kicinski
On Thu, 5 Nov 2020 13:22:12 -0800 Andrii Nakryiko wrote: > On Thu, Nov 5, 2020 at 8:02 AM Jiri Benc wrote: > > On Thu, 23 Apr 2020 12:58:50 -0700, Andrii Nakryiko wrote: > > > To make BPF verifier verbose log more releavant and easier to use to debug > > > verification failures, "pop" parts of l

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

2020-11-05 Thread Alexander Lobakin
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 makes sense when it comes to UDP GSO fraglists forwarding: transport of

Re: [PATCH v3 bpf-next] bpf: make verifier log more relevant by default

2020-11-05 Thread Andrii Nakryiko
On Thu, Nov 5, 2020 at 8:02 AM Jiri Benc wrote: > > On Thu, 23 Apr 2020 12:58:50 -0700, Andrii Nakryiko wrote: > > To make BPF verifier verbose log more releavant and easier to use to debug > > verification failures, "pop" parts of log that were successfully verified. > > This has effect of leavin

Re: [PATCH mlx5-next v1 05/11] net/mlx5: Register mlx5 devices to auxiliary virtual bus

2020-11-05 Thread Jason Gunthorpe
On Thu, Nov 05, 2020 at 12:59:20PM -0800, Saeed Mahameed wrote: > 2. you can always load a driver without its underlying device existed. > for example, you can load a pci device driver/module and it will load > and wait for pci devices to pop up, the subsysetem infrastructure will > match between

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

2020-11-05 Thread Andrii Nakryiko
On Thu, Nov 5, 2020 at 6:05 AM Jamal Hadi Salim wrote: > > On 2020-11-04 10:19 p.m., David Ahern wrote: > > [..] > > > > User experience keeps getting brought up, but I also keep reading the > > stance that BPF users can not expect a consistent experience unless they > > are constantly chasing lat

Re: [PATCH iproute2-next v2 03/11] lib: utils: Add print_on_off_bool()

2020-11-05 Thread Petr Machata
Leon Romanovsky writes: > On Tue, Nov 03, 2020 at 10:01:32PM +0100, Petr Machata wrote: >> >> Leon Romanovsky writes: >> >> > On Tue, Nov 03, 2020 at 12:05:20AM +0100, Petr Machata wrote: >> >> >> >> Leon Romanovsky writes: >> >> >> >> > On Sun, Nov 01, 2020 at 04:55:42PM -0700, David Ahern w

Re: [PATCH mlx5-next v1 05/11] net/mlx5: Register mlx5 devices to auxiliary virtual bus

2020-11-05 Thread Saeed Mahameed
On Sun, 2020-11-01 at 22:15 +0200, Leon Romanovsky wrote: > From: Leon Romanovsky > > Create auxiliary devices under new virtual bus. This will replace > the custom-made mlx5 ->add()/->remove() interfaces and next patches > will fill the missing callback and remove the old interface logic. > > T

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

2020-11-05 Thread Andrii Nakryiko
On Wed, Nov 4, 2020 at 7:48 PM David Ahern wrote: > > On 11/4/20 1:43 PM, Andrii Nakryiko wrote: > > > > What users writing BPF programs can expect from iproute2 in terms of > > available BPF features is what matters. And by not enforcing a > > specific minimal libbpf version, iproute2 version doe

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

2020-11-05 Thread Ertman, David M
> -Original Message- > From: Leon Romanovsky > Sent: Thursday, November 5, 2020 11:35 AM > To: Ertman, David M > Cc: Williams, Dan J ; alsa-de...@alsa-project.org; > Takashi Iwai ; Mark Brown ; linux- > rdma ; Jason Gunthorpe ; > Doug Ledford ; Netdev ; > David Miller ; Jakub Kicinski ; >

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

2020-11-05 Thread Andrii Nakryiko
On Wed, Nov 4, 2020 at 7:19 PM David Ahern wrote: > > On 11/4/20 3:21 AM, Daniel Borkmann wrote: > > > >> Then libbpf release process can incorporate proper testing of libbpf > >> and iproute2 combination. > >> Or iproute2 should stay as-is with obsolete bpf support. > >> > >> Few years from now t

Re: [PATCH v2 net-next 3/3] octeontx2-af: Add devlink health reporters for NIX

2020-11-05 Thread Jakub Kicinski
On Thu, 05 Nov 2020 11:23:54 -0800 Saeed Mahameed wrote: > If you report an error without recovering, devlink health will report a > bad device state > > $ ./devlink health >pci/0002:01:00.0: > reporter npa >state error error 1 recover 0 Actually, the counter in the driver is unn

Re: [PATCH net-next] net: x25_asy: Delete the x25_asy driver

2020-11-05 Thread Arnd Bergmann
On Thu, Nov 5, 2020 at 9:06 PM Xie He wrote: > > On Thu, Nov 5, 2020 at 7:07 AM Arnd Bergmann wrote: > > > > Adding Martin Schiller and Andrew Hendry, plus the linux-x25 mailing > > list to Cc. > > The linux-x25 mail list has stopped working for a long time. > > > When I last looked at the wan dr

Re: [PATCH] net: macb: fix NULL dereference due to no pcs_config method

2020-11-05 Thread Nicolas Ferre
On 05/11/2020 at 16:48, Russell King - ARM Linux admin wrote: On Thu, Nov 05, 2020 at 04:22:18PM +0100, Nicolas Ferre wrote: On 05/11/2020 at 15:37, Parshuram Thombare wrote: This patch fixes NULL pointer dereference due to NULL pcs_config in pcs_ops. Fixes: e4e143e26ce8 ("net: macb: add suppo

  1   2   3   4   >