Re: [dpdk-dev] [PATCH v5 3/3] PCI: don't use vfio ioctl call to access PIO resource

2021-01-26 Thread 谢华伟(此时此刻)
On 2021/1/26 20:35, Maxime Coquelin wrote: On 1/26/21 1:30 PM, 谢华伟(此时此刻) wrote: On 2021/1/22 15:25, chris wrote: On 2021/1/21 23:38, Maxime Coquelin wrote: Do you mean we apply or abandon patch 3? I am both OK. The first priority to me is to enable MMIO bar support. OK, so yes, I think we

Re: [dpdk-dev] [PATCH v3 0/4] add checking of header includes

2021-01-26 Thread Bruce Richardson
On Tue, Jan 26, 2021 at 02:24:02PM +, Bruce Richardson wrote: > On Tue, Jan 26, 2021 at 03:04:25PM +0100, David Marchand wrote: > > On Tue, Jan 26, 2021 at 12:15 PM Bruce Richardson > > wrote: > > > > > > On Mon, Jan 25, 2021 at 04:51:19PM +0100, David Marchand wrote: > > > > On Mon, Jan 25, 2

Re: [dpdk-dev] [PATCH v4 02/44] bus/vdev: add driver IOVA VA mode requirement

2021-01-26 Thread David Marchand
On Tue, Jan 26, 2021 at 2:23 PM Kinsella, Ray wrote: > >> diff --git a/devtools/libabigail.abignore b/devtools/libabigail.abignore > >> index 1dc84fa74b..170304c876 100644 > >> --- a/devtools/libabigail.abignore > >> +++ b/devtools/libabigail.abignore > >> @@ -11,6 +11,8 @@ > >> ; Explicit ignore

[dpdk-dev] [PATCH 1/1] doc: fix build

