[PATCH bpf-next 0/2] libbpf/xsk cleanups

2021-03-10 Thread Björn Töpel
This series removes a header dependency from xsk.h, and moves libbpf_util.h into xsk.h. More details in each commit! Thank you, Björn Björn Töpel (2): libbpf: xsk: remove linux/compiler.h header libbpf: xsk: move barriers from libbpf_util.h to xsk.h tools/lib/bpf/Makefile | 1 - too

[PATCH bpf-next 1/2] libbpf: xsk: remove linux/compiler.h header

2021-03-10 Thread Björn Töpel
From: Björn Töpel In commit 291471dd1559 ("libbpf, xsk: Add libbpf_smp_store_release libbpf_smp_load_acquire") linux/compiler.h was added as a dependency to xsk.h, which is the user-facing API. This makes it harder for userspace application to consume the library. Here the header inclusion is rem

[PATCH bpf-next 2/2] libbpf: xsk: move barriers from libbpf_util.h to xsk.h

2021-03-10 Thread Björn Töpel
From: Björn Töpel The only user of libbpf_util.h is xsk.h. Move the barriers to xsk.h, and remove libbpf_util.h. The barriers are used as an implementation detail, and should not be considered part of the stable API. Signed-off-by: Björn Töpel --- tools/lib/bpf/Makefile | 1 - tools/lib/

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

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

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

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

[PATCH] net: pxa168_eth: Fix a potential data race in pxa168_eth_remove

2021-03-10 Thread Pavel Andrianov
pxa168_eth_remove() firstly calls unregister_netdev(), then cancels a timeout work. unregister_netdev() shuts down a device interface and removes it from the kernel tables. If the timeout occurs in parallel, the timeout work (pxa168_eth_tx_timeout_task) performs stop and open of the device. It may

[PATCH net-next] skbuff: remove some unnecessary operation in skb_segment_list()

2021-03-10 Thread l00371289
From: Yunsheng Lin gro list uses skb_shinfo(skb)->frag_list to link two skb together, and NAPI_GRO_CB(p)->last->next is used when there are more skb, see skb_gro_receive_list(). gso expects that each segmented skb is linked together using skb->next, so only the first skb->next need to set to skb_

[RFC v2 0/5] arm64 / clk: socfpga: simplifying, cleanups and compile testing

2021-03-10 Thread Krzysztof Kozlowski
Hi, All three Intel arm64 SoCFPGA architectures (Agilex, N5X and Stratix 10) are basically flavors/platforms of the same architecture. At least from the Linux point of view. Up to a point that N5X and Agilex share DTSI. Having three top-level architectures for the same one barely makes sense and

Re: VRF leaking doesn't work

2021-03-10 Thread Greesha Mikhalkin
I see. When i do `ping -I vrf2` to address that was leaked from vrf1 it selects source address that's set as local in vrf1 routing table. Is this expected behavior? I guess, forwarding packets from vrf1 to vrf2 local address won't help here. 6 mar. 2021 - 17:12, David Ahern : > > On 3/2/21 3:57 A

Re: [patch 07/14] tasklets: Prevent tasklet_unlock_spin_wait() deadlock on RT

2021-03-10 Thread Thomas Gleixner
On Tue, Mar 09 2021 at 16:21, Sebastian Andrzej Siewior wrote: > On 2021-03-09 16:00:37 [+0100], To Thomas Gleixner wrote: >> diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h >> index 07c7329d21aa7..1c14ccd351091 100644 >> --- a/include/linux/interrupt.h >> +++ b/include/linux/in

[RFC v2 1/5] clk: socfpga: allow building N5X clocks with ARCH_N5X

2021-03-10 Thread Krzysztof Kozlowski
The Intel's eASIC N5X (ARCH_N5X) architecture shares a lot with Agilex (ARCH_AGILEX) so it uses the same socfpga_agilex.dtsi, with minor changes. Also the clock drivers are the same. However the clock drivers won't be build without ARCH_AGILEX. One could assume that ARCH_N5X simply depends on AR

[RFC v2 2/5] clk: socfpga: build together Stratix 10, Agilex and N5X clock drivers

2021-03-10 Thread Krzysztof Kozlowski
On a multiplatform kernel there is little benefit in splitting each clock driver per platform because space savings are minimal. Such split also complicates the code, especially after adding compile testing. Build all arm64 Intel SoCFPGA clocks together with one entry in Makefile. This also remo

[RFC v2 3/5] arm64: socfpga: rename ARCH_STRATIX10 to ARCH_SOCFPGA64

2021-03-10 Thread Krzysztof Kozlowski
Prepare for merging Stratix 10, Agilex and N5X into one arm64 architecture by first renaming the ARCH_STRATIX10 into ARCH_SOCFPGA64. The existing ARCH_SOCFPGA (in ARMv7) Kconfig symbol cannot be used because altera_edac driver builds differently between them (with ifdefs). Signed-off-by: Krzyszto

[RFC v2 4/5] arm64: intel: merge Agilex and N5X into ARCH_SOCFPGA64

