[PATCH V2 net-next 0/7] net: hns3: updates for -next

2020-11-27 Thread Huazhong Tan
This series includes some updates for the HNS3 ethernet driver. #1~#6: add some updates related to the checksum offload. #7: add support for multiple TCs' MAC pauce mode. change log: V2: fixes some sparse errors in #1 & #5. previous version: V1: https://patchwork.kernel.org/project/netdevbpf/co

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

2020-11-27 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 v13 1/4] bus: mhi: core: Add helper API to return number of free TREs

2020-11-27 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

Re: [PATCH net-next 1/2] ppp: add PPPIOCBRIDGECHAN and PPPIOCUNBRIDGECHAN ioctls

2020-11-27 Thread Guillaume Nault
On Thu, Nov 26, 2020 at 12:24:25PM +, Tom Parkin wrote: > This new ioctl pair allows two ppp channels to be bridged together: > frames arriving in one channel are transmitted in the other channel > and vice versa. Thanks! Some comments below (mostly about locking). > The practical use for thi

Re: [PATCH bpf-next v3 1/5] selftests/bpf: xsk selftests framework

2020-11-27 Thread Yonghong Song
On 11/27/20 9:54 AM, Weqaar Janjua wrote: On Fri, 27 Nov 2020 at 04:19, Yonghong Song wrote: On 11/26/20 1:22 PM, Weqaar Janjua wrote: On Thu, 26 Nov 2020 at 09:01, Björn Töpel wrote: On 2020-11-26 07:44, Yonghong Song wrote: [...] What other configures I am missing? BTW, I cher

Re: [PATCH] powerpc: fix the allyesconfig build

2020-11-27 Thread Yunsheng Lin
On 2020/11/28 9:56, Jakub Kicinski wrote: > On Sat, 28 Nov 2020 12:28:19 +1100 Stephen Rothwell wrote: >> There are 2 drivers that have arrays of packed structures that contain >> pointers that end up at unaligned offsets. These produce warnings in >> the PowerPC allyesconfig build like this: >> >

Re: [PATCH net-next] net/sched: act_ct: enable stats for HW offloaded entries

2020-11-27 Thread Marcelo Ricardo Leitner
On Fri, Nov 27, 2020 at 06:00:32PM -0800, Jakub Kicinski wrote: > On Thu, 26 Nov 2020 15:40:49 -0300 Marcelo Ricardo Leitner wrote: > > By setting NF_FLOWTABLE_COUNTER. Otherwise, the updates added by > > commit ef803b3cf96a ("netfilter: flowtable: add counter support in HW > > offload") are not ef

Re: [PATCH net-next 0/5] mlxsw: Update adjacency index more efficiently

2020-11-27 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Wed, 25 Nov 2020 21:35:00 +0200 you wrote: > From: Ido Schimmel > > The device supports an operation that allows the driver to issue one > request to update the adjacency index for all the routes in a given > virtual

Re: [PATCH v1] net: phy: micrel: fix interrupt handling

2020-11-27 Thread Jakub Kicinski
On Fri, 27 Nov 2020 15:11:08 + Ioana Ciornei wrote: > On Fri, Nov 27, 2020 at 03:45:45PM +0100, Andrew Lunn wrote: > > On Fri, Nov 27, 2020 at 01:36:21PM +0100, Oleksij Rempel wrote: > > > After migration to the shared interrupt support, the KSZ8031 PHY with > > > enabled interrupt support wa

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Jakub Kicinski
On Sat, 28 Nov 2020 03:41:06 +0200 Vladimir Oltean wrote: > Jakub, I would like to hear more from you. I would still like to try > this patch out. You clearly have a lot more background with the code. Well, I've seen people run into the problem of this NDO not being able to sleep, but I don't have

Re: [PATCH net-next] net/sched: act_ct: enable stats for HW offloaded entries

2020-11-27 Thread Jakub Kicinski
On Thu, 26 Nov 2020 15:40:49 -0300 Marcelo Ricardo Leitner wrote: > By setting NF_FLOWTABLE_COUNTER. Otherwise, the updates added by > commit ef803b3cf96a ("netfilter: flowtable: add counter support in HW > offload") are not effective when using act_ct. > > While at it, now that we have the flag s

Re: [PATCH net-next 1/7] net: hns3: add support for RX completion checksum

2020-11-27 Thread tanhuazhong
On 2020/11/28 4:52, Jakub Kicinski wrote: On Fri, 27 Nov 2020 16:47:16 +0800 Huazhong Tan wrote: In some cases (for example ip fragment), hardware will calculate the checksum of whole packet in RX, and setup the HNS3_RXD_L2_CSUM_B flag in the descriptor, so add support to utilize this checksu

Re: [PATCH net-next 5/7] net: hns3: add more info to hns3_dbg_bd_info()

2020-11-27 Thread tanhuazhong
On 2020/11/28 4:53, Jakub Kicinski wrote: On Fri, 27 Nov 2020 16:47:20 +0800 Huazhong Tan wrote: Since TX hardware checksum and RX completion checksum have been supported now, so add related information in hns3_dbg_bd_info(). Signed-off-by: Huazhong Tan drivers/net/ethernet/hisilicon/hns3

