[dpdk-dev] [PATCH] common/mlx5: fix external memory pool registration

2021-11-01 Thread Dmitry Kozlyuk
Registration of packet mempools with RTE_PKTMBUF_POOL_PINNED_EXT_MEM was performed incorrectly: after population of such mempool chunks only contain memory for rte_mbuf structures, while pointers to actual external memory are not yet filled. MR LKeys could not be obtained for external memory addres

[dpdk-dev] [PATCH v1] net/ice: fix order of flow filter parser list

2021-11-01 Thread Yuying Zhang
The order of flow filter parser list was not definite and linked to the register order of parsers. It casued ACL filter covered by switch filter in some cases. This patch fixed order of parser list to guarantee the usage of each filter. Below lists the order. ACL filter > Switch filter > FDIR > Ha

[dpdk-dev] [PATCH v2 2/2] net/cnxk: integrate bpfcount get MBOX interface

2021-11-01 Thread Rakesh Kudurumalla
Bpf count is updated in meter capabilities during device initialization using mbox interface Signed-off-by: Rakesh Kudurumalla --- v2: - resolve nix configure error in cn9k drivers/net/cnxk/cn10k_rte_flow.c | 2 +- drivers/net/cnxk/cn9k_ethdev.c | 1 + drivers/net/cnxk/cnxk_ethdev.c |

[dpdk-dev] [PATCH v2 1/2] common/cnxk: change policer timeuint to configured value

2021-11-01 Thread Rakesh Kudurumalla
Ingress meter rate is calculated based on hardcoded policer timeunit. Patch adds mbox interface to retrieve configured policer timeunit Signed-off-by: Rakesh Kudurumalla --- drivers/common/cnxk/hw/nix.h | 12 ++--- drivers/common/cnxk/roc_mbox.h| 31 + drivers/common/cnxk/ro

[dpdk-dev] [PATCH 2/2] net/cnxk: integrate bpfcount get MBOX interface

2021-11-01 Thread Rakesh Kudurumalla
Bpf count is updated in meter capabilities during device initialization using mbox interface Signed-off-by: Rakesh Kudurumalla --- drivers/net/cnxk/cn10k_rte_flow.c | 2 +- drivers/net/cnxk/cnxk_ethdev.c | 4 ++- drivers/net/cnxk/cnxk_ethdev.h | 1 + drivers/net/cnxk/cnxk_ethdev_mtr.

[dpdk-dev] [PATCH 1/2] common/cnxk: change policer timeuint to configured value

2021-11-01 Thread Rakesh Kudurumalla
Ingress meter rate is calculated based on hardcoded policer timeunit. Patch adds mbox interface to retrieve configured policer timeunit Signed-off-by: Rakesh Kudurumalla --- drivers/common/cnxk/hw/nix.h | 12 ++--- drivers/common/cnxk/roc_mbox.h| 31 + drivers/common/cnxk/ro

Re: [dpdk-dev] [PATCH v9 0/4] enable protocol agnostic flow offloading in FDIR

2021-11-01 Thread Zhang, Qi Z
> -Original Message- > From: Guo, Junfeng > Sent: Tuesday, November 2, 2021 1:39 PM > To: Zhang, Qi Z ; Wu, Jingjing ; > Xing, Beilei > Cc: dev@dpdk.org; Yigit, Ferruh ; Xu, Ting > ; Guo, Junfeng > Subject: [PATCH v9 0/4] enable protocol agnostic flow offloading in FDIR > > Protocol

[dpdk-dev] [PATCH v9 4/4] net/ice: enable protocol agnostic flow offloading in FDIR

2021-11-01 Thread Junfeng Guo
Protocol agnostic flow offloading in Flow Director is enabled by this patch based on the Parser Library, using existing rte_flow raw API. Note that the raw flow requires: 1. byte string of raw target packet bits. 2. byte string of mask of target packet. Here is an example: FDIR matching ipv4 dst

[dpdk-dev] [PATCH v9 3/4] app/testpmd: update Max RAW pattern size to 512

2021-11-01 Thread Junfeng Guo
Update max size for pattern in struct rte_flow_item_raw to enable protocol agnostic flow offloading. Signed-off-by: Junfeng Guo --- app/test-pmd/cmdline_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 24b2

[dpdk-dev] [PATCH v9 2/4] net/ice/base: add function to set HW profile for raw flow

2021-11-01 Thread Junfeng Guo
Based on the parser library, we can directly set HW profile and associate the main/ctrl vsi. This patch set also updated the release date in README. Signed-off-by: Junfeng Guo --- drivers/net/ice/base/README | 2 +- drivers/net/ice/base/ice_flex_pipe.c | 49 drivers/n

[dpdk-dev] [PATCH v9 1/4] net/ice/base: add method to disable FDIR SWAP option

2021-11-01 Thread Junfeng Guo
In this patch, we introduced a new parameter to enable/disable the FDIR SWAP option by setting the swap and inset register set with certain values. Signed-off-by: Junfeng Guo --- drivers/net/ice/base/ice_flex_pipe.c | 44 ++-- drivers/net/ice/base/ice_flex_pipe.h | 3 +-

[dpdk-dev] [PATCH v9 0/4] enable protocol agnostic flow offloading in FDIR

2021-11-01 Thread Junfeng Guo
Protocol agnostic flow offloading in Flow Director is enabled by this patch set based on the Parser Library using existing rte_flow raw API. [PATCH v9 1/4] net/ice/base: add method to disable FDIR SWAP option. [PATCH v9 2/4] net/ice/base: add function to set HW profile for raw flow. [PATCH v9 3/4]