2021-03-10 Thread Krzysztof Kozlowski
Agilex, N5X and Stratix 10 share all quite similar arm64 hard cores and SoC-part. Up to a point that N5X uses the same DTSI as Agilex. From the Linux kernel point of view these are flavors of the same architecture so there is no need for three top-level arm64 architectures. Simplify this by merg

[RFC v2 5/5] clk: socfpga: allow compile testing of Stratix 10 / Agilex clocks

2021-03-10 Thread Krzysztof Kozlowski
The Stratix 10 / Agilex / N5X clocks do not use anything other than OF or COMMON_CLK so they should be compile testable on most of the platforms. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/Makefile| 5 + drivers/clk/socfpga/Kconfig | 17 ++--- 2 files changed, 15

[PATCH net-next] net: broadcom: bcm4908_enet: read MAC from OF

2021-03-10 Thread Rafał Miłecki
From: Rafał Miłecki BCM4908 devices have MAC address accessible using NVMEM so it's needed to use OF helper for reading it. Signed-off-by: Rafał Miłecki --- drivers/net/ethernet/broadcom/bcm4908_enet.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/ether

[PATCH] isdn: mISDN: remove unneeded variable 'ret'

2021-03-10 Thread Yang Li
Fix the following coccicheck warning: ./drivers/isdn/mISDN/dsp_core.c:956:6-9: Unneeded variable: "err". Return "0" on line 1001 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/isdn/mISDN/dsp_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/isdn/m

Re: [PATCH 14/17] iommu: remove DOMAIN_ATTR_DMA_USE_FLUSH_QUEUE

2021-03-10 Thread Christoph Hellwig
On Thu, Mar 04, 2021 at 03:25:27PM +, Robin Murphy wrote: > On 2021-03-01 08:42, Christoph Hellwig wrote: >> Use explicit methods for setting and querying the information instead. > > Now that everyone's using iommu-dma, is there any point in bouncing this > through the drivers at all? Seems l

Re: [Freedreno] [PATCH 16/17] iommu: remove DOMAIN_ATTR_IO_PGTABLE_CFG

2021-03-10 Thread Christoph Hellwig
On Fri, Mar 05, 2021 at 10:00:12AM +, Will Deacon wrote: > > But one thing I'm not sure about is whether > > IO_PGTABLE_QUIRK_ARM_OUTER_WBWA is something that other devices > > *should* be using as well, but just haven't gotten around to yet. > > The intention is certainly that this would be a

Re: [PATCH v10 00/20] dlb: introduce DLB device driver

2021-03-10 Thread Greg KH
On Wed, Feb 10, 2021 at 11:54:03AM -0600, Mike Ximing Chen wrote: > Intel DLB is an accelerator for the event-driven programming model of > DPDK's Event Device Library[2]. The library is used in packet processing > pipelines that arrange for multi-core scalability, dynamic load-balancing, > and var

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

2021-03-10 Thread Tony Lu
On Tue, Mar 09, 2021 at 12:40:11PM -0500, Steven Rostedt wrote: > On Tue, 9 Mar 2021 12:43:50 +0800 > Tony Lu wrote: > > > There are lots of net namespaces on the host runs containers like k8s. > > It is very common to see the same interface names among different net > > namespaces, such as eth0

[PATCH V3 0/6] vDPA/ifcvf: enables Intel C5000X-PL virtio-net

