[dpdk-dev] kni interface does not transmit anything

2021-02-12 Thread mirzaei.reza
Hello, I've recently migrated from dpdk-18.05 to dpdk-20.11. I built "kni" example according to this tutorial [1], every thing is fine except that it has no output packet (no tx). have I ignored something? I would be grateful if anyone could help me. outputs: > ./BUILD/KNI -L 4-7 -N 4 -- -P -

Re: [dpdk-dev] [PATCH] [RFC]: adds support PPS(packet per second) on meter

2021-02-12 Thread Ajit Khaparde
On Sun, Jan 24, 2021 at 5:02 PM Li Zhang wrote: > Currently the flow Meter algorithms in rte_flow only supports bytes per > second(BPS). > Such as Single Rate Three Color Marker (srTCM rfc2697) > This RFC adds the packet per second definition in Meter algorithms > structure, > to support the rte_

[dpdk-dev] [PATCH 21.05 v3] app/testpmd: display rxq desc used count

2021-02-12 Thread Lance Richardson
Add support for displaying the count of used (filled by hardware but not yet processed by the driver) descriptors on a receive queue in order to allow the rte_eth_dev rx_queue_count() API to be exercised and tested. Signed-off-by: Lance Richardson --- v3: - Made terminology more consistent betwe

Re: [dpdk-dev] [PATCH 21.05] app/testpmd: support show Rx queue count

2021-02-12 Thread Lance Richardson
On Fri, Feb 12, 2021 at 6:51 AM Ferruh Yigit wrote: > > On 2/11/2021 7:44 PM, Lance Richardson wrote: > > Add support for querying receive queue count in order to allow > > the rte_eth_dev rx_queue_count() API to be exercised and tested. > > > > +1 to adding this feature, but the naming is a littl

[dpdk-dev] officially support building driver plugins externally

2021-02-12 Thread Tyler Retzlaff
Hi, Recently installation of driver headers and export of functions was pulled back from being public to private (commit df96fd0d73955bdc7ca3909e772ff2ad903249c6). From a discussion

[dpdk-dev] [PATCH 21.05 v2] app/testpmd: support show Rx queue desc count

2021-02-12 Thread Lance Richardson
Add support for querying the count of ready descriptors on a receive queue in order to allow the rte_eth_dev rx_queue_count() API to be exercised and tested. Signed-off-by: Lance Richardson --- app/test-pmd/cmdline.c | 83 + doc/guides/testpmd_app_ug/test

Re: [dpdk-dev] [dpdklab] Re: [dpdk-ci] [CI] SPDK compilation failures @ DPDK community lab

2021-02-12 Thread Brandon Lo
Hi Tomek, I do not think we have a specific reason for disabling vhost. I can look into enabling it and get back to you on that. Thanks, Brandon On Fri, Feb 12, 2021 at 4:18 AM Zawadzki, Tomasz wrote: > > Hi, > > As Aaron noted this was result of rte_ethdev depending on rte_net. > On SPDK side

[dpdk-dev] [PATCH v3 2/3] event/sw: add useful work done attribute

2021-02-12 Thread Harry van Haaren
This commit exposes if useful work is done to the service instance. The normal service_attr_get() API can be used to retrieve the value of the attribute. Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev_scheduler.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/e

[dpdk-dev] [PATCH v3 3/3] event/sw: add xstat for work done in last iteration

2021-02-12 Thread Harry van Haaren
Today it is difficult to know what Eventdev ports recieved work from the scheduling core. Sometimes it is useful to know where work has been scheduled. This patch implements an xstat for the SW PMD, which provides a bitmask of ports that were scheduled to. If the SW PMD instance has more than 64 p

[dpdk-dev] [PATCH v3 1/3] service: add component useful work attribute

2021-02-12 Thread Harry van Haaren
This commit adds a new attribute which allows the service to indicate if the previous iteration of work was "useful". Useful work here implies forward progress was made. Exposing this information via an attribute to the application allows tracking of CPU cycles as being useful or not-useful, and a

Re: [dpdk-dev] [PATCH 21.05 v2] app/testpmd: support show Rx queue desc count

2021-02-12 Thread Ferruh Yigit
On 2/12/2021 2:56 PM, Lance Richardson wrote: Add support for querying the count of ready descriptors on a receive queue in order to allow the rte_eth_dev rx_queue_count() API to be exercised and tested. Overall looks good to me, but there are slightly different reference to the feature, the

[dpdk-dev] [PATCH v3] doc: add pmdinfogen rewrite to release notes

2021-02-12 Thread Thomas Monjalon
From: Dmitry Kozlyuk The build tool pmdinfogen was rewritten in DPDK 21.02, adding Windows support. There is a new build-time dependency: pyelftools. Fixes: f0f93a7adfee ("buildtools: use Python pmdinfogen") Fixes: 6b19edcb663c ("build: enable pmdinfogen for Windows") Signed-off-by: Dmitry Kozl

[dpdk-dev] [PATCH 19.11] net/mlx5: fix storing the synched MAC to internal table