Re: [PATCH] powerpc: fix the allyesconfig build

2020-11-27 Thread Jakub Kicinski
On Sat, 28 Nov 2020 12:28:19 +1100 Stephen Rothwell wrote: > There are 2 drivers that have arrays of packed structures that contain > pointers that end up at unaligned offsets. These produce warnings in > the PowerPC allyesconfig build like this: > > WARNING: 148 bad relocations > ce56510

Re: [net-next v2 0/3] tipc: some minor improvements

2020-11-27 Thread Jakub Kicinski
On Wed, 25 Nov 2020 13:29:12 -0500 jma...@redhat.com wrote: > From: Jon Maloy > > We add some improvements that will be useful in future commits. Applied, thanks!

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Vladimir Oltean
On Fri, Nov 27, 2020 at 03:56:49PM -0800, Jakub Kicinski wrote: > What is it with my email today, didn't get this one again. > > On Sat, 28 Nov 2020 01:39:16 +0200 Vladimir Oltean wrote: > > On Sat, Nov 28, 2020 at 12:30:48AM +0100, Andrew Lunn wrote: > > > > If there is a better alternative I'm al

[PATCH] powerpc: fix the allyesconfig build

2020-11-27 Thread Stephen Rothwell
There are 2 drivers that have arrays of packed structures that contain pointers that end up at unaligned offsets. These produce warnings in the PowerPC allyesconfig build like this: WARNING: 148 bad relocations ce56510b R_PPC64_UADDR64 .rodata+0x01c72378 ce565126 R_PPC64

Re: [PATCH 00/10 net-next] net/tipc: fix all kernel-doc and add TIPC networking chapter

2020-11-27 Thread Jakub Kicinski
On Tue, 24 Nov 2020 20:20:16 -0800 Randy Dunlap wrote: > Fix lots of net/tipc/ kernel-doc warnings. Add many struct field and > function parameter descriptions. > > Then add a TIPC chapter to the networking documentation book. > > > Note: some of the struct members and function parameters are ma

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Vladimir Oltean
On Sat, Nov 28, 2020 at 01:39:12AM +0100, Andrew Lunn wrote: > > This means, as far as I understand, 2 things: > > 1. call_netdevice_notifiers_info doesn't help, since our problem is the > >same > > 2. I think that holding the RTNL should also be a valid way to iterate > >through the net de

Re: [PATCH net-next v7 0/5] net/x25: netdev event handling

2020-11-27 Thread Jakub Kicinski
On Thu, 26 Nov 2020 07:35:52 +0100 Martin Schiller wrote: > Changes to v6: > o integrated some code styling suggestions by Jakub. > > Changes to v5: > o fix numbering in commit message of patch 2/5. > > Changes to v4: > o also establish layer2 (LAPB) on NETDEV_UP events, if the carrier is > alr

[PATCH] netfilter: remove trailing semicolon in macro definition

2020-11-27 Thread trix
From: Tom Rix The macro use will already have a semicolon. Signed-off-by: Tom Rix --- include/net/netfilter/nf_tables_offload.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/netfilter/nf_tables_offload.h b/include/net/netfilter/nf_tables_offload.h index 1d34f

Re: [RFC 0/4] net: l2switch: Provide support for L2 switch on i.MX28 SoC

2020-11-27 Thread Lukasz Majewski
Hi Vladimir, > On Fri, Nov 27, 2020 at 12:35:49AM +0100, Lukasz Majewski wrote: > > > > - The question regarding power management - at least for my use > > > > case there is no need for runtime power management. The L2 > > > > switch shall work always at it connects other devices. > > > > > > > >

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Andrew Lunn
> This means, as far as I understand, 2 things: > 1. call_netdevice_notifiers_info doesn't help, since our problem is the >same > 2. I think that holding the RTNL should also be a valid way to iterate >through the net devices in the current netns, and doing just that >could be the simpl

pull-request: bpf 2020-11-28

2020-11-27 Thread Daniel Borkmann
Hi David, hi Jakub, The following pull-request contains BPF updates for your *net* tree. We've added 6 non-merge commits during the last 6 day(s) which contain a total of 9 files changed, 61 insertions(+), 23 deletions(-). The main changes are: 1) Do not reference the skb for xsk's generic TX s

Re: [PATCH] bpf: remove trailing semicolon in macro definition

2020-11-27 Thread Daniel Borkmann
On 11/27/20 8:27 PM, t...@redhat.com wrote: From: Tom Rix The macro use will already have a semicolon. Signed-off-by: Tom Rix --- include/trace/events/xdp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/trace/events/xdp.h b/include/trace/events/xdp.h index

Re: [PATCH] bpf, x64: add extra passes without size optimizations

2020-11-27 Thread Daniel Borkmann
On 11/27/20 8:22 AM, Gary Lin wrote: The x64 bpf jit expects bpf images converge within the given passes, but it could fail to do so with some corner cases. For example: l0: ldh [4] l1: jeq #0x537d, l2, l40 l2: ld [0] l3: jeq #0xfa163e0d, l4, l40

