Re: [dpdk-dev] [PATCH] test: move debug_autotest out of fast suite

2021-03-01 Thread David Marchand
On Thu, Feb 25, 2021 at 8:49 PM wrote: > > From: Luca Boccassi > > It consistently fails when ran on a build machine within the > reproducible build environment, so move it out of there, so > that we can run the fast suite at build time when packaging. This test is quite simple. Surprising that

Re: [dpdk-dev] [PATCH 2/2] kni: fix rtnl deadlocks and race conditions v4

2021-03-01 Thread Igor Ryzhov
Stephen, No, I don't have a better proposal, but I think it is not correct to change the behavior of KNI (making link down without a real response). Even though we know that communicating with userspace under rtnl_lock is a bad idea, it works as it is for many years already. Elad, I agree with y

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

2021-03-01 Thread Li Zhang
Li Zhang (1): ethdev: add meter PPS profile lib/librte_ethdev/rte_mtr.h | 32 ++ -- 2.27.0

[dpdk-dev] [RFC 1/1] ethdev: add meter PPS profile

2021-03-01 Thread Li Zhang
Currently meter algorithms only supports rate is bytes per second(BPS). Add this new meter srTCMp algorithm to support rate is packet per second. So that it can meter traffic by packet per second. The below structure will be extended: rte_mtr_algorithm rte_mtr_meter_profile Signed-off-by: Li Zhang

Re: [dpdk-dev] [PATCH] app/testpmd: add support for forced ethernet speed

2021-03-01 Thread Ajit Khaparde
On Fri, Feb 26, 2021 at 3:21 AM Ferruh Yigit wrote: > > On 2/26/2021 6:43 AM, Andrew Rybchenko wrote: > > On 2/25/21 9:25 PM, Ferruh Yigit wrote: > >> On 2/22/2021 7:18 PM, Ajit Khaparde wrote: > >>> Add support for forced ethernet speed setting. > >>> Currently testpmd tries to configure the Ethe

Re: [dpdk-dev] [PATCH] net/mlx5: fix wrong segmented packet in Rx

2021-03-01 Thread Slava Ovsiienko
Hi, Jiawei Thank you for the clarification. I missed the point that we have updated elts array with new allocated mbufs and are not able to retry packet building anymore. Very good catch, thank you! Could you, please, add this extra explanation to the commit message and send the v2 ? With bes

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

2021-03-01 Thread Nick Connolly
Thanks Dmitry - will address and send v7. On 28/02/2021 14:38, Dmitry Kozlyuk wrote: 2021-02-23 18:18, Nick Connolly: 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 it is present and set de

Re: [dpdk-dev] [EXT] [PATCH] cryptodev: support multiple cipher block sizes

2021-03-01 Thread Kusztal, ArkadiuszX
> -Original Message- > From: dev On Behalf Of Matan Azrad > Sent: Monday, March 1, 2021 8:56 AM > To: Anoob Joseph ; dev@dpdk.org > Cc: Doherty, Declan ; Somalapuram Amaranath > ; Ruifeng Wang ; Ajit > Khaparde ; Zhang, Roy Fan > ; Griffin, John ; De Lara > Guarch, Pablo ; Michael Shami

[dpdk-dev] [RFC v3 1/4] ethdev: add meter PPS profile

2021-03-01 Thread Li Zhang
Currently meter algorithms only supports rate is bytes per second(BPS). Add this new meter srTCMp algorithm to support rate is packet per second. So that it can meter traffic by packet per second. The below structure will be extended: rte_mtr_algorithm rte_mtr_meter_profile Signed-off-by: Li Zhang

[dpdk-dev] [RFC v3 0/4] adds support PPS(packet per second) on meter

2021-03-01 Thread Li Zhang
v2: * Rebase Li Zhang (4): ethdev: add meter PPS profile common/mlx5: add meter mode definition in PRM file net/mlx5: support meter PPS profile app/testpmd: add meter pps mode cmd app/test-pmd/cmdline.c| 4 + app/test-pmd/cmdline_mtr.c| 105

[dpdk-dev] [RFC v3 3/4] net/mlx5: support meter PPS profile

2021-03-01 Thread Li Zhang
Currently meter algorithms only supports bytes per second(BPS). Such as Single Rate Three Color Marker (srTCM rfc2697) Add this new meter srTCMp algorithm to support rate is packet per second. So that it can meter traffic by packet per second (PPS). Signed-off-by: Li Zhang --- doc/guides/nics/ml

[dpdk-dev] [RFC v3 2/4] common/mlx5: add meter mode definition in PRM file

2021-03-01 Thread Li Zhang
Add meter mode definition in PRM file Signed-off-by: Li Zhang --- drivers/common/mlx5/mlx5_prm.h | 8 1 file changed, 8 insertions(+) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h index e3d4120849..609b1c3951 100644 --- a/drivers/common/mlx5/mlx5_prm.h ++

[dpdk-dev] [RFC v3 4/4] app/testpmd: add meter pps mode cmd

2021-03-01 Thread Li Zhang
Support meter pps mode Signed-off-by: Li Zhang --- app/test-pmd/cmdline.c | 4 + app/test-pmd/cmdline_mtr.c | 105 app/test-pmd/cmdline_mtr.h | 1 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 15 +++ 4 files chan

Re: [dpdk-dev] [PATCH v6 07/17] drivers: replace page size definitions with function