Re: [dpdk-dev] [PATCH v3 02/10] vdpa/sfc: add support for device initialization

2021-11-01 Thread Xia, Chenbo
> -Original Message- > From: Vijay Kumar Srivastava > Sent: Tuesday, November 2, 2021 12:38 PM > To: Xia, Chenbo ; dev@dpdk.org > Cc: maxime.coque...@redhat.com; andrew.rybche...@oktetlabs.ru; Praveen Kumar > Jain > Subject: RE: [PATCH v3 02/10] vdpa/sfc: add support for device initializa

Re: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 256 bit key

2021-11-01 Thread Vidya Sagar Velumuri
Hi Pablo, We verified vectors mentioned in below link in our platform and all the vectors passed (i.e: the digest matches with the doc). http://www.is.cas.cn/ztzl2016/zouchongzhi/201801/W020180126529970733243.pdf The ZUC-256 Stream Cipher

Re: [dpdk-dev] [PATCH v3 02/10] vdpa/sfc: add support for device initialization

2021-11-01 Thread Vijay Kumar Srivastava
Hi Chenbo, >-Original Message- >From: Xia, Chenbo >Sent: Monday, November 1, 2021 5:19 PM >To: Vijay Kumar Srivastava ; dev@dpdk.org >Cc: maxime.coque...@redhat.com; andrew.rybche...@oktetlabs.ru; Vijay >Kumar Srivastava >Subject: RE: [PATCH v3 02/10] vdpa/sfc: add support for device in

Re: [dpdk-dev] [PATCH v2] common/cnxk: support BPHY telemetry

2021-11-01 Thread Jerin Jacob
On Mon, Nov 1, 2021 at 8:32 PM Ferruh Yigit wrote: > > On 10/22/2021 12:56 PM, Tomasz Duszynski wrote: > > Add initial support for baseband telemetry. > > > > Signed-off-by: Tomasz Duszynski > > --- > > v2: > > - make bphy telemetry available only on platforms supporting baseband > > - use platfor

Re: [dpdk-dev] [PATCH v2 2/4] dma/cnxk: create and initialize dmadev on pci probe

2021-11-01 Thread Jerin Jacob
On Tue, Nov 2, 2021 at 9:10 AM Radha Mohan Chintakuntla wrote: > > This patch creates and initializes a dmadev device on pci probe. > > Signed-off-by: Radha Mohan Chintakuntla > --- > MAINTAINERS| 6 ++ > doc/guides/dmadevs/cnxk.rst| 58 +++ > doc/guide

[dpdk-dev] [PATCH v2 4/4] dma/cnxk: add copy_sg function

2021-11-01 Thread Radha Mohan Chintakuntla
Add the copy_sg function that will do the multiple DMA transfers of different sizes and different source/destination as well. Signed-off-by: Radha Mohan Chintakuntla --- drivers/dma/cnxk/cnxk_dmadev.c | 68 +- 1 file changed, 67 insertions(+), 1 deletion(-) diff

[dpdk-dev] [PATCH v2 3/4] dma/cnxk: add dma channel operations

2021-11-01 Thread Radha Mohan Chintakuntla
Add functions for the dmadev vchan setup and DMA operations. Signed-off-by: Radha Mohan Chintakuntla --- drivers/dma/cnxk/cnxk_dmadev.c | 322 + drivers/dma/cnxk/cnxk_dmadev.h | 31 drivers/dma/cnxk/version.map | 3 + 3 files changed, 356 insertions(+)

[dpdk-dev] [PATCH v2 2/4] dma/cnxk: create and initialize dmadev on pci probe

2021-11-01 Thread Radha Mohan Chintakuntla
This patch creates and initializes a dmadev device on pci probe. Signed-off-by: Radha Mohan Chintakuntla --- MAINTAINERS| 6 ++ doc/guides/dmadevs/cnxk.rst| 58 +++ doc/guides/dmadevs/index.rst | 1 + drivers/dma/cnxk/cnxk_dmadev.c | 100 +++

[dpdk-dev] [PATCH v2 1/4] common/cnxk: add DPI DMA support

2021-11-01 Thread Radha Mohan Chintakuntla
Add base support as ROC(Rest of Chip) API which will be used by PMD dmadev driver. This patch adds routines to init, fini, configure the DPI DMA device found in Marvell's CN9k or CN10k SoC families. Signed-off-by: Radha Mohan Chintakuntla --- Changes from v1: - Changed to roc_dpi_enable() from

[dpdk-dev] [PATCH 9/9] net/hns3: remove PF/VF duplicate code

2021-11-01 Thread Min Hu (Connor)
From: Chengwen Feng This patch remove PF/VF duplicate code of: 1. get firmware version. 2. get device info. 3. rx interrupt related functions. Signed-off-by: Chengwen Feng Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_common.c| 337 +- drivers/net/hn

[dpdk-dev] [PATCH 5/9] net/hns3: extract a common file

2021-11-01 Thread Min Hu (Connor)
From: Huisong Li This patch extracts a common file to store the common code for PF and VF driver. Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_cmd.c | 2 +- drivers/net/hns3/hns3_common.c| 427 + drivers/net/hns3/hn

[dpdk-dev] [PATCH 1/9] net/hns3: fix the shift of DMA address in Rx/Tx queue