Re: [PATCH net] net: dsa: reference count the host mdb addresses

2020-11-27 Thread Vladimir Oltean
On Sat, Nov 28, 2020 at 12:58:10AM +0100, Tobias Waldekranz wrote: > That sounds like a good idea. We have run into another issue with the > MDB that maybe could be worked into this changeset. This is what we have > observed on 4.19, but from looking at the source it does not look like > anything h

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Andrew Lunn
> If there is a better alternative I'm all ears but having /proc and > ifconfig return zeros for error counts while ip link doesn't will lead > to too much confusion IMO. While delayed update of stats is a fact of > life for _years_ now (hence it was backed into the ethtool -C API). How about dev_

Re: [PATCH net-next] netfilter: bridge: reset skb->pkt_type after NF_INET_POST_ROUTING traversal

2020-11-27 Thread Jakub Kicinski
On Mon, 23 Nov 2020 19:32:53 +0100 Florian Westphal wrote: > Antoine Tenart wrote: > > Netfilter changes PACKET_OTHERHOST to PACKET_HOST before invoking the > > hooks as, while it's an expected value for a bridge, routing expects > > PACKET_HOST. The change is undone later on after hook traversal.

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Vladimir Oltean
On Sat, Nov 28, 2020 at 01:39:16AM +0200, Vladimir Oltean wrote: > On Sat, Nov 28, 2020 at 12:30:48AM +0100, Andrew Lunn wrote: > > > If there is a better alternative I'm all ears but having /proc and > > > ifconfig return zeros for error counts while ip link doesn't will lead > > > to too much con

Re: [PATCH v2 net-next 3/3] nfc: s3fwrn5: extract the common phy blocks

2020-11-27 Thread Jakub Kicinski
On Fri, 27 Nov 2020 20:22:18 +0900 bongsu.je...@gmail.com wrote: > From: Bongsu Jeon > > Extract the common phy blocks to reuse it. > The UART module will use the common blocks. > > Signed-off-by: Bongsu Jeon > --- > Changes in v2: > - remove the common function's definition in common header f

Re: [PATCH net] net: dsa: reference count the host mdb addresses

2020-11-27 Thread Tobias Waldekranz
On Fri, Oct 16, 2020 at 00:27, Vladimir Oltean wrote: > Currently any DSA switch that implements the multicast ops (properly, > that is) gets these errors after just sitting for a while, with at least > 2 ports bridged: > > [ 286.013814] mscc_felix :00:00.5 swp3: failed (err=-2) to del object

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Jakub Kicinski
What is it with my email today, didn't get this one again. On Sat, 28 Nov 2020 01:39:16 +0200 Vladimir Oltean wrote: > On Sat, Nov 28, 2020 at 12:30:48AM +0100, Andrew Lunn wrote: > > > If there is a better alternative I'm all ears but having /proc and > > > ifconfig return zeros for error counts

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Jakub Kicinski
On Sat, 28 Nov 2020 01:21:40 +0200 Vladimir Oltean wrote: > On Fri, Nov 27, 2020 at 01:37:53PM -0800, Jakub Kicinski wrote: > > High speed systems are often eventually consistent. Either because > > stats are gathered from HW periodically by the FW, or RCU grace period > > has to expire, or workque

Re: [GIT PULL] Networking

2020-11-27 Thread patchwork-bot+netdevbpf
Hello: This pull request was applied to netdev/net.git (refs/heads/master): On Fri, 27 Nov 2020 12:04:28 -0800 you wrote: > The following changes since commit 4d02da974ea85a62074efedf354e82778f910d82: > > Merge tag 'net-5.10-rc5' of > git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Vladimir Oltean
On Sat, Nov 28, 2020 at 12:30:48AM +0100, Andrew Lunn wrote: > > If there is a better alternative I'm all ears but having /proc and > > ifconfig return zeros for error counts while ip link doesn't will lead > > to too much confusion IMO. While delayed update of stats is a fact of > > life for _year

Re: [GIT PULL] Networking

2020-11-27 Thread pr-tracker-bot
The pull request you sent on Fri, 27 Nov 2020 12:04:28 -0800: > git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git tags/net-5.10-rc6 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/79c0c1f0389db60f3c83ec91585a39d16e036f21 Thank you! -- Deet-doot-dot, I am a

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Vladimir Oltean
On Fri, Nov 27, 2020 at 01:37:53PM -0800, Jakub Kicinski wrote: > High speed systems are often eventually consistent. Either because > stats are gathered from HW periodically by the FW, or RCU grace period > has to expire, or workqueue has to run, etc. etc. I know it's annoying > for writing tests

Re: [PATCH net-next 2/4] net: dsa: Link aggregation support

2020-11-27 Thread Tobias Waldekranz
On Fri, Nov 27, 2020 at 17:28, Andrew Lunn wrote: >> This is a digression, but I really do not get this shift from using >> BUG()s to WARN()s in the kernel when you detect a violated invariant. It >> smells of "On Error Resume Next" to me. > > A WARN() gives you a chance to actually use the machin

Re: Hardcoded multicast queue length in macvlan.c driver causes poor multicast receive performance