2021-03-01 Thread Bruce Richardson
On Sun, Feb 28, 2021 at 01:53:42PM +0100, Thomas Monjalon wrote: > The page size is often retrieved from the macro PAGE_SIZE. > If PAGE_SIZE is not defined, it is either using hard coded default, > or getting the system value from the UNIX-only function sysconf(). > > Such definitions are replaced

[dpdk-dev] [RFC v3 0/4] adds support PPS(packet per second) on meter

2021-03-01 Thread Li Zhang
v2: * Rebase Li Zhang (4): ethdev: add meter PPS profile common/mlx5: add meter mode definition in PRM file net/mlx5: support meter PPS profile app/testpmd: add meter pps mode cmd app/test-pmd/cmdline.c| 4 + app/test-pmd/cmdline_mtr.c| 105

[dpdk-dev] [RFC v3 1/4] ethdev: add meter PPS profile

2021-03-01 Thread Li Zhang
Currently meter algorithms only supports rate is bytes per second(BPS). Add this new meter srTCMp algorithm to support rate is packet per second. So that it can meter traffic by packet per second. The below structure will be extended: rte_mtr_algorithm rte_mtr_meter_profile Signed-off-by: Li Zhang

[dpdk-dev] [RFC v3 2/4] common/mlx5: add meter mode definition in PRM file

2021-03-01 Thread Li Zhang
Add meter mode definition in PRM file Signed-off-by: Li Zhang --- drivers/common/mlx5/mlx5_prm.h | 8 1 file changed, 8 insertions(+) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h index e3d4120849..609b1c3951 100644 --- a/drivers/common/mlx5/mlx5_prm.h ++

[dpdk-dev] [RFC v3 3/4] net/mlx5: support meter PPS profile

2021-03-01 Thread Li Zhang
Currently meter algorithms only supports bytes per second(BPS). Such as Single Rate Three Color Marker (srTCM rfc2697) Add this new meter srTCMp algorithm to support rate is packet per second. So that it can meter traffic by packet per second (PPS). Signed-off-by: Li Zhang --- doc/guides/nics/ml

[dpdk-dev] [RFC v3 4/4] app/testpmd: add meter pps mode cmd

2021-03-01 Thread Li Zhang
Support meter pps mode Signed-off-by: Li Zhang --- app/test-pmd/cmdline.c | 4 + app/test-pmd/cmdline_mtr.c | 105 app/test-pmd/cmdline_mtr.h | 1 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 15 +++ 4 files chan

Re: [dpdk-dev] [PATCH v6 07/17] drivers: replace page size definitions with function

2021-03-01 Thread Thomas Monjalon
01/03/2021 10:41, Bruce Richardson: > On Sun, Feb 28, 2021 at 01:53:42PM +0100, Thomas Monjalon wrote: > > The page size is often retrieved from the macro PAGE_SIZE. > > If PAGE_SIZE is not defined, it is either using hard coded default, > > or getting the system value from the UNIX-only function s

[dpdk-dev] [RFC v3 4/4] app/testpmd: add meter pps mode cmd

2021-03-01 Thread Li Zhang
Support meter pps mode Signed-off-by: Li Zhang --- app/test-pmd/cmdline.c | 4 + app/test-pmd/cmdline_mtr.c | 105 app/test-pmd/cmdline_mtr.h | 1 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 15 +++ 4 files chan

[dpdk-dev] [RFC v3 1/4] ethdev: add meter PPS profile

2021-03-01 Thread Li Zhang
Currently meter algorithms only supports rate is bytes per second(BPS). Add this new meter srTCMp algorithm to support rate is packet per second. So that it can meter traffic by packet per second. The below structure will be extended: rte_mtr_algorithm rte_mtr_meter_profile Signed-off-by: Li Zhang

[dpdk-dev] [RFC v3 3/4] net/mlx5: support meter PPS profile

2021-03-01 Thread Li Zhang
Currently meter algorithms only supports bytes per second(BPS). Such as Single Rate Three Color Marker (srTCM rfc2697) Add this new meter srTCMp algorithm to support rate is packet per second. So that it can meter traffic by packet per second (PPS). Signed-off-by: Li Zhang --- doc/guides/nics/ml

[dpdk-dev] [RFC v3 0/4] adds support PPS(packet per second) on meter

2021-03-01 Thread Li Zhang
v3: * Redefine the struct name for PPS mode. v2: * Rebase Li Zhang (4): ethdev: add meter PPS profile common/mlx5: add meter mode definition in PRM file net/mlx5: support meter PPS profile app/testpmd: add meter pps mode cmd app/test-pmd/cmdline.c| 4 + app/te

[dpdk-dev] [RFC v3 2/4] common/mlx5: add meter mode definition in PRM file

2021-03-01 Thread Li Zhang
Add meter mode definition in PRM file Signed-off-by: Li Zhang --- drivers/common/mlx5/mlx5_prm.h | 8 1 file changed, 8 insertions(+) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h index e3d4120849..609b1c3951 100644 --- a/drivers/common/mlx5/mlx5_prm.h ++

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

2021-03-01 Thread Nick Connolly
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 it is present and set device.bus. Signed-off-by: Nick Connolly Acked-by: Tal Shnaiderman Acked-by: Dmitry Kozlyuk --- v7: * Improve comments a