2021-11-01 Thread Min Hu (Connor)
From: Huisong Li The patch obtains the upper 32 bits of the Rx/Tx queue DMA address in one step instead of two steps. Fixes: bba636698316 ("net/hns3: support Rx/Tx and related operations") Signed-off-by: Huisong Li --- drivers/net/hns3/hns3_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[dpdk-dev] [PATCH 6/9] net/hns3: add hns3 flow header file

2021-11-01 Thread Min Hu (Connor)
This patch adds a hns3_flow.h to make the code easier to maintain. Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_ethdev.c| 1 + drivers/net/hns3/hns3_ethdev.h| 3 +-- drivers/net/hns3/hns3_ethdev_vf.c | 1 + drivers/net/hns3/hns3_fdir.h | 31

[dpdk-dev] [PATCH 0/9] code optimization for hns3 PMD

2021-11-01 Thread Min Hu (Connor)
This patch set contains refactor patches and code check patches. Chengwen Feng (1): net/hns3: remove PF/VF duplicate code Huisong Li (7): net/hns3: fix the shift of DMA address in Rx/Tx queue net/hns3: remove a redundant function declaration net/hns3: modifying code alignment net/hns3:

[dpdk-dev] [PATCH 8/9] net/hns3: fix the return value of the function

2021-11-01 Thread Min Hu (Connor)
From: Huisong Li Fixing the return value of the function to clear static warning. Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_common.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/hns3/hns3_common.c b/drivers/ne

[dpdk-dev] [PATCH 4/9] net/hns3: use unsigned integer for bitwise operations

2021-11-01 Thread Min Hu (Connor)
From: Huisong Li Bitwise operations should be used only with unsigned integer. This patch modifies some code that does not meet this rule. Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) dif

[dpdk-dev] [PATCH 3/9] net/hns3: modifying code alignment

2021-11-01 Thread Min Hu (Connor)
From: Huisong Li This patch modifies some code alignment issues to make the code style more consistent. Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_rxtx.c b/

[dpdk-dev] [PATCH 2/9] net/hns3: remove a redundant function declaration

2021-11-01 Thread Min Hu (Connor)
From: Huisong Li This patch removes a redundant function declaration for hns3_rx_check_vec_support(). Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_rxtx.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/hns3/hns3_rxtx.h b/drivers/net/hns3/hn

[dpdk-dev] [PATCH 7/9] net/hns3: remove magic numbers

2021-11-01 Thread Min Hu (Connor)
From: Huisong Li Removing magic numbers with macros. Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_common.c | 4 ++-- drivers/net/hns3/hns3_common.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_common.c b/dr

Re: [dpdk-dev] [PATCH v8 4/4] net/ice: enable protocol agnostic flow offloading in FDIR

2021-11-01 Thread Guo, Junfeng
> -Original Message- > From: Zhang, Qi Z > Sent: Tuesday, November 2, 2021 07:56 > To: Guo, Junfeng ; Wu, Jingjing > ; Xing, Beilei > Cc: dev@dpdk.org; Yigit, Ferruh ; Xu, Ting > > Subject: RE: [PATCH v8 4/4] net/ice: enable protocol agnostic flow > offloading in FDIR > > > > > ---

Re: [dpdk-dev] [PATCH] app/testpmd: fix MTU configuration before device start

2021-11-01 Thread Jiang, YuX
> -Original Message- > From: dev On Behalf Of Ferruh Yigit > Sent: Friday, October 29, 2021 2:23 AM > To: Ajit Khaparde ; Andrew Rybchenko > > Cc: Li, Xiaoyun ; Xu, Rosen ; > Ananyev, Konstantin ; Ivan Ilchenko > ; dpdk-dev > Subject: Re: [dpdk-dev] [PATCH] app/testpmd: fix MTU configura

[dpdk-dev] 回复: [PATCH v9 5/5] distributor: use wait until scheme

2021-11-01 Thread Feifei Wang
> -邮件原件- > 发件人: dev 代表 Pattan, Reshma > 发送时间: Tuesday, November 2, 2021 12:05 AM > 收件人: Feifei Wang ; Hunt, David > > 抄送: dev@dpdk.org; nd ; jerinjac...@gmail.com; > step...@networkplumber.org; tho...@monjalon.net; > david.march...@redhat.com; Ruifeng Wang ; > jer...@marvell.com > 主题: R

[dpdk-dev] [Bug 865] [dpdk-21.11]launch testpmd with "--vfio-intr=legacy" appears core dumped

2021-11-01 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=865 yanx@intel.com (yanx@intel.com) changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolut

Re: [dpdk-dev] [PATCH] net/txgbe: fix link macro

2021-11-01 Thread Jiawen Wu
On November 1, 2021 9:20 PM, Ferruh Yigit wrote: > Macro is changed unintentionally while adding RTE_ prefix, fixing the original > value. > > Fixes: 295968d17407 ("ethdev: add namespace") > > Signed-off-by: Ferruh Yigit > --- > drivers/net/txgbe/txgbe_ethdev.c | 2 +- > 1 file changed, 1 inser

[dpdk-dev] [PATCH v3 3/3] doc: add protocol agnostic flow offloading for RSS

2021-11-01 Thread Ting Xu
Protocol agnostic flow offloading for RSS hash is supported. Raw pattern input can be used to create RSS hash flow rules, using current rte_flow raw API. Signed-off-by: Ting Xu --- doc/guides/rel_notes/release_21_11.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/rel

[dpdk-dev] [PATCH v3 2/3] net/ice: enable protocol agnostic flow offloading in RSS