2020-11-27 Thread Thomas Karlsson
On 2020-11-27 18:27, Jakub Kicinski wrote: > On Thu, 26 Nov 2020 21:00:46 +0100 Thomas Karlsson wrote: >> On 2020-11-26 00:01, Jakub Kicinski wrote: >>> On Wed, 25 Nov 2020 23:15:39 +0100 Thomas Karlsson wrote: Or is there a way to set the parameters in a more "raw" form that does not r

Re: [PATCH] net: cisco: remove trailing semicolon in macro definition

2020-11-27 Thread Kieran Bingham
Hi Tom, On 27/11/2020 17:58, t...@redhat.com wrote: > From: Tom Rix > > The macro use will already have a semicolon. > > Signed-off-by: Tom Rix Seems to be the only occurrence in this file. Reviewed-by: Kieran Bingham > --- > drivers/net/wireless/cisco/airo.c | 2 +- > 1 file changed, 1 i

Re: [PATCH] NFC:Fix Warning: Comparison to bool

2020-11-27 Thread Jakub Kicinski
On Thu, 26 Nov 2020 15:15:42 +0800 Runzhe Wang wrote: > This patch uses the shdlc->rnr variable as a judgment condition of > statement, rather than compares with bool. > > Signed-off-by: Runzhe Wang > Reported-by: Abaci "Fix Warning" sounds like you're addressing a real compiler warning, please

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Andrew Lunn
On Fri, Nov 27, 2020 at 02:14:02PM -0800, Jakub Kicinski wrote: > On Fri, 27 Nov 2020 22:32:44 +0100 Andrew Lunn wrote: > > > > So long as these counters are still in ethtool -S, i guess it does not > > > > matter. That i do trust to be accurate, and probably consistent across > > > > the counters

Re: [PATCH] net/af_unix: don't create a path for a binded socket

2020-11-27 Thread Jakub Kicinski
On Thu, 26 Nov 2020 17:22:08 +0300 Denis Kirjanov wrote: > On 11/26/20, Jakub Kicinski wrote: > > On Tue, 24 Nov 2020 15:24:21 +0300 Denis Kirjanov wrote: > >> in the case of the socket which is bound to an adress > >> there is no sense to create a path in the next attempts > > > >> diff --g

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Vladimir Oltean
On Fri, Nov 27, 2020 at 01:37:53PM -0800, Jakub Kicinski wrote: > Replying to George's email 'cause I didn't get Vladimir's email from > the ML. > > On Fri, 27 Nov 2020 14:58:29 -0600 George McCollister wrote: > > > 100 Kbps = 12.5KB/s. > > > sja1105 has 93 64-bit counters, and during every counter

Re: [PATCH v4 net-next 3/3] net/sched: sch_frag: add generic packet fragment support.

2020-11-27 Thread Jakub Kicinski
On Thu, 26 Nov 2020 08:26:37 -0500 Jamal Hadi Salim wrote: > On 2020-11-26 12:03 a.m., Cong Wang wrote: > > On Wed, Nov 25, 2020 at 11:11 AM Jakub Kicinski wrote: > >> > >> On Wed, 25 Nov 2020 12:01:23 +0800 we...@ucloud.cn wrote: > >>> From: wenxu > >>> > >>> Currently kernel tc subsystem ca

Re: [net-next v2 0/5] Add CHACHA20-POLY1305 cipher to Kernel TLS