2021-02-12 Thread Dey, Souvik
From: Souvik Dey [ upstream commit 493f0bb51c1144eedcff2bba199cab1b64ff9fd0 ] As the internal MAC table is divided into Unicast and Multicast address sections, we should check the type of synched MAC address before storing it to the internal table. Currently the check is not done, and the synche

Re: [dpdk-dev] [PATCH] doc: update info for pyelftools install

2021-02-12 Thread Bruce Richardson
On Fri, Feb 12, 2021 at 02:46:28PM +, Kevin Traynor wrote: > python-pyelftools is not packaged for RHEL/CentOS with > the exception of RHEL7 EPEL. > > Add command to install it with pip. > > Fixes: f0f93a7adfee ("buildtools: use Python pmdinfogen") > > Signed-off-by: Kevin Traynor > --- >

[dpdk-dev] [PATCH] doc: update info for pyelftools install

2021-02-12 Thread Kevin Traynor
python-pyelftools is not packaged for RHEL/CentOS with the exception of RHEL7 EPEL. Add command to install it with pip. Fixes: f0f93a7adfee ("buildtools: use Python pmdinfogen") Signed-off-by: Kevin Traynor --- doc/guides/linux_gsg/sys_reqs.rst | 4 +++- 1 file changed, 3 insertions(+), 1 dele

Re: [dpdk-dev] [PATCH v2] doc: add pmdinfogen rewrite to release notes

2021-02-12 Thread Kevin Traynor
On 12/02/2021 14:29, Bruce Richardson wrote: > On Fri, Feb 12, 2021 at 03:17:39PM +0100, Thomas Monjalon wrote: >> From: Dmitry Kozlyuk >> >> The build tool pmdinfogen was rewritten in DPDK 21.02, >> adding Windows support. >> There is a new build-time dependency: pyelftools. >> >> Fixes: f0f93a7a

Re: [dpdk-dev] [PATCH v2] doc: add pmdinfogen rewrite to release notes

2021-02-12 Thread Bruce Richardson
On Fri, Feb 12, 2021 at 03:17:39PM +0100, Thomas Monjalon wrote: > From: Dmitry Kozlyuk > > The build tool pmdinfogen was rewritten in DPDK 21.02, > adding Windows support. > There is a new build-time dependency: pyelftools. > > Fixes: f0f93a7adfee ("buildtools: use Python pmdinfogen") > Fixes:

[dpdk-dev] [PATCH v2] doc: add pmdinfogen rewrite to release notes

2021-02-12 Thread Thomas Monjalon
From: Dmitry Kozlyuk The build tool pmdinfogen was rewritten in DPDK 21.02, adding Windows support. There is a new build-time dependency: pyelftools. Fixes: f0f93a7adfee ("buildtools: use Python pmdinfogen") Fixes: 6b19edcb663c ("build: enable pmdinfogen for Windows") Signed-off-by: Dmitry Kozl

Re: [dpdk-dev] [PATCH v1] doc: update release notes for 21.02

2021-02-12 Thread Thomas Monjalon
12/02/2021 14:30, Bruce Richardson: > On Fri, Feb 12, 2021 at 01:49:27PM +0100, Thomas Monjalon wrote: > > 12/02/2021 12:57, Bruce Richardson: > > > On Fri, Feb 12, 2021 at 12:33:35AM +0100, Thomas Monjalon wrote: > > > > 11/02/2021 13:08, Mcnamara, John: > > > > > > > > > Thomas, > > > > > > > >

Re: [dpdk-dev] [PATCH v1] doc: update release notes for 21.02

2021-02-12 Thread Bruce Richardson
On Fri, Feb 12, 2021 at 01:49:27PM +0100, Thomas Monjalon wrote: > 12/02/2021 12:57, Bruce Richardson: > > On Fri, Feb 12, 2021 at 12:33:35AM +0100, Thomas Monjalon wrote: > > > 11/02/2021 13:08, Mcnamara, John: > > > > > > > Thomas, > > > > > > > > I didn't remove the "Known Issues" section in c

Re: [dpdk-dev] [PATCH] doc: replace hugepages commands with dedicated tool

2021-02-12 Thread Thomas Monjalon
12/02/2021 12:55, Ferruh Yigit: > On 2/11/2021 6:16 PM, Thomas Monjalon wrote: > > --- a/doc/guides/howto/lm_bond_virtio_sriov.rst > > +++ b/doc/guides/howto/lm_bond_virtio_sriov.rst > > @@ -581,9 +581,9 @@ Set up DPDK in the Virtual Machine > > # virtio port is 03 > > # vf port is 04 > >

Re: [dpdk-dev] [PATCH v1] doc: update release notes for 21.02

2021-02-12 Thread Thomas Monjalon
12/02/2021 12:57, Bruce Richardson: > On Fri, Feb 12, 2021 at 12:33:35AM +0100, Thomas Monjalon wrote: > > 11/02/2021 13:08, Mcnamara, John: > > > > > Thomas, > > > > > > I didn't remove the "Known Issues" section in case someone else > > > adds something to it. If not you can remove it. > > > >