2021-11-01 Thread Ting Xu
Enable protocol agnostic flow offloading to support raw pattern input for RSS hash flow rule creation. It is based on Parser Library feature. Current rte_flow raw API is utilized. Signed-off-by: Ting Xu --- drivers/net/ice/ice_ethdev.h | 9 ++ drivers/net/ice/ice_hash.c | 286 +++

[dpdk-dev] [PATCH v3 1/3] net/ice/base: support add HW profile for RSS raw flow

2021-11-01 Thread Ting Xu
Based on the parser library, we can directly set HW profile and associate VSI for RSS raw flows. Add symmetric hash configuration for raw flow. Signed-off-by: Ting Xu --- drivers/net/ice/base/ice_flow.c | 109 drivers/net/ice/base/ice_flow.h | 16 + 2 files

[dpdk-dev] [PATCH v3 0/3] enable protocol agnostic flow offloading in RSS

2021-11-01 Thread Ting Xu
Enable protocol agnostic flow offloading to support raw pattern input for RSS hash flow rule creation. It is based on Parser Library feature. Current rte_flow raw API is utilized. Ting Xu (3): net/ice/base: support add HW profile for RSS raw flow net/ice: enable protocol agnostic flow offloadi

[dpdk-dev] [PATCH 0/4] bugfix for multi process of hns3 PMD

2021-11-01 Thread Min Hu (Connor)
This patch set contains bugfix and code optimization for multi process of hns3 PMD. Huisong Li (4): net/hns3: decrease the count when secondary process exits net/hns3: fix MP action register and unregister net/hns3: fix lack of unregistering MP action for secondary net/hns3: refactor multi

[dpdk-dev] [PATCH 3/4] net/hns3: fix lack of unregistering MP action for secondary

2021-11-01 Thread Min Hu (Connor)
From: Huisong Li This patch fixes lack of unregistering MP action for secondary process when PMD is closed. Fixes: 9570b1fdbdad ("net/hns3: check multi-process action register result") Fixes: 23d4b61fee5d ("net/hns3: support multiple process") Signed-off-by: Huisong Li Signed-off-by: Min Hu (C

[dpdk-dev] [PATCH 4/4] net/hns3: refactor multi-process initialization

2021-11-01 Thread Min Hu (Connor)
From: Huisong Li Currently, the logic of the PF and VF initialization codes for multiple process is the same. A common function can be extracted to initialize and unload multiple process. Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_ethdev.c| 34 +

[dpdk-dev] [PATCH 2/4] net/hns3: fix MP action register and unregister

2021-11-01 Thread Min Hu (Connor)
From: Huisong Li The multi-process has the following problems: 1) After a port in primary process is closed, the mp action of the process is unregistered. which will cause that other device in the primary process cannot respond to requests from secondary processes. 2) Because variable "hns3

[dpdk-dev] [PATCH 1/4] net/hns3: decrease the count when secondary process exits

2021-11-01 Thread Min Hu (Connor)
From: Huisong Li The "secondary_cnt" will be increased when a secondary process initialized. But the value of this variable is not decreased when the secondary process exits, which causes the primary process senses that the secondary process still exists. As a result, the primary process fails to

Re: [dpdk-dev] [PATCH 3/6] drivers: fix bad bit shift operation

2021-11-01 Thread Wang, Haiyue
> -Original Message- > From: Harman Kalra > Sent: Tuesday, November 2, 2021 01:54 > To: dev@dpdk.org; Wang, Haiyue > Cc: david.march...@redhat.com; Mcnamara, John ; > Harman Kalra > > Subject: [PATCH 3/6] drivers: fix bad bit shift operation > > This patch fixes coverity issue by addin

Re: [dpdk-dev] [PATCH 1/2] net/ice: save meta on switch filter creation

2021-11-01 Thread Zhang, Qi Z
> -Original Message- > From: Yu, DapengX > Sent: Monday, November 1, 2021 4:45 PM > To: Yang, Qiming ; Zhang, Qi Z > > Cc: dev@dpdk.org; Wang, Haiyue ; Yu, DapengX > ; sta...@dpdk.org > Subject: [PATCH 1/2] net/ice: save meta on switch filter creation > > From: Dapeng Yu > > The met

Re: [dpdk-dev] [PATCH 1/2] net/ice: save meta on switch filter creation

2021-11-01 Thread Zhang, Qi Z
> -Original Message- > From: Zhang, Qi Z > Sent: Tuesday, November 2, 2021 8:07 AM > To: Yu, DapengX ; Yang, Qiming > > Cc: dev@dpdk.org; Wang, Haiyue ; > sta...@dpdk.org > Subject: RE: [PATCH 1/2] net/ice: save meta on switch filter creation > > > > > -Original Message- > >

Re: [dpdk-dev] [PATCH v8 4/4] net/ice: enable protocol agnostic flow offloading in FDIR

2021-11-01 Thread Zhang, Qi Z
> -Original Message- > From: Guo, Junfeng > Sent: Monday, November 1, 2021 4:36 PM > To: Zhang, Qi Z ; Wu, Jingjing ; > Xing, Beilei > Cc: dev@dpdk.org; Yigit, Ferruh ; Xu, Ting > ; Guo, Junfeng > Subject: [PATCH v8 4/4] net/ice: enable protocol agnostic flow offloading in > FDIR > >

Re: [dpdk-dev] [PATCH 2/2] devtools: disable fixes authors in get maintainers

2021-11-01 Thread Stephen Hemminger
On Mon, 1 Nov 2021 13:35:33 + Ferruh Yigit wrote: > 'get_maintainer.pl' by default returns authors that has fixes in > relevant code, to reduce the output only maintainers from MAINTAINERS > file, disabling fixes authors, by making '--no-fixes' default. > > Signed-off-by: Ferruh Yigit Isn