2020-11-27 Thread Jakub Kicinski
On Tue, 24 Nov 2020 18:24:45 +0300 Vadim Fedorenko wrote: > RFC 7905 defines usage of ChaCha20-Poly1305 in TLS connections. This > cipher is widely used nowadays and it's good to have a support for it > in TLS connections in kernel. > Changes v2: > nit fixes suggested by Jakub Kicinski > add l

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Andrew Lunn
> Either way, can we conclude that ndo_get_stats64 is not a replacement > for ethtool -S, since the latter is blocking and, if implemented correctly, > can return the counters at the time of the call (therefore making sure > that anything that happened before the syscall has been accounted into > t

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Jakub Kicinski
On Fri, 27 Nov 2020 22:32:44 +0100 Andrew Lunn wrote: > > > So long as these counters are still in ethtool -S, i guess it does not > > > matter. That i do trust to be accurate, and probably consistent across > > > the counters it returns. > > > > Not in the NIC designs I'm familiar with. > >

Re: [PATCH v5 1/1] xdp: remove the functions xsk_map_inc and xsk_map_put

2020-11-27 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (refs/heads/master): On Thu, 26 Nov 2020 23:03:18 +0800 you wrote: > From: Zhu Yanjun > > The functions xsk_map_put and xsk_map_inc are simple wrappers. > As such, replacing these functions with the functions bpf_map_inc > and bpf_map_put and re

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Jakub Kicinski
On Fri, 27 Nov 2020 23:23:42 +0200 Vladimir Oltean wrote: > On Fri, Nov 27, 2020 at 01:13:46PM -0800, Jakub Kicinski wrote: > > On Fri, 27 Nov 2020 21:47:14 +0100 Andrew Lunn wrote: > > > > Is the periodic refresh really that awful? We're mostly talking error > > > > counters here so every second

Re: [PATCH net] net: dsa: reference count the host mdb addresses

2020-11-27 Thread Vladimir Oltean
Hi Florian, On Mon, Oct 19, 2020 at 07:11:47PM -0700, Florian Fainelli wrote: > On 10/15/2020 2:27 PM, Vladimir Oltean wrote: > > Currently any DSA switch that implements the multicast ops (properly, > > that is) gets these errors after just sitting for a while, with at least > > 2 ports bridged:

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Jakub Kicinski
Replying to George's email 'cause I didn't get Vladimir's email from the ML. On Fri, 27 Nov 2020 14:58:29 -0600 George McCollister wrote: > > 100 Kbps = 12.5KB/s. > > sja1105 has 93 64-bit counters, and during every counter refresh cycle I Are these 93 for one port? That sounds like a lot.. The

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Andrew Lunn
> > So long as these counters are still in ethtool -S, i guess it does not > > matter. That i do trust to be accurate, and probably consistent across > > the counters it returns. > > Not in the NIC designs I'm familiar with. Many NICs have a way to take a hardware snapshot of all counters. You ca

Re: [PATCH bpf v2 2/2] xsk: change the tx writeable condition

2020-11-27 Thread Daniel Borkmann
On 11/25/20 7:48 AM, Xuan Zhuo wrote: Modify the tx writeable condition from the queue is not full to the number of present tx queues is less than the half of the total number of queues. Because the tx queue not full is a very short time, this will cause a large number of EPOLLOUT events, and cau

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Vladimir Oltean
On Fri, Nov 27, 2020 at 01:13:46PM -0800, Jakub Kicinski wrote: > On Fri, 27 Nov 2020 21:47:14 +0100 Andrew Lunn wrote: > > > Is the periodic refresh really that awful? We're mostly talking error > > > counters here so every second or every few seconds should be perfectly > > > fine. > > > > Humm,

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Jakub Kicinski
On Fri, 27 Nov 2020 21:47:14 +0100 Andrew Lunn wrote: > > Is the periodic refresh really that awful? We're mostly talking error > > counters here so every second or every few seconds should be perfectly > > fine. > > Humm, i would prefer error counts to be more correct than anything > else. When

Re: [PATCH bpf-next] libbpf: replace size_t with __u32 in xsk interfaces

2020-11-27 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (refs/heads/master): On Thu, 26 Nov 2020 10:37:35 +0100 you wrote: > From: Magnus Karlsson > > Replace size_t with __u32 in the xsk interfaces that contain > this. There is no reason to have size_t since the internal variable > that is manipulat

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread George McCollister
On Fri, Nov 27, 2020 at 1:50 PM Vladimir Oltean wrote: > > On Fri, Nov 27, 2020 at 12:47:41PM -0600, George McCollister wrote: > > On Fri, Nov 27, 2020, 12:35 PM Jakub Kicinski wrote: > > > > > On Fri, 27 Nov 2020 00:05:00 +0200 Vladimir Oltean wrote: > > > > On Thu, Nov 26, 2020 at 01:07:12PM -0

Re: [PATCH] PM: runtime: replace pm_runtime_resume_and_get with pm_runtime_resume_and_get_sync

2020-11-27 Thread Jakub Kicinski
On Fri, 27 Nov 2020 21:52:56 +0800 Zhang Qilong wrote: > In the pm_runtime_resume_and_get, pm_runtime_resume() is > synchronous. Caller had to look into the implementation > to verify that a change for pm_runtime_resume_and_get[0]. > So we use pm_rauntime_resume_and_get_sync to replace it > to avoi

Re: [PATCH net-next 1/7] net: hns3: add support for RX completion checksum

2020-11-27 Thread Jakub Kicinski
On Fri, 27 Nov 2020 16:47:16 +0800 Huazhong Tan wrote: > In some cases (for example ip fragment), hardware will > calculate the checksum of whole packet in RX, and setup > the HNS3_RXD_L2_CSUM_B flag in the descriptor, so add > support to utilize this checksum. > > Signed-off-by: Huazhong Tan dr

Re: [PATCH net-next 5/7] net: hns3: add more info to hns3_dbg_bd_info()

2020-11-27 Thread Jakub Kicinski
On Fri, 27 Nov 2020 16:47:20 +0800 Huazhong Tan wrote: > Since TX hardware checksum and RX completion checksum have been > supported now, so add related information in hns3_dbg_bd_info(). > > Signed-off-by: Huazhong Tan drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c:266:22: warning: incorrec

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Andrew Lunn
> Is the periodic refresh really that awful? We're mostly talking error > counters here so every second or every few seconds should be perfectly > fine. Humm, i would prefer error counts to be more correct than anything else. When debugging issues, you generally don't care how many packets worked.

[GIT PULL] Networking

2020-11-27 Thread Jakub Kicinski
git/netdev/net.git tags/net-5.10-rc6 for you to fetch changes up to d0742c49cab58ee6e2de40f1958b736aedf779b6: Merge tag 'linux-can-fixes-for-5.10-20201127' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can (2020-1

Re: [RFC 0/4] net: l2switch: Provide support for L2 switch on i.MX28 SoC

2020-11-27 Thread Vladimir Oltean
On Fri, Nov 27, 2020 at 12:35:49AM +0100, Lukasz Majewski wrote: > > > - The question regarding power management - at least for my use > > > case there is no need for runtime power management. The L2 switch > > > shall work always at it connects other devices. > > > > > > - The FEC clock is also us

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Vladimir Oltean
On Fri, Nov 27, 2020 at 12:47:41PM -0600, George McCollister wrote: > On Fri, Nov 27, 2020, 12:35 PM Jakub Kicinski wrote: > > > On Fri, 27 Nov 2020 00:05:00 +0200 Vladimir Oltean wrote: > > > On Thu, Nov 26, 2020 at 01:07:12PM -0600, George McCollister wrote: > > > > On Thu, Nov 26, 2020 at 11:5

[PATCH] bpf: remove trailing semicolon in macro definition

2020-11-27 Thread trix
From: Tom Rix The macro use will already have a semicolon. Signed-off-by: Tom Rix --- include/trace/events/xdp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/trace/events/xdp.h b/include/trace/events/xdp.h index cd24e8a59529..65ffedf8386f 100644 --- a/include

Re: [net 2/6] can: mcp251xfd: mcp251xfd_probe(): bail out if no IRQ was given

2020-11-27 Thread Jakub Kicinski
On Fri, 27 Nov 2020 11:02:57 +0100 Marc Kleine-Budde wrote: > This patch add a check to the mcp251xfd_probe() function to bail out and give > the user a proper error message if no IRQ is specified. Otherwise the driver > will probe just fine but ifup will fail with a meaningless "RTNETLINK answers:

[PATCH net 1/5] netfilter: ipset: prevent uninit-value in hash_ip6_add

2020-11-27 Thread Pablo Neira Ayuso
From: Eric Dumazet syzbot found that we are not validating user input properly before copying 16 bytes [1]. Using NLA_BINARY in ipaddr_policy[] for IPv6 address is not correct, since it ensures at most 16 bytes were provided. We should instead make sure user provided exactly 16 bytes. In old k

[PATCH net 0/5] Netfilter fixes for net

2020-11-27 Thread Pablo Neira Ayuso
Hi, The following patchset contains Netfilter fixes for net: 1) Fix insufficient validation of IPSET_ATTR_IPADDR_IPV6 reported by syzbot. 2) Remove spurious reports on nf_tables when lockdep gets disabled, from Florian Westphal. 3) Fix memleak in the error path of error path of ip_vs_c

