[dpdk-dev] [Bug 803] [dpdk-21.11]vxlan/vxlan_ipv6_checksum_offload:After dut sets the vxlan ports and receives the ipv6 packet, the packet is not forwarded

2021-09-01 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=803 Bug ID: 803 Summary: [dpdk-21.11]vxlan/vxlan_ipv6_checksum_offload:After dut sets the vxlan ports and receives the ipv6 packet, the packet is not forwarded Product: DPDK V

Re: [dpdk-dev] [PATCH v2] examples/vhost: fix memory leak on forwarding packets

2021-09-01 Thread Yang, YvonneX
> -Original Message- > From: dev On Behalf Of Wenwu Ma > Sent: Friday, August 27, 2021 10:01 PM > To: dev@dpdk.org > Cc: maxime.coque...@redhat.com; Xia, Chenbo ; > Jiang, Cheng1 ; Hu, Jiayu ; > Ma, WenwuX ; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH v2] examples/vhost: fix memory lea

Re: [dpdk-dev] [RFC] Control packet event adapter and FIFO library

2021-09-01 Thread Jerin Jacob
On Thu, Sep 2, 2021 at 10:02 AM Kaladi, Ashok K wrote: > > Hi Jerin, Hi Ashok, > > > -Original Message- > From: Jerin Jacob > Sent: Wednesday, September 1, 2021 1:20 PM > To: Kaladi, Ashok K ; Harman Kalra > ; Nithin Dabilpuram ; Yigit, > Ferruh ; Burakov, Anatoly > ; Richardson, Bru

Re: [dpdk-dev] [PATCH] eal: make rte_lcore_cpuset and rte_lcore_to_cpu_id stable

