Re: [PATCH] ethdev: fix push new event

2022-06-06 Thread Thomas Monjalon
07/06/2022 03:23, lihuisong (C): > > 在 2022/6/3 15:42, Thomas Monjalon 写道: > > 02/06/2022 13:24, lihuisong (C): > >> 在 2022/5/30 19:10, Ferruh Yigit 写道: > >>> On 5/30/2022 9:28 AM, Thomas Monjalon wrote: > [CAUTION: External Email] > > 28/05/2022 10:53, lihuisong (C): > > 在 2022

[PATCH v5] pcap: support MTU set for linux interafces

2022-06-06 Thread Ido Goshen
Support rte_eth_dev_set_mtu for pcap ifaces vdevs by setting the underlying OS network interface's MTU. Support is for pcap ifaces only and not for pcap files. Support is for Linux only. Bugzilla ID: 961 Signed-off-by: Ido Goshen --- v5: Alternative approach Instead of checking MTU in the pmd se

RE: [PATCH v4 4/5] raw/ifpga: support ofs card probe

2022-06-06 Thread Xu, Rosen
Hi, > -Original Message- > From: Huang, Wei > Sent: Friday, May 27, 2022 16:34 > To: dev@dpdk.org; tho...@monjalon.net; nipun.gu...@nxp.com; > hemant.agra...@nxp.com > Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Tianfei > ; Zhang, Qi Z ; Huang, Wei > > Subject: [PATCH v4 4/5] raw/ifpga: supp

RE: [PATCH v4 3/5] raw/ifpga: unregister interrupt in ifpga close function

2022-06-06 Thread Xu, Rosen
Hi, > -Original Message- > From: Huang, Wei > Sent: Friday, May 27, 2022 16:34 > To: dev@dpdk.org; tho...@monjalon.net; nipun.gu...@nxp.com; > hemant.agra...@nxp.com > Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Tianfei > ; Zhang, Qi Z ; Huang, Wei > > Subject: [PATCH v4 3/5] raw/ifpga: unre

RE: [PATCH v4 2/5] raw/ifpga: remove vdev when ifpga is closed

2022-06-06 Thread Xu, Rosen
Hi, > -Original Message- > From: Huang, Wei > Sent: Friday, May 27, 2022 16:34 > To: dev@dpdk.org; tho...@monjalon.net; nipun.gu...@nxp.com; > hemant.agra...@nxp.com > Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Tianfei > ; Zhang, Qi Z ; Huang, Wei > > Subject: [PATCH v4 2/5] raw/ifpga: remo

RE: [PATCH v4 3/7] ethdev: introduce Rx queue based fill threshold

2022-06-06 Thread Spike Du
If you think HW knows "emptiness", and we want to stick to DPDK descriptor terms. Can we use the name "avail_thresh?" When HW sees available descriptors is under this threshold, an event is triggered. > -Original Message- > From: Andrew Rybchenko > Sent: Tuesday, June 7, 2022 1:16 AM >

[PATCH] build: fix meson build when gcc >= 10.0

2022-06-06 Thread wenxuanx . wu
From: Wenxuan Wu GCC version greater than 10.0, with compile option -O2, several warnings info would appear, this fix omitted these warnings. Fixes: cfacbcb5a23b ("build: disable gcc 10 zero-length-bounds warning") Cc: sta...@dpdk.org Signed-off-by: Wenxuan Wu --- config/meson.build | 7

RE: [PATCH v5 5/5] raw/afu_mf: add HE-HSSI AFU driver

2022-06-06 Thread Huang, Wei
> -Original Message- > From: Zhang, Tianfei > Sent: Monday, June 6, 2022 14:40 > To: Huang, Wei ; dev@dpdk.org; > tho...@monjalon.net; nipun.gu...@nxp.com; hemant.agra...@nxp.com > Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Subject: RE: [PATCH v5 5/5] raw/afu_mf: add HE-HSSI AFU

RE: [PATCH v5 4/5] raw/afu_mf: add HE-MEM AFU driver

2022-06-06 Thread Huang, Wei
> -Original Message- > From: Zhang, Tianfei > Sent: Monday, June 6, 2022 14:37 > To: Huang, Wei ; dev@dpdk.org; > tho...@monjalon.net; nipun.gu...@nxp.com; hemant.agra...@nxp.com > Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Subject: RE: [PATCH v5 4/5] raw/afu_mf: add HE-MEM AFU d

RE: [PATCH v5 3/5] raw/afu_mf: add HE-LBK AFU driver

2022-06-06 Thread Huang, Wei
> -Original Message- > From: Zhang, Tianfei > Sent: Monday, June 6, 2022 09:41 > To: Huang, Wei ; dev@dpdk.org; > tho...@monjalon.net; nipun.gu...@nxp.com; hemant.agra...@nxp.com > Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Subject: RE: [PATCH v5 3/5] raw/afu_mf: add HE-LBK AFU d

RE: [PATCH v5 2/5] raw/afu_mf: add N3000 AFU driver

2022-06-06 Thread Huang, Wei
> -Original Message- > From: Zhang, Tianfei > Sent: Monday, June 6, 2022 09:39 > To: Huang, Wei ; dev@dpdk.org; > tho...@monjalon.net; nipun.gu...@nxp.com; hemant.agra...@nxp.com > Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Subject: RE: [PATCH v5 2/5] raw/afu_mf: add N3000 AFU dr