[PATCH net 2/5] netfilter: nf_tables: avoid false-postive lockdep splat

2020-11-27 Thread Pablo Neira Ayuso
From: Florian Westphal There are reports wrt lockdep splat in nftables, e.g.: [ cut here ] WARNING: CPU: 2 PID: 31416 at net/netfilter/nf_tables_api.c:622 lockdep_nfnl_nft_mutex_not_held+0x28/0x38 [nf_tables] ... These are caused by an earlier, unrelated bug such as a n A

[PATCH net 4/5] netfilter: nftables_offload: set address type in control dissector

2020-11-27 Thread Pablo Neira Ayuso
This patch adds nft_flow_rule_set_addr_type() to set the address type from the nft_payload expression accordingly. If the address type is not set in the control dissector then a rule that matches either on source or destination IP address does not work. After this patch, nft hardware offload gene

[PATCH net 5/5] netfilter: nftables_offload: build mask based from the matching bytes

2020-11-27 Thread Pablo Neira Ayuso
Userspace might match on prefix bytes of header fields if they are on the byte boundary, this requires that the mask is adjusted accordingly. Use NFT_OFFLOAD_MATCH_EXACT() for meta since prefix byte matching is not allowed for this type of selector. The bitwise expression might be optimized out by

Re: [PATCH net] mptcp: fix NULL ptr dereference on bad MPJ

2020-11-27 Thread Jakub Kicinski
On Thu, 26 Nov 2020 16:23:08 +0100 Matthieu Baerts wrote: > On 26/11/2020 15:17, Paolo Abeni wrote: > > If an msk listener receives an MPJ carrying an invalid token, it > > will zero the request socket msk entry. That should later > > cause fallback and subflow reset - as per RFC - at > > subflow_s

Re: [PATCH net] sock: set sk_err to ee_errno on dequeue from errq

2020-11-27 Thread Jakub Kicinski
On Thu, 26 Nov 2020 12:28:36 -0500 Soheil Hassas Yeganeh wrote: > > From: Willem de Bruijn > > > > When setting sk_err, set it to ee_errno, not ee_origin. > > > > Commit f5f99309fa74 ("sock: do not set sk_err in > > sock_dequeue_err_skb") disabled updating sk_err on errq dequeue, > > which is corr

[PATCH net 3/5] ipvs: fix possible memory leak in ip_vs_control_net_init