Re: [dpdk-dev] [PATCH] eal/windows: add missing SPDX license tag

2021-03-01 Thread Nick Connolly
Fixes: c08bd191b13d ("eal/windows: initialize hugepage info") Cc: sta...@dpdk.org Reported-by: Stephen Hemminger Signed-off-by: Dmitry Kozlyuk Acked-by: Nick Connolly

Re: [dpdk-dev] [Bug 644] [dpdk-19.11.7]usertools/dpdk-devbind.py: bind NIC port to DPDK failed in vm.

2021-03-01 Thread Bruce Richardson
On Mon, Mar 01, 2021 at 01:48:49AM +, bugzi...@dpdk.org wrote: > https://bugs.dpdk.org/show_bug.cgi?id=644 > > Bug ID: 644 >Summary: [dpdk-19.11.7]usertools/dpdk-devbind.py: bind NIC port > to DPDK failed in vm. >Product: DPDK >

Re: [dpdk-dev] [PATCH v6 07/17] drivers: replace page size definitions with function

2021-03-01 Thread Bruce Richardson
On Mon, Mar 01, 2021 at 10:53:46AM +0100, Thomas Monjalon wrote: > 01/03/2021 10:41, Bruce Richardson: > > On Sun, Feb 28, 2021 at 01:53:42PM +0100, Thomas Monjalon wrote: > > > The page size is often retrieved from the macro PAGE_SIZE. > > > If PAGE_SIZE is not defined, it is either using hard cod

[dpdk-dev] [RFC v4 0/4] adds support PPS(packet per second) on meter

2021-03-01 Thread Li Zhang
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_mtr APIs with type srTCM pps mode. The below structure will be

[dpdk-dev] [RFC v4 1/4] ethdev: add meter PPS profile

2021-03-01 Thread Li Zhang
Currently meter algorithms only supports rate is bytes per second(BPS). Add this new meter srTCMp algorithm to support rate is packet per second. So that it can meter traffic by packet per second. The below structure will be extended: rte_mtr_algorithm rte_mtr_meter_profile Signed-off-by: Li Zhang

[dpdk-dev] [RFC v4 2/4] common/mlx5: add meter mode definition in PRM file

2021-03-01 Thread Li Zhang
Add meter mode definition in PRM file Signed-off-by: Li Zhang --- drivers/common/mlx5/mlx5_prm.h | 8 1 file changed, 8 insertions(+) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h index e3d4120849..609b1c3951 100644 --- a/drivers/common/mlx5/mlx5_prm.h ++

[dpdk-dev] [RFC v4 3/4] net/mlx5: support meter PPS profile

2021-03-01 Thread Li Zhang
Currently meter algorithms only supports bytes per second(BPS). Such as Single Rate Three Color Marker (srTCM rfc2697) Add this new meter srTCMp algorithm to support rate is packet per second. So that it can meter traffic by packet per second (PPS). Signed-off-by: Li Zhang --- doc/guides/nics/ml

[dpdk-dev] [RFC v4 4/4] app/testpmd: add meter pps mode cmd

2021-03-01 Thread Li Zhang
Support meter pps mode Signed-off-by: Li Zhang --- app/test-pmd/cmdline.c | 4 + app/test-pmd/cmdline_mtr.c | 105 app/test-pmd/cmdline_mtr.h | 1 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 15 +++ 4 files chan

[dpdk-dev] [PATCH] vdpa/mlx5: fix virtq cleaning

2021-03-01 Thread Matan Azrad
The HW virtq object can be destroyed ether when the device is closed or when the state of the virtq becomes disabled. Some parameters of the virtq should continue to be managed when the virtq state is changed but all of them must be initialized when the device is closed. Wrongly, the enable param

Re: [dpdk-dev] [PATCH] mem: fix free segment when using huge-unlink option

2021-03-01 Thread Burakov, Anatoly
On 28-Feb-21 1:21 PM, Roy Shterman wrote: On Mon, Feb 22, 2021 at 5:53 PM Burakov, Anatoly mailto:anatoly.bura...@intel.com>> wrote: On 22-Feb-21 10:41 AM, Roy Shterman wrote: > When using huge_unlink we unlink the segment right > after allocation. Although we unlink the file w

Re: [dpdk-dev] [PATCH 1/2] config/arm: fix Hisilicon kunpeng920 SoC build

2021-03-01 Thread Juraj Linkeš
> -Original Message- > From: Thomas Monjalon > Sent: Wednesday, February 24, 2021 1:10 PM > To: Juraj Linkeš > Cc: oulijun ; ferruh.yi...@intel.com; dev@dpdk.org; > linux...@openeuler.org > Subject: Re: [dpdk-dev] [PATCH 1/2] config/arm: fix Hisilicon kunpeng920 SoC > build > > 24/02/2

[dpdk-dev] [PATCH] net/af_xdp: fix error handling during Rx queue setup