RE: [PATCH v5 1/5] drivers/raw: introduce AFU raw device driver

2022-06-06 Thread Huang, Wei
> -Original Message- > From: Zhang, Tianfei > Sent: Monday, June 6, 2022 10:00 > To: Zhang, Tianfei ; Huang, Wei > ; dev@dpdk.org; tho...@monjalon.net; > nipun.gu...@nxp.com; hemant.agra...@nxp.com > Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Subject: RE: [PATCH v5 1/5] drivers/r

RE: [PATCH v5 1/5] drivers/raw: introduce AFU raw device driver

2022-06-06 Thread Huang, Wei
> -Original Message- > From: Zhang, Tianfei > Sent: Monday, June 6, 2022 09:53 > To: Huang, Wei ; dev@dpdk.org; > tho...@monjalon.net; nipun.gu...@nxp.com; hemant.agra...@nxp.com > Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Subject: RE: [PATCH v5 1/5] drivers/raw: introduce AFU r

RE: [PATCH v5 0/5] introduce afu_mf raw device driver

2022-06-06 Thread Huang, Wei
> -Original Message- > From: Zhang, Tianfei > Sent: Monday, June 6, 2022 09:48 > To: Huang, Wei ; dev@dpdk.org; > tho...@monjalon.net; nipun.gu...@nxp.com; hemant.agra...@nxp.com > Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Subject: RE: [PATCH v5 0/5] introduce afu_mf raw device

RE: [PATCH v5 1/5] drivers/raw: introduce AFU raw device driver

2022-06-06 Thread Huang, Wei
> -Original Message- > From: Stephen Hemminger > Sent: Monday, June 6, 2022 23:38 > To: Huang, Wei > Cc: dev@dpdk.org; tho...@monjalon.net; nipun.gu...@nxp.com; > hemant.agra...@nxp.com; sta...@dpdk.org; Xu, Rosen > ; Zhang, Tianfei ; Zhang, Qi > Z > Subject: Re: [PATCH v5 1/5] driver

RE: [PATCH 3/6] net/vhost: enable compliant offloading mode

2022-06-06 Thread Ma, WenwuX
Hi Maxime, > -Original Message- > From: Xia, Chenbo > Sent: 2022年5月16日 21:40 > To: Maxime Coquelin ; dev@dpdk.org; > jasow...@redhat.com; david.march...@redhat.com; > olivier.m...@6wind.com > Cc: sta...@dpdk.org > Subject: RE: [PATCH 3/6] net/vhost: enable compliant offloading mode > > >

Re: [PATCH v1] bbdev: add device status info