[dpdk-dev] [dpdk-dev v2 6/7] app/test: cryptodev test fix

2021-11-01 Thread Kai Ji
test_mixed_auth_cipher: ensure enough space allocate in ibuf & obuf for mbuf to vec conversion test_kasumi_decryption: cipher length update. qat/dev: support sgl oop operation Fixes: 681f540da52b ("cryptodev: do not use AAD in wireless algorithms") Cc: pablo.de.lara.gua...@intel.com Fixes: e847fc

[dpdk-dev] [dpdk-dev v2 5/7] crypto/qat: qat driver datapath rework

2021-11-01 Thread Kai Ji
This patch introduce op_build_request func in qat enqueue op burst. Add-in qat_dequeue_process_response in qat dequeue op burst. Enable session build request op based on crypto operation Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/common/qat/meson.build | 4 +- drivers/

[dpdk-dev] [dpdk-dev v2 4/7] crypto/qat: qat driver session method rework

2021-11-01 Thread Kai Ji
The patch introduce set_session & set_raw_dp_ctx methods to qat gen dev ops Replace min_qat_dev_gen_id with dev_id, the session will be invalid if the device generation id is not matching during init and ops Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/crypto/qat/dev/qat_crypto_pmd_gen

[dpdk-dev] [dpdk-dev v2 3/7] crypto/qat: qat driver asym op refactor

2021-11-01 Thread Kai Ji
This patch add-in refactored qat asymmetric build request function implementation (qat_asym_refactor.c & qat_asym_refactor.h) Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/crypto/qat/dev/qat_asym_pmd_gen1.c | 7 + drivers/crypto/qat/qat_asym_refactor.c | 994 +

[dpdk-dev] [dpdk-dev v2 2/7] crypto/qat: qat driver sym op refactor

2021-11-01 Thread Kai Ji
This patch add-in refactored qat symmetirc build request function implementation (qat_sym_refactor.c & qat_sym_refactor.h) Add-in QAT sym build ops in auth, cipher, chain and aead operation for QAT generation 1 Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/crypto/qat/dev/qat_crypto_pmd_

[dpdk-dev] [dpdk-dev v2 1/7] crypro/qat: qat driver refactor skeleton

2021-11-01 Thread Kai Ji
Add-in enqueue/dequeue op burst and build-request skeleton functions for qat crypto driver refactor. Signed-off-by: Kai Ji Acked-by: Fan Zhang --- drivers/common/qat/qat_qp.c | 16 + drivers/common/qat/qat_qp.h | 54 drivers/crypto/qat/qat_

[dpdk-dev] [dpdk-dev v2 0/7] drivers/qat: QAT symmetric crypto datapatch rework

2021-11-01 Thread Kai Ji
This patch reworks QAT symmetric crypto datapatch implementation where each generation request building separated and the crypto operation under the raw datapath api implementation are unified. In addtion this patchset also enables QAT OOP support in raw datapath api implementation. This patch de

Re: [dpdk-dev] [PATCH 2/2] devtools: disable fixes authors in get maintainers

2021-11-01 Thread Thomas Monjalon
01/11/2021 14:35, Ferruh Yigit: > 'get_maintainer.pl' by default returns authors that has fixes in > relevant code, to reduce the output only maintainers from MAINTAINERS > file, disabling fixes authors, by making '--no-fixes' default. Do you mean it is not Cc'ing people who have contributed to th

Re: [dpdk-dev] [PATCH 00/14] refactor MAC handling for hns3 PMD

2021-11-01 Thread Ferruh Yigit
On 10/22/2021 10:19 AM, Min Hu (Connor) wrote: This patchset refactor MAC handling for hns3 PMD, including unicast, multicast and operation for MAC address. Huisong Li (14): net/hns3: rename adding multicast address function in PF net/hns3: rename adding unicast address function in PF n

[dpdk-dev] [PATCH 6/6] net/mlx4: fix dereference after null check

2021-11-01 Thread Harman Kalra
This patch fixes coverity issue by adding a NULL check Coverity issue: 373687 Fixes: d61138d4f0e2 ("drivers: remove direct access to interrupt handle") Signed-off-by: Harman Kalra --- drivers/net/mlx4/mlx4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx4/

[dpdk-dev] [PATCH 5/6] drivers: fix improper use of negative value

2021-11-01 Thread Harman Kalra
This patch fixes coverity issue by adding a check for negative event fd value. Coverity issue: 373722,373721,373709,373702,373696 Fixes: d61138d4f0e2 ("drivers: remove direct access to interrupt handle") Signed-off-by: Harman Kalra --- drivers/bus/pci/linux/pci_vfio.c | 6 ++ drivers/net/m

[dpdk-dev] [PATCH 4/6] drivers: fix argument cannot be negative