2021-03-01 Thread Ciara Loftus
Prior to this commit, if rte_pktmbuf_alloc_bullk failed during rx queue setup the error was not returned to the user and they may incorrectly assume that the rx queue had been successfully set up. This commit ensures that the error is returned to the user. Bugzilla ID: 643 Fixes: d8a210774e1d ("ne

[dpdk-dev] [Bug 645] mlx5 does not reflect lpbk_mode setting

2021-03-01 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=645 Bug ID: 645 Summary: mlx5 does not reflect lpbk_mode setting Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal

[dpdk-dev] [PATCH] doc: fix dpdk-graph-crypto-perf dependencies

2021-03-01 Thread Ciara Power
The script dependencies list was incomplete, this patch adds missing modules and removes an unnecessary entry. The installation command was also added. Fixes: f400e0b82bf1 ("app/crypto-perf: add script to graph perf results") Signed-off-by: Ciara Power --- doc/guides/tools/cryptoperf.rst | 8 ++

Re: [dpdk-dev] 回复: [PATCH] driver/net/pcap fix: pcap fd leak

2021-03-01 Thread Ferruh Yigit
Please do not top post, message moved down. On 2/26/2021 5:47 PM, 张 杨 wrote: I think your idea is fine What do you think just record file path in "pmd_pcap_probe()", Perform an open operation only in "eth_dev_start()"? When the secondary process add pcap vdev, it send the request to primary

Re: [dpdk-dev] [PATCH v8 0/3] fix issue with partial DMA unmap

2021-03-01 Thread David Marchand
On Fri, Jan 15, 2021 at 8:33 AM Nithin Dabilpuram wrote: > > Partial DMA unmap is not supported by VFIO type1 IOMMU > in Linux. Though the return value is zero, the returned > DMA unmap size is not same as expected size. > So add test case and fix to both heap triggered DMA > mapping and user trig

Re: [dpdk-dev] [PATCH] app/testpmd: add support for forced ethernet speed

2021-03-01 Thread Ferruh Yigit
On 2/26/2021 4:18 PM, Andrew Boyer wrote: On Feb 26, 2021, at 6:21 AM, Ferruh Yigit wrote: On 2/26/2021 6:43 AM, Andrew Rybchenko wrote: On 2/25/21 9:25 PM, Ferruh Yigit wrote: On 2/22/2021 7:18 PM, Ajit Khaparde wrote: Add support for forced ethernet speed setting. Currently testpmd trie

[dpdk-dev] [PATCH 1/2] test/crypto: close PMD after tests

2021-03-01 Thread Adam Dybkowski
This patch adds closing of the PMD after running the tests. Signed-off-by: Adam Dybkowski --- app/test/test_cryptodev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index f91debc16..7dcd255de 100644 --- a/app/test/tes

[dpdk-dev] [PATCH 2/2] app/crypto-perf: close PMD after benchmark run

2021-03-01 Thread Adam Dybkowski
This patch adds closing of the PMD after running the benchmark. Signed-off-by: Adam Dybkowski --- app/test-crypto-perf/main.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index 49af812d8..c1d338fa4 100644 --

Re: [dpdk-dev] Duplicating traffic with RTE Flow

2021-03-01 Thread Jan Viktorin
Hello Asaf, it is a while we were in touch regarding this topic. Finally, I am again trying to get work this feature. I've seen that sampling is already upstreamed which is great. However, I am not very successful with that. There is nearly no documentation, just [1], I found no examples, just com

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

2021-03-01 Thread Dumitrescu, Cristian
> -Original Message- > From: Ferruh Yigit > Sent: Thursday, January 28, 2021 6:28 PM > To: Li Zhang ; dek...@nvidia.com; or...@nvidia.com; > viachesl...@nvidia.com; ma...@nvidia.com; Dumitrescu, Cristian > > Cc: dev@dpdk.org; tho...@monjalon.net; rasl...@nvidia.com > Subject: Re: [dpdk-

Re: [dpdk-dev] [RFC v4 1/4] ethdev: add meter PPS profile

2021-03-01 Thread Dumitrescu, Cristian
> -Original Message- > From: dev On Behalf Of Li Zhang > Sent: Monday, March 1, 2021 10:35 AM > To: dek...@nvidia.com; or...@nvidia.com; viachesl...@nvidia.com; > ma...@nvidia.com > Cc: dev@dpdk.org; tho...@monjalon.net; rasl...@nvidia.com; > m...@smartsharesystems.com; ajit.khapa...@broad

Re: [dpdk-dev] [PATCH] net/ring: support secondary process

2021-03-01 Thread Bruce Richardson
On Wed, Sep 30, 2020 at 12:02:40PM +0100, Ferruh Yigit wrote: > Also add missing .ini feature list documentation and document some > existing features including new "Multiprocess aware" feature. > > Signed-off-by: Ferruh Yigit > --- > Cc: Kevin Laatz > --- > doc/guides/nics/features/ring.ini |

Re: [dpdk-dev] [dpdk-stable] [PATCH] doc: fix nfp multiport syntax

2021-03-01 Thread Ferruh Yigit
On 2/25/2021 11:46 AM, Heinrich Kuhn wrote: From: "Chaoyong.He" 1. Fixup the suffix of the PCI ID to be consistent with the code. 2. Add specification of using MAC address to identify port. Fixes: 979f2bae0 ("doc: improve multiport PF in nfp guide") Cc: sta...@dpdk.org Signed-off-by: Chaoyong

Re: [dpdk-dev] [PATCH 07/13] net/hns3: support PF on electrical net device

2021-03-01 Thread oulijun
在 2021/2/26 23:25, Ferruh Yigit 写道: On 2/24/2021 1:28 AM, Lijun Ou wrote: From: Huisong Li The normal operation of electrical interface devices depends on the initialization and configuration of the PHY chip. The task of driving the PHY chip is implemented in some firmware versions. If firm

Re: [dpdk-dev] [PATCH v6 07/17] drivers: replace page size definitions with function

2021-03-01 Thread Andrew Boyer
> On Feb 28, 2021, at 7:53 AM, Thomas Monjalon wrote: > > The page size is often retrieved from the macro PAGE_SIZE. > If PAGE_SIZE is not defined, it is either using hard coded default, > or getting the system value from the UNIX-only function sysconf(). > > Such definitions are replaced with

Re: [dpdk-dev] Duplicating traffic with RTE Flow

2021-03-01 Thread Slava Ovsiienko
Hi, Jan To use port action (I see it is in your sample action list) the flow should be applied to the FDB domain, ie "transfer" attribute should be specified: flow validate 0 ingress transfer... With best regards, Slava > -Original Message- > From: Jan Viktorin > Sent: Monday, March 1

Re: [dpdk-dev] Duplicating traffic with RTE Flow

2021-03-01 Thread Jan Viktorin
On Mon, 1 Mar 2021 14:34:07 + Slava Ovsiienko wrote: > Hi, Jan > > To use port action (I see it is in your sample action list) the flow should > be applied to the FDB domain, > ie "transfer" attribute should be specified: > > flow validate 0 ingress transfer... As you can see (however, it

Re: [dpdk-dev] [PATCH 07/13] net/hns3: support PF on electrical net device

2021-03-01 Thread Ferruh Yigit
On 3/1/2021 2:17 PM, oulijun wrote: 在 2021/2/26 23:25, Ferruh Yigit 写道: On 2/24/2021 1:28 AM, Lijun Ou wrote: From: Huisong Li The normal operation of electrical interface devices depends on the initialization and configuration of the PHY chip. The task of driving the PHY chip is implemente

Re: [dpdk-dev] 回复: [PATCH] driver/net/pcap fix: pcap fd leak

2021-03-01 Thread Tengfei Zhang
On 2021/3/1 下午7:40, Ferruh Yigit wrote: Please do not top post, message moved down. On 2/26/2021 5:47 PM, 张 杨 wrote: I think your idea is fine What do you think just record file path in "pmd_pcap_probe()", Perform an open operation only in "eth_dev_start()"? When the secondary process add pc

[dpdk-dev] [PATCH v2] driver/net/pcap fix: fd leak bug

2021-03-01 Thread ZhangTengfei
pcap fd was opend when vdev probed, but not closed when vdev removed. This bug appears in dpdk-pdump Signed-off-by: ZhangTengfei --- drivers/net/pcap/rte_eth_pcap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index 90f5d

Re: [dpdk-dev] [PATCH v7 2/2] bus/pci: support MMIO in PCI ioport accessors

2021-03-01 Thread 谢华伟(此时此刻)
On 2021/2/25 17:52, David Marchand wrote: On Thu, Feb 25, 2021 at 5:00 AM 谢华伟(此时此刻) wrote: Is the 'outb_p' to 'outb' conversion intentional? And if so why? Same of the all 'outb_p', 'outw_p', 'outl_p'. There is no need to delay for virtio device, as we can see in virtio legacy driver. IMO,

Re: [dpdk-dev] [PATCH v6 1/2] bus/pci: use PCI standard sysfs entry to get PIO address

2021-03-01 Thread 谢华伟(此时此刻)
On 2021/2/25 1:52, David Marchand wrote: On Wed, Feb 24, 2021 at 4:29 PM 谢华伟(此时此刻) wrote: Did you check that virtio devices bound to uio_pci_generic still works with legacy mode + PIO? I had verified PIO, might under igb_uio driver. Well, if you are unsure, please retest both cases, igb_uio

Re: [dpdk-dev] [RFC v4 1/4] ethdev: add meter PPS profile

2021-03-01 Thread Thomas Monjalon
01/03/2021 14:20, Dumitrescu, Cristian: > From: Li Zhang > > As specified in the MAINTEINERS file of DPDK, I am the maintainer of this > > API, so please make sure you add my email in the To: list of future > > revisions of this patch set. This kind of miss should be solved by using --cc-cmd dev

[dpdk-dev] [PATCH v8 1/2] bus/pci: use PCI standard sysfs entry to get PIO address

2021-03-01 Thread 谢华伟(此时此刻)
From: "huawei.xhw" Currently virtio PMD asssumes legacy device uses PIO bar. There are three ways to get PIO(PortIO) address for virtio legacy device. under igb_uio, get pio address from uio/uio# sysfs attribute under uio_pci_generic: for X86, get PIO address from /proc/ioport

[dpdk-dev] [PATCH v8 2/2] bus/pci: support MMIO in PCI ioport accessors

2021-03-01 Thread 谢华伟(此时此刻)
From: "huawei.xhw" With IO BAR, we get PIO(programmed IO) address. With MMIO BAR, we get mapped virtual address. We distinguish PIO(Programmed IO) and MMIO(memory mapped IO) by their address like how kernel does. ioread/write8/16/32 is provided to access PIO/MMIO. By the way, for virtio on arch

[dpdk-dev] [PATCH v8 0/2] support both PIO and MMIO BAR for legacy device in virtio PMD

2021-03-01 Thread 谢华伟(此时此刻)
From: "huawei.xhw" virtio PMD assumes legacy device only supports PIO BAR resource. This is wrong. As we need to create lots of devices, as PIO resource on x86 is very limited, we expose MMIO(memory IO) BAR. Kernel supports both PIO and MMIO BAR for legacy virtio-pci device, and for all other p

Re: [dpdk-dev] [PATCH 1/3] net/af_xdp: Increase max batch size to 512

2021-03-01 Thread Ferruh Yigit
On 2/24/2021 11:18 AM, Ciara Loftus wrote: Prior to this the max size was 32 which was unnecessarily small. Can you please describe the impact? Why changed from 32 to 512? I assume this is to improve the performance but can you please explicitly document it in the commit log? Also enforce

Re: [dpdk-dev] [PATCH 3/3] net/af_xdp: preferred busy polling

2021-03-01 Thread Ferruh Yigit
On 2/24/2021 11:18 AM, Ciara Loftus wrote: This commit introduces support for preferred busy polling to the AF_XDP PMD. This feature aims to improve single-core performance for AF_XDP sockets under heavy load. A new vdev arg is introduced called 'busy_budget' whose default value is 64. busy_budg

Re: [dpdk-dev] [PATCH 2/2] kni: fix rtnl deadlocks and race conditions v4

2021-03-01 Thread Stephen Hemminger
On Mon, 1 Mar 2021 11:10:01 +0300 Igor Ryzhov wrote: > Stephen, > > No, I don't have a better proposal, but I think it is not correct to change > the behavior of KNI (making link down without a real response). > Even though we know that communicating with userspace under rtnl_lock is a > bad ide

Re: [dpdk-dev] [RFC 0/5] Use correct memory ordering in eal functions

2021-03-01 Thread Stephen Hemminger
On Wed, 24 Feb 2021 15:20:13 -0600 Honnappa Nagarahalli wrote: > rte_eal_remote_launch and rte_eal_wait_lcore need to provide > correct memory ordering to address the data communication from > main core to worker core and vice versa. > > There are 2 use cases: > 1) All the store operations (mean

[dpdk-dev] [PATCH v2] net/mlx5: fix wrong segmented packet in Rx

2021-03-01 Thread Jiawei Zhu
Fixed issue could occur when Mbuf starvation happens in a middle of reception of a segmented packet. In such a situation, after release the segments of that packet, it does not align consumer index to the next stride. This would cause receive a wrong segmented packet. Here is a possible error. - w

[dpdk-dev] [PATCH 0/4] Remove Support For DLB V1

2021-03-01 Thread Timothy McDaniel
This patch set removes DLB V1 from DPDK 21.05. All DLB V1 customers obtain the source code for that device directly from Intel, and will continue to do so in the future. DLB V2 remains in DPDK, and will be supplemented with support for DLB V2.5 in a future patch set tageted for DPDK 21.05. Timot

[dpdk-dev] [PATCH 1/4] event/dlb: remove DLB V1 from build

2021-03-01 Thread Timothy McDaniel
Support for DLB v1 is being removed from dpdk in 21.05. Signed-off-by: Timothy McDaniel --- config/rte_config.h | 6 -- drivers/event/meson.build | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/config/rte_config.h b/config/rte_config.h index 55a2fc50e..aedb68c42 1

Re: [dpdk-dev] [PATCH] net/mlx5: fix wrong segmented packet in Rx

2021-03-01 Thread Jiawei Zhu
Hi, Slava Thank you for your agreement. Here is the v2 patch: https://patches.dpdk.org/project/dpdk/patch/1614617885-2650-1-git-send-email-17826875...@163.com/ With best regards, Jiawei On 2021/3/1 5:13 PM, Slava Ovsiienko wrote: Hi, Jiawei Thank you for the clarification. I missed the point

[dpdk-dev] [PATCH 2/4] event/dlb: remove DLB V1 documentation

2021-03-01 Thread Timothy McDaniel
Support for DLB v1 is being removed from dpdk in 21.05. Signed-off-by: Timothy McDaniel --- doc/api/doxy-api-index.md | 1 - doc/api/doxy-api.conf.in | 1 - doc/guides/eventdevs/dlb.rst | 341 - doc/guides/eventdevs/index.rst | 1 - 4 files chan

[dpdk-dev] [PATCH 4/4] doc: update 21.05 release notes to announce removal of DLB V1

2021-03-01 Thread Timothy McDaniel
Support for DLB v1 is being removed from dpdk in 21.05. Signed-off-by: Timothy McDaniel --- doc/guides/rel_notes/release_21_05.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/rel_notes/release_21_05.rst b/doc/guides/rel_notes/release_21_05.rst index 5aa9ed7db..a941d89ef 100

Re: [dpdk-dev] [PATCH] eal/windows: add missing SPDX license tag

2021-03-01 Thread Ranjit Menon
On 2/27/2021 12:32 PM, Dmitry Kozlyuk wrote: Fixes: c08bd191b13d ("eal/windows: initialize hugepage info") Cc: sta...@dpdk.org Reported-by: Stephen Hemminger Signed-off-by: Dmitry Kozlyuk --- lib/librte_eal/windows/eal_hugepages.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/

[dpdk-dev] DPDK 21.05 NVIDIA Mellanox Roadmap

2021-03-01 Thread Asaf Penso
Below is NVIDIA Mellanox's roadmap for DPDK21.05, on which we are currently working: rte_flow new APIs: === [1]Support a new action offload which perform connection tracking window validation. Motivation: TCP connection tracking is needed for many applications that act as a mediator

[dpdk-dev] telemetry logs

2021-03-01 Thread Thomas Monjalon
Hi, Sorry if I already asked this question. Would it be possible to use rte_log in rte_telemetry instead of returning telemetry_log_error at init?

Re: [dpdk-dev] [PATCH 2/2] kni: fix rtnl deadlocks and race conditions v4

2021-03-01 Thread Dan Gora
Hi All, Sorry to butt in on this, but I fixed this same issue about 3 years ago in my application, but I was never able to get the changes integrated and eventually just gave up trying. The rule with KNI is: 1) The app should have a separate control thread per rte_kni which just spins calling rte

Re: [dpdk-dev] [PATCH 2/2] kni: fix rtnl deadlocks and race conditions v4

2021-03-01 Thread Dan Gora
This is from my git commit fixing this: kni: separate releasing netdev from freeing KNI interface Currently the rte_kni kernel driver suffers from a problem where when the interface is released, it generates a callback to the DPDK application to change the interface state to Down. Ho

Re: [dpdk-dev] [PATCH v2 1/7] eal: add wrappers for POSIX string functions

2021-03-01 Thread Nick Connolly
There's a meson issue with `cc.has_function()`: https://github.com/mesonbuild/meson/issues/5628 What if we just define RTE_INTERNAL for librte_eal/windows/include/rte_os.h (and other public headers if need be) to distinguish the case when it's used from within DPDK? It's a pragmatic solution t

Re: [dpdk-dev] [PATCH v2 4/6] net/pcap: add libpcap wrappers

2021-03-01 Thread Nick Connolly
Complete removal of non-standard dependencies in headers is within a grasp. Then we can remove shims and include whatever needed. Thoughts? Sounds good. A couple of 'gotchas' that I've come across (but may not be an issue for DPDK): * Memory allocation / free that spans a dll boundary (see

Re: [dpdk-dev] [kmods PATCH] windows/netuio: add vmxnet3 device ID

2021-03-01 Thread Nick Connolly
+%vmxnet3.Description%=netuio_Device, PCI\VEN_15AD&DEV_07B0 Acked-by: Nick Connolly PCI hardware IDs verified against: https://devicehunt.com/view/type/pci/vendor/15AD/device/07B0

Re: [dpdk-dev] [PATCH 1/6] eal: add internal API for current time

2021-03-01 Thread Nick Connolly
Calculation of usec value is incorrect - 'ticks' is not adjusted for epoch, whereas 'sec' has been, also subtraction has mismatched units - ticks in 100ns and sec * USEC_PER_SEC in usecs. On 14/02/2021 01:20, Dmitry Kozlyuk wrote: + GetSystemTimePreciseAsFileTime(&ft); + ticks = (

Re: [dpdk-dev] [PATCH 2/6] net/pcap: fix format string

2021-03-01 Thread Nick Connolly
Use PRIu32 for uint32_t (found by -Wformat with Clang on Windows). Acked-by: Nick Connolly

Re: [dpdk-dev] [PATCH 1/6] eal: add internal API for current time

2021-03-01 Thread Nick Connolly
Calculation of usec value is incorrect - 'ticks' is not adjusted for epoch, whereas 'sec' has been, also subtraction has mismatched units - ticks in 100ns and sec * USEC_PER_SEC in usecs. Ignore - fixed in later version which I hadn't spotted.

Re: [dpdk-dev] [PATCH v2 1/6] eal: add internal API for current time

2021-03-01 Thread Nick Connolly
Many PMDs use POSIX gettimeofday(). Add rte_time_get_us() function to obtain current time with microsecond precision on all platforms. Acked-by: Nick Connolly

Re: [dpdk-dev] [PATCH v2 4/6] net/pcap: add libpcap wrappers

2021-03-01 Thread Dmitry Kozlyuk
2021-03-01 21:43, Nick Connolly: > > Complete removal of non-standard dependencies in headers is within a grasp. > > Then we can remove shims and include whatever needed. > > Thoughts? > Sounds good. A couple of 'gotchas' that I've come across (but may not be > an issue for DPDK): > > * Memory

Re: [dpdk-dev] [PATCH v2 4/6] net/pcap: add libpcap wrappers

2021-03-01 Thread Dmitry Kozlyuk
2021-03-02 02:05, Dmitry Kozlyuk: > 2021-03-01 21:43, Nick Connolly: > > > Complete removal of non-standard dependencies in headers is within a > > > grasp. > > > Then we can remove shims and include whatever needed. > > > Thoughts? > > Sounds good. A couple of 'gotchas' that I've come across (b

Re: [dpdk-dev] [PATCH v2 1/7] eal: add wrappers for POSIX string functions

2021-03-01 Thread Dmitry Kozlyuk
2021-03-01 21:31, Nick Connolly: > > There's a meson issue with `cc.has_function()`: > > https://github.com/mesonbuild/meson/issues/5628 > > > > What if we just define RTE_INTERNAL for librte_eal/windows/include/rte_os.h > > (and other public headers if need be) to distinguish the case when it's us

Re: [dpdk-dev] [RFC v4 1/4] ethdev: add meter PPS profile

2021-03-01 Thread Li Zhang
Thanks Thomas. I will use it next time. Regards, Li Zhang > -Original Message- > From: dev On Behalf Of Thomas Monjalon > Sent: Monday, March 1, 2021 11:54 PM > To: Li Zhang > Cc: Dekel Peled ; Ori Kam ; Slava > Ovsiienko ; Matan Azrad ; > Dumitrescu, Cristian ; dev@dpdk.org; Raslan > Da

Re: [dpdk-dev] [RFC v4 4/4] app/testpmd: add meter pps mode cmd

2021-03-01 Thread Li, Xiaoyun
Hi > -Original Message- > From: dev On Behalf Of Li Zhang > Sent: Monday, March 1, 2021 18:36 > To: dek...@nvidia.com; or...@nvidia.com; viachesl...@nvidia.com; > ma...@nvidia.com > Cc: dev@dpdk.org; tho...@monjalon.net; rasl...@nvidia.com; > m...@smartsharesystems.com; ajit.khapa...@broa

[dpdk-dev] [Bug 646] mrvl: memset wrong struct when session clear

2021-03-01 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=646 Bug ID: 646 Summary: mrvl: memset wrong struct when session clear Product: DPDK Version: 20.08 Hardware: ARM OS: Linux Status: UNCONFIRMED Severity: minor

[dpdk-dev] [PATCH v3 0/6] Refactor FDIR pattern parser

2021-03-01 Thread Zhirun Yan
V3: Clear the variable name of input_set_o and input_set_i. Use input_set_o for tunnerl outer or non-tunnel fields, let ice_pattern_match_item 3rd columns all none in ACL, RSS, switch. Add new patch to use seg_tun[1] to record tunnel inner part. Add new patch to clean GTPU inner flow type for PF.

[dpdk-dev] [PATCH v3 1/6] net/ice: clean input set macro definition

2021-03-01 Thread Zhirun Yan
Currently, the macro of input set use 2 bits, one bit for protocol and inner/outer, another bit for src/dst field. But this could not distinguish a rule with inner and outer fields for tunnel packet. Redefine input set macro to make it clear. Only use these two bits for protocol and field. Ignore t

[dpdk-dev] [PATCH v3 2/6] net/ice: refactor structure field

2021-03-01 Thread Zhirun Yan
This patch use input_set_o and input_set_i to distinguish inner/outer input set. input_set_i is only used for inner field. Signed-off-by: Zhirun Yan --- drivers/net/ice/ice_ethdev.h | 4 ++-- drivers/net/ice/ice_fdir_filter.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) dif

[dpdk-dev] [PATCH v3 3/6] net/ice: refactor flow pattern parser

2021-03-01 Thread Zhirun Yan
Distinguish inner/outer input_set. And avoid too many nested conditionals in each type's parser. input_set_o is used for tunnel outer fields or non-tunnel fields , input_set_i is only used for inner fields. For GTPU, store the outer IP fields in inner part to align with shared code behavior. Sign

[dpdk-dev] [PATCH v3 4/6] net/ice: refactor input set conf

2021-03-01 Thread Zhirun Yan
For tunnel or non-tunnel packet, the input set is in outer_input_set and use seg_tun[0]. seg_tun[1] is only used for tunnel inner fields. This patch make align with input_set inner/outer with seg_tun[] and simplify it. Signed-off-by: Zhirun Yan --- drivers/net/ice/ice_fdir_filter.c | 12

[dpdk-dev] [PATCH v3 5/6] net/ice: add outer input set mask to distinguish outer fields

2021-03-01 Thread Zhirun Yan
Distinguish input_set_mask to inner and outer part. Use input_set_mask_o for tunnel outer or non-tunnel input set. input_set_mask_i is used for tunnel inner fields only. Adjust indentation of ice_pattern_match_item list in switch, ACL, RSS and FDIR for easy review. For switch, ACL and RSS, only use

[dpdk-dev] [PATCH v3 6/6] net/ice: clean GTPU flow_type for FDIR

2021-03-01 Thread Zhirun Yan
Currently, FDIR only support GTPU outer fields in PF. Clean the redundant GTPU inner info in flow type definition and align with shared code. Signed-off-by: Zhirun Yan Signed-off-by: Junfeng Guo --- drivers/net/ice/ice_fdir_filter.c | 19 --- 1 file changed, 8 insertions(+), 11

Re: [dpdk-dev] [RFC v4 4/4] app/testpmd: add meter pps mode cmd

2021-03-01 Thread Li Zhang
Hi Xiao yun, Thanks for your comments. We will follow other commands in our new command's helper_str. Regards, Li Zhang > -Original Message- > From: dev On Behalf Of Li, Xiaoyun > Sent: Tuesday, March 2, 2021 9:48 AM > To: Li Zhang ; Dekel Peled ; Ori Kam > ; Slava Ovsiienko ; Matan > Az

Re: [dpdk-dev] [RFC 3/5] eal: lcore state FINISHED is not required

2021-03-01 Thread Honnappa Nagarahalli
> > > > > > Subject: [RFC 3/5] eal: lcore state FINISHED is not required > > > > > > > > FINISHED state seems to be used to indicate that the worker's > > > > update of the 'state' is not visible to other threads. There seems > > > > to be no requirement to have such a state. > > > > > > I am not

  1   2   >