2022-06-06 Thread Stephen Hemminger
On Mon, 6 Jun 2022 15:50:08 -0700 Nicolas Chautru wrote: > @@ -298,6 +313,8 @@ struct rte_bbdev_driver_info { > const struct rte_bbdev_op_cap *capabilities; > /** Device cpu_flag requirements */ > const enum rte_cpu_flag_t *cpu_flag_reqs; > + /** Device Status */ > + en

[PATCH v1] bbdev: add device status info

2022-06-06 Thread Nicolas Chautru
This is a bbdev update targeted for 22.11. The updated structure will allow PMDs to expose through info_get what be may the status of the underlying accelerator, notably in case an HW error event having happened. Nicolas Chautru (1): bbdev: add device status info drivers/baseband/acc100/rte_ac

[PATCH v1] bbdev: add device status info

2022-06-06 Thread Nicolas Chautru
Added device status information, so that the PMD can expose information related to the underlying accelerator device status. Signed-off-by: Nicolas Chautru --- drivers/baseband/acc100/rte_acc100_pmd.c | 1 + drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c | 1 + drivers/baseband/f

RE: [PATCH v2] net/igc: add I226 support

2022-06-06 Thread Zhang, Qi Z
> -Original Message- > From: Thomas Monjalon > Sent: Monday, June 6, 2022 10:20 PM > To: Yang, Qiming ; Zhang, Qi Z > > Cc: dev@dpdk.org; Liu, KevinX ; Mcnamara, John > > Subject: Re: [PATCH v2] net/igc: add I226 support > > 06/06/2022 14:06, Zhang, Qi Z: > > > > > -Original Mess

Re: [PATCH v3 0/3] bugfix and enhance features for DMA example

2022-06-06 Thread Thomas Monjalon
24/04/2022 08:07, Chengwen Feng: > This patch set contains three bugfix and enhanced feature patches. > > Chengwen Feng (2): > examples/dma: fix Tx drop statistic is not collected > examples/dma: add force minimal copy size parameter > > Huisong Li (1): > examples/dma: fix MTU configuration

Re: [PATCH v4 3/7] ethdev: introduce Rx queue based fill threshold

2022-06-06 Thread Thomas Monjalon
It seems we share a common understanding and we need to agree on a good wording for the most meaningful API. Questions inline below: 06/06/2022 19:15, Andrew Rybchenko: > On 6/6/22 16:16, Spike Du wrote: > > Hi Andrew, > > Please see below for "fill threshold" concept, I'm ok with other > > c

RE: [PATCH v4] pcap: support MTU set

2022-06-06 Thread Ido Goshen
> -Original Message- > From: Stephen Hemminger > Sent: Monday, 6 June 2022 20:10 > To: Ido Goshen > Cc: ferruh.yi...@xilinx.com; dev@dpdk.org > Subject: Re: [PATCH v4] pcap: support MTU set > > On Mon, 6 Jun 2022 19:21:47 +0300 > Ido Goshen wrote: > > > Support rte_eth_dev_set_mtu b

[PATCH v1] eventdev: add adapter instance get API

2022-06-06 Thread Ganapati Kundapura
Added rte_event_eth_rx_adapter_instance_get() and rte_event_eth_tx_adapter_instance_get() api's to get the adapter instance id for a specified event port and queue index. Signed-off-by: Ganapati Kundapura diff --git a/app/test/test_event_eth_rx_adapter.c b/app/test/test_event_eth_rx_adapter.c i

Re: [PATCH v4 3/7] ethdev: introduce Rx queue based fill threshold

2022-06-06 Thread Andrew Rybchenko
On 6/6/22 16:16, Spike Du wrote: Hi Andrew, Please see below for "fill threshold" concept, I'm ok with other comments about code. Regards, Spike. -Original Message- From: Andrew Rybchenko Sent: Saturday, June 4, 2022 8:46 PM To: Spike Du ; Matan Azrad ; Slava Ovsiienko ; Ori

Re: [PATCH v4] pcap: support MTU set

2022-06-06 Thread Stephen Hemminger
On Mon, 6 Jun 2022 19:21:47 +0300 Ido Goshen wrote: > Support rte_eth_dev_set_mtu by pcap vdevs > Enforce mtu on rx/tx > > Bugzilla ID: 961 This is not really a bug, it is an enhancement specific to your test setup. It should not be backported to stable. Since it is change in behavior it migh

RE: [PATCH v1 0/2] bbdev: add device info on queue topology

2022-06-06 Thread Chautru, Nicolas
Hi Hemant, Could you review this serie, this is targeting 22.11 release. Let me know if unclear. Thanks Nic > -Original Message- > From: Chautru, Nicolas > Sent: Tuesday, March 8, 2022 4:23 PM > To: dev@dpdk.org; gak...@marvell.com > Cc: t...@redhat.com; hemant.agra...@nxp.com; Zhang,

[PATCH v4] pcap: support MTU set

2022-06-06 Thread Ido Goshen
Support rte_eth_dev_set_mtu by pcap vdevs Enforce mtu on rx/tx Bugzilla ID: 961 Signed-off-by: Ido Goshen --- v4: 1. Add release notes comment 2. Access pmd internals via queue struct 3. eth_mtu_set code convention fixes v3: Preserve pcap behavior to support max size packets by default alternat

Re: [PATCH v4] kni: fix build with Linux 5.18

2022-06-06 Thread Andrew Rybchenko
On 6/6/22 08:59, Jiri Slaby wrote: On 05. 06. 22, 10:22, Andrew Rybchenko wrote: On 6/1/22 09:53, Jiri Slaby wrote: Since commit 2655926aea9b (net: Remove netif_rx_any_context() and netif_rx_ni().) in 5.18, netif_rx_ni() no longer exists as netif_rx() can be called from any context. So define H

RE: [PATCH v7 0/6] drivers/baseband: PMD to support ACC100/ACC101 devices

2022-06-06 Thread Chautru, Nicolas
Thanks Akhil for your reply. It should be okay to apply it after rc1 once you feel better. Thanks Nic From: Akhil Goyal Sent: Monday, June 6, 2022 8:04 AM To: Chautru, Nicolas ; dev@dpdk.org; t...@redhat.com; maxime.coque...@redhat.com Cc: tho...@monjalon.net; Kinsella, Ray ; Richardson, Bruce

[PATCH] event/dlb2: rework queue drain handling

2022-06-06 Thread Timothy McDaniel
Previously, anything that prevented the CQs from being drained would hang the PMD for an unacceptably long time. This commit updates the drain logic to be resource and time based, thus eliminating the potential for a long hang when draining the queues in preparation for a reset. Fixes: 1857f1922ce

[PATCH] event/dlb2: fix QID inflight exploit

2022-06-06 Thread Timothy McDaniel
If QID inflights is set to an invalid value it can cause the PMD to hang. This commit adds checks to make sure that the value is valid before programming the hardware. Fixes: 1857f1922ce2 ("event/dlb2: use new implementation of resource file") Cc: sta...@dpdk.org Signed-off-by: Timothy McDaniel

[PATCH] event/dlb2: fix advertized capabilities

2022-06-06 Thread Timothy McDaniel
1) Remove RTE_EVENT_DEV_CAP_QUEUE_QOS. DLB/DLB2 do not support queue priority 2) Add RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT 3) Add RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK Fixes: e7c9971a857a ("event/dlb2: add probe-time hardware init") Cc: sta...@dpdk.org Signed-off-by: Timothy McDaniel --- drivers/

Re: [PATCH v4 3/7] ethdev: introduce Rx queue based fill threshold

2022-06-06 Thread Stephen Hemminger
On Fri, 3 Jun 2022 15:48:17 +0300 Spike Du wrote: > Fill threshold describes the fullness of a Rx queue. If the Rx > queue fullness is above the threshold, the device will trigger the event > RTE_ETH_EVENT_RX_FILL_THRESH. > Fill threshold is defined as a percentage of Rx queue size with valid > v

[PATCH] event/dlb2: improve enqueue efficiency