2021-03-10 Thread Zhu Lingshan
This series enabled Intel FGPA SmartNIC C5000X-PL virtio-net for vDPA. vDPA requires VIRTIO_F_ACCESS_PLATFORM as a must, this series verify this feature bit when set features. Changes from V2: verify VIRTIO_F_ACCESS_PLATFORM when set features(Jason) Changes from V1: remove version number string(L

[PATCH V3 1/6] vDPA/ifcvf: get_vendor_id returns a device specific vendor id

2021-03-10 Thread Zhu Lingshan
In this commit, ifcvf_get_vendor_id() will return a device specific vendor id of the probed pci device than a hard code. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drive

[PATCH V3 2/6] vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA

2021-03-10 Thread Zhu Lingshan
This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-net for vDPA Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 5 + drivers/vdpa/ifcvf/ifcvf_main.c | 5 + 2 files changed, 10 insertions(+) diff --git a/drivers/vdpa/ifcvf/ifcvf_base.h b/drivers/vdpa/ifcvf/ifcvf_b

[PATCH V3 3/6] vDPA/ifcvf: rename original IFCVF dev ids to N3000 ids

2021-03-10 Thread Zhu Lingshan
IFCVF driver probes multiple types of devices now, to distinguish the original device driven by IFCVF from others, it is renamed as "N3000". Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 8 drivers/vdpa/ifcvf/ifcvf_main.c | 8 2 files changed, 8 insertions(+

[PATCH V3 4/6] vDPA/ifcvf: remove the version number string

2021-03-10 Thread Zhu Lingshan
This commit removes the version number string, using kernel version is enough. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drivers/vdpa/ifcvf/ifcvf_main.c index fd5befc5cbcc..c34e1eec6b6c 1

[PATCH V3 5/6] vDPA/ifcvf: fetch device feature bits when probe

2021-03-10 Thread Zhu Lingshan
This commit would read and store device feature bits when probe. rename ifcvf_get_features() to ifcvf_get_hw_features(), it reads and stores features of the probed device. new ifcvf_get_features() simply returns stored feature bits. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base

[PATCH V3 6/6] vDPA/ifcvf: verify mandatory feature bits for vDPA

2021-03-10 Thread Zhu Lingshan
vDPA requres VIRTIO_F_ACCESS_PLATFORM as a must, this commit examines this when set features. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.c | 8 drivers/vdpa/ifcvf/ifcvf_base.h | 1 + drivers/vdpa/ifcvf/ifcvf_main.c | 5 + 3 files changed, 14 insertions(+) diff --

[PATCH net-next 1/2] dt-bindings: net: bcm4908-enet: add optional TX interrupt

2021-03-10 Thread Rafał Miłecki
From: Rafał Miłecki I discovered that hardware actually supports two interrupts, one per DMA channel (RX and TX). Signed-off-by: Rafał Miłecki --- .../bindings/net/brcm,bcm4908-enet.yaml | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Documentatio

[PATCH net-next 2/2] net: broadcom: bcm4908_enet: support TX interrupt

2021-03-10 Thread Rafał Miłecki
From: Rafał Miłecki It appears that each DMA channel has its own interrupt and both rings can be configured (the same way) to handle interrupts. 1. Make ring interrupts code generic (make it operate on given ring) 2. Move napi to ring (so each has its own) 3. Make IRQ handler generic (match ring

Re: [PATCH 14/17] iommu: remove DOMAIN_ATTR_DMA_USE_FLUSH_QUEUE

2021-03-10 Thread Christoph Hellwig
On Thu, Mar 04, 2021 at 03:25:27PM +, Robin Murphy wrote: > On 2021-03-01 08:42, Christoph Hellwig wrote: >> Use explicit methods for setting and querying the information instead. > > Now that everyone's using iommu-dma, is there any point in bouncing this > through the drivers at all? Seems l

Re: [PATCH V3 4/6] vDPA/ifcvf: remove the version number string

2021-03-10 Thread Leon Romanovsky
On Wed, Mar 10, 2021 at 05:00:50PM +0800, Zhu Lingshan wrote: > This commit removes the version number string, using kernel > version is enough. > > Signed-off-by: Zhu Lingshan > --- > drivers/vdpa/ifcvf/ifcvf_main.c | 2 -- > 1 file changed, 2 deletions(-) > I already added my ROB, but will add

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

2021-03-10 Thread Lorenz Bauer
On Tue, 9 Mar 2021 at 20:12, Eric Dumazet wrote: > > On 3/9/21 5:43 AM, Tony Lu wrote: > > There are lots of net namespaces on the host runs containers like k8s. > > It is very common to see the same interface names among different net > > namespaces, such as eth0. It is not possible to distinguis

Re: [PATCH] net: bonding: fix error return code of bond_neigh_init()

2021-03-10 Thread Roi Dayan
On 2021-03-08 5:11 AM, Jia-Ju Bai wrote: When slave is NULL or slave_ops->ndo_neigh_setup is NULL, no error return code of bond_neigh_init() is assigned. To fix this bug, ret is assigned with -EINVAL in these cases. Fixes: 9e99bfefdbce ("bonding: fix bond_neigh_init()") Reported-by: TOTE Robo

Re: [PATCH 14/17] iommu: remove DOMAIN_ATTR_DMA_USE_FLUSH_QUEUE

2021-03-10 Thread Christoph Hellwig
On Wed, Mar 10, 2021 at 10:15:01AM +0100, Christoph Hellwig wrote: > On Thu, Mar 04, 2021 at 03:25:27PM +, Robin Murphy wrote: > > On 2021-03-01 08:42, Christoph Hellwig wrote: > >> Use explicit methods for setting and querying the information instead. > > > > Now that everyone's using iommu-dm

Re: mlx5 sub function issue

2021-03-10 Thread ze wang
Hi Parav, Thanks for your help. I did enabled VFs, and after turning off SR-IOV, it works. Now the each PF can create 255 SFs, which is probably enough for us. Is it convenient to reveal how many SFs can be created at most? Ze Wang Parav Pandit 于2021年3月9日周二 下午8:36写道: > > Hi Ze Wang, > > >

Re: [PATCH] net: bonding: fix error return code of bond_neigh_init()

2021-03-10 Thread Jia-Ju Bai
On 2021/3/10 17:24, Roi Dayan wrote: On 2021-03-08 5:11 AM, Jia-Ju Bai wrote: When slave is NULL or slave_ops->ndo_neigh_setup is NULL, no error return code of bond_neigh_init() is assigned. To fix this bug, ret is assigned with -EINVAL in these cases. Fixes: 9e99bfefdbce ("bonding: fix bo

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

2021-03-10 Thread Yauheni Kaliuta
On Wed, Mar 10, 2021 at 8:23 AM Jiapeng Chong wrote: > > Fix the following coccicheck warning: > > ./tools/testing/selftests/bpf/progs/test_global_func10.c:17:12-13: > WARNING comparing pointer to 0. but it's ok from the C standard point of view > > Reported-by: Abaci Robot > Signed-off-by: Jia

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

2021-03-10 Thread Tony Lu
On Tue, Mar 09, 2021 at 09:12:45PM +0100, Eric Dumazet wrote: > > > On 3/9/21 5:43 AM, Tony Lu wrote: > > There are lots of net namespaces on the host runs containers like k8s. > > It is very common to see the same interface names among different net > > namespaces, such as eth0. It is not possib

Re: [PATCH v4] net: phy: add Marvell 88X2222 transceiver support

2021-03-10 Thread Ivan Bornyakov
On Wed, Mar 03, 2021 at 07:02:11PM +0300, Ivan Bornyakov wrote: > Add basic support for the Marvell 88X multi-speed ethernet > transceiver. > > This PHY provides data transmission over fiber-optic as well as Twinax > copper links. The 88X supports 2 ports of 10GBase-R and 1000Base-X > on t

[PATCH] xfrm: return error when esp offload is requested and not supported

2021-03-10 Thread Antony Antony
When ESP offload is not supported by the device return an error, -EINVAL, instead of silently ignoring it, creating a SA without offload, and returning success. with this fix ip x s a would return RTNETLINK answers: Invalid argument Also, return an error, -EINVAL, when CONFIG_XFRM_OFFLOAD is not

[net-next] net: mvpp2: Add reserved port private flag configuration

2021-03-10 Thread stefanc
From: Stefan Chulski According to Armada SoC architecture and design, all the PPv2 ports which are populated on the same communication processor silicon die (CP11x) share the same Classifier and Parser engines. Armada is an embedded platform and therefore there is a need to reserve some of the P

Re: [RFC v2 3/5] arm64: socfpga: rename ARCH_STRATIX10 to ARCH_SOCFPGA64

2021-03-10 Thread Lee Jones
On Wed, 10 Mar 2021, Krzysztof Kozlowski wrote: > Prepare for merging Stratix 10, Agilex and N5X into one arm64 > architecture by first renaming the ARCH_STRATIX10 into ARCH_SOCFPGA64. > > The existing ARCH_SOCFPGA (in ARMv7) Kconfig symbol cannot be used > because altera_edac driver builds diffe

Re: [PATCH net v2] ipv6: fix suspecious RCU usage warning

2021-03-10 Thread Ido Schimmel
On Tue, Mar 09, 2021 at 06:20:35PM -0800, Wei Wang wrote: > Syzbot reported the suspecious RCU usage in nexthop_fib6_nh() when > called from ipv6_route_seq_show(). The reason is ipv6_route_seq_start() > calls rcu_read_lock_bh(), while nexthop_fib6_nh() calls > rcu_dereference_rtnl(). > The fix prop

RE: [PATCH] perf machine: Assign boolean values to a bool variable

2021-03-10 Thread David Laight
From: Jiapeng Chong > Sent: 09 March 2021 10:11 > > Fix the following coccicheck warnings: > > ./tools/perf/util/machine.c:2041:9-10: WARNING: return of 0/1 in > function 'symbol__match_regex' with return type bool. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > tools/per

[PATCH net] macvlan: macvlan_count_rx() needs to be aware of preemption

2021-03-10 Thread Eric Dumazet
From: Eric Dumazet macvlan_count_rx() can be called from process context, it is thus necessary to disable preemption before calling u64_stats_update_begin() syzbot was able to spot this on 32bit arch: WARNING: CPU: 1 PID: 4632 at include/linux/seqlock.h:271 __seqprop_assert include/linux/seqlo

Re: [PATCH] netdevsim: fib: Remove redundant code

2021-03-10 Thread Ido Schimmel
On Wed, Mar 10, 2021 at 10:35:27AM +0800, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./drivers/net/netdevsim/fib.c:874:5-8: Unneeded variable: "err". Return > "0" on line 889. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/net/netdevsim/fib.c

Re: [PATCH net] macvlan: macvlan_count_rx() needs to be aware of preemption

2021-03-10 Thread Herbert Xu
On Wed, Mar 10, 2021 at 01:56:36AM -0800, Eric Dumazet wrote: > From: Eric Dumazet > > macvlan_count_rx() can be called from process context, it is thus > necessary to disable preemption before calling u64_stats_update_begin() > > syzbot was able to spot this on 32bit arch: > > WARNING: CPU: 1

Re: [RFC PATCH v6 00/22] virtio/vsock: introduce SOCK_SEQPACKET support

2021-03-10 Thread Stefano Garzarella
Hi Arseny, thanks for this new version. It's a busy week for me, but I hope to review this series by the end of this week :-) Thanks, Stefano On Sun, Mar 07, 2021 at 08:57:19PM +0300, Arseny Krasnov wrote: This patchset implements support of SOCK_SEQPACKET for virtio transport.

Re: [RFC PATCH v6 00/22] virtio/vsock: introduce SOCK_SEQPACKET support

2021-03-10 Thread Arseny Krasnov
Hello, great, no problem! Thanks On 10.03.2021 13:06, Stefano Garzarella wrote: > Hi Arseny, > thanks for this new version. > > It's a busy week for me, but I hope to review this series by the end of > this week :-) > > Thanks, > Stefano > > On Sun, Mar 07, 2021 at 08:57:19PM +0300, Arseny Krasn

[PATCH net] drop_monitor: Perform cleanup upon probe registration failure

2021-03-10 Thread Ido Schimmel
From: Ido Schimmel In the rare case that drop_monitor fails to register its probe on the 'napi_poll' tracepoint, it will not deactivate its hysteresis timer as part of the error path. If the hysteresis timer was armed by the shortly lived 'kfree_skb' probe and user space retries to initiate traci

[PATCH net-next] sched: act_sample: Implement stats_update callback

2021-03-10 Thread Ido Schimmel
From: Ido Schimmel Implement this callback in order to get the offloaded stats added to the kernel stats. Signed-off-by: Ido Schimmel Reviewed-by: Petr Machata Reviewed-by: Jiri Pirko --- net/sched/act_sample.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/net/sched/act_sa

[PATCH] net: dsa: bcm_sf2: enable GPHY for switch probing

2021-03-10 Thread Rafał Miłecki
From: Rafał Miłecki GPHY needs to be enabled to successfully probe & setup switch port connected to it. Otherwise hardcoding PHY OUI would be required. This prevents unimac_mdio_read() from getting MDIO_READ_FAIL. Before: brcm-sf2 8008.switch lan4 (uninitialized): PHY [800c05c0.mdio--1:08]

[PATCH 1/5] SUNRPC: Set rq_page_end differently

2021-03-10 Thread Mel Gorman
From: Chuck Lever Refactor: I'm about to use the loop variable @i for something else. As far as the "i++" is concerned, that is a post-increment. The value of @i is not used subsequently, so the increment operator is unnecessary and can be removed. Also note that nfsd_read_actor() was renamed

[PATCH 0/5] Introduce a bulk order-0 page allocator with two in-tree users

2021-03-10 Thread Mel Gorman
Changelog since v1 o Parenthesise binary and boolean comparisons o Add reviewed-bys o Rebase to 5.12-rc2 This series introduces a bulk order-0 page allocator with sunrpc and the network page pool being the first users. The implementation is not particularly efficient and the intention is to iron o

[PATCH 2/5] mm/page_alloc: Add a bulk page allocator

2021-03-10 Thread Mel Gorman
This patch adds a new page allocator interface via alloc_pages_bulk, and __alloc_pages_bulk_nodemask. A caller requests a number of pages to be allocated and added to a list. They can be freed in bulk using free_pages_bulk(). The API is not guaranteed to return the requested number of pages and ma

[PATCH 5/5] net: page_pool: use alloc_pages_bulk in refill code path

2021-03-10 Thread Mel Gorman
From: Jesper Dangaard Brouer There are cases where the page_pool need to refill with pages from the page allocator. Some workloads cause the page_pool to release pages instead of recycling these pages. For these workload it can improve performance to bulk alloc pages from the page-allocator to r

[PATCH 4/5] net: page_pool: refactor dma_map into own function page_pool_dma_map

2021-03-10 Thread Mel Gorman
From: Jesper Dangaard Brouer In preparation for next patch, move the dma mapping into its own function, as this will make it easier to follow the changes. V2: make page_pool_dma_map return boolean (Ilias) Signed-off-by: Jesper Dangaard Brouer Signed-off-by: Mel Gorman Reviewed-by: Ilias Apalo

[PATCH 3/5] SUNRPC: Refresh rq_pages using a bulk page allocator

2021-03-10 Thread Mel Gorman
From: Chuck Lever Reduce the rate at which nfsd threads hammer on the page allocator. This improve throughput scalability by enabling the threads to run more independently of each other. Signed-off-by: Chuck Lever Signed-off-by: Mel Gorman --- net/sunrpc/svc_xprt.c | 43 ++

Re: [Freedreno] [PATCH 16/17] iommu: remove DOMAIN_ATTR_IO_PGTABLE_CFG

2021-03-10 Thread Will Deacon
On Wed, Mar 10, 2021 at 09:58:06AM +0100, Christoph Hellwig wrote: > On Fri, Mar 05, 2021 at 10:00:12AM +, Will Deacon wrote: > > > But one thing I'm not sure about is whether > > > IO_PGTABLE_QUIRK_ARM_OUTER_WBWA is something that other devices > > > *should* be using as well, but just haven't

[PATCH net-next 3/6] mlxsw: spectrum: Bump minimum FW version to xx.2008.2406

2021-03-10 Thread Ido Schimmel
From: Petr Machata The indicated version fixes the following two issues: - MIRROR_SAMPLER_ACTION.mirror_probability_rate inverted. This has implication for per-flow sampling. - When adjacency is replaced-if-inactive (RATR.opcode=3), bad parameter was reported when replacing an active entry.

[PATCH net-next 2/6] mlxsw: reg: Fix comment about slot_index field in PMAOS register

2021-03-10 Thread Ido Schimmel
From: Amit Cohen The comment did not include the register name. Add `pmaos` to align the comment with other comments. Signed-off-by: Amit Cohen Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH net-next 6/6] mlxsw: Adjust some MFDE fields shift and size to fw implementation

2021-03-10 Thread Ido Schimmel
From: Danielle Ratson MFDE.irisc_id and MFDE.event_id were adjusted according to what is actually implemented in firmware. Adjust the shift and size of these fields in mlxsw as well. Note that the displacement of the first field is not a regression. It was always incorrect and therefore reporte

[PATCH net-next 5/6] mlxsw: core: Expose MFDE.log_ip to devlink health

2021-03-10 Thread Ido Schimmel
From: Danielle Ratson Add the MFDE.log_ip field to devlink health reporter in order to ease firmware debug. This field encodes the instruction pointer that triggered the CR space timeout. Signed-off-by: Danielle Ratson Reviewed-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ether

[PATCH net-next 1/6] mlxsw: spectrum: Reword an error message for Q-in-Q veto

2021-03-10 Thread Ido Schimmel
From: Danielle Ratson 'Uppers' is not clear enough for all users when referring to upper devices. Reword the error message so it will be clearer. Signed-off-by: Danielle Ratson Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 2 +- 1 file changed, 1 insertion(

[PATCH net-next 4/6] mlxsw: reg: Extend MFDE register with new log_ip field

2021-03-10 Thread Ido Schimmel
From: Danielle Ratson Extend MFDE (Monitoring FW Debug) register with new field specifying the instruction pointer that triggered the CR space timeout. Signed-off-by: Danielle Ratson Reviewed-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/reg.h | 7 +++

[PATCH net-next 0/6] mlxsw: Misc updates

2021-03-10 Thread Ido Schimmel
From: Ido Schimmel This patch set contains miscellaneous updates for mlxsw. Patches #1-#2 reword an extack message to make it clearer and fix a comment. Patch #3 bumps the minimum firmware version enforced by mlxsw. This is needed for two upcoming features: Resilient hashing and per-flow sampli

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

2021-03-10 Thread Ilya Maximets
Hi, Louis. Thanks for your report! Marcelo, Paul, could you, please, take a look? Best regards, Ilya Maximets. On 3/10/21 8:51 AM, Louis Peens wrote: > Hi all > > We've recently encountered an interesting situation with OVS conntrack > when offloading to the TC datapath, and would like some fe

Re: [PATCH 2/5] mm/page_alloc: Add a bulk page allocator

2021-03-10 Thread Shay Agroskin
Mel Gorman writes: diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 8572a1474e16..4903d1cc48dc 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -515,6 +515,10 @@ static inline int arch_make_page_accessible(struct page *page) } #endif +int __alloc_pages_bulk_nod

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

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

Re: [PATCH 2/5] mm/page_alloc: Add a bulk page allocator

2021-03-10 Thread Mel Gorman
On Wed, Mar 10, 2021 at 01:04:17PM +0200, Shay Agroskin wrote: > > Mel Gorman writes: > > > > > diff --git a/include/linux/gfp.h b/include/linux/gfp.h > > index 8572a1474e16..4903d1cc48dc 100644 > > --- a/include/linux/gfp.h > > +++ b/include/linux/gfp.h > > @@ -515,6 +515,10 @@ static inline i

[PATCH] net: dsa: bcm_sf2: setup BCM4908 internal crossbar

2021-03-10 Thread Rafał Miłecki
From: Rafał Miłecki On some SoCs (e.g. BCM4908, BCM631[345]8) SF2 has an integrated crossbar. It allows connecting its selected external ports to internal ports. It's used by vendors to handle custom Ethernet setups. BCM4908 has following 3x2 crossbar. On Asus GT-AC5300 rgmii is used for connect

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

2021-03-10 Thread Tony Lu
On Wed, Mar 10, 2021 at 09:22:34AM +, Lorenz Bauer wrote: > On Tue, 9 Mar 2021 at 20:12, Eric Dumazet wrote: > > > > On 3/9/21 5:43 AM, Tony Lu wrote: > > > There are lots of net namespaces on the host runs containers like k8s. > > > It is very common to see the same interface names among diff

[PATCH net-next 0/3] FDDI: Update my e-mail address througout

2021-03-10 Thread Maciej W. Rozycki
Hi, Following the recent update to MAINTAINERS update my e-mail addresses embedded througout the FDDI networking pieces. Change split into parts according to individual components. LMO (linux-mips.org) has not been recovered at this point, but in the interim I now have forwarding set up fro

[PATCH net-next 1/3] FDDI: if_fddi.h: Update my e-mail address

2021-03-10 Thread Maciej W. Rozycki
Following the recent update to MAINTAINERS update my e-mail address. Signed-off-by: Maciej W. Rozycki --- include/uapi/linux/if_fddi.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-defxx/include/uapi/linux/if_fddi.h ===

[PATCH net-next 3/3] FDDI: defza: Update my e-mail address

2021-03-10 Thread Maciej W. Rozycki
Following the recent update to MAINTAINERS update my e-mail address. Signed-off-by: Maciej W. Rozycki --- Documentation/networking/device_drivers/fddi/defza.rst |2 +- drivers/net/fddi/defza.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: l

[PATCH net-next 2/3] FDDI: defxx: Update my e-mail address

2021-03-10 Thread Maciej W. Rozycki
Following the recent update to MAINTAINERS update my e-mail address. Signed-off-by: Maciej W. Rozycki --- drivers/net/fddi/defxx.c |2 +- drivers/net/fddi/defxx.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: linux-defxx/drivers/net/fddi/defxx.c

[PATCH 0/4] FDDI: defxx: CSR access fixes and improvements

2021-03-10 Thread Maciej W. Rozycki
Hi, As a lab upgrade I have recently replaced a dated 32-bit x86 server with a new POWER9 system. One of the purposes of the system has been providing network based resources to clients over my FDDI network. As such the new server has also received a new DEFPA FDDI network adapter. As it t

[PATCH net/net-next 1/4] FDDI: defxx: Bail out gracefully with unassigned PCI resource for CSR

2021-03-10 Thread Maciej W. Rozycki
Recent versions of the PCI Express specification have deprecated support for I/O transactions and actually some PCIe host bridges, such as Power Systems Host Bridge 4 (PHB4), do not implement them. For those systems the PCI BARs that request a mapping in the I/O space have the length recorded i

[PATCH net/net-next 2/4] FDDI: defxx: Make MMIO the configuration default except for EISA

2021-03-10 Thread Maciej W. Rozycki
Recent versions of the PCI Express specification have deprecated support for I/O transactions and actually some PCIe host bridges, such as Power Systems Host Bridge 4 (PHB4), do not implement them. The default kernel configuration choice for the defxx driver is the use of I/O ports rather than MM

[PATCH net-next 3/4] FDDI: defxx: Implement dynamic CSR I/O address space selection

2021-03-10 Thread Maciej W. Rozycki
Recent versions of the PCI Express specification have deprecated support for I/O transactions and actually some PCIe host bridges, such as Power Systems Host Bridge 4 (PHB4), do not implement them. Conversely a DEFEA adapter can have its MMIO decoding disabled with ECU (EISA Configuration Util

[PATCH net-next 4/4] FDDI: defxx: Use driver's name with resource requests

2021-03-10 Thread Maciej W. Rozycki
Replace repeated "defxx" strings with a reference to the DRV_NAME macro and then use the driver's name rather that the bus address with resource requests so as to have contents of /proc/iomem and /proc/ioports more meaningful to the user, in line with what drivers usually do. So rather than say

[PATCH net-next 01/12] net: enetc: move the CBDR API to enetc_cbdr.c

2021-03-10 Thread Vladimir Oltean
Since there is a dedicated file in this driver for interacting with control BD rings, it makes sense to move these functions there. Signed-off-by: Vladimir Oltean --- drivers/net/ethernet/freescale/enetc/enetc.c | 54 --- .../net/ethernet/freescale/enetc/enetc_cbdr.c | 54 ++

[PATCH net-next 00/12] Refactoring/cleanup for NXP ENETC

2021-03-10 Thread Vladimir Oltean
This series performs the following: - makes the API for Control Buffer Descriptor Rings in enetc_cbdr.c a bit more tightly knit. - moves more logic into enetc_rxbd_next to make the callers simpler - moves more logic into enetc_refill_rx_ring to make the callers simpler - removes forward declarati

[PATCH net-next 03/12] net: enetc: squash enetc_alloc_cbdr and enetc_setup_cbdr

2021-03-10 Thread Vladimir Oltean
enetc_alloc_cbdr and enetc_setup_cbdr are always called one after another, so we can simplify the callers and make enetc_setup_cbdr do everything that's needed. Signed-off-by: Vladimir Oltean --- drivers/net/ethernet/freescale/enetc/enetc.c | 4 +-- drivers/net/ethernet/freescale/enetc/enetc.h

[PATCH net-next 02/12] net: enetc: save the DMA device for enetc_free_cbdr

2021-03-10 Thread Vladimir Oltean
We shouldn't need to pass the struct device *dev to enetc CBDR APIs over and over again, so save this inside struct enetc_cbdr::dma_dev and avoid calling it from the enetc_free_cbdr functions. This breaks the dependency of the cbdr API from struct enetc_si (the station interface). Signed-off-by:

[PATCH net-next 04/12] net: enetc: save the mode register address inside struct enetc_cbdr

2021-03-10 Thread Vladimir Oltean
enetc_clear_cbdr depends on struct enetc_hw because it must disable the ring through a register write. We'd like to remove that dependency, so let's do what's already done with the producer and consumer indices, which is to save the iomem address in a variable kept in struct enetc_cbdr. Signed-off

[PATCH net-next 05/12] net: enetc: squash clear_cbdr and free_cbdr into teardown_cbdr

2021-03-10 Thread Vladimir Oltean
All call sites call enetc_clear_cbdr and enetc_free_cbdr one after another, so let's combine the two functions into a single method named enetc_teardown_cbdr which does both, and in the same order. Signed-off-by: Vladimir Oltean --- drivers/net/ethernet/freescale/enetc/enetc.c | 6 ++

[PATCH net-next 06/12] net: enetc: pass bd_count as an argument to enetc_setup_cbdr

2021-03-10 Thread Vladimir Oltean
It makes no sense from an API perspective to first initialize some portion of struct enetc_cbdr outside enetc_setup_cbdr, then leave that function to initialize the rest. enetc_setup_cbdr should be able to perform all initialization given a zero-initialized struct enetc_cbdr. Signed-off-by: Vladim

[PATCH net-next 09/12] net: enetc: use enum enetc_active_offloads

2021-03-10 Thread Vladimir Oltean
The active_offloads variable of enetc_ndev_priv has an enum type, use it. Signed-off-by: Vladimir Oltean --- drivers/net/ethernet/freescale/enetc/enetc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/enetc/enetc.h b/drivers/net/ethernet/frees

[PATCH net-next 07/12] net: enetc: don't initialize unused ports from a separate code path

2021-03-10 Thread Vladimir Oltean
Since commit 3222b5b613db ("net: enetc: initialize RFS/RSS memories for unused ports too") there is a requirement to initialize the memories of unused PFs too, which has left the probe path in a bit of a rough shape, because we basically have a minimal initialization path for unused PFs which is se

[PATCH net-next 08/12] net: enetc: simplify callers of enetc_rxbd_next

2021-03-10 Thread Vladimir Oltean
When we iterate through the BDs in the RX ring, the software producer index (which is already passed by value to enetc_rxbd_next) lags behind, and we end up with this funny looking "++i == rx_ring->bd_count" check so that we drag it after us. Let's pass the software producer index "i" by reference

[PATCH net-next 12/12] net: enetc: make enetc_refill_rx_ring update the consumer index

2021-03-10 Thread Vladimir Oltean
Since commit fd5736bf9f23 ("enetc: Workaround for MDIO register access issue"), enetc_refill_rx_ring no longer updates the RX BD ring's consumer index, that is left to be done by the caller. This has led to bugs such as the ones found in 96a5223b918c ("net: enetc: remove bogus write to SIRXIDR from

[PATCH net-next 10/12] net: enetc: remove forward-declarations of enetc_clean_{rx,tx}_ring

2021-03-10 Thread Vladimir Oltean
This patch moves the NAPI enetc_poll after enetc_clean_rx_ring such that we can delete the forward declarations. Signed-off-by: Vladimir Oltean --- drivers/net/ethernet/freescale/enetc/enetc.c | 92 ++-- 1 file changed, 44 insertions(+), 48 deletions(-) diff --git a/drivers/net/

[PATCH net-next 11/12] net: enetc: remove forward declaration for enetc_map_tx_buffs

2021-03-10 Thread Vladimir Oltean
There is no other reason why this forward declaration exists rather than poor ordering of the functions. Signed-off-by: Vladimir Oltean --- drivers/net/ethernet/freescale/enetc/enetc.c | 73 ++-- 1 file changed, 35 insertions(+), 38 deletions(-) diff --git a/drivers/net/ethernet

[PATCH net-next 01/15] staging: dpaa2-switch: remove broken learning and flooding support

2021-03-10 Thread Ioana Ciornei
From: Ioana Ciornei This patch is removing the current configuration of learning and flooding states per switch port because they are essentially broken in terms of integration with the switchdev APIs and the bridge understanding of these states. First of all, the learning state is a per switch

[PATCH net-next 00/15] dpaa2-switch: CPU terminated traffic and move out of staging

2021-03-10 Thread Ioana Ciornei
From: Ioana Ciornei This patch set adds support for Rx/Tx capabilities on DPAA2 switch port interfaces as well as fixing up some major blunders in how we take care of the switching domains. The last patch actually moves the driver out of staging now that the minimum requirements are met. I am se

[PATCH net-next 02/15] staging: dpaa2-switch: fix up initial forwarding configuration done by firmware

2021-03-10 Thread Ioana Ciornei
From: Ioana Ciornei By default, the DPSW object is configured with VLAN ID 1 in the VLAN table, which all ports are member of. This entry in the VLAN table selects the same FDB ID for all ports, meaning that forwarding between ports is permitted. This is unlike the switchdev model, where each por

[PATCH net-next 03/15] staging: dpaa2-switch: remove obsolete .ndo_fdb_{add|del} callbacks

2021-03-10 Thread Ioana Ciornei
From: Ioana Ciornei Since the dpaa2-switch already listens for SWITCHDEV_FDB_ADD_TO_DEVICE / SWITCHDEV_FDB_DEL_TO_DEVICE events emitted by the bridge, we don't need the bridge bypass operations, and now is a good time to delete them. All 'bridge fdb' commands need the 'master' flag specified now.

[PATCH net-next 06/15] staging: dpaa2-switch: setup dpio

2021-03-10 Thread Ioana Ciornei
From: Ioana Ciornei Setup interrupts on the control interface queues. We do not force an exact affinity between the interrupts received from a specific queue and a cpu. Signed-off-by: Ioana Ciornei Reviewed-by: Vladimir Oltean --- drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h | 15 + drivers

  1   2   3   4   5   >