2021-11-01 Thread Harman Kalra
This patch fixes coverity issue by adding a check for negative event fd value. Coverity issue: 373723,373720,373719,373718,373715,373714,373713,373710, 373707,373706,373705,373704,373701,373700,373698,373695, 373692,373690,373689 Fixes: d61138d4f0e2 ("drivers: remov

[dpdk-dev] [PATCH 3/6] drivers: fix bad bit shift operation

2021-11-01 Thread Harman Kalra
This patch fixes coverity issue by adding a check for negative value to avoid bad bit shift operation. Coverity issue: 373717,373697,373685 Fixes: d61138d4f0e2 ("drivers: remove direct access to interrupt handle") Signed-off-by: Harman Kalra --- drivers/net/e1000/igb_ethdev.c | 17 +++--

[dpdk-dev] [PATCH 2/6] lib: fix argument cannot be negative

2021-11-01 Thread Harman Kalra
This patch fixes coverity issue by adding a check for negative event fd value. Coverity issue: 373711,373694 Fixes: c2bd9367e18f ("lib: remove direct access to interrupt handle") Signed-off-by: Harman Kalra --- lib/eal/linux/eal_dev.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(

[dpdk-dev] [PATCH 1/6] interrupts: fix argument cannot be negative

2021-11-01 Thread Harman Kalra
This patch fixes coverity issues by adding a check for negative event fd value. Coverity issue: 373716,373699,373693,373688 Fixes: bbbac4cd6ed2 ("interrupts: remove direct access to interrupt handle") Signed-off-by: Harman Kalra --- lib/eal/linux/eal_interrupts.c | 10 ++ 1 file changed

[dpdk-dev] [PATCH] interrupts: fix error log level

2021-11-01 Thread Harman Kalra
Fixing the error logs level, as currently default level is set to debug. Due to this failure is not getting captured. Fixes: b7c984291611 ("interrupts: add allocator and accessors") Signed-off-by: Harman Kalra --- lib/eal/common/eal_common_interrupts.c | 24 1 file chan

[dpdk-dev] [PATCH] common/cnxk: fix device MSIX greater than default value

2021-11-01 Thread Harman Kalra
Handling the case where number of MSIX interrupts are greater than default value i.e. PLT_MAX_RXTX_INTR_VEC_ID. On PCI probe device is queried for supported MSIX interrupts, and respective interrupt resources are reallocated with this value. Same MSIX count should be used while registering new inte

Re: [dpdk-dev] [PATCH v4 3/6] net: advertise no support for keeping flow rules

2021-11-01 Thread Ferruh Yigit
On 11/1/2021 3:06 PM, Andrew Rybchenko wrote: On 10/21/21 9:35 AM, Dmitry Kozlyuk wrote: When RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP capability bit is zero, the specified behavior is the same as it had been before this bit was introduced. Explicitly reset it in all PMDs supporting rte_flow API in order

Re: [dpdk-dev] [PATCH] buildtools: fix build with meson 0.60

2021-11-01 Thread Dmitry Kozlyuk
2021-11-01 16:54 (UTC+), Bruce Richardson: > On Wed, Oct 27, 2021 at 07:45:28PM +0300, Dmitry Kozlyuk wrote: > > 2021-10-27 17:16 (UTC+0100), Bruce Richardson: > > > On Tue, Oct 26, 2021 at 10:32:39PM +0300, Dmitry Kozlyuk wrote: > > > > Meson 0.60 switched the format of uninstalled static

Re: [dpdk-dev] [PATCH v2 2/2] bpf: fix convert API can be undefined

2021-11-01 Thread Stephen Hemminger
On Mon, 1 Nov 2021 16:10:13 + Konstantin Ananyev wrote: > rte_bpf_convert() implementation depends on libpcap. > Right now it is defined only when this library is installed and > RTE_PORT_PCAP is defined. > Fix that by providing for such case stub rte_bpf_convert() > implementation that will

[dpdk-dev] [PATCH v2] buildtools: fix build with meson 0.60

2021-11-01 Thread Bruce Richardson
Meson 0.60 switched the format of uninstalled static libraries to thin archives, that is, they contain only paths to object files, not the files themselves. Files cannot be extracted in this case, resulting in build errors: ar: `x' cannot be used on thin archives. Handle thin archives when in

Re: [dpdk-dev] [PATCH] buildtools: fix build with meson 0.60

2021-11-01 Thread Bruce Richardson
On Wed, Oct 27, 2021 at 07:45:28PM +0300, Dmitry Kozlyuk wrote: > 2021-10-27 17:16 (UTC+0100), Bruce Richardson: > > On Tue, Oct 26, 2021 at 10:32:39PM +0300, Dmitry Kozlyuk wrote: > > > Meson 0.60 switched the format of uninstalled static libraries > > > to thin archives, that is, they contain onl

[dpdk-dev] [Bug 875] meson build fails on POWER9 with gcc 4.8.5

2021-11-01 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=875 Bug ID: 875 Summary: meson build fails on POWER9 with gcc 4.8.5 Product: DPDK Version: unspecified Hardware: POWER OS: Linux Status: UNCONFIRMED Severity: normal

[dpdk-dev] [PATCH v2 2/2] bpf: fix convert API can be undefined

2021-11-01 Thread Konstantin Ananyev
rte_bpf_convert() implementation depends on libpcap. Right now it is defined only when this library is installed and RTE_PORT_PCAP is defined. Fix that by providing for such case stub rte_bpf_convert() implementation that will always return an error. Also move stub for another function (rte_bpf_elf

[dpdk-dev] [PATCH v2 1/2] bpf: fix doxygen comments

2021-11-01 Thread Konstantin Ananyev
Fix typo in doxygen comments for rte_bpf_convert(). Fixes: 2eccf6afbea9 ("bpf: add function to convert classic BPF to DPDK BPF") Signed-off-by: Konstantin Ananyev --- lib/bpf/rte_bpf.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/bpf/rte_bpf.h b/lib/bpf/rte_bpf.h index 0d0a84b130..f

Re: [dpdk-dev] [PATCH v2 1/3] eal/freebsd: fix IOVA mode selection

2021-11-01 Thread Bruce Richardson
On Mon, Nov 01, 2021 at 09:36:59AM +0200, Dmitry Kozlyuk wrote: > FreeBSD EAL selected IOVA mode PA even in --no-huge mode > where PA are not available. Memory zones were created with IOVA > equal to RTE_BAD_IOVA with no indication this field is not usable. > > Change IOVA mode detection: > 1. Alw

Re: [dpdk-dev] [PATCH] bpf: fix convert API can be undefined

2021-11-01 Thread Stephen Hemminger
On Mon, 1 Nov 2021 14:52:46 + Konstantin Ananyev wrote: > rte_bpf_convert() implementation depends on libpcap. > Right now it is defined only when this library is installed and > RTE_PORT_PCAP is defined. > Fix that by providing for such case stub rte_bpf_convert() > implementation that will

[dpdk-dev] [PATCH v2 0/2] few bpf library fixes

2021-11-01 Thread Konstantin Ananyev
v2: - add fix for doxygen comments Konstantin Ananyev (2): bpf: fix doxygen comments bpf: fix convert API can be undefined lib/bpf/bpf_load.c | 18 -- lib/bpf/bpf_stub.c | 45 + lib/bpf/meson.build | 1 + lib/bpf/rte_bpf.h |

Re: [dpdk-dev] [PATCH v9 5/5] distributor: use wait until scheme

2021-11-01 Thread Pattan, Reshma
> -Original Message- > From: dev On Behalf Of Feifei Wang > --- > lib/distributor/rte_distributor_single.c | 10 -- Hi , rte_distributor.c file also has couple of places where similar change can be done, just wondering was that missed ? Thanks, Reshma

Re: [dpdk-dev] [PATCH v4 1/6] ethdev: add capability to keep flow rules on restart

2021-11-01 Thread Dmitry Kozlyuk
> > @@ -1445,6 +1450,8 @@ struct rte_eth_conf { > > #define RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP 0x0001 > > /** Device supports Tx queue setup after device started. */ > > #define RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP 0x0002 > > +/** Device supports keeping flow rules across rest

Re: [dpdk-dev] [PATCH v4 3/6] net: advertise no support for keeping flow rules

2021-11-01 Thread Andrew Rybchenko
On 10/21/21 9:35 AM, Dmitry Kozlyuk wrote: When RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP capability bit is zero, the specified behavior is the same as it had been before this bit was introduced. Explicitly reset it in all PMDs supporting rte_flow API in order to attract the attention of maintainers, who s

Re: [dpdk-dev] [PATCH v4 2/6] ethdev: add capability to keep shared objects on restart

2021-11-01 Thread Andrew Rybchenko
On 10/21/21 9:34 AM, Dmitry Kozlyuk wrote: rte_flow_action_handle_create() did not mention what happens with an indirect action when a device is stopped and started again. It is natural for some indirect actions, like counter, to be persistent. Keeping others at least saves application time and c

Re: [dpdk-dev] Overriding rte_config.h

2021-11-01 Thread Bruce Richardson
On Fri, Oct 29, 2021 at 09:48:30AM -0400, Ben Magistro wrote: > With the transition to meson, what is the best way to provide custom values > to parameters in rte_config.h? When using makefiles, (from memory, I > think) we used common_base as a template that was copied in as a > replacement for de

Re: [dpdk-dev] [PATCH v2] common/cnxk: support BPHY telemetry

2021-11-01 Thread Ferruh Yigit
On 10/22/2021 12:56 PM, Tomasz Duszynski wrote: Add initial support for baseband telemetry. Signed-off-by: Tomasz Duszynski --- v2: - make bphy telemetry available only on platforms supporting baseband - use platform types where possible - remove unused header drivers/common/cnxk/cnxk_telemet

Re: [dpdk-dev] [PATCH v4 1/6] ethdev: add capability to keep flow rules on restart

2021-11-01 Thread Andrew Rybchenko
On 10/21/21 9:34 AM, Dmitry Kozlyuk wrote: Previously, it was not specified what happens to the flow rules when the device is stopped, possibly reconfigured, then started. If flow rules were kept, it could be convenient for application developers, because they wouldn't need to save and restore th

Re: [dpdk-dev] [PATCH] doc: fix typo in coding style

2021-11-01 Thread Bruce Richardson
On Fri, Oct 29, 2021 at 04:19:02PM +0300, Dariusz Sosnowski wrote: > This patch fixes a typo in DPDK Coding Style, in Return Values section, > i.e. replaces "indicated may" with "indicated by". > > Fixes: 36032e46be40 ("doc: add coding style") > Cc: sta...@dpdk.org > > Signed-off-by: Dariusz Sosn

[dpdk-dev] [PATCH] bpf: fix convert API can be undefined

2021-11-01 Thread Konstantin Ananyev
rte_bpf_convert() implementation depends on libpcap. Right now it is defined only when this library is installed and RTE_PORT_PCAP is defined. Fix that by providing for such case stub rte_bpf_convert() implementation that will always return an error. Also move stub for another function (rte_bpf_elf

Re: [dpdk-dev] [PATCH v2] examples/ipsec-secgw: add support for event vector

2021-11-01 Thread Nicolau, Radu
Hi Akhil, I'm even less familiar with this section, so no objection from me neither. On 11/1/2021 10:39 AM, Ananyev, Konstantin wrote: Hi Akhil, Hi Konstantin/Radu, Adds event vector support to inline protocol offload mode. By default vector support is disabled, it can be enabled by using

Re: [dpdk-dev] [PATCH v3 1/4] vfio: drop fallback Linux implementation

2021-11-01 Thread Burakov, Anatoly
On 01-Nov-21 6:27 AM, Xia, Chenbo wrote: Hi Anatoly, -Original Message- From: dev On Behalf Of Anatoly Burakov Sent: Thursday, October 28, 2021 10:15 PM To: dev@dpdk.org Subject: [dpdk-dev] [PATCH v3 1/4] vfio: drop fallback Linux implementation Currently, VFIO support for Linux is co

Re: [dpdk-dev] [PATCH v4 0/6] Flow entites behavior on port restart

2021-11-01 Thread Ferruh Yigit
On 10/26/2021 12:46 PM, Ferruh Yigit wrote: On 10/21/2021 7:34 AM, Dmitry Kozlyuk wrote: It is unspecified whether flow rules and indirect actions are kept when a port is stopped, possibly reconfigured, and started again. Vendors approach the topic differently, e.g. mlx5 and i40e PMD disagree in

[dpdk-dev] [PATCH 2/2] devtools: disable fixes authors in get maintainers

2021-11-01 Thread Ferruh Yigit
'get_maintainer.pl' by default returns authors that has fixes in relevant code, to reduce the output only maintainers from MAINTAINERS file, disabling fixes authors, by making '--no-fixes' default. Signed-off-by: Ferruh Yigit --- devtools/get-maintainer.sh | 2 +- 1 file changed, 1 insertion(+),

[dpdk-dev] [PATCH 1/2] devtools: remove ugly workaround from get maintainers

2021-11-01 Thread Ferruh Yigit
Linux kernel 'get_maintainer.pl' script supports running out of Linux tree since commit 31bb82c9caa9 ("get_maintainer: allow usage outside of kernel tree") As commit is a few years old now, integrating it to DPDK and removing ugly workaround for it. Signed-off-by: Ferruh Yigit --- Cc: antonio.ni

[dpdk-dev] [Bug 873] net/iavf build failure in Windows with clang

2021-11-01 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=873 Ali Alnubani (alia...@nvidia.com) changed: What|Removed |Added Status|CONFIRMED |RESOLVED Resolution|--

[dpdk-dev] [PATCH v6 6/7] examples/ipsec-secgw: add ethdev reset callback

2021-11-01 Thread Radu Nicolau
Applications should not quietly ignore an ethdev reset event. Register an event handler for ethdev reset callback RTE_ETH_EVENT_INTR_RESET that prints a message and quits the application. Signed-off-by: Declan Doherty Signed-off-by: Radu Nicolau Acked-by: Akhil Goyal --- examples/ipsec-secgw/i

[dpdk-dev] [PATCH v6 7/7] examples/ipsec-secgw: add support for additional algorithms

2021-11-01 Thread Radu Nicolau
Add support for AES-GMAC, AES_CTR, AES_XCBC_MAC, AES_CCM, CHACHA20_POLY1305 Signed-off-by: Declan Doherty Signed-off-by: Radu Nicolau Acked-by: Akhil Goyal --- doc/guides/rel_notes/release_21_11.rst | 2 + doc/guides/sample_app_ug/ipsec_secgw.rst | 3 +- examples/ipsec-secgw/ipsec.h

[dpdk-dev] [PATCH v6 1/7] examples/ipsec-secgw: add stats interval argument

2021-11-01 Thread Radu Nicolau
Add -t for stats screen update interval, disabled by default. Signed-off-by: Radu Nicolau Acked-by: Hemant Agrawal Acked-by: Anoob Joseph --- doc/guides/sample_app_ug/ipsec_secgw.rst | 5 examples/ipsec-secgw/ipsec-secgw.c | 29 examples/ipsec-secgw/ipsec-s

[dpdk-dev] [PATCH v6 5/7] examples/ipsec-secgw: define initial ESN value

2021-11-01 Thread Radu Nicolau
New option added to the SA configuration arguments that allows setting an arbitrary start value for ESN. For example in the SA below ESN will be enabled and first egress IPsec packet will have the ESN value 1: sa out 15 cipher_algo null auth_algo null mode ipv4-tunnel \ src 172.16.1.5 dst 172

[dpdk-dev] [PATCH v6 2/7] examples/ipsec-secgw: update create inline session

2021-11-01 Thread Radu Nicolau
Rework create inline session function as to update the session configuration parameters before create session is called. Also updated the rss key array size to prevent buffers overflows with PMDs that copy more than 40 bytes. Signed-off-by: Radu Nicolau Acked-by: Akhil Goyal --- examples/ipsec-

[dpdk-dev] [PATCH v6 4/7] examples/ipsec-secgw: support telemetry

2021-11-01 Thread Radu Nicolau
Add telemetry support to the IPsec GW sample app and add support for per SA telemetry when using IPsec library. Signed-off-by: Declan Doherty Signed-off-by: Radu Nicolau --- doc/guides/rel_notes/release_21_11.rst | 4 + doc/guides/sample_app_ug/ipsec_secgw.rst | 11 + examples/ipsec-secgw/

[dpdk-dev] [PATCH v6 3/7] examples/ipsec-secgw: add support for inline crypto UDP encapsulation

2021-11-01 Thread Radu Nicolau
Enable UDP encapsulation for both transport and tunnel modes for the inline crypto offload path. Signed-off-by: Radu Nicolau Acked-by: Akhil Goyal --- doc/guides/sample_app_ug/ipsec_secgw.rst | 3 ++- examples/ipsec-secgw/ipsec.c | 33 +--- examples/ipsec-secgw/

  1   2   >