2022-06-06 Thread Timothy McDaniel
Validate credit configuration. If user tried to send 64 events, it will take 64 credits. Enqueue API only gets 32 credits each time. If it does not have sufficient credits, it just fails and returns. Enqueue API does not retry. On next enqueue, it will get 32 more and send will work. This results

Re: [PATCH v5 1/5] drivers/raw: introduce AFU raw device driver

2022-06-06 Thread Stephen Hemminger
On Fri, 27 May 2022 01:37:00 -0400 Wei Huang wrote: > +static inline int afu_mf_trylock(struct afu_mf_rawdev *dev) > +{ > + int32_t x = 0; > + > + if (!dev || !dev->shared) > + return -ENODEV; > + > + x = __atomic_load_n(&dev->shared->lock, __ATOMIC_RELAXED); > + > + i

[PATCH] event/dlb2: improve enqueue efficiency

2022-06-06 Thread Timothy McDaniel
Validate credit configuration. If user tried to send 64 events, it will take 64 credits. Enqueue API only gets 32 credits each time. If it does not have sufficient credits, it just fails and returns. Enqueue API does not retry. On next enqueue, it will get 32 more and send will work. This results

[PATCH] event/dlb2: improve enqueue efficiency

2022-06-06 Thread Timothy McDaniel
Validate credit configuration. If user tried to send 64 events, it will take 64 credits. Enqueue API only gets 32 credits each time. If it does not have sufficient credits, it just fails and returns. Enqueue API does not retry. On next enqueue, it will get 32 more and send will work. This results

Re: [PATCH v7 0/6] drivers/baseband: PMD to support ACC100/ACC101 devices

2022-06-06 Thread Akhil Goyal
Hi Nicolas, I wanted to take this in RC1 but I was unwell last couple of days. Can we push it to RC2? If not, please ask Thomas if he has time to pick it directly to main? Regards, Akhil From: Chautru, Nicolas Sent: Monday, 6 June, 2022, 8:24 pm To: dev@dpdk.org

RE: [PATCH v7 0/6] drivers/baseband: PMD to support ACC100/ACC101 devices

2022-06-06 Thread Chautru, Nicolas
Hi Akhil, Checking that this series on track to be applied. Let me know if anything required from our end. > -Original Message- > From: Chautru, Nicolas > Sent: Tuesday, May 31, 2022 3:32 PM > To: dev@dpdk.org; gak...@marvell.com; t...@redhat.com; > maxime.coque...@redhat.com > Cc: tho

[PATCH v2] net/bonding: failover of LACP with mode 4 takes long time

2022-06-06 Thread Gaoxiang Liu
When the primary port of bond slaves with bond mode 4 linked down, the system id of the other slave ports channged. It may cause some switches to renegotiate, and the process takes a few seconds. It is not acceptable for any Telcos. We need sub-second switchover time like in linux. Set the mac of

Re: [PATCH v2] app/procinfo: show all non-owned ports

2022-06-06 Thread Subendu Santra
Hi Thomas, How does this patch look? Is there anything that needs to be done from my side? Regards, Subendu. On Wed, May 25, 2022 at 12:44 PM Morten Brørup wrote: > > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Wednesday, 25 May 2022 08.04 > > > > On Tue, 24 May 2

Re: [PATCH v2] net/igc: add I226 support

2022-06-06 Thread Thomas Monjalon
06/06/2022 14:06, Zhang, Qi Z: > > > -Original Message- > > From: Thomas Monjalon > > Sent: Monday, June 6, 2022 7:46 PM > > To: Yang, Qiming ; Zhang, Qi Z > > > > Cc: dev@dpdk.org; Liu, KevinX ; Mcnamara, John > > > > Subject: Re: [PATCH v2] net/igc: add I226 support > > > > 06/06/202

[v3 11/24] eal/loongarch: add pflock operations for LoongArch

2022-06-06 Thread Min Zhou
This patch adds pflock operations for LoongArch architecture. Let it uses generic pflock implementation. Signed-off-by: Min Zhou --- lib/eal/loongarch/include/rte_pflock.h | 17 + 1 file changed, 17 insertions(+) create mode 100644 lib/eal/loongarch/include/rte_pflock.h diff --

[v3 03/24] eal/loongarch: add cpu cycle operations for LoongArch

2022-06-06 Thread Min Zhou
This patch adds architecture specific cpu cycle operations for LoongArch. The RDTIME.D instruction is used to read constant frequency timer information including counter value. The CPUCFG instruction is used to dynamically identify which features of LoongArch are implemented in the running processo

[v3 23/24] memif: add system call number for LoongArch

2022-06-06 Thread Min Zhou
This patch adds system call number of memfd_create for LoongArch architecture. Signed-off-by: Min Zhou --- drivers/net/memif/rte_eth_memif.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/memif/rte_eth_memif.h b/drivers/net/memif/rte_eth_memif.h index a5ee23d42e

[v3 01/24] eal/loongarch: add atomic operations for LoongArch

2022-06-06 Thread Min Zhou
This patch adds architecture specific atomic operations for LoongArch architecture. These implementations use standard atomics of toolchain and heavily reference generic atomics codes. Signed-off-by: Min Zhou --- lib/eal/loongarch/include/rte_atomic.h | 253 + 1 file chan

[v3 20/24] ixgbe: add dummy vector implementation for LoongArch

2022-06-06 Thread Min Zhou
The purpose of this patch is used to fix building issues for LoongArch architecture. The hardware instructions based vector implementation will come in a future patch. Signed-off-by: Min Zhou --- drivers/net/ixgbe/ixgbe_rxtx_vec_lsx.c | 60 ++ drivers/net/ixgbe/meson.buil

[v3 02/24] eal/loongarch: add byte order operations for LoongArch

2022-06-06 Thread Min Zhou
This patch adds architecture specific byte order operations for LoongArch architecture. LoongArch bit designations are always little-endian. Signed-off-by: Min Zhou --- lib/eal/loongarch/include/rte_byteorder.h | 46 +++ 1 file changed, 46 insertions(+) create mode 100644 li

[v3 22/24] tap: add system call number for LoongArch

2022-06-06 Thread Min Zhou
This patch adds system call number of bpf for LoongArch architecture. Signed-off-by: Min Zhou --- drivers/net/tap/tap_bpf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/tap/tap_bpf.h b/drivers/net/tap/tap_bpf.h index f0b9fc7a2c..b1c9600ed8 100644 --- a/drivers/

[v3 12/24] eal/loongarch: add rwlock operations for LoongArch

2022-06-06 Thread Min Zhou
This patch adds rwlock operations for LoongArch architecture. These implementations refer to rte_rwlock.h of PPC. Signed-off-by: Min Zhou --- lib/eal/loongarch/include/rte_rwlock.h | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 lib/eal/loongarch/include/rte

[v3 18/24] meson: introduce LoongArch architecture

2022-06-06 Thread Min Zhou
This patch adds some meson.build files for building DPDK on LoongArch architecture. Signed-off-by: Min Zhou --- .../loongarch/loongarch_loongarch64_linux_gcc | 16 +++ config/loongarch/meson.build | 43 +++ lib/eal/loongarch/include/meson.build | 21 +

[v3 15/24] eal/loongarch: add hypervisor operations for LoongArch

2022-06-06 Thread Min Zhou
This patch adds hypervisor operations for LoongArch architecture. In fact, these operations are currently not supported on LoongArch. Signed-off-by: Min Zhou --- lib/eal/loongarch/rte_hypervisor.c | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 lib/eal/loongarch/rte_hyperv

[v3 06/24] eal/loongarch: add cpu flag checks for LoongArch

2022-06-06 Thread Min Zhou
This patch uses aux vector software register to get CPU flags and add CPU flag checking support for LoongArch architecture. Signed-off-by: Min Zhou --- lib/eal/loongarch/include/rte_cpuflags.h | 39 ++ lib/eal/loongarch/rte_cpuflags.c | 94 2 files change

[v3 04/24] eal/loongarch: add prefetch operations for LoongArch

2022-06-06 Thread Min Zhou
This patch adds architecture specific prefetch operations for LoongArch architecture. Signed-off-by: Min Zhou --- lib/eal/loongarch/include/rte_prefetch.h | 47 1 file changed, 47 insertions(+) create mode 100644 lib/eal/loongarch/include/rte_prefetch.h diff --git a/li

[v3 16/24] mem: add huge page size definition for LoongArch

2022-06-06 Thread Min Zhou
LoongArch architecture has a different huge page size (32MB) than other architectures. This patch adds a new huge page size for LoongArch architecture. Signed-off-by: Min Zhou --- lib/eal/include/rte_memory.h | 1 + lib/eal/include/rte_memzone.h | 1 + 2 files changed, 2 insertions(+) diff --g

[v3 10/24] eal/loongarch: add pause operations for LoongArch

2022-06-06 Thread Min Zhou
This patch adds architecture specific pause operations for LoongArch architecture. Signed-off-by: Min Zhou --- lib/eal/loongarch/include/rte_pause.h | 24 1 file changed, 24 insertions(+) create mode 100644 lib/eal/loongarch/include/rte_pause.h diff --git a/lib/eal/loo

RE: [PATCH v4 3/7] ethdev: introduce Rx queue based fill threshold

2022-06-06 Thread Spike Du
Hi Andrew, Please see below for "fill threshold" concept, I'm ok with other comments about code. Regards, Spike. > -Original Message- > From: Andrew Rybchenko > Sent: Saturday, June 4, 2022 8:46 PM > To: Spike Du ; Matan Azrad ; > Slava Ovsiienko ; Ori Kam ; > NBU-Contact-Thoma

[v3 17/24] eal/linux: set eal base address for LoongArch

2022-06-06 Thread Min Zhou
This patch sets a different eal base address for LoongArch architecture. Signed-off-by: Min Zhou --- lib/eal/linux/eal_memory.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/eal/linux/eal_memory.c b/lib/eal/linux/eal_memory.c index c890c42106..60fc8cc6ca 100644 --- a/lib/eal/linux/

[v3 08/24] eal/loongarch: add io operations for LoongArch

2022-06-06 Thread Min Zhou
This patch adds io operations for LoongArch architecture. Let it uses generic I/O implementation. Signed-off-by: Min Zhou --- lib/eal/loongarch/include/rte_io.h | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 lib/eal/loongarch/include/rte_io.h diff --git a/lib/eal/

[v3 14/24] eal/loongarch: add power operations for LoongArch

2022-06-06 Thread Min Zhou
This patch adds power operations for LoongArch architecture. In fact, these operations are temporarily not supported on LoongArch. Signed-off-by: Min Zhou --- .../loongarch/include/rte_power_intrinsics.h | 20 lib/eal/loongarch/rte_power_intrinsics.c | 51 +++ 2 fi

[v3 24/24] maintainers: claim responsibility for LoongArch

2022-06-06 Thread Min Zhou
This patch adds claim responsibility for LoongArch architecture. Signed-off-by: Min Zhou --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f34f6fa2e9..eb38bf473b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -269,6 +269,15 @@ F: lib/eal/

[v3 09/24] eal/loongarch: add mcslock operations for LoongArch

2022-06-06 Thread Min Zhou
This patch adds mcslock operations for LoongArch architecture. Let it uses generic mcslock implementation. Signed-off-by: Min Zhou --- lib/eal/loongarch/include/rte_mcslock.h | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 lib/eal/loongarch/include/rte_mcslock.h di

[v3 00/24] Support LoongArch architecture

2022-06-06 Thread Min Zhou
Dear team, The following patch set is intended to support DPDK running on LoongArch architecture. LoongArch is the general processor architecture of Loongson and is a new RISC ISA, which is a bit like MIPS or RISC-V. The online documents of LoongArch are here: https://loongson.github.io/L

[v3 13/24] eal/loongarch: add ticketlock operations for LoongArch

2022-06-06 Thread Min Zhou
This patch adds ticketlock operations for LoongArch architecture. Let it uses generic ticketlock implementation. Signed-off-by: Min Zhou --- lib/eal/loongarch/include/rte_ticketlock.h | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 lib/eal/loongarch/include/rte_tick

[v3 21/24] i40e: add dummy vector implementation for LoongArch

2022-06-06 Thread Min Zhou
The purpose of this patch is used to fix building issues for LoongArch architecture. The hardware instructions based vector implementation will come in a future patch. Signed-off-by: Min Zhou --- drivers/net/i40e/i40e_rxtx_vec_lsx.c | 54 drivers/net/i40e/meson.build

[v3 19/24] test/xmmt_ops: add dummy vector implementation for LoongArch

2022-06-06 Thread Min Zhou
The hardware instructions based vector implementation will come in a future patch. This dummy implementation can also work. Signed-off-by: Min Zhou --- app/test/test_xmmt_ops.h | 17 + 1 file changed, 17 insertions(+) diff --git a/app/test/test_xmmt_ops.h b/app/test/test_xmmt_op

[v3 05/24] eal/loongarch: add spinlock operations for LoongArch

2022-06-06 Thread Min Zhou
This patch adds spinlock operations for LoongArch architecture. These implementations are based on standard atomics of toolchain and heavily reference generic spinlock codes. Signed-off-by: Min Zhou --- lib/eal/loongarch/include/rte_spinlock.h | 90 1 file changed, 90 in

[v3 07/24] eal/loongarch: add dummy vector memcpy for LoongArch

2022-06-06 Thread Min Zhou
The hardware instructions based vector implementation for memcpy will come later. At present, this dummy implementation can also work. Signed-off-by: Min Zhou --- lib/eal/loongarch/include/rte_memcpy.h | 193 + lib/eal/loongarch/include/rte_vect.h | 46 ++ 2 files

RE: [PATCH v2] net/igc: add I226 support

2022-06-06 Thread Zhang, Qi Z
> -Original Message- > From: Thomas Monjalon > Sent: Monday, June 6, 2022 7:46 PM > To: Yang, Qiming ; Zhang, Qi Z > > Cc: dev@dpdk.org; Liu, KevinX ; Mcnamara, John > > Subject: Re: [PATCH v2] net/igc: add I226 support > > 06/06/2022 12:54, Zhang, Qi Z: > > > > > -Original Messa

[Bug 1025] [dpdk 22.07 && dpdk-next-net] kernel/linux/kni meson build failed on Ub22.04/Ub20.04/Fedora36/Centos7.9/SUSE15/RHEL8.6

2022-06-06 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1025 Thomas Monjalon (tho...@monjalon.net) changed: What|Removed |Added Resolution|--- |FIXED CC|

[PATCH v1 17/17] vdpa/mlx5: prepare virtqueue resource creation

2022-06-06 Thread Li Zhang
Split the virtqs virt-queue resource between the configuration threads. Also need pre-created virt-queue resource after virtq destruction. This accelerates the LM process and reduces its time by 30%. Signed-off-by: Li Zhang --- drivers/vdpa/mlx5/mlx5_vdpa.c | 115

[PATCH v1 16/17] vdpa/mlx5: add virtq sub-resources creation

2022-06-06 Thread Li Zhang
pre-created virt-queue sub-resource in device probe stage and then modify virtqueue in device config stage. Steer table also need to support dummy virt-queue. This accelerates the LM process and reduces its time by 40%. Signed-off-by: Li Zhang Signed-off-by: Yajun Wu --- drivers/vdpa/mlx5/mlx5_

[PATCH v1 15/17] vdpa/mlx5: add device close task

2022-06-06 Thread Li Zhang
Split the virtqs device close tasks after stopping virt-queue between the configuration threads. This accelerates the LM process and reduces its time by 50%. Signed-off-by: Li Zhang --- drivers/vdpa/mlx5/mlx5_vdpa.c | 56 +-- drivers/vdpa/mlx5/mlx5_vdpa.h

[PATCH v1 14/17] vdpa/mlx5: add virtq LM log task

2022-06-06 Thread Li Zhang
Split the virtqs LM log between the configuration threads. This accelerates the LM process and reduces its time by 20%. Signed-off-by: Li Zhang --- drivers/vdpa/mlx5/mlx5_vdpa.h | 3 + drivers/vdpa/mlx5/mlx5_vdpa_cthread.c | 34 +++ drivers/vdpa/mlx5/mlx5_vdpa_lm.c | 85 +++

[PATCH v1 13/17] vdpa/mlx5: add virtq creation task for MT management

2022-06-06 Thread Li Zhang
The virtq object and all its sub-resources use a lot of FW commands and can be accelerated by the MT management. Split the virtqs creation between the configuration threads. This accelerates the LM process and reduces its time by 20%. Signed-off-by: Li Zhang --- drivers/vdpa/mlx5/mlx5_vdpa.h

[PATCH v1 12/17] vdpa/mlx5: add MT task for VM memory registration

2022-06-06 Thread Li Zhang
The driver creates a direct MR object of the HW for each VM memory region, which maps the VM physical address to the actual physical address. Later, after all the MRs are ready, the driver creates an indirect MR to group all the direct MRs into one virtual space from the HW perspective. Create di

[PATCH v1 11/17] vdpa/mlx5: add task ring for MT management

2022-06-06 Thread Li Zhang
The configuration threads tasks need a container to support multiple tasks assigned to a thread in parallel. Use rte_ring container per thread to manage the thread tasks without locks. The caller thread from the user context opens a task to a thread and enqueue it to the thread ring. The thread pol

[PATCH v1 10/17] vdpa/mlx5: add multi-thread management for configuration

2022-06-06 Thread Li Zhang
The LM process includes a lot of objects creations and destructions in the source and the destination servers. As much as LM time increases, the packet drop of the VM increases. To improve LM time need to parallel the configurations for mlx5 FW. Add internal multi-thread management in the driver fo

[PATCH v1 09/17] vdpa/mlx5: optimize datapath-control synchronization

2022-06-06 Thread Li Zhang
The driver used a single global lock for any synchronization needed for the datapath and control path. It is better to group the critical sections with the other ones that should be synchronized. Replace the global lock with the following locks: 1.virtq locks(per virtq) synchronize datapath polli

[PATCH v1 08/17] vdpa/mlx5: pre-create virtq in the prob

2022-06-06 Thread Li Zhang
dev_config operation is called in LM progress. LM time is very critical because all the VM packets are dropped directly at that time. Move the virtq creation to probe time and only modify the configuration later in the dev_config stage using the new ability to modify virtq. This optimization acce

[PATCH v1 07/17] common/mlx5: extend virtq modifiable fields

2022-06-06 Thread Li Zhang
A virtq configuration can be modified after the virtq creation. Added the following modifiable fields: 1.address fields: desc_addr/used_addr/available_addr 2.hw_available_index 3.hw_used_index 4.virtio_q_type 5.version type 6.queue mkey 7.feature bit mask: tso_ipv4/tso_ipv6/tx_csum/rx_csum 8.event

[PATCH v1 06/17] vdpa/mlx5: support event qp reuse

2022-06-06 Thread Li Zhang
From: Yajun Wu To speed up queue create time, event qp and cq will create only once. Each virtq creation will reuse same event qp and cq. Because FW will set event qp to error state during virtq destroy, need modify event qp to RESET state, then modify qp to RTS state as usual. This can save abo

[PATCH v1 05/17] common/mlx5: add DevX API to move QP to reset state

2022-06-06 Thread Li Zhang
From: Yajun Wu Support set QP to RESET state. Signed-off-by: Yajun Wu --- drivers/common/mlx5/mlx5_devx_cmds.c | 7 +++ drivers/common/mlx5/mlx5_prm.h | 17 + 2 files changed, 24 insertions(+) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/

[PATCH v1 04/17] vdpa/mlx5: support pre create virtq resource

2022-06-06 Thread Li Zhang
From: Yajun Wu The motivation of this change is to reduce vDPA device queue creation time by create some queue resource in vDPA device probe stage. In VM live migration scenario, this can reduce 0.8ms for each queue creation, thus reduce LM network downtime. To create queue resource(umem/counte

[PATCH v1 03/17] examples/vdpa: fix devices cleanup

2022-06-06 Thread Li Zhang
From: Yajun Wu Move rte_eal_cleanup to function vdpa_sample_quit which handling all example app quit. Otherwise rte_eal_cleanup won't be called on receiving signal like SIGINT(control + c). Fixes: 10aa3757 ("examples: add eal cleanup to examples") Cc: sta...@dpdk.org Signed-off-by: Yajun Wu --

[PATCH v1 02/17] eal: add device removal in rte cleanup

2022-06-06 Thread Li Zhang
From: Yajun Wu Add device removal in function rte_eal_cleanup. This is the last chance device remove get called for sanity. Loop vdev bus first and then all bus for all device, calling rte_dev_remove. Cc: sta...@dpdk.org Signed-off-by: Yajun Wu --- lib/eal/freebsd/eal.c | 33 +

[PATCH v1 01/17] vdpa/mlx5: fix usage of capability for max number of virtqs

2022-06-06 Thread Li Zhang
The driver wrongly takes the capability value for the number of virtq pairs instead of just the number of virtqs. Adjust all the usages of it to be the number of virtqs. Fixes: c2eb33a ("vdpa/mlx5: manage virtqs by array") Cc: sta...@dpdk.org Signed-off-by: Li Zhang --- drivers/vdpa/mlx5/mlx5_

[PATCH v1 00/17] Add vDPA multi-threads optiomization

2022-06-06 Thread Li Zhang
Allow the driver to use internal threads to obtain fast configuration. All the threads will be open on the same core of the event completion queue scheduling thread. Add max_conf_threads parameter to configure the maximum number of internal threads in addition to the caller thread (8 is suggested)

Re: [PATCH v2] net/igc: add I226 support

2022-06-06 Thread Thomas Monjalon
06/06/2022 12:54, Zhang, Qi Z: > > > -Original Message- > > From: Thomas Monjalon > > Sent: Monday, June 6, 2022 6:49 PM > > To: Yang, Qiming ; Zhang, Qi Z > > > > Cc: dev@dpdk.org; Liu, KevinX > > Subject: Re: [PATCH v2] net/igc: add I226 support > > > > 06/06/2022 01:12, Zhang, Qi Z:

Re: [PATCH v1 5/5] examples/l3fwd: enable direct rearm mode

2022-06-06 Thread Konstantin Ananyev
31/05/2022 18:14, Honnappa Nagarahalli пишет: 25/05/2022 01:24, Honnappa Nagarahalli пишет: From: Konstantin Ananyev 20/04/2022 09:16, Feifei Wang пишет: Enable direct rearm mode. The mapping is decided in the data plane based on the first packet received. Suggested-by: Honnappa Naga

[PATCH v1 17/17] vdpa/mlx5: prepare virtqueue resource creation

2022-06-06 Thread Li Zhang
Split the virtqs virt-queue resource between the configuration threads. Also need pre-created virt-queue resource after virtq destruction. This accelerates the LM process and reduces its time by 30%. Signed-off-by: Li Zhang --- drivers/vdpa/mlx5/mlx5_vdpa.c | 115

[PATCH v1 16/17] vdpa/mlx5: add virtq sub-resources creation

2022-06-06 Thread Li Zhang
pre-created virt-queue sub-resource in device probe stage and then modify virtqueue in device config stage. Steer table also need to support dummy virt-queue. This accelerates the LM process and reduces its time by 40%. Signed-off-by: Li Zhang Signed-off-by: Yajun Wu --- drivers/vdpa/mlx5/mlx5_

[PATCH 16/16] vdpa/mlx5: prepare virtqueue resource creation

2022-06-06 Thread Li Zhang
Split the virtqs virt-queue resource between the configuration threads. Also need pre-created virt-queue resource after virtq destruction. This accelerates the LM process and reduces its time by 30%. Signed-off-by: Li Zhang --- drivers/vdpa/mlx5/mlx5_vdpa.c | 115

[PATCH 15/16] vdpa/mlx5: add virtq sub-resources creation

2022-06-06 Thread Li Zhang
pre-created virt-queue sub-resource in device probe stage and then modify virtqueue in device config stage. Steer table also need to support dummy virt-queue. This accelerates the LM process and reduces its time by 40%. Signed-off-by: Li Zhang Signed-off-by: Yajun Wu --- drivers/vdpa/mlx5/mlx5_

[PATCH v1 15/17] vdpa/mlx5: add device close task

2022-06-06 Thread Li Zhang
Split the virtqs device close tasks after stopping virt-queue between the configuration threads. This accelerates the LM process and reduces its time by 50%. Signed-off-by: Li Zhang --- drivers/vdpa/mlx5/mlx5_vdpa.c | 56 +-- drivers/vdpa/mlx5/mlx5_vdpa.h

[PATCH v1 14/17] vdpa/mlx5: add virtq LM log task

2022-06-06 Thread Li Zhang
Split the virtqs LM log between the configuration threads. This accelerates the LM process and reduces its time by 20%. Signed-off-by: Li Zhang --- drivers/vdpa/mlx5/mlx5_vdpa.h | 3 + drivers/vdpa/mlx5/mlx5_vdpa_cthread.c | 34 +++ drivers/vdpa/mlx5/mlx5_vdpa_lm.c | 85 +++

[PATCH v1 13/17] vdpa/mlx5: add virtq creation task for MT management

2022-06-06 Thread Li Zhang
The virtq object and all its sub-resources use a lot of FW commands and can be accelerated by the MT management. Split the virtqs creation between the configuration threads. This accelerates the LM process and reduces its time by 20%. Signed-off-by: Li Zhang --- drivers/vdpa/mlx5/mlx5_vdpa.h

[PATCH 14/16] vdpa/mlx5: add device close task

2022-06-06 Thread Li Zhang
Split the virtqs device close tasks after stopping virt-queue between the configuration threads. This accelerates the LM process and reduces its time by 50%. Signed-off-by: Li Zhang --- drivers/vdpa/mlx5/mlx5_vdpa.c | 56 +-- drivers/vdpa/mlx5/mlx5_vdpa.h

[PATCH v1 12/17] vdpa/mlx5: add MT task for VM memory registration

2022-06-06 Thread Li Zhang
The driver creates a direct MR object of the HW for each VM memory region, which maps the VM physical address to the actual physical address. Later, after all the MRs are ready, the driver creates an indirect MR to group all the direct MRs into one virtual space from the HW perspective. Create di

  1   2   >