2020-11-27 Thread Pablo Neira Ayuso
From: Wang Hai kmemleak report a memory leak as follows: BUG: memory leak unreferenced object 0x8880759ea000 (size 256): backtrace: [] kmem_cache_zalloc include/linux/slab.h:656 [inline] [] __proc_create+0x23d/0x7d0 fs/proc/generic.c:421 [<9d718d02

Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2020-11-27 Thread Jakub Kicinski
On Fri, 27 Nov 2020 00:05:00 +0200 Vladimir Oltean wrote: > On Thu, Nov 26, 2020 at 01:07:12PM -0600, George McCollister wrote: > > On Thu, Nov 26, 2020 at 11:56 AM Vladimir Oltean wrote: > > > > > On Thu, Nov 26, 2020 at 03:24:18PM +0200, Vladimir Oltean wrote: > > > > On Wed, Nov 25, 2020 a

[PATCH] net: wl1251: remove trailing semicolon in macro definition

2020-11-27 Thread trix
From: Tom Rix The macro use will already have a semicolon. Signed-off-by: Tom Rix --- drivers/net/wireless/ti/wl1251/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ti/wl1251/debugfs.c b/drivers/net/wireless/ti/wl1251/debugfs.c index d48746e6

[PATCH] net: iwlwifi: remove trailing semicolon in macro definition

2020-11-27 Thread trix
From: Tom Rix The macro use will already have a semicolon. Signed-off-by: Tom Rix --- drivers/net/wireless/intel/iwlwifi/dvm/rx.c | 2 +- drivers/net/wireless/intel/iwlwifi/fw/api/coex.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/iwlw

[PATCH bpf-next V8 8/8] bpf/selftests: tests using bpf_check_mtu BPF-helper

2020-11-27 Thread Jesper Dangaard Brouer
Adding selftest for BPF-helper bpf_check_mtu(). Making sure it can be used from both XDP and TC. Signed-off-by: Jesper Dangaard Brouer --- tools/testing/selftests/bpf/prog_tests/check_mtu.c | 204 tools/testing/selftests/bpf/progs/test_check_mtu.c | 196 +++

[PATCH iproute2] ip/netns: use flock when setting up /run/netns

2020-11-27 Thread Luca Boccassi
If multiple ip processes are ran at the same time to set up separate network namespaces, and it is the first time so /run/netns has to be set up first, and they end up doing it at the same time, the processes might enter a recursive loop creating thousands of mount points, which might crash the sys

[PATCH bpf-next V8 6/8] bpf: make it possible to identify BPF redirected SKBs

2020-11-27 Thread Jesper Dangaard Brouer
This change makes it possible to identify SKBs that have been redirected by TC-BPF (cls_act). This is needed for a number of cases. (1) For collaborating with driver ifb net_devices. (2) For avoiding starting generic-XDP prog on TC ingress redirect. It is most important to fix XDP case(2), becaus

[PATCH bpf-next V8 7/8] selftests/bpf: use bpf_check_mtu in selftest test_cls_redirect

2020-11-27 Thread Jesper Dangaard Brouer
This demonstrate how bpf_check_mtu() helper can easily be used together with bpf_skb_adjust_room() helper, prior to doing size adjustment, as delta argument is already setup. Hint: This specific test can be selected like this: ./test_progs -t cls_redirect Signed-off-by: Jesper Dangaard Brouer -

[PATCH bpf-next V8 5/8] bpf: drop MTU check when doing TC-BPF redirect to ingress

2020-11-27 Thread Jesper Dangaard Brouer
The use-case for dropping the MTU check when TC-BPF does redirect to ingress, is described by Eyal Birger in email[0]. The summary is the ability to increase packet size (e.g. with IPv6 headers for NAT64) and ingress redirect packet and let normal netstack fragment packet as needed. [0] https://l

[PATCH bpf-next V8 4/8] bpf: add BPF-helper for MTU checking

2020-11-27 Thread Jesper Dangaard Brouer
This BPF-helper bpf_check_mtu() works for both XDP and TC-BPF programs. The SKB object is complex and the skb->len value (accessible from BPF-prog) also include the length of any extra GRO/GSO segments, but without taking into account that these GRO/GSO segments get added transport (L4) and networ

[PATCH bpf-next V8 3/8] bpf: bpf_fib_lookup return MTU value as output when looked up

2020-11-27 Thread Jesper Dangaard Brouer
The BPF-helpers for FIB lookup (bpf_xdp_fib_lookup and bpf_skb_fib_lookup) can perform MTU check and return BPF_FIB_LKUP_RET_FRAG_NEEDED. The BPF-prog don't know the MTU value that caused this rejection. If the BPF-prog wants to implement PMTU (Path MTU Discovery) (rfc1191) it need to know this M

[PATCH bpf-next V8 1/8] bpf: Remove MTU check in __bpf_skb_max_len

2020-11-27 Thread Jesper Dangaard Brouer
Multiple BPF-helpers that can manipulate/increase the size of the SKB uses __bpf_skb_max_len() as the max-length. This function limit size against the current net_device MTU (skb->dev->mtu). When a BPF-prog grow the packet size, then it should not be limited to the MTU. The MTU is a transmit limit

[PATCH bpf-next V8 2/8] bpf: fix bpf_fib_lookup helper MTU check for SKB ctx

2020-11-27 Thread Jesper Dangaard Brouer
BPF end-user on Cilium slack-channel (Carlo Carraro) wants to use bpf_fib_lookup for doing MTU-check, but *prior* to extending packet size, by adjusting fib_params 'tot_len' with the packet length plus the expected encap size. (Just like the bpf_check_mtu helper supports). He discovered that for SK

[PATCH bpf-next V8 0/8] bpf: New approach for BPF MTU handling

2020-11-27 Thread Jesper Dangaard Brouer
This patchset drops all the MTU checks in TC BPF-helpers that limits growing the packet size. This is done because these BPF-helpers doesn't take redirect into account, which can result in their MTU check being done against the wrong netdev. The new approach is to give BPF-programs knowledge about

[PATCH] net: cisco: remove trailing semicolon in macro definition

2020-11-27 Thread trix
From: Tom Rix The macro use will already have a semicolon. Signed-off-by: Tom Rix --- drivers/net/wireless/cisco/airo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/cisco/airo.c b/drivers/net/wireless/cisco/airo.c index 74acf9af2adb..ba62bb2995d9 10

[PATCH] net: carl9170: remove trailing semicolon in macro definition

2020-11-27 Thread trix
From: Tom Rix The macro use will already have a semicolon. Signed-off-by: Tom Rix --- drivers/net/wireless/ath/carl9170/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/carl9170/debug.c b/drivers/net/wireless/ath/carl9170/debug.c index 1

Re: [PATCH bpf-next v3 1/5] selftests/bpf: xsk selftests framework

2020-11-27 Thread Weqaar Janjua
On Fri, 27 Nov 2020 at 04:19, Yonghong Song wrote: > > > > On 11/26/20 1:22 PM, Weqaar Janjua wrote: > > On Thu, 26 Nov 2020 at 09:01, Björn Töpel wrote: > >> > >> On 2020-11-26 07:44, Yonghong Song wrote: > >>> > >> [...] > >>> > >>> What other configures I am missing? > >>> > >>> BTW, I cherry-

[PATCH] net: ath9k: remove trailing semicolon in macro definition

2020-11-27 Thread trix
From: Tom Rix The macro use will already have a semicolon. Signed-off-by: Tom Rix --- drivers/net/wireless/ath/ath9k/common-debug.c | 2 +- drivers/net/wireless/ath/ath9k/dfs_debug.c| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/common

Re: [PATCH 0/8] Rid W=1 warnings in Net

2020-11-27 Thread Jakub Kicinski
On Thu, 26 Nov 2020 13:38:45 + Lee Jones wrote: > Resending the stragglers. > > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. This set doesn't apply to net-next, please rebase.

[PATCH 0/3] pull request for net: batman-adv 2020-11-27

2020-11-27 Thread Simon Wunderlich
THIS_MODULE (2020-11-15 11:43:56 +0100) are available in the Git repository at: git://git.open-mesh.org/linux-merge.git tags/batadv-net-pullrequest-20201127 for you to fetch changes up to 992b03b88e36254e26e9a4977ab948683e21bd9f: batman-adv: Don't always reallocate the fragmentation skb head (20

[PATCH 3/3] batman-adv: Don't always reallocate the fragmentation skb head

2020-11-27 Thread Simon Wunderlich
From: Sven Eckelmann When a packet is fragmented by batman-adv, the original batman-adv header is not modified. Only a new fragmentation is inserted between the original one and the ethernet header. The code must therefore make sure that it has a writable region of this size in the skbuff head.

[PATCH 2/3] batman-adv: Reserve needed_*room for fragments

2020-11-27 Thread Simon Wunderlich
From: Sven Eckelmann The batadv net_device is trying to propagate the needed_headroom and needed_tailroom from the lower devices. This is needed to avoid cost intensive reallocations using pskb_expand_head during the transmission. But the fragmentation code split the skb's without adding extra r

[PATCH 1/3] batman-adv: Consider fragmentation for needed_headroom

2020-11-27 Thread Simon Wunderlich
From: Sven Eckelmann If a batman-adv packets has to be fragmented, then the original batman-adv packet header is not stripped away. Instead, only a new header is added in front of the packet after it was split. This size must be considered to avoid cost intensive reallocations during the transmi

RE: [PATCH net-next v4 7/7] dpaa_eth: implement the A050385 erratum workaround for XDP

2020-11-27 Thread Camelia Alexandra Groza
> -Original Message- > From: Maciej Fijalkowski > Sent: Friday, November 27, 2020 16:44 > To: Camelia Alexandra Groza > Cc: k...@kernel.org; bro...@redhat.com; sa...@kernel.org; > da...@davemloft.net; Madalin Bucur (OSS) > ; Ioana Ciornei ; > netdev@vger.kernel.org > Subject: Re: [PATCH n

[RFC PATCH 1/3] dt-bindings: net: sparx5: Add sparx5-switch bindings

2020-11-27 Thread Steen Hegelund
Document the Sparx5 switch device driver bindings Signed-off-by: Steen Hegelund --- .../bindings/net/microchip,sparx5-switch.yaml | 633 ++ 1 file changed, 633 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml diff --git a/Docu

  1   2   >