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

2020-10-29 Thread Song Liu
> On Oct 29, 2020, at 7:33 PM, Andrii Nakryiko > wrote: > > On Thu, Oct 29, 2020 at 5:33 PM Song Liu wrote: >> >> >> >>> On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko wrote: >>> >>> This patch set adds support for generating and deduplicating split BTF. This >>> is an enhancement to the

Re: [PATCH v2 net-next 01/12] net: dsa: implement a central TX reallocation procedure

2020-10-29 Thread Kurt Kanzenbach
On Fri Oct 30 2020, Vladimir Oltean wrote: > At the moment, taggers are left with the task of ensuring that the skb > headers are writable (which they aren't, if the frames were cloned for > TX timestamping, for flooding by the bridge, etc), and that there is > enough space in the skb data area for

Re: [PATCH 30/33] docs: ABI: cleanup several ABI documents

2020-10-29 Thread Vaibhav Jain
Mauro Carvalho Chehab writes: > There are some ABI documents that, while they don't generate > any warnings, they have issues when parsed by get_abi.pl script > on its output result. > > Address them, in order to provide a clean output. > > Signed-off-by: Mauro Carvalho Chehab > diff --git a/D

[PATCH net-next] net: phy: realtek: Add support for RTL8221B-CG series

2020-10-29 Thread Willy Liu
Realtek single-port 2.5Gbps Ethernet PHYs are list as below: RTL8226-CG: the 1st generation 2.5Gbps single port PHY RTL8226B-CG/RTL8221B-CG: the 2nd generation 2.5Gbps single port PHY RTL8221B-VB-CG: the 3rd generation 2.5Gbps single port PHY RTL8221B-VM-CG: the 2.5Gbps single port PHY with MACsec

Re: [PATCH v11 4/4] bus: mhi: Add userspace client interface driver

2020-10-29 Thread Randy Dunlap
On 10/29/20 7:45 PM, Hemant Kumar wrote: > diff --git a/drivers/bus/mhi/Kconfig b/drivers/bus/mhi/Kconfig > index e841c10..476cc55 100644 > --- a/drivers/bus/mhi/Kconfig > +++ b/drivers/bus/mhi/Kconfig > @@ -20,3 +20,16 @@ config MHI_BUS_DEBUG > Enable debugfs support for use with the MHI t

Re: [PATCH v2 net-next 1/4] net: xdp: introduce bulking for xdp tx return path

2020-10-29 Thread Ilias Apalodimas
Hi Lorenzo, On Thu, Oct 29, 2020 at 08:28:44PM +0100, Lorenzo Bianconi wrote: > XDP bulk APIs introduce a defer/flush mechanism to return > pages belonging to the same xdp_mem_allocator object > (identified via the mem.id field) in bulk to optimize > I-cache and D-cache since xdp_return_frame is

RE: [PATCH net] selftests: add test script for bareudp tunnels

2020-10-29 Thread Varghese, Martin (Nokia - IN/Bangalore)
On Wed, Oct 28, 2020 at 07:05:19PM +0100, Guillaume Nault wrote: >Test different encapsulation modes of the bareudp module: Comprehensive tests. Thanks a lot William.

Re: [PATCH v2 1/1] powerpc/vnic: Extend "failover pending" window

2020-10-29 Thread ljp
On 2020-10-23 19:02, Sukadev Bhattiprolu wrote: Lijun Pan [l...@linux.vnet.ibm.com] wrote: On Oct 19, 2020, at 2:52 PM, Sukadev Bhattiprolu <[1]suka...@linux.ibm.com> wrote: From 67f8977f636e462a1cd1eadb28edd98ef4f2b756 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu <[2]suka..

[PATCH net v2] ip_tunnel: fix over-mtu packet send fail without TUNNEL_DONT_FRAGMENT flags

2020-10-29 Thread wenxu
From: wenxu The tunnel dvice such as vxlan, bareudp and geneve in the lwt mode set the outer df only based TUNNEL_DONT_FRAGMENT. And this is also the some behavior for gre device before switching to use ip_md_tunnel_xmit as the following patch. 962924f ip_gre: Refactor collect metatdata mode

Re: INFO: rcu detected stall in ip_list_rcv

2020-10-29 Thread syzbot
syzbot suspects this issue was fixed by commit: commit 1d0e850a49a5b56f8f3cb51e74a11e2fedb96be6 Author: David Howells Date: Fri Oct 16 12:21:14 2020 + afs: Fix cell removal bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=164fdca850 start commit: fb0155a0 Merge tag '

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

2020-10-29 Thread Hayes Wang
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. Signed-off-by: Hayes Wang --- v2: Add include/linux/usb/r8152.h to avoid the warning about no previous prototype for rtl8152_get_version. drivers/

Re: [PATCH v2 1/2] bpf: don't rely on GCC __attribute__((optimize)) to disable GCSE

2020-10-29 Thread Alexei Starovoitov
On Thu, Oct 29, 2020 at 05:28:11PM -0700, Nick Desaulniers wrote: > > We already know that -fno-asynchronous-unwind-tables get dropped, > hence this patch. On arm64 only. Not on x86 > And we know -fomit-frame-pointer or > -fno-omit-frame-pointer I guess gets dropped, hence your ask. yep. th

Re: [PATCH net-next v7 00/10] net: bridge: cfm: Add support for Connectivity Fault Management(CFM)

2020-10-29 Thread Jakub Kicinski
On Tue, 27 Oct 2020 10:02:41 + Henrik Bjoernlund wrote: > Connectivity Fault Management (CFM) is defined in 802.1Q > section 12.14. > > Connectivity Fault Management (CFM) comprises capabilities for > detecting, verifying, and isolating connectivity failures in Virtual > Bridged Networks. Thes

Re: [PATCH v3 RESEND] net: mii: Report advertised link capabilities when autonegotiation is off

2020-10-29 Thread Jakub Kicinski
On Tue, 27 Oct 2020 12:43:17 +0100 Łukasz Stelmach wrote: > Unify the set of information returned by mii_ethtool_get_link_ksettings(), > mii_ethtool_gset() and phy_ethtool_ksettings_get(). Make the mii_*() > functions report advertised settings when autonegotiation if disabled. > > Suggested-by: A

Re: [PATCH -next] net/mac8390: discard unnecessary breaks

2020-10-29 Thread Jakub Kicinski
On Tue, 27 Oct 2020 21:51:59 +0800 Zhang Qilong wrote: > The 'break' is unnecessary because of previous 'return', > and we could discard it. > > Signed-off-by: Zhang Qilong Applied.

Re: [PATCH] net: dsa: mt7530: support setting MTU

2020-10-29 Thread DENG Qingfang
On Fri, Oct 30, 2020 at 6:42 AM Jakub Kicinski wrote: > > On Thu, 29 Oct 2020 02:12:21 +0800 DENG Qingfang wrote: > > MT7530/7531 has a global RX packet length register, which can be used > > to set MTU. > > > > Signed-off-by: DENG Qingfang > > Please wrap your code at 80 chars. > > > diff --git

Re: [PATCH iproute2] tc: add print options to fix json output

2020-10-29 Thread David Ahern
On 10/29/20 6:42 PM, Sharma, Puneet wrote: > Because basic match is made of multiple keywords and parsed and handle > differently > example: > $ tc filter add dev $eth_dev_name ingress priority 2 protocol ipv4 > basic match '(cmp(u8 at 9 layer network eq 6) or cmp(u8 at 9 layer network

[PATCH v11 1/4] bus: mhi: core: Add helper API to return number of free TREs

2020-10-29 Thread Hemant Kumar
Introduce mhi_get_free_desc_count() API to return number of TREs available to queue buffer. MHI clients can use this API to know before hand if ring is full without calling queue API. Signed-off-by: Hemant Kumar Reviewed-by: Jeffrey Hugo Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi/c

[PATCH v11 3/4] docs: Add documentation for userspace client interface

2020-10-29 Thread Hemant Kumar
MHI userspace client driver is creating device file node for user application to perform file operations. File operations are handled by MHI core driver. Currently Loopback MHI channel is supported by this driver. Signed-off-by: Hemant Kumar --- Documentation/mhi/index.rst | 1 + Documentation/

RE: [PATCH net-next 1/2] net: phy: realtek: Add phy ids for RTL8226-CG/RTL8226B-CG

2020-10-29 Thread Willy Liu
On Thu, Oct 29, 2020 21:49, Heiner Hallweit wrote: > On 29.10.2020 14:37, Andrew Lunn wrote: > > On Thu, Oct 29, 2020 at 08:07:57PM +0800, Willy Liu wrote: > >> Realtek single-port 2.5Gbps Ethernet PHY ids as below: > >> RTL8226-CG: 0x001cc800(ES)/0x001cc838(MP) > >> RTL8226B-CG/RTL8221B-CG: 0x001c

[PATCH v11 0/4] userspace MHI client interface driver

2020-10-29 Thread Hemant Kumar
This patch series adds support for UCI driver. UCI driver enables userspace clients to communicate to external MHI devices like modem and WLAN. UCI driver probe creates standard character device file nodes for userspace clients to perform open, read, write, poll and release file operations. These f

[PATCH v11 2/4] bus: mhi: core: Move MHI_MAX_MTU to external header file

2020-10-29 Thread Hemant Kumar
Currently this macro is defined in internal MHI header as a TRE length mask. Moving it to external header allows MHI client drivers to set this upper bound for the transmit buffer size. Signed-off-by: Hemant Kumar Reviewed-by: Jeffrey Hugo Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi

[PATCH v11 4/4] bus: mhi: Add userspace client interface driver

2020-10-29 Thread Hemant Kumar
This MHI client driver allows userspace clients to transfer raw data between MHI device and host using standard file operations. Driver instantiates UCI device object which is associated to device file node. UCI device object instantiates UCI channel object when device file node is opened. UCI chan

Re: [RFC PATCH net-next] net: ethernet: mediatek: support setting MTU

2020-10-29 Thread DENG Qingfang
On Thu, Oct 29, 2020 at 9:02 PM Andrew Lunn wrote: > > On Thu, Oct 29, 2020 at 02:39:15PM +0800, DENG Qingfang wrote: > > MT762x HW supports frame length up to 2048 (maximum length on GDM), > > so allow setting MTU up to 2030. > > > > Signed-off-by: DENG Qingfang > > --- > > > > I only tested thi

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

2020-10-29 Thread Andrii Nakryiko
On Thu, Oct 29, 2020 at 5:33 PM Song Liu wrote: > > > > > On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko 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., vmlin

[PATCH net-next v4 0/5] net: hdlc_fr: Improve fr_rx and add support for any Ethertype

2020-10-29 Thread Xie He
The main purpose of this series is the last patch. The previous 4 patches are just code clean-ups so that the last patch will not make the code too messy. The patches must be applied in sequence. The receiving code of this driver doesn't support arbitrary Ethertype values. It only recognizes a few

[PATCH net-next v4 4/5] net: hdlc_fr: Do skb_reset_mac_header for skbs received on normal PVC devices

2020-10-29 Thread Xie He
When an skb is received on a normal (non-Ethernet-emulating) PVC device, call skb_reset_mac_header before we pass it to upper layers. This is because normal PVC devices don't have header_ops, so any header we have would not be visible to upper layer code when sending, so the header shouldn't be vi

[PATCH net-next v4 3/5] net: hdlc_fr: Improve the initial checks when we receive an skb

2020-10-29 Thread Xie He
1. Change the skb->len check from "<= 4" to "< 4". At first we only need to ensure a 4-byte header is present. We indeed normally need the 5th byte, too, but it'd be more logical and cleaner to check its existence when we actually need it. 2. Add an fh->ea2 check to the initial checks in fr_rx. fh

[PATCH net-next v4 5/5] net: hdlc_fr: Add support for any Ethertype

2020-10-29 Thread Xie He
Change the fr_rx function to make this driver support any Ethertype when receiving skbs on normal (non-Ethernet-emulating) PVC devices. (This driver is already able to handle any Ethertype when sending.) Originally in the fr_rx function, the code that parses the long (10-byte) header only recogniz

Re: [bpf-next PATCH 4/4] selftests/bpf: Migrate tcpbpf_user.c to use BPF skeleton

2020-10-29 Thread Andrii Nakryiko
On Thu, Oct 29, 2020 at 5:42 PM Alexander Duyck wrote: > > On Thu, Oct 29, 2020 at 4:20 PM Andrii Nakryiko > wrote: > > > > On Thu, Oct 29, 2020 at 12:57 AM Alexander Duyck > > wrote: > > > > > > From: Alexander Duyck > > > > > > Update tcpbpf_user.c to make use of the BPF skeleton. Doing this

[PATCH net-next v4 1/5] net: hdlc_fr: Simpify fr_rx by using "goto rx_drop" to drop frames

2020-10-29 Thread Xie He
1. When the fr_rx function drops a received frame (because the protocol type is not supported, or because the PVC virtual device that corresponds to the DLCI number and the protocol type doesn't exist), the function frees the skb and returns. The code for freeing the skb and returning is repeated

[PATCH net-next v4 2/5] net: hdlc_fr: Change the use of "dev" in fr_rx to make the code cleaner

2020-10-29 Thread Xie He
The eth_type_trans function is called when we receive frames carrying Ethernet frames. This function expects a non-NULL pointer as an argument, and assigns it directly to skb->dev. However, the code handling other types of frames first assigns the pointer to "dev", and then at the end checks wheth

[PATCH 3/3] xfrm/compat: Don't allocate memory with __GFP_ZERO

2020-10-29 Thread Dmitry Safonov
32-bit to 64-bit messages translator zerofies needed paddings in the translation, the rest is the actual payload. Don't allocate zero pages as they are not needed. Signed-off-by: Dmitry Safonov --- net/xfrm/xfrm_compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/xfr

[PATCH 2/3] xfrm/compat: memset(0) 64-bit padding at right place

2020-10-29 Thread Dmitry Safonov
32-bit messages translated by xfrm_compat can have attributes attached. For all, but XFRMA_SA, XFRMA_POLICY the size of payload is the same in 32-bit UABI and 64-bit UABI. For XFRMA_SA (struct xfrm_usersa_info) and XFRMA_POLICY (struct xfrm_userpolicy_info) it's only tail-padding that is present in

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

2020-10-29 Thread Dmitry Safonov
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 during translation. Cc: Steffen Klassert Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Herbert Xu Cc: Hillf Dant

[PATCH 1/3] xfrm/compat: Translate by copying XFRMA_UNSPEC attribute

2020-10-29 Thread Dmitry Safonov
xfrm_xlate32() translates 64-bit message provided by kernel to be sent for 32-bit listener (acknowledge or monitor). Translator code doesn't expect XFRMA_UNSPEC attribute as it doesn't know its payload. Kernel never attaches such attribute, but a user can. I've searched if any opensource does it a

Re: [PATCH v10 3/4] docs: Add documentation for userspace client interface

2020-10-29 Thread Hemant Kumar
Hi Randy, On 10/29/20 2:51 PM, Randy Dunlap wrote: Hi, On 10/29/20 2:40 PM, Hemant Kumar wrote: MHI userspace client driver is creating device file node for user application to perform file operations. File operations are handled by MHI core driver. Currently Loopback MHI channel is supported

[PATCH v2 net-next 10/12] net: dsa: tag_dsa: let DSA core deal with TX reallocation

2020-10-29 Thread Vladimir Oltean
Now that we have a central TX reallocation procedure that accounts for the tagger's needed headroom in a generic way, we can remove the skb_cow_head call. Similar to the EtherType DSA tagger, the old Marvell tagger can transform an 802.1Q header if present into a DSA tag, so there is no headroom r

[PATCH v2 net-next 04/12] net: dsa: tag_qca: let DSA core deal with TX reallocation

2020-10-29 Thread Vladimir Oltean
Now that we have a central TX reallocation procedure that accounts for the tagger's needed headroom in a generic way, we can remove the skb_cow_head call. Cc: John Crispin Cc: Alexander Lobakin Signed-off-by: Vladimir Oltean --- Changes in v2: None. net/dsa/tag_qca.c | 3 --- 1 file changed,

[PATCH v2 net-next 12/12] net: dsa: tag_ar9331: let DSA core deal with TX reallocation

2020-10-29 Thread Vladimir Oltean
Now that we have a central TX reallocation procedure that accounts for the tagger's needed headroom in a generic way, we can remove the skb_cow_head call. Cc: Per Forlin Cc: Oleksij Rempel Signed-off-by: Vladimir Oltean --- Changes in v2: None. net/dsa/tag_ar9331.c | 3 --- 1 file changed, 3

[PATCH v2 net-next 09/12] net: dsa: tag_brcm: let DSA core deal with TX reallocation

2020-10-29 Thread Vladimir Oltean
Now that we have a central TX reallocation procedure that accounts for the tagger's needed headroom in a generic way, we can remove the skb_cow_head call. Cc: Florian Fainelli Signed-off-by: Vladimir Oltean --- Changes in v2: None. net/dsa/tag_brcm.c | 3 --- 1 file changed, 3 deletions(-) di

[PATCH v2 net-next 06/12] net: dsa: tag_mtk: let DSA core deal with TX reallocation

2020-10-29 Thread Vladimir Oltean
Now that we have a central TX reallocation procedure that accounts for the tagger's needed headroom in a generic way, we can remove the skb_cow_head call. Cc: DENG Qingfang Cc: Sean Wang Cc: John Crispin Signed-off-by: Vladimir Oltean --- Changes in v2: None. net/dsa/tag_mtk.c | 3 --- 1 fil

[PATCH v2 net-next 07/12] net: dsa: tag_lan9303: let DSA core deal with TX reallocation

2020-10-29 Thread Vladimir Oltean
Now that we have a central TX reallocation procedure that accounts for the tagger's needed headroom in a generic way, we can remove the skb_cow_head call. Signed-off-by: Vladimir Oltean --- Changes in v2: None. net/dsa/tag_lan9303.c | 9 - 1 file changed, 9 deletions(-) diff --git a/ne

[PATCH v2 net-next 05/12] net: dsa: tag_ocelot: let DSA core deal with TX reallocation

2020-10-29 Thread Vladimir Oltean
Now that we have a central TX reallocation procedure that accounts for the tagger's needed headroom in a generic way, we can remove the skb_cow_head call. Signed-off-by: Vladimir Oltean --- Changes in v2: None. net/dsa/tag_ocelot.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/net/d

[PATCH v2 net-next 11/12] net: dsa: tag_gswip: let DSA core deal with TX reallocation

2020-10-29 Thread Vladimir Oltean
Now that we have a central TX reallocation procedure that accounts for the tagger's needed headroom in a generic way, we can remove the skb_cow_head call. This one is interesting, the DSA tag is 8 bytes on RX and 4 bytes on TX. Because DSA is unaware of asymmetrical tag lengths, the overhead/neede

[PATCH v2 net-next 08/12] net: dsa: tag_edsa: let DSA core deal with TX reallocation

2020-10-29 Thread Vladimir Oltean
Now that we have a central TX reallocation procedure that accounts for the tagger's needed headroom in a generic way, we can remove the skb_cow_head call. Note that the VLAN code path needs a smaller extra headroom than the regular EtherType DSA path. That isn't a problem, because this tagger decl

[PATCH v2 net-next 03/12] net: dsa: trailer: don't allocate additional memory for padding/tagging

2020-10-29 Thread Vladimir Oltean
From: Christian Eggers The caller (dsa_slave_xmit) guarantees that the frame length is at least ETH_ZLEN and that enough memory for tail tagging is available. Signed-off-by: Christian Eggers Signed-off-by: Vladimir Oltean --- Changes in v2: None. net/dsa/tag_trailer.c | 31 ++

[PATCH v2 net-next 00/12] Generic TX reallocation for DSA

2020-10-29 Thread Vladimir Oltean
Christian has reported buggy usage of skb_put() in tag_ksz.c, which is only triggerable in real life using his not-yet-published patches for IEEE 1588 timestamping on Micrel KSZ switches. The concrete problem there is that the driver can end up calling skb_put() and exceed the end of the skb data

[PATCH v2 net-next 01/12] net: dsa: implement a central TX reallocation procedure

2020-10-29 Thread Vladimir Oltean
At the moment, taggers are left with the task of ensuring that the skb headers are writable (which they aren't, if the frames were cloned for TX timestamping, for flooding by the bridge, etc), and that there is enough space in the skb data area for the DSA tag to be pushed. Moreover, the life of t

[PATCH v2 net-next 02/12] net: dsa: tag_ksz: don't allocate additional memory for padding/tagging

2020-10-29 Thread Vladimir Oltean
From: Christian Eggers The caller (dsa_slave_xmit) guarantees that the frame length is at least ETH_ZLEN and that enough memory for tail tagging is available. Signed-off-by: Christian Eggers Signed-off-by: Vladimir Oltean --- Changes in v2: None. net/dsa/tag_ksz.c | 73 ++

Re: arping stuck with ENOBUFS in 4.19.150

2020-10-29 Thread Yunsheng Lin
On 2020/10/29 23:18, David Ahern wrote: > On 10/29/20 8:10 AM, Joakim Tjernlund wrote: >> OK, bisecting (was a bit of a bother since we merge upstream releases into >> our tree, is there a way to just bisect that?) >> >> Result was commit "net: sch_generic: aviod concurrent reset and enqueue op >

[net-next v2] tipc: add stricter control of reserved service types

2020-10-29 Thread jmaloy
From: Jon Maloy TIPC reserves 64 service types for current and future internal use. Therefore, the bind() function is meant to block regular user sockets from being bound to these values, while it should let through such bindings from internal users. However, since we at the design moment saw no

Re: [PATCH net] ip_tunnel: fix over-mtu packet send fail without TUNNEL_DONT_FRAGMENT flags

2020-10-29 Thread Jakub Kicinski
On Thu, 29 Oct 2020 10:30:50 +0800 wenxu wrote: > On 10/27/2020 11:55 PM, Jakub Kicinski wrote: > > On Tue, 27 Oct 2020 08:51:07 -0600 David Ahern wrote: > >>> Is this another incarnation of 4cb47a8644cc ("tunnels: PMTU discovery > >>> support for directly bridged IP packets")? Sounds like non-UD

Re: [PATCH net-next v2 4/4] net: hdlc_fr: Add support for any Ethertype

2020-10-29 Thread Willem de Bruijn
On Thu, Oct 29, 2020 at 8:49 PM Xie He wrote: > > On Thu, Oct 29, 2020 at 4:53 PM Xie He wrote: > > > > > Does it make sense to define a struct snap_hdr instead of manually > > > casting all these bytes? > > > > > And macros or constant integers to self document these kinds of fields. > > > > Yes

Re: [PATCH net-next v2 4/4] net: hdlc_fr: Add support for any Ethertype

2020-10-29 Thread Willem de Bruijn
On Thu, Oct 29, 2020 at 7:53 PM Xie He wrote: > > On Thu, Oct 29, 2020 at 10:24 AM Willem de Bruijn > wrote: > > > > > Also add skb_reset_mac_header before we pass an skb (received on normal > > > PVC devices) to upper layers. Because we don't use header_ops for normal > > > PVC devices, we shoul

Re: [PATCH net-next v2 4/4] net: hdlc_fr: Add support for any Ethertype

2020-10-29 Thread Xie He
On Thu, Oct 29, 2020 at 4:53 PM Xie He wrote: > > > Does it make sense to define a struct snap_hdr instead of manually > > casting all these bytes? > > > And macros or constant integers to self document these kinds of fields. > > Yes, we can define a struct snap_hdr, like this: > > struct snap_hdr

Re: [PATCH iproute2] tc: add print options to fix json output

2020-10-29 Thread Sharma, Puneet
Because basic match is made of multiple keywords and parsed and handle differently example: $ tc filter add dev $eth_dev_name ingress priority 2 protocol ipv4 basic match '(cmp(u8 at 9 layer network eq 6) or cmp(u8 at 9 layer network eq 17)) and ipset(sg-test-ipv4 src)' action pass

Re: [bpf-next PATCH 4/4] selftests/bpf: Migrate tcpbpf_user.c to use BPF skeleton

2020-10-29 Thread Alexander Duyck
On Thu, Oct 29, 2020 at 4:20 PM Andrii Nakryiko wrote: > > On Thu, Oct 29, 2020 at 12:57 AM Alexander Duyck > wrote: > > > > From: Alexander Duyck > > > > Update tcpbpf_user.c to make use of the BPF skeleton. Doing this we can > > simplify test_tcpbpf_user and reduce the overhead involved in set

Re: [PATCH 0/2] vsock: minor clean up of ioctl error handling

2020-10-29 Thread Jakub Kicinski
On Tue, 27 Oct 2020 09:09:40 + Colin King wrote: > From: Colin Ian King > > Two minor changes to the ioctl error handling. Applied, thanks!

Re: [bpf-next PATCH 1/4] selftests/bpf: Move test_tcppbf_user into test_progs

2020-10-29 Thread Alexander Duyck
On Thu, Oct 29, 2020 at 4:27 PM Andrii Nakryiko wrote: > > On Wed, Oct 28, 2020 at 4:50 PM Alexander Duyck > wrote: > > > > From: Alexander Duyck > > > > Recently a bug was missed due to the fact that test_tcpbpf_user is not a > > part of test_progs. In order to prevent similar issues in the fut

Re: [PATCH bpf-next 01/11] libbpf: factor out common operations in BTF writing APIs

2020-10-29 Thread Song Liu
> On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko wrote: > > Factor out commiting of appended type data. Also extract fetching the very > last type in the BTF (to append members to). These two operations are common > across many APIs and will be easier to refactor with split BTF, if they are > ex

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

2020-10-29 Thread Song Liu
> On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko 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 BTF), and one or more other BTFs as "split BTF" (e.g., > k

Re: [PATCH v4 0/5] Bluetooth: Add new MGMT interface for advertising add

2020-10-29 Thread Luiz Augusto von Dentz
Hi Daniel, On Thu, Oct 29, 2020 at 3:25 PM Daniel Winkler wrote: > > Hi Luiz, > > Thank you for the feedback regarding mgmt-tester. I intended to use > the tool, but found that it had a very high rate of test failure even > before I started adding new tests. If you have a strong preference for >

Re: [PATCH v2] net: fec: fix MDIO probing for some FEC hardware blocks

2020-10-29 Thread Andrew Lunn
On Wed, Oct 28, 2020 at 03:22:32PM +1000, Greg Ungerer wrote: > Some (apparently older) versions of the FEC hardware block do not like > the MMFR register being cleared to avoid generation of MII events at > initialization time. The action of clearing this register results in no > future MII events

Re: [PATCH net-next v2 4/4] net: hdlc_fr: Add support for any Ethertype

2020-10-29 Thread Xie He
On Thu, Oct 29, 2020 at 10:24 AM Willem de Bruijn wrote: > > > Also add skb_reset_mac_header before we pass an skb (received on normal > > PVC devices) to upper layers. Because we don't use header_ops for normal > > PVC devices, we should hide the header from upper layer code in this case. > > Thi

Re: INFO: rcu detected stall in security_file_open (3)

2020-10-29 Thread syzbot
syzbot suspects this issue was fixed by commit: commit 1d0e850a49a5b56f8f3cb51e74a11e2fedb96be6 Author: David Howells Date: Fri Oct 16 12:21:14 2020 + afs: Fix cell removal bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=14bc220a50 start commit: fb0155a0 Merge tag '

Re: [PATCH bpf] selftest/bpf: Validate initial values of per-cpu hash elems

2020-10-29 Thread Song Liu
On Thu, Oct 29, 2020 at 3:37 PM Andrii Nakryiko wrote: > > On Thu, Oct 29, 2020 at 11:36 AM Song Liu wrote: > > > > On Thu, Oct 29, 2020 at 4:19 AM David Verbeiren > > wrote: > > > > > > Tests that when per-cpu hash map or LRU hash map elements are > > > re-used as a result of a bpf program inse

Re: [bpf-next PATCH 1/4] selftests/bpf: Move test_tcppbf_user into test_progs

2020-10-29 Thread Andrii Nakryiko
On Wed, Oct 28, 2020 at 4:50 PM Alexander Duyck wrote: > > From: Alexander Duyck > > Recently a bug was missed due to the fact that test_tcpbpf_user is not a > part of test_progs. In order to prevent similar issues in the future move > the test functionality into test_progs. By doing this we can

Re: [PATCH v3 2/2] vhost-vdpa: fix page pinning leakage in error path

2020-10-29 Thread si-wei liu
On 10/29/2020 2:53 PM, Michael S. Tsirkin wrote: On Thu, Oct 15, 2020 at 01:17:14PM -0700, si-wei liu wrote: On 10/15/2020 6:11 AM, Michael S. Tsirkin wrote: On Thu, Oct 15, 2020 at 02:15:32PM +0800, Jason Wang wrote: On 2020/10/14 上午7:42, si-wei liu wrote: So what I suggest is to fix the p

Re: [bpf-next PATCH 4/4] selftests/bpf: Migrate tcpbpf_user.c to use BPF skeleton

2020-10-29 Thread Andrii Nakryiko
On Thu, Oct 29, 2020 at 12:57 AM Alexander Duyck wrote: > > From: Alexander Duyck > > Update tcpbpf_user.c to make use of the BPF skeleton. Doing this we can > simplify test_tcpbpf_user and reduce the overhead involved in setting up > the test. > > Signed-off-by: Alexander Duyck > --- Few sugge

Re: [PATCH iproute2] tc: add print options to fix json output

2020-10-29 Thread Stephen Hemminger
On Thu, 29 Oct 2020 21:20:55 + "Sharma, Puneet" wrote: > I did provide an example to better explain what patch is doing. > > Sorry for long paste. > > So, with current implementation output of command: > $ tc -s -d -j filter show dev ingress > > would contain: > [{ > "protocol": "

Re: [PATCH net-next v3 2/4] net: hdlc_fr: Change the use of "dev" in fr_rx to make the code cleaner

2020-10-29 Thread Xie He
On Thu, Oct 29, 2020 at 9:58 AM Willem de Bruijn wrote: > > No need for dev at all then? Right, there's no need for "dev" at all actually. I kept "dev" just to keep the code for updating "dev->stats" simpler, because otherwise we need to write "skb->dev->stats" instead, and there are 3 lines wher

Re: [PATCH net-next v3 1/4] net: hdlc_fr: Simpify fr_rx by using "goto rx_drop" to drop frames

2020-10-29 Thread Xie He
On Thu, Oct 29, 2020 at 10:00 AM Willem de Bruijn wrote: > > This does change rx_dropped count on errors. Not sure how important > that is. But perhaps good to call out in the commit explicitly if it's > intentional. Yes, this is intentional, because I think we need to count it as a "drop" whenev

Re: [PATCH -next] net: stmmac: platform: remove useless if/else

2020-10-29 Thread Jakub Kicinski
On Thu, 29 Oct 2020 13:34:45 +0100 Andrew Lunn wrote: > On Thu, Oct 29, 2020 at 10:33:52AM +0800, Zou Wei wrote: > > Fix the following coccinelle report: > > > > ./drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:233:6-8: > > WARNING: possible condition with no effect (if == else) > > > > Bo

Re: [PATCH v4 3/5] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver

2020-10-29 Thread Lukasz Stelmach
It was <2020-10-29 czw 18:27>, when Marc Kleine-Budde wrote: > On 10/28/20 10:40 PM, Łukasz Stelmach wrote: >> ASIX AX88796[1] is a versatile ethernet adapter chip, that can be >> connected to a CPU with a 8/16-bit bus or with an SPI. This driver >> supports SPI connection. >> >> The driver has be

Re: [resend] Solution for the problem conntrack in tc subsystem

2020-10-29 Thread Marcelo Ricardo Leitner
Cc'ing Cong, Paul, Oz and Davide. On Thu, Oct 29, 2020 at 10:22:04AM +0800, wenxu wrote: > Only do gso for the reassembly big packet is also can't fix all the > case such for icmp packet. Good point. And as we can't know that a fragment was for an icmp packet before defraging it, this is quite im

Re: [PATCH v2] libbpf hashmap: Fix undefined behavior in hash_bits

2020-10-29 Thread Song Liu
> On Oct 29, 2020, at 3:38 PM, Andrii Nakryiko > wrote: > > On Thu, Oct 29, 2020 at 3:38 PM Ian Rogers wrote: >> >> If bits is 0, the case when the map is empty, then the >> is the size of >> the register which is undefined behavior - on x86 it is the same as a >> shift by 0. Fix by handlin

Re: [PATCH net-next 1/5] net: phy: mdio-i2c: support I2C MDIO protocol for RollBall SFP modules

2020-10-29 Thread Marek Behún
On Thu, 29 Oct 2020 15:53:48 -0700 Jakub Kicinski wrote: > +1 > > Maybe we should patch checkpatch to still enforce 80 for networking. If you do, do that for leds as well, Pavel will be glad.

Re: [PATCH net-next 1/5] net: phy: mdio-i2c: support I2C MDIO protocol for RollBall SFP modules

2020-10-29 Thread Jakub Kicinski
On Thu, 29 Oct 2020 13:41:07 + Russell King - ARM Linux admin wrote: > On Thu, Oct 29, 2020 at 01:54:39PM +0100, Andrew Lunn wrote: > > > It would be good to pass this through checkpatch - I notice some lines > > > seem to be over the 80 character limit now. > > > > Hi Russell > > > > The l

Re: [RFC bpf-next 07/16] kallsyms: Use rb tree for kallsyms name search

2020-10-29 Thread Andrii Nakryiko
On Thu, Oct 29, 2020 at 2:31 AM Jiri Olsa wrote: > > On Wed, Oct 28, 2020 at 02:15:02PM -0700, Alexei Starovoitov wrote: > > On Wed, Oct 28, 2020 at 07:25:34PM +0100, Jiri Olsa wrote: > > > On Thu, Oct 22, 2020 at 10:21:29AM +0200, Jiri Olsa wrote: > > > > The kallsyms_expand_symbol function showe

Re: [PATCH] net: dsa: mt7530: support setting MTU

2020-10-29 Thread Jakub Kicinski
On Thu, 29 Oct 2020 02:12:21 +0800 DENG Qingfang wrote: > MT7530/7531 has a global RX packet length register, which can be used > to set MTU. > > Signed-off-by: DENG Qingfang Please wrap your code at 80 chars. > diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c > index de7692b763

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

2020-10-29 Thread Andrii Nakryiko
On Thu, Oct 29, 2020 at 7:44 AM David Verbeiren wrote: > > On Tue, Oct 27, 2020 at 11:55 PM Andrii Nakryiko > wrote: > > Looks good, but would be good to have a unit test (see below). Maybe > > in a follow up. > > Here is the associated new selftest, implementing the sequence you > proposed (than

Re: [PATCH v2] libbpf hashmap: Fix undefined behavior in hash_bits

2020-10-29 Thread Andrii Nakryiko
On Thu, Oct 29, 2020 at 3:38 PM Ian Rogers wrote: > > If bits is 0, the case when the map is empty, then the >> is the size of > the register which is undefined behavior - on x86 it is the same as a > shift by 0. Fix by handling the 0 case explicitly and guarding calls to > hash_bits for empty map

Re: [PATCH bpf] selftest/bpf: Validate initial values of per-cpu hash elems

2020-10-29 Thread Andrii Nakryiko
On Thu, Oct 29, 2020 at 11:36 AM Song Liu wrote: > > On Thu, Oct 29, 2020 at 4:19 AM David Verbeiren > wrote: > > > > Tests that when per-cpu hash map or LRU hash map elements are > > re-used as a result of a bpf program inserting elements, the > > element values for the other CPUs than the one e

[PATCH v2 iproute2-next] bridge: add support for L2 multicast groups

2020-10-29 Thread Vladimir Oltean
From: Vladimir Oltean Extend the 'bridge mdb' command for the following syntax: bridge mdb add dev br0 port swp0 grp 01:02:03:04:05:06 permanent Signed-off-by: Vladimir Oltean --- Changes in v2: - Removed the const void casts. - Removed MDB_FLAGS_L2 from the UAPI to be in sync with the latest

[PATCH net-next v2 3/5] net: sfp: create/destroy I2C mdiobus before PHY probe/after PHY release

2020-10-29 Thread Marek Behún
Instead of configuring the I2C mdiobus when SFP driver is probed, create/destroy the mdiobus before the PHY is probed for/after it is released. This way we can tell the mdio-i2c code which protocol to use for each SFP transceiver. Signed-off-by: Marek Behún Cc: Andrew Lunn Cc: Russell King ---

[PATCH net-next v2 2/5] net: phylink: allow attaching phy for SFP modules on 802.3z mode

2020-10-29 Thread Marek Behún
Some SFPs may contain an internal PHY which may in some cases want to connect with the host interface in 1000base-x/2500base-x mode. Do not fail if such PHY is being attached in one of these PHY interface modes. Signed-off-by: Marek Behún Cc: Andrew Lunn Cc: Russell King --- drivers/net/phy/ph

[PATCH net-next v2 5/5] net: sfp: add support for multigig RollBall transceivers

2020-10-29 Thread Marek Behún
This adds support for multigig copper SFP modules from RollBall/Hilink. These modules have a specific way to access clause 45 registers of the internal PHY. We also need to wait at least 25 seconds after deasserting TX disable before accessing the PHY. The code waits for 30 seconds just to be sure

[PATCH net-next v2 0/5] Support for RollBall 10G copper SFP modules

2020-10-29 Thread Marek Behún
Hello, this is v2 of series adding support for RollBall/Hilink SFP modules. Checked with: checkpatch.pl --max-line-length=80 Changes from v1: - wrapped to 80 columns as per Russell's request - initialization of RollBall MDIO I2C protocol moved from sfp.c to mdio-i2c.c as per Russell's reques

Re: [PATCH] libbpf hashmap: Avoid undefined behavior in hash_bits

2020-10-29 Thread Andrii Nakryiko
On Thu, Oct 29, 2020 at 3:10 PM Ian Rogers wrote: > > If bits is 0, the case when the map is empty, then the >> is the size of > the register which is undefined behavior - on x86 it is the same as a > shift by 0. > Avoid calling hash_bits with bits == 0 by adding additional empty > hashmap tests.

[PATCH net-next v2 4/5] net: phy: marvell10g: change MACTYPE if underlying MAC does not support it

2020-10-29 Thread Marek Behún
RollBall SFPs contain a Marvell 88X3310 PHY, but by default the MACTYPE is set to 10GBASE-R with Rate Matching. Some devices (for example those based on Armada 38x) only support up to 2500base-x SerDes modes. Change the PHY's MACTYPE to 4 (which means changing between 10gbase-r, 5gbase-r, 2500bas

[PATCH net-next v2 1/5] net: phy: mdio-i2c: support I2C MDIO protocol for RollBall SFP modules

2020-10-29 Thread Marek Behún
Some multigig SFPs from RollBall and Hilink do not expose functional MDIO access to the internal PHY of the SFP via I2C address 0x56 (although there seems to be read-only clause 22 access on this address). Instead these SFPs PHY can be accessed via I2C via the SFP Enhanced Digital Diagnostic Inter

[PATCH][next] nl80211/cfg80211: fix potential infinite loop

2020-10-29 Thread Colin King
From: Colin Ian King The for-loop iterates with a u8 loop counter and compares this with the loop upper limit of request->n_ssids which is an int type. There is a potential infinite loop if n_ssids is larger than the u8 loop counter, so fix this by making the loop counter an int. Addresses-Cover

Re: [net] tipc: add stricter control of reserved service types

2020-10-29 Thread Jakub Kicinski
On Wed, 28 Oct 2020 09:19:12 -0400 jma...@redhat.com wrote: > From: Jon Maloy > > TIPC reserves 64 service types for current and future internal use. > Therefore, the bind() function is meant to block regular user sockets > from being bound to these values, while it should let through such > bind

Re: [PATCH net] cadence: force nonlinear buffers to be cloned

2020-10-29 Thread Jakub Kicinski
On Wed, 28 Oct 2020 14:17:36 + Mark Deneen wrote: > In my test setup, I had a SAMA5D27 device configured with ip forwarding, and > second device with usb ethernet (r8152) sending ICMP packets.  If the packet > was larger than about 220 bytes, the SAMA5 device would "oops" with the > following t

Re: [PATCH v2 1/2] bpf: don't rely on GCC __attribute__((optimize)) to disable GCSE

2020-10-29 Thread Ard Biesheuvel
On Thu, 29 Oct 2020 at 21:35, Segher Boessenkool wrote: > > On Wed, Oct 28, 2020 at 10:57:45PM -0400, Arvind Sankar wrote: > > On Wed, Oct 28, 2020 at 04:20:01PM -0700, Alexei Starovoitov wrote: > > > All compilers have bugs. Kernel has bugs. What can go wrong? > > Heh. > > > +linux-toolchains. GC

Re: [PATCHv5 net-next 00/16] sctp: Implement RFC6951: UDP Encapsulation of SCTP

2020-10-29 Thread Marcelo Ricardo Leitner
On Thu, Oct 29, 2020 at 03:04:54PM +0800, Xin Long wrote: ... > Patches: > >This patchset is using the udp4/6 tunnel APIs to implement the UDP >Encapsulation of SCTP with not much change in SCTP protocol stack >and with all current SCTP features keeped in Linux Kernel. Acked-by: Marce

Re: [PATCH v3 2/2] vhost-vdpa: fix page pinning leakage in error path

2020-10-29 Thread Michael S. Tsirkin
On Thu, Oct 15, 2020 at 01:17:14PM -0700, si-wei liu wrote: > > On 10/15/2020 6:11 AM, Michael S. Tsirkin wrote: > > On Thu, Oct 15, 2020 at 02:15:32PM +0800, Jason Wang wrote: > > > On 2020/10/14 上午7:42, si-wei liu wrote: > > > > > > > > > > So what I suggest is to fix the pinning leakage first

Re: [PATCH v10 3/4] docs: Add documentation for userspace client interface

2020-10-29 Thread Randy Dunlap
Hi, On 10/29/20 2:40 PM, Hemant Kumar wrote: > MHI userspace client driver is creating device file node > for user application to perform file operations. File > operations are handled by MHI core driver. Currently > Loopback MHI channel is supported by this driver. > > Signed-off-by: Hemant Kuma

Re: [PATCH net-next 0/2] net trigraph fixes for W=1

2020-10-29 Thread Jakub Kicinski
On Wed, 28 Oct 2020 01:22:33 +0100 Andrew Lunn wrote: > Both the Marvell mvneta and rose driver accidentally make use of a > trigraph. When compiling with W=1 an warning is issues because we have > trigraphs disabled. So for mvneta, which is only a diagnostic print, > remove the trigraph. For rose,

  1   2   3   4   >