2021-01-26 Thread Thomas Monjalon
When removing the label "arm_cross_build_getting_the_prerequisite_library" in the rework of cross_build_dpdk_for_arm64.rst, the reference to this section got broken. It went unnoticed because "ninja -C doc" does not regenerate the file which is referencing the changed file. Fixes: eb0e12c0c299 ("d

Re: [dpdk-dev] [PATCH v2 01/11] net/octeontx_ep: add build and doc infrastructure

2021-01-26 Thread Ferruh Yigit
On 1/18/2021 9:35 AM, Nalla Pradeep wrote: Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for octeontx end point PMD. Signed-off-by: Nalla Pradeep <...> @@ -0,0 +1,8 @@ +; +; Supported features of the 'octeontx_ep' network poll mode driver. +; +; R

[dpdk-dev] [PATCH v2] ethdev: add IPv6 DSCP option for modify field action

2021-01-26 Thread Alexander Kozyrev
IPv6 DSCP field ID is missing from the original list of Field IDs for MODIFY_FIELD action. Add it to support IPv6 header fully. Add ipv6_dscp option for the corresponding header field in testpmd. Fixes: 73b68f4c54a ("ethdev: introduce generic modify flow action") Signed-off-by: Alexander Kozyrev

[dpdk-dev] [PATCH v2] ethdev: add IPv6 DSCP option for modify field action

2021-01-26 Thread Alexander Kozyrev
IPv6 DSCP field ID is missing from the original list of Field IDs for MODIFY_FIELD action. Add it to support IPv6 header fully. Add ipv6_dscp option for the corresponding header field in testpmd. Fixes: 73b68f4c54a ("ethdev: introduce generic modify flow action") Signed-off-by: Alexander Kozyrev

Re: [dpdk-dev] [PATCH v2 03/11] net/octeontx_ep: add device init and uninit

2021-01-26 Thread Ferruh Yigit
On 1/18/2021 9:35 AM, Nalla Pradeep wrote: Add basic init and uninit function which includes initializing fields of ethdev private structure. Signed-off-by: Nalla Pradeep <...> ep/otx_ep_common.h +++ b/drivers/net/octeontx_ep/otx_ep_common.h @@ -4,11 +4,28 @@ #ifndef _OTX_EP_COMMON_H_ #

Re: [dpdk-dev] [PATCH v2 02/11] net/octeontx_ep: add ethdev probe and remove

2021-01-26 Thread Ferruh Yigit
On 1/18/2021 9:35 AM, Nalla Pradeep wrote: add basic PCIe ethdev probe and remove. Signed-off-by: Nalla Pradeep <...> @@ -136,7 +136,10 @@ extern int otx2_logtype_ree; #define PCI_DEVID_OCTEONTX2_RVU_CPT_VF0xA0FE #define PCI_DEVID_OCTEONTX2_RVU_AF_VF 0xA0f8 #de

Re: [dpdk-dev] [PATCH v4 02/44] bus/vdev: add driver IOVA VA mode requirement

2021-01-26 Thread Kinsella, Ray
On 26/01/2021 14:40, David Marchand wrote: > On Tue, Jan 26, 2021 at 2:23 PM Kinsella, Ray wrote: diff --git a/devtools/libabigail.abignore b/devtools/libabigail.abignore index 1dc84fa74b..170304c876 100644 --- a/devtools/libabigail.abignore +++ b/devtools/libabigail.abignor

Re: [dpdk-dev] [PATCH v2 04/11] net/octeontx_ep: Added basic device setup.

2021-01-26 Thread Ferruh Yigit
On 1/18/2021 9:35 AM, Nalla Pradeep wrote: Functions to setup device, basic IQ and OQ registers are added. As the patch title can you please start with lowercase after module, and do not use the final '.', if you run './devtools/check-git-log.sh' script it will highlight these kind of issues

Re: [dpdk-dev] [PATCH v2 05/11] net/octeontx_ep: Add dev info get and configure

2021-01-26 Thread Ferruh Yigit
On 1/18/2021 9:35 AM, Nalla Pradeep wrote: Add device information get and device configure operations. Signed-off-by: Nalla Pradeep <...> +static int +otx_ep_dev_info_get(struct rte_eth_dev *eth_dev, + struct rte_eth_dev_info *devinfo) +{ + struct otx_ep_device *otx_

Re: [dpdk-dev] [PATCH v3 0/4] add checking of header includes

2021-01-26 Thread Thomas Monjalon
26/01/2021 15:39, Bruce Richardson: > Removing the ALLOW_INTERNAL_API is probably a good idea, but it does indeed > throw up the errors with clang - but not gcc, which is strange. The > offending headers seem to be (initially): > > * rte_ethdev_vdev.h > * rte_ethdev_pci.h > > Are these public hea

Re: [dpdk-dev] [PATCH v2 08/11] net/octeontx_ep: Setting up iq and oq registers

2021-01-26 Thread Ferruh Yigit
On 1/18/2021 9:35 AM, Nalla Pradeep wrote: Configuring hardware registers with command queue(iq) and droq(oq) parameters. Can you please elaborate what functionalit is configured, registers setup is not clear on its own? Signed-off-by: Nalla Pradeep <...> +static void +otx2_vf_setup_o

Re: [dpdk-dev] [PATCH 1/1] doc: fix build

2021-01-26 Thread Bruce Richardson
On Tue, Jan 26, 2021 at 04:07:22PM +0100, Thomas Monjalon wrote: > When removing the label "arm_cross_build_getting_the_prerequisite_library" > in the rework of cross_build_dpdk_for_arm64.rst, > the reference to this section got broken. > It went unnoticed because "ninja -C doc" does not regenerate

Re: [dpdk-dev] [PATCH 1/1] doc: fix build

2021-01-26 Thread David Marchand
On Tue, Jan 26, 2021 at 4:08 PM Thomas Monjalon wrote: > > When removing the label "arm_cross_build_getting_the_prerequisite_library" > in the rework of cross_build_dpdk_for_arm64.rst, > the reference to this section got broken. > It went unnoticed because "ninja -C doc" does not regenerate the fi

Re: [dpdk-dev] [PATCH v2 09/11] net/octeontx_ep: Added dev start and stop

2021-01-26 Thread Ferruh Yigit
On 1/18/2021 9:36 AM, Nalla Pradeep wrote: Dev start and stop operations are added. To accomplish this internal functions to enable or disable io queues are incorporated. Signed-off-by: Nalla Pradeep <...> +static int +otx_ep_dev_start(struct rte_eth_dev *eth_dev) +{ + struct otx_ep_d

Re: [dpdk-dev] [PATCH v2 10/11] net/octeontx_ep: Receive data path function added

2021-01-26 Thread Ferruh Yigit
On 1/18/2021 9:36 AM, Nalla Pradeep wrote: Function to deliver packets from DROQ to application is added. It also fills DROQ with receive buffers timely such that device can fill them with incoming packets. Signed-off-by: Nalla Pradeep <...> @@ -327,7 +333,8 @@ otx_ep_init_droq(struct otx_e

Re: [dpdk-dev] [PATCH 1/1] doc: fix build

2021-01-26 Thread Thomas Monjalon
26/01/2021 16:32, Bruce Richardson: > On Tue, Jan 26, 2021 at 04:07:22PM +0100, Thomas Monjalon wrote: > > When removing the label "arm_cross_build_getting_the_prerequisite_library" > > in the rework of cross_build_dpdk_for_arm64.rst, > > the reference to this section got broken. > > It went unnoti

Re: [dpdk-dev] [PATCH v2 11/11] net/octeontx_ep: Transmit data path function added

2021-01-26 Thread Ferruh Yigit
On 1/18/2021 9:36 AM, Nalla Pradeep wrote: 1. Packet transmit function for both otx and otx2 are added. 2. Flushing transmit(command) queue when pending commands are more than maximum allowed value (currently 16). 3. Scatter gather support if the packet spans multiple buffers. Signed-off-by:

[dpdk-dev] [PATCH] net/mlx5: fix count actions query in sample flow

2021-01-26 Thread Jiawei Wang
If the count action was presented in sample actions list, MLX5 PMD created the counter resource and saved the index of counter in the sample resource only, the counter index of flow was not updated. This patch removes the counter index in the sampler resource and saves it into the flow, and adds t

Re: [dpdk-dev] [PATCH v2 01/11] net/octeontx_ep: add build and doc infrastructure

2021-01-26 Thread Ferruh Yigit
On 1/18/2021 9:35 AM, Nalla Pradeep wrote: Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for octeontx end point PMD. Signed-off-by: Nalla Pradeep For the series, First of all sorry for the late review, I put some comments on some patches. Overall

Re: [dpdk-dev] [PATCH 1/1] doc: fix build

2021-01-26 Thread Thomas Monjalon
26/01/2021 16:32, David Marchand: > On Tue, Jan 26, 2021 at 4:08 PM Thomas Monjalon wrote: > > > > When removing the label "arm_cross_build_getting_the_prerequisite_library" > > in the rework of cross_build_dpdk_for_arm64.rst, > > the reference to this section got broken. > > It went unnoticed bec

Re: [dpdk-dev] [PATCH v3 0/4] add checking of header includes

2021-01-26 Thread Bruce Richardson
On Tue, Jan 26, 2021 at 04:31:36PM +0100, Thomas Monjalon wrote: > 26/01/2021 15:39, Bruce Richardson: > > Removing the ALLOW_INTERNAL_API is probably a good idea, but it does indeed > > throw up the errors with clang - but not gcc, which is strange. The > > offending headers seem to be (initially)

Re: [dpdk-dev] [PATCH] common/mlx5: add GTP TEID modification field ID

2021-01-26 Thread Slava Ovsiienko
> -Original Message- > From: Alexander Kozyrev > Sent: Monday, January 25, 2021 19:01 > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Slava Ovsiienko > ; Matan Azrad > Subject: [PATCH] common/mlx5: add GTP TEID modification field ID > > Define hardware ID for GTP TEID modification. This valu

Re: [dpdk-dev] [PATCH v3 0/4] add checking of header includes

2021-01-26 Thread Thomas Monjalon
26/01/2021 16:42, Bruce Richardson: > On Tue, Jan 26, 2021 at 04:31:36PM +0100, Thomas Monjalon wrote: > > 26/01/2021 15:39, Bruce Richardson: > > > Removing the ALLOW_INTERNAL_API is probably a good idea, but it does > > > indeed > > > throw up the errors with clang - but not gcc, which is strang

Re: [dpdk-dev] [EXT] [PATCH v1 5/5] app/eventdev: remove unnecessary barriers for order test

2021-01-26 Thread Jerin Jacob
On Mon, Jan 25, 2021 at 11:19 PM Pavan Nikhilesh Bhagavatula wrote: > > >For the wmb in order_process_stage_1 and > >order_process_stage_invalid in > >the order test, they can be removed. This is because when the test > >results > >are wrong, the worker core writes 'true' to t->err. Then other wor

Re: [dpdk-dev] [PATCH 1/1] doc: fix build

2021-01-26 Thread Bruce Richardson
On Tue, Jan 26, 2021 at 04:35:16PM +0100, Thomas Monjalon wrote: > 26/01/2021 16:32, Bruce Richardson: > > On Tue, Jan 26, 2021 at 04:07:22PM +0100, Thomas Monjalon wrote: > > > When removing the label "arm_cross_build_getting_the_prerequisite_library" > > > in the rework of cross_build_dpdk_for_ar

[dpdk-dev] [PATCH] net/i40e: fix mingw build error

2021-01-26 Thread Leyi Rong
Disable i40e avx512 code path for windows build to avoid the mingw build error. Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") Signed-off-by: Leyi Rong --- config/x86/cross-mingw | 3 +++ drivers/net/i40e/meson.build | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff

Re: [dpdk-dev] [PATCH v3 0/3] AVX512 vPMD on i40e

2021-01-26 Thread Rong, Leyi
> -Original Message- > From: David Marchand > Sent: Monday, January 25, 2021 10:35 PM > To: Kadam, Pallavi > Cc: Yigit, Ferruh ; Ali Alnubani ; > NBU-Contact-Thomas Monjalon ; Richardson, Bruce > ; Tal Shnaiderman ; Odi Assli > ; Rong, Leyi ; Zhang, Qi Z > ; Lu, Wenzhuo ; Xing, Beilei >

Re: [dpdk-dev] [PATCH] net/i40e: fix mingw build error

2021-01-26 Thread Kadam, Pallavi
On 1/26/2021 7:38 AM, Leyi Rong wrote: Disable i40e avx512 code path for windows build to avoid the mingw build error. Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") Signed-off-by: Leyi Rong --- Tested-by: Pallavi Kadam Verified on Windows using MinGW and clang compiler.

Re: [dpdk-dev] [PATCH v3 0/3] AVX512 vPMD on i40e

2021-01-26 Thread Thomas Monjalon
26/01/2021 17:17, Rong, Leyi: > > > On 1/20/2021 11:21 PM, Ferruh Yigit wrote: > > > > > > And for the mingw, I have same result with Ali, I can reproduce with > > > (Fedora > > MinGW 9.2.1-6.fc32). > > > > > > But different from the CI, I am getting the error [1] for all following > > > files: >

Re: [dpdk-dev] [PATCH v3 0/3] AVX512 vPMD on i40e

2021-01-26 Thread Ferruh Yigit
On 1/26/2021 4:22 PM, Thomas Monjalon wrote: 26/01/2021 17:17, Rong, Leyi: On 1/20/2021 11:21 PM, Ferruh Yigit wrote: And for the mingw, I have same result with Ali, I can reproduce with (Fedora MinGW 9.2.1-6.fc32). But different from the CI, I am getting the error [1] for all following file

Re: [dpdk-dev] [PATCH v3 0/3] AVX512 vPMD on i40e

2021-01-26 Thread Thomas Monjalon
26/01/2021 17:39, Ferruh Yigit: > On 1/26/2021 4:22 PM, Thomas Monjalon wrote: > > 26/01/2021 17:17, Rong, Leyi: > On 1/20/2021 11:21 PM, Ferruh Yigit wrote: > > And for the mingw, I have same result with Ali, I can reproduce with > (Fedora > >>> MinGW 9.2.1-6.fc32). > > >

Re: [dpdk-dev] [PATCH v3 0/3] AVX512 vPMD on i40e

2021-01-26 Thread Ferruh Yigit
On 1/26/2021 4:48 PM, Thomas Monjalon wrote: 26/01/2021 17:39, Ferruh Yigit: On 1/26/2021 4:22 PM, Thomas Monjalon wrote: 26/01/2021 17:17, Rong, Leyi: On 1/20/2021 11:21 PM, Ferruh Yigit wrote: And for the mingw, I have same result with Ali, I can reproduce with (Fedora MinGW 9.2.1-6.fc32).

Re: [dpdk-dev] [PATCH v2 00/37] net/mvpp2: misc updates

2021-01-26 Thread Ferruh Yigit
On 1/25/2021 6:00 PM, Jerin Jacob wrote: On Sat, Jan 23, 2021 at 12:49 AM wrote: From: Liron Himi This patch series align the mainline driver with all changes since 19.11 some of the patches are fixes which should be pushed to stable v2: - fix commit msg styling - Addressed various review c

Re: [dpdk-dev] [dpdk-stable] [PATCH v2 03/37] net/mvpp2: fix Rx/Tx bytes statistics

2021-01-26 Thread Ferruh Yigit
On 1/22/2021 7:18 PM, lir...@marvell.com wrote: From: Yuri Chipchev 4B of CRC was not included in the bytes statistics Fixes: bdffe0c70 ("net/mrvl: support basic stats") Cc: sta...@dpdk.org Signed-off-by: Yuri Chipchev Reviewed-by: Liron Himi --- drivers/net/mvpp2/mrvl_ethdev.c | 4 ++--

Re: [dpdk-dev] [PATCH] net/i40e: fix mingw build error

2021-01-26 Thread Tal Shnaiderman
> Subject: [dpdk-dev] [PATCH] net/i40e: fix mingw build error > > External email: Use caution opening links or attachments > > > Disable i40e avx512 code path for windows build to avoid the mingw build > error. > > Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") > > Signed-off-by: Ley

Re: [dpdk-dev] [EXT] Re: [dpdk-stable] [PATCH v2 03/37] net/mvpp2: fix Rx/Tx bytes statistics

2021-01-26 Thread Liron Himi
-Original Message- From: Ferruh Yigit Sent: Tuesday, 26 January 2021 19:03 To: Liron Himi ; Jerin Jacob Kollanukkaran Cc: dev@dpdk.org; Yuri Chipchev ; sta...@dpdk.org; Andrew Rybchenko Subject: [EXT] Re: [dpdk-stable] [PATCH v2 03/37] net/mvpp2: fix Rx/Tx bytes statistics Externa

Re: [dpdk-dev] [EXT] Re: [dpdk-stable] [PATCH v2 03/37] net/mvpp2: fix Rx/Tx bytes statistics

2021-01-26 Thread Ferruh Yigit
On 1/26/2021 5:25 PM, Liron Himi wrote: -Original Message- From: Ferruh Yigit Sent: Tuesday, 26 January 2021 19:03 To: Liron Himi ; Jerin Jacob Kollanukkaran Cc: dev@dpdk.org; Yuri Chipchev ; sta...@dpdk.org; Andrew Rybchenko Subject: [EXT] Re: [dpdk-stable] [PATCH v2 03/37] net/mv

Re: [dpdk-dev] [PATCH v2 0/2] app/flow-perf: support meter action

2021-01-26 Thread Thomas Monjalon
19/01/2021 04:39, Dong Zhou: > This patch introduces new parameter "--meter" to generate flows with meter > action in test-flow-perf application. > > V2: > Divide this patch to 2 patches, one includes the split calculation and output > used cpu time for all insertion items, another includes the su

Re: [dpdk-dev] [PATCH] bus/pci: nvme on Windows requires class id and bus

2021-01-26 Thread Tal Shnaiderman
> Subject: [PATCH] bus/pci: nvme on Windows requires class id and bus > > External email: Use caution opening links or attachments > > > Attaching to an NVMe disk on Windows using SPDK requires the PCI class ID > and device.bus fields. Decode the class ID from the PCI device info strings > if i

Re: [dpdk-dev] [PATCH v2 07/37] net/mvpp2: update RSS tables reservation

2021-01-26 Thread Ferruh Yigit
On 1/22/2021 7:18 PM, lir...@marvell.com wrote: From: Yuri Chipchev In kernel-4.14 the pp2 kernel occupied 4 RSS tables as opposed to 1 RSS table in older version. Signed-off-by: Yuri Chipchev Reviewed-by: Liron Himi --- drivers/net/mvpp2/mrvl_ethdev.c | 2 +- 1 file changed, 1 insertion(

Re: [dpdk-dev] [EXT] Re: [PATCH v2 07/37] net/mvpp2: update RSS tables reservation

2021-01-26 Thread Liron Himi
-Original Message- From: Ferruh Yigit Sent: Tuesday, 26 January 2021 20:02 To: Liron Himi ; Jerin Jacob Kollanukkaran Cc: dev@dpdk.org; Yuri Chipchev Subject: [EXT] Re: [dpdk-dev] [PATCH v2 07/37] net/mvpp2: update RSS tables reservation External Email -

Re: [dpdk-dev] [EXT] Re: [PATCH v2 00/37] net/mvpp2: misc updates

2021-01-26 Thread Liron Himi
-Original Message- From: Ferruh Yigit Sent: Tuesday, 26 January 2021 18:59 To: Jerin Jacob ; Liron Himi Cc: Jerin Jacob Kollanukkaran ; dpdk-dev ; Michael Shamis Subject: [EXT] Re: [dpdk-dev] [PATCH v2 00/37] net/mvpp2: misc updates External Email ---

Re: [dpdk-dev] [PATCH] bus/pci: nvme on Windows requires class id and bus

2021-01-26 Thread Nick Connolly
Hi Tal, Thanks for the comments. + /* Try and find PCI class ID */ + for (cp = buf; !(cp[0] == 0 && cp[1] == 0); cp++) How about for (cp = buf; cp[0] || cp[1]; cp++) That would be my preferred idiom, but the DPDK coding style (1.9.1) says 'do not use ! for tests unless it is a boo

Re: [dpdk-dev] [dpdk-stable] [PATCH] vdpa/mlx5: fix configuration mutex cleanup

2021-01-26 Thread Matan Azrad
From: Maxime Coquelin > On 1/26/21 11:45 AM, Matan Azrad wrote: > > > > > > From: Maxime Coquelin > >>> From: Maxime Coquelin > On 1/14/21 4:23 PM, Matan Azrad wrote: > > > > > > From: Maxime Coquelin > >> On 1/14/21 2:09 PM, Matan Azrad wrote: > >>> > >>> > >>> F

Re: [dpdk-dev] [PATCH v2 08/37] net/mvpp2: extend xstats support

2021-01-26 Thread Ferruh Yigit
On 1/22/2021 7:18 PM, lir...@marvell.com wrote: From: Yuri Chipchev Add xstats_by_id callbacks Signed-off-by: Yuri Chipchev Reviewed-by: Liron Himi --- drivers/net/mvpp2/mrvl_ethdev.c | 98 - 1 file changed, 95 insertions(+), 3 deletions(-) diff --git a/dr

[dpdk-dev] [PATCH v2 0/5] net/ena: minor bug fixes and improvements

2021-01-26 Thread Michal Krawczyk
Hi, this patchset contains few bug fixes for the ENA PMD and the version upgrade to v2.2.1. Besides that, the validation of the Rx req ID was optimized. Best regards, Michal --- v2: * Add patch preventing double doorbell on Tx. Amit Bernstein (1): net/ena: Tx doorbell statistics fix Ido Se

[dpdk-dev] [PATCH v2 1/5] net/ena: flush Rx buffers memory pool cache

2021-01-26 Thread Michal Krawczyk
From: Ido Segev As the refill called as part of ena_start(), we end up the refill progress with stuck buffers at the caller core cache. Calling to flush the cache results with invalidate this cache and free those stuck buffers. Fixes: 1173fca25af9 ("ena: add polling-mode driver") Cc: sta...@dpd

[dpdk-dev] [PATCH v2 2/5] net/ena: Tx doorbell statistics fix

2021-01-26 Thread Michal Krawczyk
From: Amit Bernstein Increment Tx doorbell statistics on tx_pkt_burst after writing to doorbell and in case max burst size achieved Fixes: c7519ea5eb8d ("net/ena: call additional doorbells if needed") Cc: sta...@dpdk.org Signed-off-by: Amit Bernstein Reviewed-by: Michal Krawczyk Reviewed-by:

[dpdk-dev] [PATCH v2 3/5] net/ena: validate Rx req id upon acquiring the desc

2021-01-26 Thread Michal Krawczyk
Instead of veryfing the Rx descriptor each time it's being used in the driver code, now the verification happens on the HAL side. This simplifies code a lot as instead of doing 2 validations, only single one is needed. The driver have to check the rc value returned by the ena_com upon reading the

[dpdk-dev] [PATCH v2 4/5] net/ena: fix Tx sq free space assessment

2021-01-26 Thread Michal Krawczyk
From: Igor Chauskin Before starting transmission of Tx burst, the driver checked the available space in the sq and limited the number of packets for transmission accordingly. The calculation was incorrect for fragmented packets and potentially had significantly limited the length of Tx bursts. T

[dpdk-dev] [PATCH v2 5/5] net/ena: prevent double doorbell

2021-01-26 Thread Michal Krawczyk
From: Igor Chauskin Add per-tx-ring flag for packets that were pushed to HW but await doorbell. That is to prevent a situation when a doorbell is sent due to reaching Tx burst threshold and next send fails (e.g., due to queue full). In such case we shouldn't send another doorbell because there ar

Re: [dpdk-dev] [PATCH v2] test/event_crypto_adapter: set cipher operation in transform

2021-01-26 Thread Jerin Jacob
On Tue, Jan 19, 2021 at 12:43 PM Gujjar, Abhinandan S wrote: > > Acked-by: abhinandan.guj...@intel.com Applied to dpdk-next-eventdev/for-main. Thanks. > > Thanks & Regards > Abhinandan > > > -Original Message- > > From: Ankur Dwivedi > > Sent: Monday, January 18, 2021 9:50 PM > > To:

[dpdk-dev] [pull-request] next-eventdev 21.02-rc2

2021-01-26 Thread Jerin Jacob Kollanukkaran
The following changes since commit 7be7dc6dea927da7d458cb4172d70338f9eea164: build: force pkg-config for dependency detection (2021-01-26 00:43:59 +0100) are available in the Git repository at: http://dpdk.org/git/next/dpdk-next-eventdev for you to fetch changes up to 77c4f861b5f72afdfa5922

[dpdk-dev] [PATCH] event/dsw: use GCC built-ins for atomics

2021-01-26 Thread Mattias Rönnblom
Use C11-style GCC built-in functions for atomic operations. Signed-off-by: Mattias Rönnblom --- drivers/event/dsw/dsw_evdev.c | 5 + drivers/event/dsw/dsw_evdev.h | 6 +++--- drivers/event/dsw/dsw_event.c | 37 -- drivers/event/dsw/dsw_xstats.c | 4 ++--

[dpdk-dev] [PATCH v3 02/11] net/octeontx_ep: add ethdev probe and remove

2021-01-26 Thread Nalla Pradeep
add basic PCIe ethdev probe and remove. Signed-off-by: Nalla Pradeep --- drivers/common/octeontx2/otx2_common.h| 5 +- drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx_ep_common.h | 14 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 62 +

[dpdk-dev] [PATCH v3 05/11] net/octeontx_ep: Add dev info get and configure

2021-01-26 Thread Nalla Pradeep
Add device information get and device configure operations. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 15 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 89 - drivers/net/octeontx_ep/otx_ep_rxtx.h | 10 +++ 3 files changed, 111 insertio

[dpdk-dev] [PATCH v3 04/11] net/octeontx_ep: Added basic device setup.

2021-01-26 Thread Nalla Pradeep
Functions to setup device, basic IQ and OQ registers are added. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx2_ep_vf.c| 133 + drivers/net/octeontx_ep/otx2_ep_vf.h| 11 ++ drivers/net/octeontx_ep/otx_ep_

[dpdk-dev] [PATCH v3 03/11] net/octeontx_ep: add device init and uninit

2021-01-26 Thread Nalla Pradeep
Add basic init and uninit function which includes initializing fields of ethdev private structure. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 22 ++- drivers/net/octeontx_ep/otx_ep_ethdev.c | 88 +++-- 2 files changed, 104 insertions(+), 6

[dpdk-dev] [PATCH v3 08/11] net/octeontx_ep: Setting up iq and oq registers

2021-01-26 Thread Nalla Pradeep
Configuring hardware registers with command queue(iq) and droq(oq) parameters. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 120 +++ drivers/net/octeontx_ep/otx_ep_common.h | 65 + drivers/net/octeontx_ep/otx_ep_vf.c | 121 ++

[dpdk-dev] [PATCH v3 07/11] net/octeontx_ep: Added tx queue setup and release

2021-01-26 Thread Nalla Pradeep
Transmit queue setup involves allocating memory for the command queue considering tx descriptor count and initializing data structure representing the queue. Transmit queue release function frees the command queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 89 ++

[dpdk-dev] [PATCH v3 01/11] net/octeontx_ep: add build and doc infrastructure

2021-01-26 Thread Nalla Pradeep
Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for octeontx end point PMD. Signed-off-by: Nalla Pradeep --- MAINTAINERS | 9 + doc/guides/nics/features/octeontx_ep.ini | 8 doc/guides/nics/index.rst

[dpdk-dev] [PATCH v3 11/11] net/octeontx_ep: Transmit data path function added

2021-01-26 Thread Nalla Pradeep
1. Packet transmit function for both otx and otx2 are added. 2. Flushing transmit(command) queue when pending commands are more than maximum allowed value (currently 16). 3. Scatter gather support if the packet spans multiple buffers. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/o

[dpdk-dev] [PATCH v3 06/11] net/octeontx_ep: Added rxq setup and release

2021-01-26 Thread Nalla Pradeep
Receive queue setup involves allocating memory for the queue, initializing data structure representing the queue and filling queue with receive buffers of rx descriptor count. Receive queues are referred as droq. Hardware fills the receive buffers in queue with the packet. In receive queue release

[dpdk-dev] [PATCH v3 09/11] net/octeontx_ep: Added dev start and stop

2021-01-26 Thread Nalla Pradeep
Dev start and stop operations are added. To accomplish this internal functions to enable or disable io queues are incorporated. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 107 drivers/net/octeontx_ep/otx_ep_common.h | 10 ++ drivers/net/octeo

[dpdk-dev] [PATCH v3 10/11] net/octeontx_ep: Receive data path function added

2021-01-26 Thread Nalla Pradeep
Function to deliver packets from DROQ to application is added. It also fills DROQ with receive buffers timely such that device can fill them with incoming packets. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 2 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 3 + d

[dpdk-dev] [PATCH v5 0/8] add checking of header includes

2021-01-26 Thread Bruce Richardson
As a general principle, each header file should include any other headers it needs to provide data type definitions or macros. For example, any header using the uintX_t types in structures or function prototypes should include "stdint.h" to provide those type definitions. In practice, while many,

[dpdk-dev] [PATCH v5 1/8] eal: add missing include to mcslock

2021-01-26 Thread Bruce Richardson
Include 'rte_branch_prediction.h' to get the likely/unlikely macro definitions. Fixes: 2173fb61 ("mcslock: add MCS queued lock implementation") Cc: sta...@dpdk.org Signed-off-by: Bruce Richardson --- lib/librte_eal/include/generic/rte_mcslock.h | 1 + 1 file changed, 1 insertion(+) diff --

[dpdk-dev] [PATCH v5 2/8] eal: fix error attribute use for clang

2021-01-26 Thread Bruce Richardson
Clang does not have an "error" attribute for functions, so for marking internal functions we need to check for the error attribute, and provide a fallback if it is not present. For clang, we can use "diagnose_if" attribute, similarly checking for its presence before use. Fixes: fba5af82adc8 ("eal:

[dpdk-dev] [PATCH v5 3/8] ethdev: make driver-only headers private

2021-01-26 Thread Bruce Richardson
The rte_ethdev_driver.h, rte_ethdev_vdev.h and rte_ethdev_pci.h files are for drivers only and should be a private to DPDK and not installed. Signed-off-by: Bruce Richardson --- app/test/test_link_bonding.c | 2 +- app/test/test_pdump.c

[dpdk-dev] [PATCH v5 4/8] rib: fix missing header include

2021-01-26 Thread Bruce Richardson
The rte_rib6 header was using RTE_MIN macro from rte_common.h but not including the header file. Fixes: f7e861e21c46 ("rib: support IPv6") Cc: vladimir.medved...@intel.com Signed-off-by: Bruce Richardson --- lib/librte_rib/rte_rib6.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librt

[dpdk-dev] [PATCH v5 5/8] build: separate out headers for include checking

2021-01-26 Thread Bruce Richardson
For some libraries, there may be some header files which are not for direct inclusion, but rather are to be included via other header files. To allow later checking of these files for missing includes, we separate out the indirect include files from the direct ones. Signed-off-by: Bruce Richardson

[dpdk-dev] [PATCH v5 6/8] buildtools/chkincs: add app to verify header includes

2021-01-26 Thread Bruce Richardson
To verify that all DPDK headers are ok for inclusion directly in a C file, and are not missing any other pre-requisite headers, we can auto-generate for each header an empty C file that includes that header. Compiling these files will throw errors if any header has unmet dependencies. To ensure on

[dpdk-dev] [PATCH v5 7/8] devtools: remove check-includes script

2021-01-26 Thread Bruce Richardson
The check-includes script allowed checking header files in a given directory to ensure that each header compiled alone without requiring any other header inclusions. With header checking now being done by the chkincs app in the build system this script can be removed. Signed-off-by: Bruce Richard

[dpdk-dev] [PATCH v5 8/8] ci: add checking of includes to CI builds

2021-01-26 Thread Bruce Richardson
For CI builds, turn on the checking of includes. Signed-off-by: Bruce Richardson --- .ci/linux-build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh index afa3689a09..fdbeb5a616 100755 --- a/.ci/linux-build.sh +++ b/.ci/linux-build.sh @@ -57,6 +57,7

[dpdk-dev] [PATCH v4 02/11] net/octeontx_ep: add ethdev probe and remove

2021-01-26 Thread Nalla Pradeep
add basic PCIe ethdev probe and remove. Signed-off-by: Nalla Pradeep --- drivers/common/octeontx2/otx2_common.h| 5 +- drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx_ep_common.h | 14 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 62 +

[dpdk-dev] [PATCH v4 03/11] net/octeontx_ep: add device init and uninit

2021-01-26 Thread Nalla Pradeep
Add basic init and uninit function which includes initializing fields of ethdev private structure. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 22 ++- drivers/net/octeontx_ep/otx_ep_ethdev.c | 88 +++-- 2 files changed, 104 insertions(+), 6

[dpdk-dev] [PATCH v4 01/11] net/octeontx_ep: add build and doc infrastructure

2021-01-26 Thread Nalla Pradeep
Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for octeontx end point PMD. Signed-off-by: Nalla Pradeep --- MAINTAINERS | 9 + doc/guides/nics/features/octeontx_ep.ini | 8 doc/guides/nics/index.rst

[dpdk-dev] [PATCH v4 06/11] net/octeontx_ep: Added rxq setup and release

2021-01-26 Thread Nalla Pradeep
Receive queue setup involves allocating memory for the queue, initializing data structure representing the queue and filling queue with receive buffers of rx descriptor count. Receive queues are referred as droq. Hardware fills the receive buffers in queue with the packet. In receive queue release

[dpdk-dev] [PATCH v4 04/11] net/octeontx_ep: Added basic device setup.

2021-01-26 Thread Nalla Pradeep
Functions to setup device, basic IQ and OQ registers are added. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/meson.build | 2 + drivers/net/octeontx_ep/otx2_ep_vf.c| 133 + drivers/net/octeontx_ep/otx2_ep_vf.h| 11 ++ drivers/net/octeontx_ep/otx_ep_

[dpdk-dev] [PATCH v4 05/11] net/octeontx_ep: Add dev info get and configure

2021-01-26 Thread Nalla Pradeep
Add device information get and device configure operations. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 15 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 89 - drivers/net/octeontx_ep/otx_ep_rxtx.h | 10 +++ 3 files changed, 111 insertio

[dpdk-dev] [PATCH v4 10/11] net/octeontx_ep: Receive data path function added

2021-01-26 Thread Nalla Pradeep
Function to deliver packets from DROQ to application is added. It also fills DROQ with receive buffers timely such that device can fill them with incoming packets. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 2 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 3 + d

[dpdk-dev] [PATCH v4 07/11] net/octeontx_ep: Added tx queue setup and release

2021-01-26 Thread Nalla Pradeep
Transmit queue setup involves allocating memory for the command queue considering tx descriptor count and initializing data structure representing the queue. Transmit queue release function frees the command queue. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx_ep_common.h | 89 ++

[dpdk-dev] [PATCH v4 08/11] net/octeontx_ep: Setting up iq and oq registers

2021-01-26 Thread Nalla Pradeep
Configuring hardware registers with command queue(iq) and droq(oq) parameters. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 120 +++ drivers/net/octeontx_ep/otx_ep_common.h | 65 + drivers/net/octeontx_ep/otx_ep_vf.c | 121 ++

[dpdk-dev] [PATCH v4 11/11] net/octeontx_ep: Transmit data path function added

2021-01-26 Thread Nalla Pradeep
1. Packet transmit function for both otx and otx2 are added. 2. Flushing transmit(command) queue when pending commands are more than maximum allowed value (currently 16). 3. Scatter gather support if the packet spans multiple buffers. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/o

[dpdk-dev] [PATCH v4 09/11] net/octeontx_ep: Added dev start and stop

2021-01-26 Thread Nalla Pradeep
Dev start and stop operations are added. To accomplish this internal functions to enable or disable io queues are incorporated. Signed-off-by: Nalla Pradeep --- drivers/net/octeontx_ep/otx2_ep_vf.c| 107 drivers/net/octeontx_ep/otx_ep_common.h | 10 ++ drivers/net/octeo

Re: [dpdk-dev] [PATCH] bus/pci: nvme on Windows requires class id and bus

2021-01-26 Thread Thomas Monjalon
26/01/2021 19:18, Nick Connolly: > Hi Tal, > > Thanks for the comments. > > >> + /* Try and find PCI class ID */ > >> + for (cp = buf; !(cp[0] == 0 && cp[1] == 0); cp++) > > How about > > for (cp = buf; cp[0] || cp[1]; cp++) > That would be my preferred idiom, but the DPDK coding styl

Re: [dpdk-dev] [PATCH v2 11/37] net/mvpp2: save initial configuration

2021-01-26 Thread Ferruh Yigit
On 1/22/2021 7:18 PM, lir...@marvell.com wrote: From: Yuri Chipchev Save configuration that was done prior 'start' as only then the ppio is being configured. Can you please give more details on what is saved and why? Signed-off-by: Yuri Chipchev Reviewed-by: Liron Himi --- drivers/net/

[dpdk-dev] [PATCH v2] doc: update i40e PMD to support on windows

2021-01-26 Thread Pallavi Kadam
Add documentation to support i40e PMD on Windows. Update the release notes and features list for the same. v2 changes: - updated doc/guides/nics/features/i40e.ini file - Replaced the name UIO with NetUIO Signed-off-by: Pallavi Kadam Reviewed-by: Ranjit Menon --- doc/guides/nics

Re: [dpdk-dev] [EXT] Re: [PATCH v2 00/37] net/mvpp2: misc updates

2021-01-26 Thread Ferruh Yigit
On 1/26/2021 6:07 PM, Liron Himi wrote: -Original Message- From: Ferruh Yigit Sent: Tuesday, 26 January 2021 18:59 To: Jerin Jacob ; Liron Himi Cc: Jerin Jacob Kollanukkaran ; dpdk-dev ; Michael Shamis Subject: [EXT] Re: [dpdk-dev] [PATCH v2 00/37] net/mvpp2: misc updates External E

Re: [dpdk-dev] [PATCH v2 27/37] net/mvpp2: propagate port-id in udata64

2021-01-26 Thread Ferruh Yigit
On 1/22/2021 7:19 PM, lir...@marvell.com wrote: From: Liron Himi mbuf->port can be override and used for eventdev so saving the port-id information in another field that can be queried by application Signed-off-by: Liron Himi --- drivers/net/mvpp2/mrvl_ethdev.c | 1 + 1 file changed, 1 ins

Re: [dpdk-dev] [PATCH v2 26/37] net/mvpp2: introduce fixup for fifo overrun

2021-01-26 Thread Ferruh Yigit
On 1/22/2021 7:19 PM, lir...@marvell.com wrote: From: Liron Himi Currently the HW is configured with only one pool which its buffer size may be larger than the rx-fifo-size. In that situation, frame size larger than the fifo-size is gets dropped due to fifo overrun. this is cause because the HW

Re: [dpdk-dev] [PATCH v2 15/37] net/mvpp2: add dsa mode support

2021-01-26 Thread Ferruh Yigit
On 1/22/2021 7:19 PM, lir...@marvell.com wrote: From: Liron Himi Extend the config file with 'start-hdr' field. currently 'eth' (default) and 'dsa' headers are supported. Signed-off-by: Liron Himi <...> @@ -575,13 +607,15 @@ mrvl_get_qoscfg(const char *key __rte_unused, const char *path,

Re: [dpdk-dev] [PATCH v2 15/37] net/mvpp2: add dsa mode support

2021-01-26 Thread Ferruh Yigit
On 1/22/2021 7:19 PM, lir...@marvell.com wrote: From: Liron Himi Extend the config file with 'start-hdr' field. currently 'eth' (default) and 'dsa' headers are supported. Signed-off-by: Liron Himi There are multiple update to the config file in this series, but the documentation is not upd

Re: [dpdk-dev] [EXT] Re: [PATCH v2 07/37] net/mvpp2: update RSS tables reservation

2021-01-26 Thread Ferruh Yigit
On 1/26/2021 6:05 PM, Liron Himi wrote: -Original Message- From: Ferruh Yigit Sent: Tuesday, 26 January 2021 20:02 To: Liron Himi ; Jerin Jacob Kollanukkaran Cc: dev@dpdk.org; Yuri Chipchev Subject: [EXT] Re: [dpdk-dev] [PATCH v2 07/37] net/mvpp2: update RSS tables reservation Exte

Re: [dpdk-dev] [PATCH v2 00/37] net/mvpp2: misc updates

2021-01-26 Thread Ferruh Yigit
On 1/25/2021 6:00 PM, Jerin Jacob wrote: On Sat, Jan 23, 2021 at 12:49 AM wrote: From: Liron Himi This patch series align the mainline driver with all changes since 19.11 some of the patches are fixes which should be pushed to stable v2: - fix commit msg styling - Addressed various review c

Re: [dpdk-dev] [PATCH v3 01/11] net/octeontx_ep: add build and doc infrastructure

2021-01-26 Thread Ferruh Yigit
On 1/26/2021 9:30 PM, Nalla Pradeep wrote: Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for octeontx end point PMD. Signed-off-by: Nalla Pradeep Hi Nalla, As I quickly checked many comments not addressed, can you please add a change log to the co

Re: [dpdk-dev] [PATCH] net/i40e: fix register setting for hash enable

2021-01-26 Thread Xing, Beilei
> -Original Message- > From: dapengx...@intel.com > Sent: Tuesday, January 26, 2021 5:52 PM > To: Xing, Beilei ; Guo, Jia > Cc: dev@dpdk.org; Yu, DapengX ; sta...@dpdk.org > Subject: [PATCH] net/i40e: fix register setting for hash enable > > From: Dapeng Yu > > The original code cau

<    1   2   3   >