2021-09-01 Thread Andrew Rybchenko
On 9/1/21 8:16 PM, Stephen Hemminger wrote: > >>> /** >>> - * @warning >>> - * @b EXPERIMENTAL: this API may change without prior notice. >>> - * >>> * Return the cpuset for a given lcore. >>> * @param lcore_id >>> * the targeted lcore, which MUST be between 0 and RTE_MAX_LCORE-1. >>> *

[dpdk-dev] [RFC PATCH v1 5/5] lib/distributor: use wait until scheme

2021-09-01 Thread Feifei Wang
Instead of polling for bufptr64 to be updated, use rte_wait_until_part_equal for this case. Signed-off-by: Feifei Wang Reviewed-by: Ruifeng Wang --- lib/distributor/rte_distributor_single.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/distributor/rte_distri

[dpdk-dev] [RFC PATCH v1 4/5] lib/bpf: use wait until scheme for Rx/Tx iteration

2021-09-01 Thread Feifei Wang
First, fix the bug that keyword const of func arg should be after "*". This is because const before "*" means the value of "cbi" should not be changed. But we should monitor that cbi->use changed and then we can jump out of loop. Second, instead of polling for cbi->use to be updated, use wait_unti

[dpdk-dev] [RFC PATCH v1 3/5] eal: use wait until scheme for mcslock

2021-09-01 Thread Feifei Wang
Instead of polling for mcslock to be updated, use wait_until_unequal for this case. Signed-off-by: Feifei Wang Reviewed-by: Ruifeng Wang --- lib/eal/include/generic/rte_mcslock.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/eal/include/generic/rte_mcslock.h

[dpdk-dev] [RFC PATCH v1 2/5] eal: use wait until scheme for read pflock

2021-09-01 Thread Feifei Wang
Instead of polling for read pflock update, use wait_until_part_equal for this case. Signed-off-by: Feifei Wang Reviewed-by: Ruifeng Wang --- lib/eal/include/generic/rte_pflock.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/eal/include/generic/rte_pflock.h b/lib/

[dpdk-dev] [RFC PATCH v1 1/5] eal: add new API for wait until scheme

2021-09-01 Thread Feifei Wang
For 'wait until' scheme, add new APIs for more cases: 1. add wait_until_unequal API 2. add wait_until_part_equal API Signed-off-by: Feifei Wang Reviewed-by: Ruifeng Wang --- lib/eal/arm/include/rte_pause_64.h | 271 +++- lib/eal/include/generic/rte_pause.h | 309 +++

[dpdk-dev] [RFC PATCH v1 0/5] add new API for wait until scheme

2021-09-01 Thread Feifei Wang
Add new API for wait_until scheme, and apply this new API into lib to replace rte_pause. Feifei Wang (5): eal: add new API for wait until scheme eal: use wait until scheme for read pflock eal: use wait until scheme for mcslock lib/bpf: use wait until scheme for Rx/Tx iteration lib/distri

Re: [dpdk-dev] [PATCH] net/bnxt: fix double allocation of ring groups

2021-09-01 Thread Ajit Khaparde
On Tue, Aug 31, 2021 at 8:39 PM Kalesh A P wrote: > > From: Kalesh AP > > After commit "d68249f88266", driver allocates ring groups in > bnxt_alloc_hwrm_rx_ring(). But during port start, driver invokes > bnxt_alloc_hwrm_rx_ring() followed by bnxt_alloc_all_hwrm_ring_grps(). > This will cause the

Re: [dpdk-dev] [PATCH] net/bnxt: fix ring group free

2021-09-01 Thread Ajit Khaparde
On Sun, Aug 29, 2021 at 8:37 PM Kalesh A P wrote: > > From: Kalesh AP > > Added an invalid fw_grp_id check inside bnxt_hwrm_ring_grp_free(). > This will prevent invalid fw_grp_id to be passed to the FW which can > result in an error. > This fixes the following failure in the "port stop" -> "port

Re: [dpdk-dev] [PATCH 0/3] bnxt fixes

2021-09-01 Thread Ajit Khaparde
On Mon, Aug 23, 2021 at 12:51 AM Kalesh A P wrote: > > From: Kalesh AP > > Please apply. > > Kalesh AP (3): > net/bnxt: fix Rx mbuf VLAN in scalar Rx > net/bnxt: check FW capability for VLAN offloads > net/bnxt: fix VLAN indication in Rx mbuf Patchset applied to dpdk-next-net-brcm. > > dr

Re: [dpdk-dev] [RFC] Control packet event adapter and FIFO library

2021-09-01 Thread Kaladi, Ashok K
Hi Jerin, -Original Message- From: Jerin Jacob Sent: Wednesday, September 1, 2021 1:20 PM To: Kaladi, Ashok K ; Harman Kalra ; Nithin Dabilpuram ; Yigit, Ferruh ; Burakov, Anatoly ; Richardson, Bruce ; Ananyev, Konstantin ; Thomas Monjalon ; David Marchand Cc: jer...@marvell.com;

[dpdk-dev] [PATCH 27/27] net/cnxk: reflect globally enabled offloads in queue conf

2021-09-01 Thread Nithin Dabilpuram
Reflect globally enabled Rx and Tx offloads in queue conf. Also fix issue with lmt data prepare for multi seg. Fixes: a24af6361e37 ("net/cnxk: add Tx queue setup and release") Fixes: a86144cd9ded ("net/cnxk: add Rx queue setup and release") Fixes: 305ca2c4c382 ("net/cnxk: support multi-segment vec

[dpdk-dev] [PATCH 26/27] net/cnxk: add devargs for configuring channel mask

2021-09-01 Thread Nithin Dabilpuram
From: Satheesh Paul This patch adds support to configure channel mask which will be used by rte flow when adding flow rules with inline IPsec action. Signed-off-by: Satheesh Paul --- doc/guides/nics/cnxk.rst | 20 +++ drivers/net/cnxk/cnxk_ethdev_sec.c | 39 ++

[dpdk-dev] [PATCH 25/27] net/cnxk: add crypto capabilities for AES CBC and HMAC SHA1

2021-09-01 Thread Nithin Dabilpuram
From: Srujana Challa Adds capabitlities for AES_CBC and HMAC_SHA1 for 9k security offload. Signed-off-by: Srujana Challa --- drivers/net/cnxk/cn10k_ethdev_sec.c | 40 + drivers/net/cnxk/cn9k_ethdev_sec.c | 40 + 2 files c

[dpdk-dev] [PATCH 24/27] net/cnxk: allow zero udp6 checksum for non inline device

2021-09-01 Thread Nithin Dabilpuram
From: Srujana Challa Sets IP6_UDP_OPT in NIX RX config to allow optional UDP checksum for IPv6 in case of security offload. Signed-off-by: Srujana Challa --- drivers/net/cnxk/cnxk_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/

[dpdk-dev] [PATCH 23/27] net/cnxk: update ethertype for mixed IPsec tunnel versions

2021-09-01 Thread Nithin Dabilpuram
From: Srujana Challa Adds support to update ethertype for mixed IPsec tunnel versions. And also sets et_overwr for inbound IPsec. Signed-off-by: Srujana Challa --- drivers/common/cnxk/cnxk_security.c | 1 + drivers/net/cnxk/cn10k_ethdev.h | 3 ++- drivers/net/cnxk/cn10k_ethdev_sec.c | 2

[dpdk-dev] [PATCH 22/27] net/cnxk: add cn10k IPsec transport mode support

2021-09-01 Thread Nithin Dabilpuram
From: Srujana Challa Adds IPsec transport mode capability to rte security capabilities. Signed-off-by: Srujana Challa --- drivers/net/cnxk/cn10k_ethdev_sec.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/net/cnxk/cn10k_ethdev_sec.c b/drivers/net/cnxk/cn

[dpdk-dev] [PATCH 21/27] net/cnxk: add cn9k anti replay support for security offload

2021-09-01 Thread Nithin Dabilpuram
From: Srujana Challa Adds anti replay support for cn9k platform. Signed-off-by: Srujana Challa --- drivers/net/cnxk/cn9k_ethdev.h | 3 +++ drivers/net/cnxk/cn9k_ethdev_sec.c | 29 drivers/net/cnxk/cn9k_rx.h | 54 +- 3 files

[dpdk-dev] [PATCH 20/27] net/cnxk: add cn10k Tx support for security offload

2021-09-01 Thread Nithin Dabilpuram
Add support to create and submit CPT instructions on Tx. Signed-off-by: Nithin Dabilpuram --- doc/guides/rel_notes/release_21_11.rst | 5 + drivers/event/cnxk/cn10k_eventdev.c | 15 +- drivers/event/cnxk/cn10k_worker.h| 74 +- drivers/event/cnxk/cn10k_worker_tx_enq

[dpdk-dev] [PATCH 19/27] net/cnxk: add cn10k Rx support for security offload

2021-09-01 Thread Nithin Dabilpuram
Add support to receive CPT processed packets on Rx via second pass. Signed-off-by: Nithin Dabilpuram --- drivers/event/cnxk/cn10k_eventdev.c | 80 ++-- drivers/event/cnxk/cn10k_worker.h | 73 +++- drivers/event/cnxk/cn10k_worker_deq.c | 2 +- drivers/event/cnxk/cn10k_

[dpdk-dev] [PATCH 18/27] net/cnxk: add cn9k Tx support for security offload

2021-09-01 Thread Nithin Dabilpuram
Add support to create and submit CPT instructions on Tx. Signed-off-by: Nithin Dabilpuram Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn9k_eventdev.c | 27 +- drivers/event/cnxk/cn9k_worker.h | 164 +- drivers/event/cnxk/cn9k_worker_dual_tx_enq.c

[dpdk-dev] [PATCH 17/27] net/cnxk: add cn9k Rx support for security offload

2021-09-01 Thread Nithin Dabilpuram
Add support to receive CPT processed packets on Rx. Signed-off-by: Nithin Dabilpuram --- drivers/event/cnxk/cn9k_eventdev.c | 153 drivers/event/cnxk/cn9k_worker.h| 7 +- drivers/event/cnxk/cn9k_worker_deq.c| 2 +- drivers/event/cnxk/cn9k_wor

[dpdk-dev] [PATCH 16/27] net/cnxk: add inline security support for cn10k

2021-09-01 Thread Nithin Dabilpuram
Add support for inline inbound and outbound IPSec for SA create, destroy and other NIX / CPT LF configurations. This patch also changes dpdk-devbind.py to list new inline device as misc device. Signed-off-by: Nithin Dabilpuram --- doc/guides/nics/cnxk.rst | 102 drivers

[dpdk-dev] [PATCH 15/27] net/cnxk: add inline security support for cn9k

2021-09-01 Thread Nithin Dabilpuram
Add support for inline inbound and outbound IPSec for SA create, destroy and other NIX / CPT LF configurations. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn9k_ethdev.c | 23 +++ drivers/net/cnxk/cn9k_ethdev.h | 61 +++ drivers/net/cnxk/cn9k_ethdev_sec.c | 31

[dpdk-dev] [PATCH 14/27] common/cnxk: add inline IPsec support in rte flow

2021-09-01 Thread Nithin Dabilpuram
From: Satheesh Paul Add support to configure flow rules with inline IPsec action. Signed-off-by: Satheesh Paul --- drivers/common/cnxk/roc_nix_inl.h | 4 drivers/common/cnxk/roc_nix_inl_dev.c | 3 +++ drivers/common/cnxk/roc_nix_inl_priv.h | 3 +++ drivers/common/cnxk/roc_npc_mca

[dpdk-dev] [PATCH 13/27] common/cnxk: add anti-replay check implementation for cn9k

2021-09-01 Thread Nithin Dabilpuram
From: Srujana Challa Adds anti replay helper for cn9k platform. Signed-off-by: Srujana Challa --- drivers/common/cnxk/cnxk_security_ar.h | 184 + 1 file changed, 184 insertions(+) create mode 100644 drivers/common/cnxk/cnxk_security_ar.h diff --git a/drivers/c

[dpdk-dev] [PATCH 12/27] common/cnxk: setup aura bp conf based on nix

2021-09-01 Thread Nithin Dabilpuram
Currently only nix0 conf is setup in Aura for backpressure. This patch adds support for nix1 as well. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_fc.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/drivers/common/cnxk/roc_nix_fc.

[dpdk-dev] [PATCH 11/27] common/cnxk: add cq enable support in nix Tx path

2021-09-01 Thread Nithin Dabilpuram
From: Kommula Shiva Shankar This patch provides applications to add cq support in Tx path Signed-off-by: Kommula Shiva Shankar --- drivers/common/cnxk/roc_nix.h | 2 ++ drivers/common/cnxk/roc_nix_queue.c | 4 2 files changed, 6 insertions(+) diff --git a/drivers/common/cnxk/roc_ni

[dpdk-dev] [PATCH 10/27] common/cnxk: restore nix sqb pool limit before destroy

2021-09-01 Thread Nithin Dabilpuram
Restore SQB aura/pool limit before destroying SQB to be able to drain all the buffers from the aura. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_queue.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/common/cnxk/roc_nix_queue.c b/drivers/common/cnxk/roc_ni

[dpdk-dev] [PATCH 09/27] common/cnxk: align cpt lf enable/disable sequence

2021-09-01 Thread Nithin Dabilpuram
For CPT LF IQ enable, set CPT_LF_CTL[ENA] before setting CPT_LF_INPROG[EENA] to true. For CPT LF IQ disable, align sequence to that of HRM. Also this patch aligns space for instructions in CPT LF to ROC_ALIGN to make complete memory cache aligned and has other minor fixes/additions. Signed-off-b

[dpdk-dev] [PATCH 07/27] common/cnxk: add nix inline inbound and outbound support API

2021-09-01 Thread Nithin Dabilpuram
Add API to support setting up nix inline inbound and nix inline outbound. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/hw/cpt.h | 8 + drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_api.h| 48 +-- drivers/common/cnxk/roc_constants.h | 58 ++

[dpdk-dev] [PATCH 08/27] common/cnxk: dump cpt lf registers on error intr

2021-09-01 Thread Nithin Dabilpuram
Dump CPT LF registers on error interrupt. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_cpt.c | 5 - drivers/common/cnxk/roc_cpt_debug.c | 32 ++-- drivers/common/cnxk/roc_cpt_priv.h | 1 + 3 files changed, 35 insertions(+), 3 deletions(-)

[dpdk-dev] [PATCH 06/27] common/cnxk: add nix inline device init and fini

2021-09-01 Thread Nithin Dabilpuram
Add support to init and fini nix inline device with NIX LF, SSO LF and SSOW LF for inline inbound IPSec in CN10K. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/meson.build| 1 + drivers/common/cnxk/roc_api.h | 2 + drivers/common/cnxk/roc_cpt.c | 7 +-

[dpdk-dev] [PATCH 05/27] common/cnxk: add nix inline device irq API

2021-09-01 Thread Nithin Dabilpuram
Add API to setup nix inline device IRQ's. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_api.h | 3 + drivers/common/cnxk/roc_irq.c | 7 +- drivers/common/cnxk/roc_nix_inl.h | 10 + drivers/comm

[dpdk-dev] [PATCH 04/27] common/cnxk: change nix debug API and queue API interface

2021-09-01 Thread Nithin Dabilpuram
Change nix debug API and queue API interface for use by internal nix inline device initialization. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix.c | 2 +- drivers/common/cnxk/roc_nix_debug.c | 118 +++- drivers/common/cnxk/roc_nix_priv.h

[dpdk-dev] [PATCH 03/27] common/cnxk: allow reuse of SSO API for inline dev

2021-09-01 Thread Nithin Dabilpuram
Rework interface of sso internal functions to use for nix inline dev's sso LF's. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_sso.c | 52 -- drivers/common/cnxk/roc_sso_priv.h | 9 +++ 2 files changed, 42 insertions(+), 19 deletions(-

[dpdk-dev] [PATCH 02/27] common/cnxk: add helper API to dump cpt parse header

2021-09-01 Thread Nithin Dabilpuram
Add helper API to dump cpt parse header. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_cpt.h | 2 ++ drivers/common/cnxk/roc_cpt_debug.c | 31 +++ drivers/common/cnxk/version.map | 1 + 3 files changed, 34 insertions(+) diff --git a/drivers

[dpdk-dev] [PATCH 01/27] common/cnxk: add security support for cn9k fast path

2021-09-01 Thread Nithin Dabilpuram
From: Srujana Challa Add security support to init cn9k fast path SA data for AES GCM and AES CBC + HMAC SHA1. Signed-off-by: Srujana Challa Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/cnxk_security.c | 211 drivers/common/cnxk/cnxk_security.h

[dpdk-dev] [PATCH 00/27] net/cnxk: support for inline ipsec

2021-09-01 Thread Nithin Dabilpuram
Support for inline ipsec in CN9K event mode and in Cn10K event mode and poll mode. Depends-on: series-18524 ("Crypto adapter support for Marvell CNXK driver) Depends-on: series-18262 ("security: Improve inline fast path routines") Depends-on: series-18562 ("add lookaside IPsec additional features)

[dpdk-dev] [PATCH v2] net/ice: support IEEE 1588 PTP for E810

2021-09-01 Thread Simei Su
Add ice support for new ethdev APIs to enable/disable and read/write/adjust IEEE1588 PTP timstamps. Currently, only scalar path supports 1588 PTP, vector path doesn't. The example command for running ptpclient is as below: ./dpdk-ptpclient -c 1 -n 3 --force-max-simd-bitwidth=64 -- -T 0 -p 0x1 Sig

Re: [dpdk-dev] [RFC PATCH v2 0/7] heterogeneous computing library

2021-09-01 Thread Elena Agostini
> -Original Message- > From: Wang, Haiyue > Sent: Sunday, August 29, 2021 7:33 AM > To: Jerin Jacob ; NBU-Contact-Thomas Monjalon > > Cc: Jerin Jacob ; dpdk-dev ; Stephen > Hemminger ; David Marchand > ; Andrew Rybchenko > ; Honnappa Nagarahalli > ; Yigit, Ferruh ; > techbo...@dpdk.org;

Re: [dpdk-dev] [RFC v2] eal: simplify the implementation of rte_ctrl_thread_create

2021-09-01 Thread Mattias Rönnblom
On 2021-08-25 17:31, Honnappa Nagarahalli wrote: On 2021-08-24 23:30, Stephen Hemminger wrote: On Tue, 24 Aug 2021 20:03:03 + Honnappa Nagarahalli wrote: One difference between this implementation and the previous one is this busy loop. rte_pause() relaxes the cpu, but will not make t

Re: [dpdk-dev] [PATCH v2 5/6] app/test: test dmadev instance failure handling

2021-09-01 Thread Mattias Rönnblom
On 2021-09-01 18:32, Bruce Richardson wrote: Add a series of tests to inject bad copy operations into a dmadev to test the error handling and reporting capabilities. Various combinations of errors in various positions in a burst are tested, as are errors in bursts with fence flag set, and multipl

[dpdk-dev] [PATCH] mbuf: fix typo in comment

2021-09-01 Thread Stephen Hemminger
Misspelling of 'copied' Fixes: c3a90c381daa ("mbuf: add a copy routine") Signed-off-by: Stephen Hemminger --- lib/mbuf/rte_mbuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mbuf/rte_mbuf.h b/lib/mbuf/rte_mbuf.h index a555f216aeeb..c8994e747169 100644 --- a/lib/mbuf/r

Re: [dpdk-dev] [RFC] Control packet event adapter and FIFO library

2021-09-01 Thread Mattias Rönnblom
On 2021-09-01 07:41, Kaladi, Ashok K wrote: Dear dpdk-dev team, We would like to propose the following RFC for your review. A user space application may need access to the packets handled by eventdev based DPDK application. This application doesn't use mbuf or eventdev based DPDK APIs. Presentl

Re: [dpdk-dev] [RFC v2] eal: simplify the implementation of rte_ctrl_thread_create

2021-09-01 Thread Honnappa Nagarahalli
> > > >> > >> On 2021-08-24 23:30, Stephen Hemminger wrote: > >>> On Tue, 24 Aug 2021 20:03:03 + > >>> Honnappa Nagarahalli wrote: > >>> > > One difference between this implementation and the previous one is > > this busy loop. rte_pause() relaxes the cpu, but will not make the >

Re: [dpdk-dev] [PATCH] net/af_packet: try to reinsert the stripped vlan tag

2021-09-01 Thread Stephen Hemminger
On Wed, 1 Sep 2021 22:07:22 +0300 Tudor Cornea wrote: > Indeed, the vlan insertion could be a costly operation. We should probably > do it only if the user specifically asks to have the vlan tag in the packet. > Otherwise, af_packet PMD users might pay a price in terms of performance > for someth

[dpdk-dev] [RFC] devbind: conform to PEP 8 recommended style

2021-09-01 Thread Stephen Hemminger
This fixes most of the warnings from the Flake8 style checker. The ones remaing are long lines (we allow > 79 characters) and a line break warning. The line break style changed in later versions of PEP 8 and the tool is not updated. https://www.flake8rules.com/rules/W503.html Signed-off-by: Step

Re: [dpdk-dev] [PATCH] doc: clarify implicit filtering in transfer rules

2021-09-01 Thread Ori Kam
Hi Andrew, PSB Thanks, Ori > -Original Message- > From: dev On Behalf Of Andrew Rybchenko > Sent: Wednesday, September 1, 2021 6:11 PM > > As per existing documentation, attribute "transfer", quote, "complements > the behavior of some pattern items such as > RTE_FLOW_ITEM_TYPE_PHY_PORT

Re: [dpdk-dev] [PATCH 0/2] eal/windows: restore mistakenly hidden API

2021-09-01 Thread Menon, Ranjit
On 8/28/2021 7:16 PM, Dmitry Kozlyuk wrote: Some functions were not exported, and UUID API not even built on Windows for no compelling reason. This hasn't been an issue so far, because only static build is currently available on Windows, however: 1) it's better to have fewer differences between p

Re: [dpdk-dev] [PATCH v2 2/6] app/test: add basic dmadev instance tests

2021-09-01 Thread Mattias Rönnblom
On 2021-09-01 18:32, Bruce Richardson wrote: Run basic sanity tests for configuring, starting and stopping a dmadev instance to help validate drivers. This also provides the framework for future tests for data-path operation. Signed-off-by: Bruce Richardson --- app/test/test_dmadev.c | 81 +++

Re: [dpdk-dev] [PATCH] rib: promote experimental API's to stable

2021-09-01 Thread Medvedkin, Vladimir
Hi Stephen, Thanks! Acked-by: Vladimir Medvedkin On 31/08/2021 23:49, Stephen Hemminger wrote: The rib and rib6 API's have been in since 19.11 and should be marked as stable. Signed-off-by: Stephen Hemminger --- lib/rib/rte_rib.h | 18 -- lib/rib/rte_rib6.h | 18 --

Re: [dpdk-dev] [PATCH] net/af_packet: try to reinsert the stripped vlan tag

2021-09-01 Thread Tudor Cornea
Indeed, the vlan insertion could be a costly operation. We should probably do it only if the user specifically asks to have the vlan tag in the packet. Otherwise, af_packet PMD users might pay a price in terms of performance for something they didn't ask for. I was thinking of avoiding having to c

Re: [dpdk-dev] [PATCH v10 0/3] devtools: scripts to count and track symbols

2021-09-01 Thread Aaron Conole
Stephen Hemminger writes: > On Wed, 01 Sep 2021 08:31:27 -0400 > Aaron Conole wrote: > >> $ flake8 ./usertools/dpdk-devbind.py | sed >> 's@./usertools/dpdk-devbind.py[:0-9]* @@' | sort -u >> E128 continuation line under-indented for visual indent >> E302 expected 2 blank lines, found 1 >>

Re: [dpdk-dev] [PATCH v2 06/15] app/testpmd: add common fwd wrapper function

2021-09-01 Thread Xueming(Steven) Li
> -Original Message- > From: dev On Behalf Of Xueming(Steven) Li > Sent: Sunday, August 29, 2021 3:08 PM > To: Jerin Jacob > Cc: Jack Min ; dpdk-dev ; Xiaoyun Li > > Subject: Re: [dpdk-dev] [PATCH v2 06/15] app/testpmd: add common fwd wrapper > function > > > > > -Original Mes

[dpdk-dev] [PATCH 10/14] net/bnxt: tf core SRAM Manager

2021-09-01 Thread Venkat Duvvuru
From: Farah Smith Adjust info message to debug level to prevent excessive logging. Signed-off-by: Farah Smith Reviewed-by: Michael Baucom --- drivers/net/bnxt/tf_core/tf_tbl_sram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/tf_core/tf_tbl_sram.c b/dr

[dpdk-dev] [PATCH 12/14] net/bnxt: sram manager shared session

2021-09-01 Thread Venkat Duvvuru
From: Farah Smith Fix shared session support issues due to SRAM manager additions. Shared session does not support slices within RM blocks. Calculate resources required without slices and determine base addresses using old methods for the shared session. Signed-off-by: Farah Smith Reviewed-by

[dpdk-dev] [PATCH 14/14] net/bnxt: add support for testpmd co-existence

2021-09-01 Thread Venkat Duvvuru
Currently, testpmd support in ULP is enabled only during compilation time. This patch adds support for testpmd during runtime using devarg "testpmd". Signed-off-by: Venkat Duvvuru Reviewed-by: Kishore Padmanabha --- drivers/net/bnxt/bnxt.h | 3 ++ drivers/net/bnxt/bnxt_ethdev.c

[dpdk-dev] [PATCH 11/14] net/bnxt: dynamically allocate space for EM defrag function

2021-09-01 Thread Venkat Duvvuru
From: Randy Schacher Alter defrag function to dynamically allocate and delete free_list and adj_list buffers. Signed-off-by: Randy Schacher Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/dpool.c | 38 +--- 1 file changed, 25 insertions(+), 13 deletio

[dpdk-dev] [PATCH 08/14] net/bnxt: add wild card TCAM byte order for Thor

2021-09-01 Thread Venkat Duvvuru
From: Kishore Padmanabha The wild card tcam for Thor platform is different from the profile tcam byte order. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Shuanglin Wang Reviewed-by: Michael Baucom Reviewed-by: Ajit Khaparde --- .../generic_templates/ulp_temp

[dpdk-dev] [PATCH 05/14] net/bnxt: add flow templates support for Thor

2021-09-01 Thread Venkat Duvvuru
From: Kishore Padmanabha Template adds non-VFR based support for testpmd with: matches to include - DMAC, SIP, DIP, Proto, Sport, Dport - SIP, DIP, Proto, Sport, Dport actions: - count, drop Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Mike Baucom --- drivers/

[dpdk-dev] [PATCH 02/14] net/bnxt: enable dpool allocator

2021-09-01 Thread Venkat Duvvuru
From: Peter Spreadborough Enable dynamic entry allocator for EM SRAM entries. Deprecate static entry allocator code. Signed-off-by: Peter Spreadborough Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core/tf_device_p58.c | 4 - drivers/net/bnxt/tf_core/tf_em.h | 10 -

[dpdk-dev] [PATCH 01/14] net/bnxt: tf core index table updates

2021-09-01 Thread Venkat Duvvuru
From: Farah Smith Remove unused shadow table functionality. Signed-off-by: Farah Smith Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/tf_core.c | 65 -- drivers/net/bnxt/tf_core/tf_core.h | 103 +-- drivers/net/bnxt/tf_core/tf_device

[dpdk-dev] [PATCH 00/14] enhancements to host based flow table management

2021-09-01 Thread Venkat Duvvuru
This patch set adds support for new offload features/enhancments for Thor adapters like VF representor support, new flow matches/actions & dynamic SRAM manager support. Farah Smith (4): net/bnxt: tf core index table updates net/bnxt: add Thor SRAM mgr model net/bnxt: tf core SRAM Manager n

[dpdk-dev] [PATCH 03/14] net/bnxt: add flow meter drop counter support

2021-09-01 Thread Venkat Duvvuru
From: Jay Ding - Add flow meter drop counter support for Thor. Signed-off-by: Jay Ding Reviewed-by: Farah Smith Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/tf_core/cfa_resource_types.h | 5 +- drivers/net/bnxt/tf_core/tf_core.h| 8 +- drivers/net/bnxt/tf_core/tf_device_p58.

[dpdk-dev] [PATCH 04/14] net/bnxt: add Thor SRAM mgr model

2021-09-01 Thread Venkat Duvvuru
From: Farah Smith Add dynamic SRAM manager allocation support. Signed-off-by: Farah Smith Reviewed-by: Shahaji Bhosle Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/ll.c | 3 + drivers/net/bnxt/tf_core/ll.h | 50 +- drivers/net/bnxt/tf_core/meson.bui

Re: [dpdk-dev] Running DPDK application with non-previlege mode

2021-09-01 Thread Thomas Monjalon
01/09/2021 18:09, Kamaraj P: > Thanks Bruce. > > BTW we are trying to run our application as docker container. > We may need to pass the parameters(system capability) along with docker > command line to mount the hugepages ? > Like this : https://github.com/usnistgov/ndn-dpdk/blob/main/docs/Docker

Re: [dpdk-dev] [PATCH 2/2] eal/windows: fix export list

2021-09-01 Thread William Tu
On Sat, Aug 28, 2021 at 7:16 PM Dmitry Kozlyuk wrote: > > * Version and randomness API were not added to .def file by mistake, > which is why they were later excluded from the export list. > * Device API stubs were added to EAL but not exported. > > Fixes: edd66d57d55c ("eal/windows: add random

Re: [dpdk-dev] [PATCH 1/2] eal: remove Windows-specific list of common files

2021-09-01 Thread William Tu
On Sat, Aug 28, 2021 at 7:16 PM Dmitry Kozlyuk wrote: > > The majority of common EAL sources that are built for all platforms were > listed separately for Windows and for other OS. It seems that developers > adding modules to EAL perceived this as if Windows supported > only a limited subset of mo

Re: [dpdk-dev] [PATCH v10 0/3] devtools: scripts to count and track symbols

2021-09-01 Thread Stephen Hemminger
On Wed, 01 Sep 2021 08:31:27 -0400 Aaron Conole wrote: > $ flake8 ./usertools/dpdk-devbind.py | sed > 's@./usertools/dpdk-devbind.py[:0-9]* @@' | sort -u > E128 continuation line under-indented for visual indent > E302 expected 2 blank lines, found 1 > E305 expected 2 blank lines after c

Re: [dpdk-dev] [PATCH] eal: make rte_lcore_cpuset and rte_lcore_to_cpu_id stable

2021-09-01 Thread Stephen Hemminger
> > /** > > - * @warning > > - * @b EXPERIMENTAL: this API may change without prior notice. > > - * > > * Return the cpuset for a given lcore. > > * @param lcore_id > > * the targeted lcore, which MUST be between 0 and RTE_MAX_LCORE-1. > > * @return > > * The cpuset of that lcore >

Re: [dpdk-dev] [PATCH v3 3/4] mbuf: make rte_mbuf_tx_offload as stable

2021-09-01 Thread Stephen Hemminger
On Wed, 1 Sep 2021 09:45:22 +0300 Andrew Rybchenko wrote: > On 8/31/21 10:35 PM, Stephen Hemminger wrote: > > This function should be made stable now. > > > > Also, fix the docbook comment format. > > > > Fixes: 8d9c2c3a1f01 ("mbuf: add function to generate raw Tx offload value") > > Cc: konsta

Re: [dpdk-dev] [PATCH] eal: add log to print dpdk version at start

2021-09-01 Thread Stephen Hemminger
On Wed, 1 Sep 2021 11:48:21 +0530 Aman Singh wrote: > From the logs it is difficult to get the DPDK version > that was used. So added a debug log to print the same. > The log has been added in eal_init so it gets printed > at startup for any application. > > Signed-off-by: Aman Singh > --- >

[dpdk-dev] [PATCH 8/8] net/cnxk: tm shaper and node operations

2021-09-01 Thread skoteshwar
From: Satha Rao Implemented TM node, shaper profile, hierarchy_commit and statistic operations. Signed-off-by: Satha Rao --- drivers/net/cnxk/cnxk_tm.c | 353 + drivers/net/cnxk/cnxk_tm.h | 5 + 2 files changed, 358 insertions(+) diff --git a/drivers/net/

[dpdk-dev] [PATCH 7/8] net/cnxk: tm capabilities and queue rate limit handlers

2021-09-01 Thread skoteshwar
From: Satha Rao Initial version of TM implementation added basic infrastructure, tm node_get, capabilities operations and rate limit queue operation. Signed-off-by: Satha Rao --- drivers/net/cnxk/cnxk_ethdev.c | 2 + drivers/net/cnxk/cnxk_ethdev.h | 3 + drivers/net/cnxk/cnxk_tm.c | 32

[dpdk-dev] [PATCH 6/8] common/cnxk: set of handlers to get tm hierarchy internals

2021-09-01 Thread skoteshwar
From: Satha Rao Platform specific TM tree hierarchy details are part of common cnxk driver. This patch introduces missing HAL apis to return state of TM hierarchy required to support ethdev TM operations inside cnxk PMD. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_model.h| 6

[dpdk-dev] [PATCH 5/8] common/cnxk: handler to get rte tm error type

2021-09-01 Thread skoteshwar
From: Satha Rao Different TM handlers returns various platform specific errors, this patch introduces new API to convert these internal error types to RTE_TM* error types. Also updated error message API with missed TM error types. Signed-off-by: Satha Rao --- drivers/common/cnxk/cnxk_utils.c |

[dpdk-dev] [PATCH 4/8] common/cnxk: handle packet mode shaper limits

2021-09-01 Thread skoteshwar
From: Satha Rao Add new macros to reflect HW shaper PPS limits. New API to validate input rates for packet mode. Increase adjust value to support lesser PPS (<61). Signed-off-by: Satha Rao --- drivers/common/cnxk/hw/nix.h | 3 + drivers/common/cnxk/roc_nix_priv.h | 1 + drivers

[dpdk-dev] [PATCH 3/8] common/cnxk: increase sched weight and shaper burst limit

2021-09-01 Thread skoteshwar
From: Nithin Dabilpuram Increase sched weight and shaper burst limit for cn10k. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/hw/nix.h | 13 ++--- drivers/common/cnxk/roc_nix.h | 23 ++- drivers/common/cnxk/roc_nix_priv.h | 11 --- drivers/

[dpdk-dev] [PATCH 2/8] common/cnxk: flush smq

2021-09-01 Thread skoteshwar
From: Satha Rao Added new API to flush all SMQs related nix interface Signed-off-by: Satha Rao --- drivers/common/cnxk/hw/nix.h | 6 drivers/common/cnxk/roc_nix.h| 1 + drivers/common/cnxk/roc_nix_tm_ops.c | 50 drivers/common/cnxk/version.ma

[dpdk-dev] [PATCH 1/8] common/cnxk: use different macros for sdp and lbk max frames

2021-09-01 Thread skoteshwar
From: Satha Rao For SDP interface all platforms supports up to 65535 frame size. Updated api with new check for SDP interface. Signed-off-by: Satha Rao --- drivers/common/cnxk/hw/nix.h | 1 + drivers/common/cnxk/roc_nix.c | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

Re: [dpdk-dev] [PATCH] net/af_packet: fix ignoring full ring on tx

2021-09-01 Thread Ferruh Yigit
On 8/20/2021 2:39 PM, Tudor Cornea wrote: > The poll call can return POLLERR which is ignored, or it can return > POLLOUT, even if there are no free frames in the mmap-ed area. > > We can account for both of these cases by re-checking if the next > frame is empty before writing into it. > > We al

[dpdk-dev] [PATCH v2 6/6] app/test: add dmadev fill tests

2021-09-01 Thread Bruce Richardson
From: Kevin Laatz For dma devices which support the fill operation, run unit tests to verify fill behaviour is correct. Signed-off-by: Kevin Laatz Signed-off-by: Bruce Richardson --- app/test/test_dmadev.c | 73 ++ 1 file changed, 73 insertions(+) diff

[dpdk-dev] [PATCH v2 5/6] app/test: test dmadev instance failure handling

2021-09-01 Thread Bruce Richardson
Add a series of tests to inject bad copy operations into a dmadev to test the error handling and reporting capabilities. Various combinations of errors in various positions in a burst are tested, as are errors in bursts with fence flag set, and multiple errors in a single burst. Signed-off-by: Bru

[dpdk-dev] [PATCH v2 4/6] app/test: add more comprehensive dmadev copy tests

2021-09-01 Thread Bruce Richardson
Add unit tests for various combinations of use for dmadev, copying bursts of packets in various formats, e.g. 1. enqueuing two smaller bursts and completing them as one burst 2. enqueuing one burst and gathering completions in smaller bursts 3. using completed_status() function to gather completio

[dpdk-dev] [PATCH v2 3/6] app/test: add basic dmadev copy tests

2021-09-01 Thread Bruce Richardson
For each dmadev instance, perform some basic copy tests to validate that functionality. Signed-off-by: Bruce Richardson --- app/test/test_dmadev.c | 174 + 1 file changed, 174 insertions(+) diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c inde

[dpdk-dev] [PATCH v2 2/6] app/test: add basic dmadev instance tests

2021-09-01 Thread Bruce Richardson
Run basic sanity tests for configuring, starting and stopping a dmadev instance to help validate drivers. This also provides the framework for future tests for data-path operation. Signed-off-by: Bruce Richardson --- app/test/test_dmadev.c | 81 ++ 1 file

[dpdk-dev] [PATCH v2 1/6] dmadev: add device idle check for testing use

2021-09-01 Thread Bruce Richardson
Add in a function to check if a device or vchan has completed all jobs assigned to it, without gathering in the results. This is primarily for use in testing, to allow the hardware to be in a known-state prior to gathering completions. Signed-off-by: Bruce Richardson --- lib/dmadev/rte_dmadev.c

[dpdk-dev] [PATCH v2 0/6] add test suite for DMA drivers

2021-09-01 Thread Bruce Richardson
This patchset adds a fairly comprehensive set of tests for basic dmadev functionality. Tests are added to verify basic copy operation in each device, using both submit function and submit flag, and verifying completion gathering using both "completed()" and "completed_status()" functions. Beyond th

Re: [dpdk-dev] Running DPDK application with non-previlege mode

2021-09-01 Thread Kamaraj P
Thanks Bruce. BTW we are trying to run our application as docker container. We may need to pass the parameters(system capability) along with docker command line to mount the hugepages ? Like this : https://github.com/usnistgov/ndn-dpdk/blob/main/docs/Docker.md Please share your thoughts. Thanks,

Re: [dpdk-dev] [PATCH] doc: announce changes in EFD function

2021-09-01 Thread Mcnamara, John
> -Original Message- > From: dev On Behalf Of Pablo de Lara > Sent: Tuesday, August 31, 2021 3:31 PM > To: Marohn, Byron ; Wang, Yipeng1 > > Cc: dev@dpdk.org; De Lara Guarch, Pablo > Subject: [dpdk-dev] [PATCH] doc: announce changes in EFD function This change is required to fix Cover

[dpdk-dev] [PATCH] doc: clarify implicit filtering in transfer rules

2021-09-01 Thread Andrew Rybchenko
As per existing documentation, attribute "transfer", quote, "complements the behavior of some pattern items such as RTE_FLOW_ITEM_TYPE_PHY_PORT and is meaningless without them". That effectively confronts the idea of implicit filtering imposed by port_id argument passed by flow create API. This bi

Re: [dpdk-dev] [PATCH v2 1/6] bbdev: add capability for CRC16 check

2021-09-01 Thread Chautru, Nicolas
> -Original Message- > From: Tom Rix > Sent: Wednesday, September 1, 2021 6:37 AM > To: Chautru, Nicolas ; dev@dpdk.org; > gak...@marvell.com > Cc: tho...@monjalon.net; hemant.agra...@nxp.com; Zhang, Mingshan > ; Joshi, Arun > Subject: Re: [PATCH v2 1/6] bbdev: add capability for CRC16

Re: [dpdk-dev] [PATCH v4] ethdev: fix representor port ID search by name

2021-09-01 Thread Ferruh Yigit
On 8/31/2021 5:06 PM, Andrew Rybchenko wrote: > From: Viacheslav Galaktionov > > Getting a list of representors from a representor does not make sense. > Instead, a parent device should be used. > Which code is getting list of the representors? As far as I can see impacted APIs are: 'rte_eth_r

Re: [dpdk-dev] [PATCH v1] bbdev: remove experimental tag from API

2021-09-01 Thread Chautru, Nicolas
> -Original Message- > From: Kinsella, Ray > Sent: Wednesday, September 1, 2021 4:15 AM > To: Hemant Agrawal ; David Marchand > ; Chautru, Nicolas > > Cc: dev ; Akhil Goyal ; Thomas > Monjalon ; Tom Rix ; Zhang, > Mingshan ; Joshi, Arun > ; Maxime Coquelin > Subject: Re: [PATCH v1] bbd

Re: [dpdk-dev] [PATCH v1] bbdev: remove experimental tag from API

2021-09-01 Thread Chautru, Nicolas
> -Original Message- > From: Hemant Agrawal > Sent: Tuesday, August 31, 2021 8:53 PM > To: David Marchand ; Chautru, Nicolas > > Cc: dev ; Akhil Goyal ; Thomas > Monjalon ; Tom Rix ; Zhang, > Mingshan ; Joshi, Arun > ; Ray Kinsella ; Maxime Coquelin > > Subject: RE: [PATCH v1] bbdev:

[dpdk-dev] [PATCH 4/4] common/qat: add extra data to qat pci dev

2021-09-01 Thread Arek Kusztal
Add private data to qat_pci_device struct that will be visible only by specific generation it belongs to. Signed-off-by: Arek Kusztal --- drivers/common/qat/dev/qat_dev_gen1.c | 7 +++ drivers/common/qat/dev/qat_dev_gen1.h | 3 ++ drivers/common/qat/dev/qat_dev_gen2.c | 1 + drive

  1   2   >