Re: [dpdk-dev] [PATCH v1] doc: update release notes for 21.02

2021-02-12 Thread Bruce Richardson
On Fri, Feb 12, 2021 at 12:33:35AM +0100, Thomas Monjalon wrote: > 11/02/2021 13:08, Mcnamara, John: > > > Thomas, > > > > I didn't remove the "Known Issues" section in case someone else > > adds something to it. If not you can remove it. > > OK, I will remove. > Should the new dependency on p

Re: [dpdk-dev] [PATCH] doc: replace hugepages commands with dedicated tool

2021-02-12 Thread Ferruh Yigit
On 2/11/2021 6:16 PM, Thomas Monjalon wrote: The tool dpdk-hugepages.py, added in DPDK 20.11, is referenced in the guides instead of more complicate commands. The original Linux commands are kept in linux_gsg/sys_reqs.rst and nics/build_and_test.rst. Suggested-by: Stephen Hemminger Signed-off-

Re: [dpdk-dev] [PATCH 21.05] app/testpmd: support show Rx queue count

2021-02-12 Thread Ferruh Yigit
On 2/11/2021 7:44 PM, Lance Richardson wrote: Add support for querying receive queue count in order to allow the rte_eth_dev rx_queue_count() API to be exercised and tested. +1 to adding this feature, but the naming is a little misleading, "Rx queue count", it looks like it will print the num

Re: [dpdk-dev] [PATCH] usertools: check 0-division with hugepage size

2021-02-12 Thread Thomas Monjalon
12/02/2021 12:27, Burakov, Anatoly: > On 11-Feb-21 10:05 PM, Thomas Monjalon wrote: > > The default page size can be None, and the page size from user request > > can be 0 kB if lower than 1024. In these cases, a division will fail. > > In order to avoid a Python exception, the page size is checked

Re: [dpdk-dev] [PATCH] usertools: check 0-division with hugepage size

2021-02-12 Thread Burakov, Anatoly
On 11-Feb-21 10:05 PM, Thomas Monjalon wrote: The default page size can be None, and the page size from user request can be 0 kB if lower than 1024. In these cases, a division will fail. In order to avoid a Python exception, the page size is checked and an error message "Invalid page size" is pri

[dpdk-dev] [PATCH] net/mlx5: fix external buffer pool registration for Rx queue

2021-02-12 Thread Viacheslav Ovsiienko
On Rx queue creation the mlx5 PMD registers the data buffers of the specified pools for DMA operations. It scans the mem_list of the pools and creates the MRs (DMA related NIC objects) for the chunks found. If the pool is created with rte_pktmbuf_pool_create_extbuf() and refers to the external atta

[dpdk-dev] [PATCH] doc: add pmdinfogen rewrite to release notes

2021-02-12 Thread Thomas Monjalon
From: Dmitry Kozlyuk The build tool pmdinfogen was rewritten in DPDK 21.02, adding Windows support. There is a new build-time dependency: pyelftools. Fixes: f0f93a7adfee ("buildtools: use Python pmdinfogen") Fixes: 6b19edcb663c ("build: enable pmdinfogen for Windows") Signed-off-by: Dmitry Kozl

Re: [dpdk-dev] [RFC PATCH] eventdev: use shared memory to store timer adapter

2021-02-12 Thread Pavan Nikhilesh Bhagavatula
>-Original Message- >From: Shijith Thotton >Sent: Friday, February 12, 2021 3:44 PM >To: Erik Gabriel Carrillo >Cc: Shijith Thotton ; Pavan Nikhilesh >Bhagavatula ; Jerin Jacob Kollanukkaran >; dev@dpdk.org >Subject: [RFC PATCH] eventdev: use shared memory to store timer >adapter > >It

[dpdk-dev] [RFC PATCH] eventdev: use shared memory to store timer adapter

2021-02-12 Thread Shijith Thotton
It is not possible for secondary process to arm timer as timer adapter is not stored in shared memory. Using shared memory allows the secondary to lookup adapters and arm them. Signed-off-by: Shijith Thotton --- drivers/event/octeontx/timvf_evdev.c | 20 +- drivers/event/octeontx/timvf

Re: [dpdk-dev] [dpdklab] Re: [dpdk-ci] [CI] SPDK compilation failures @ DPDK community lab

2021-02-12 Thread Zawadzki, Tomasz
Hi, As Aaron noted this was result of rte_ethdev depending on rte_net. On SPDK side rte_net was included in default compilation with vhost component, but since vhost is disabled in the UNH lab tests with SPDK it showed up as missing. A fix for that is now submitted to SPDK: https://review.spdk.i

Re: [dpdk-dev] [PATCH v1] doc: update release notes for 21.02

2021-02-12 Thread Dmitry Kozlyuk
On Fri, 12 Feb 2021 00:33:35 +0100, Thomas Monjalon wrote: > 11/02/2021 13:08, Mcnamara, John: > > Also, there probably should be a note about the change to pmdinfogen > > in this release. I didn't know enough about it to add it myself. > > Yes it is a rewrite of a build tool. > The real new fea