Re: [dpdk-dev] [PATCH v4 1/4] hash: add kv hash library

2020-06-24 Thread Honnappa Nagarahalli
Hi Vladimir, Few comments inline. > -Original Message- > From: dev On Behalf Of Vladimir Medvedkin > Sent: Friday, May 8, 2020 2:59 PM > To: dev@dpdk.org > Cc: konstantin.anan...@intel.com; yipeng1.w...@intel.com; > sameh.gobr...@intel.com; bruce.richard...@intel.com > Subject: [d

Re: [dpdk-dev] [PATCH v3] bus/pci: fix VF bus error for memory access

2020-06-24 Thread Wang, Haiyue
> -Original Message- > From: David Marchand > Sent: Thursday, June 25, 2020 04:01 > To: Wang, Haiyue > Cc: dev ; Burakov, Anatoly ; dpdk > stable ; > Maxime Coquelin > Subject: Re: [dpdk-dev] [PATCH v3] bus/pci: fix VF bus error for memory access > > On Mon, Jun 22, 2020 at 1:23 PM Hai

[dpdk-dev] [PATCH v4] bus/pci: fix VF bus error for memory access

2020-06-24 Thread Haiyue Wang
To fix CVE-2020-12888, the linux vfio-pci module will invalidate mmaps and block MMIO access on disabled memory, it will send a SIGBUS to the application: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=abafbc551fddede3e0a08dee1dcde08fc0eb8476 When the application ope

[dpdk-dev] Q on IXGBE (dpdk 19.11)

2020-06-24 Thread Ravi Kerur
DPDK team, I have a use-case for multicast and wanted to know the current behavior of ixgbe pf and vf driver so my understanding is correct. use-case: 2 VF's (vf1 and vf2 ) from ixgbe is assigned to 2 VM's (vm1 and vm2) vf1 -- registers to mcast 01:00:5e:00:00:01, 01:00:5e:00:00:0a vf2 -- regist

Re: [dpdk-dev] [PATCH v4] eal/windows: fix thread handle

2020-06-24 Thread Ranjit Menon
Hi, Tasnim... On 6/24/2020 4:10 PM, Tasnim Bashar wrote: Casting thread ID to handle is not accurate way to get thread handle. Need to use OpenThread function to get thread handle from thread ID. pthread_setaffinity_np and pthread_getaffinity_np functions for Windows are affected because of it.

Re: [dpdk-dev] [PATCH v2 10/13] baseband/fpga_5gnr_fec: add configure function

2020-06-24 Thread Chautru, Nicolas
> From: Thomas Monjalon : > 02/05/2020 01:15, Chautru, Nicolas: > > Hi Akhil, Thomas, > > > > Following up on that previous discussion below so that to confirm whether > there is an available option to handle this usecase within DPDK repo. > > > > Basically traditional deployment for VRAN relies on

Re: [dpdk-dev] [PATCH] test: fix bitops test name

2020-06-24 Thread Thomas Monjalon
> > Caught by code review, bitops test name is incorrect. > > > > Fixes: 7660614c11e2 ("test/bitops: add bit operations test case") > > > > Signed-off-by: David Marchand > > --- > Acked-by: Phil Yang Applied, thanks

Re: [dpdk-dev] [dpdk-stable] [PATCH] eal: remove redundant newline

2020-06-24 Thread Thomas Monjalon
10/06/2020 16:40, Ferruh Yigit: > On 6/10/2020 3:30 PM, David Marchand wrote: > > rte_eal_init_alert() already appends a newline. > > > > Fixes: 0a529578f162 ("eal: clean up unused files on initialization") > > Cc: sta...@dpdk.org > > > > Signed-off-by: David Marchand > > Reviewed-by: Ferruh Yi

[dpdk-dev] [PATCH v4] eal/windows: fix thread handle

2020-06-24 Thread Tasnim Bashar
Casting thread ID to handle is not accurate way to get thread handle. Need to use OpenThread function to get thread handle from thread ID. pthread_setaffinity_np and pthread_getaffinity_np functions for Windows are affected because of it. Signed-off-by: Tasnim Bashar --- v3: WA to remove warning

Re: [dpdk-dev] [PATCH] usertools: fix telemetry script user socket path

2020-06-24 Thread Thomas Monjalon
10/06/2020 15:38, Bruce Richardson: > On Wed, Jun 10, 2020 at 02:30:33PM +0100, Ciara Power wrote: > > The path to the socket when running the script as a regular user needed > > to be updated to match the logic in EAL. > > > > Fixes: 6a2967c112a3 ("usertools: add new telemetry script") +Cc: sta.

Re: [dpdk-dev] [PATCH] bus/vmbus: calcuate the correct start address for mapping ring buffer

2020-06-24 Thread Thomas Monjalon
12/06/2020 18:06, Stephen Hemminger: > On Thu, 11 Jun 2020 17:48:25 -0700 > lon...@linuxonhyperv.com wrote: > > > From: Long Li > > > > vmbus_map_addr is used as the next start virutal address for mapping ring > > buffer. However it's updated based on ring_buf, which is a pointer to an > > addre

Re: [dpdk-dev] [dpdk-stable] [PATCH] sched: add missing 64-bit rate values

2020-06-24 Thread Thomas Monjalon
> > 64-bit support was missing from the functions pipe_profile_check and > > rte_sched_subport_config_pipe_profile_table. > > > > Fixes: 68c1f26d4236 ("sched: support 64-bit values") > > Cc: jasvinder.si...@intel.com > > > > Signed-off-by: Archit Pandey > > + CC sta...@dpdk.org > > Acked-by: J

Re: [dpdk-dev] [PATCH] sched: add 64-bit counter retrieval API

2020-06-24 Thread Thomas Monjalon
Is this old patch still relevant? 25/07/2018 11:02, Alan Dewar: > Hi Stephen, > > Sorry about the delay in responding to your comment. > > Maybe I'm missing something but I don't consider 64-bit counter > rollover to be a problem. > The DPDK QoS stats are just 32-bits wide and are zeroed when r

Re: [dpdk-dev] [PATCH] sched: fix port time rounding error

2020-06-24 Thread Thomas Monjalon
Jasvinder, what is the conclusion of this patch? 21/04/2020 10:21, Dewar, Alan: > From: Singh, Jasvinder > > > > From: Alan Dewar > > > > > > > > The QoS scheduler works off port time that is computed from the > > > > number of CPU cycles that have elapsed since the last time the port was > >

Re: [dpdk-dev] [PATCH] rte_sched: correctly free allocated subport memory

2020-06-24 Thread Thomas Monjalon
30/05/2020 10:05, Hrvoje Habjanic: > On 27. 05. 2020. 13:48, Singh, Jasvinder wrote: > >> > >> In function rte_sched_subport_free (lib/librte_sched/rte_sched.c, line > >> 865), > >> there is code to free all allocated stuff related to scheduler subport. > >> First > >> there are some checks, and

Re: [dpdk-dev] [PATCH] examples: add flush after stats printing

2020-06-24 Thread Thomas Monjalon
28/04/2020 15:27, Andrew Rybchenko: > From: Georgiy Levashov > > When printf()'s stdout is line-buffered for terminal, it is fully > buffered for pipes. So, stdout listener can only get the output > when it is flushed (on program termination, when buffer is filled or > manual flush). > > stdout

Re: [dpdk-dev] [PATCH v2] bus/pci: optimize bus scan

2020-06-24 Thread Thomas Monjalon
24/06/2020 13:46, jer...@marvell.com: > From: Jerin Jacob > > In order to optimize the PCI management, RTE_KDRV_NONE based > device driver probing removed by not adding them to list in > the scan phase. > > The legacy virtio is the only consumer of RTE_KDRV_NONE based device > driver probe schem

Re: [dpdk-dev] [PATCH v2 0/5] bpf: add support for BPF_ABS/BPF_IND instructions

2020-06-24 Thread Thomas Monjalon
27/05/2020 16:16, Konstantin Ananyev: > To fill the gap with linux kernel eBPF implementation, > add support for two non-generic instructions: > (BPF_ABS | | BPF_LD) and (BPF_IND | | BPF_LD) > which are used to access packet data in a safe manner. > Make necessary changes in BPF verifier, interpr

Re: [dpdk-dev] [dpdk-stable] [PATCH 1/5] test/bpf: fix few small issues

2020-06-24 Thread Thomas Monjalon
18/05/2020 17:52, Konstantin Ananyev: > Address for few small issues: > - unreachable return statement > - failed test-case can finish with 'success' status > > Also use unified cmp_res() function to check return value. > > Fixes: a9de470cc7c0 ("test: move to app directory") Looks like you don

Re: [dpdk-dev] Hardware Checksum Checks Offload Feature

2020-06-24 Thread Thomas Monjalon
Hello, 24/06/2020 17:14, Owen Hilyard: > Hello, > > To my understanding, this feature is the ability of the driver to > offload checksum verification on received packets to the hardware > level. If that is incorrect, then please let me know. Yes, you're right. You can find some pointers in the d

Re: [dpdk-dev] Speed Capabilities Feature

2020-06-24 Thread Thomas Monjalon
24/06/2020 22:01, Lincoln Lavoie: > Inline. > > On Wed, Jun 24, 2020 at 3:55 PM Thomas Monjalon wrote: > > > Hi, > > > > A bit of context: Daniel is going to implement a test in DTS > > for ethdev speed capability: > > http://doc.dpdk.org/guides/nics/features.html#speed-capabilities > > > > 24/0

Re: [dpdk-dev] Promiscuous Mode Feature

2020-06-24 Thread Thomas Monjalon
Hi, A bit of context: David is going to implement a test in DTS for promiscuous mode: http://doc.dpdk.org/guides/nics/features.html#promiscuous-mode 24/06/2020 18:18, David Liu: > Hi all, > > From my understanding, the promiscuous mode feature will verify the > functionality of promiscuous mode

Re: [dpdk-dev] Speed Capabilities Feature

2020-06-24 Thread Lincoln Lavoie
Inline. On Wed, Jun 24, 2020 at 3:55 PM Thomas Monjalon wrote: > Hi, > > A bit of context: Daniel is going to implement a test in DTS > for ethdev speed capability: > http://doc.dpdk.org/guides/nics/features.html#speed-capabilities > > 24/06/2020 21:32, Daniel Kirichok: > > The Speed Capabilitie

Re: [dpdk-dev] [PATCH v3] bus/pci: fix VF bus error for memory access

2020-06-24 Thread David Marchand
On Mon, Jun 22, 2020 at 1:23 PM Haiyue Wang wrote: > > To fix CVE-2020-12888, the linux vfio-pci module will invalidate mmaps > and block MMIO access on disabled memory, it will send a SIGBUS to the > application: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=abaf

Re: [dpdk-dev] Speed Capabilities Feature

2020-06-24 Thread Thomas Monjalon
Hi, A bit of context: Daniel is going to implement a test in DTS for ethdev speed capability: http://doc.dpdk.org/guides/nics/features.html#speed-capabilities 24/06/2020 21:32, Daniel Kirichok: > The Speed Capabilities test will first check the speed of each interface > that the device lists thro

Re: [dpdk-dev] [PATCH v1] net/virtio: simplify variable name

2020-06-24 Thread Honnappa Nagarahalli
> Subject: [PATCH v1] net/virtio: simplify variable name > > Virtio_hw *hw has been pointed to vq->hw, it is better to use hw instead of > vq->hw in later code. > > Signed-off-by: Joyce Kong Reviewed-by: Honnappa Nagarahalli > --- > drivers/net/virtio/virtio_rxtx_simple_neon.c | 4 ++-- > 1

[dpdk-dev] Speed Capabilities Feature

2020-06-24 Thread Daniel Kirichok
Hi all, The Speed Capabilities test will first check the speed of each interface that the device lists through ethtool. Then it compares each interface speed to a user-defined set of expected speeds set in a newly created config file, `speed_capabilities.cfg`. The test fails if an interface is fou

Re: [dpdk-dev] [RFC] ethdev: introduce sample action for rte flow

2020-06-24 Thread Thomas Monjalon
24/06/2020 20:09, Stephen Hemminger: > > > +/** > > > + * @warning > > > + * @b EXPERIMENTAL: this structure may change without prior notice > > > + * > > > + * RTE_FLOW_ACTION_TYPE_SAMPLE > > > + * > > > + * Adds a sample action to a matched flow. > > > + * > > > + * The matching packets will be d

Re: [dpdk-dev] [RFC] ethdev: add a field for rte_eth_rxq_info

2020-06-24 Thread Ferruh Yigit
On 6/24/2020 9:52 AM, Ferruh Yigit wrote: > On 6/24/2020 4:48 AM, Chengchang Tang wrote: >> >> On 2020/6/23 17:30, Andrew Rybchenko wrote: >>> On 6/23/20 9:48 AM, Chengchang Tang wrote: In common practice, PMD configure the rx_buf_size according to the data room size of the object in memp

Re: [dpdk-dev] [PATCH 01/13] eal/log: introduce log register macro

2020-06-24 Thread Jerin Jacob
On Wed, Jun 24, 2020 at 9:13 PM Andrew Rybchenko wrote: > > On 6/24/20 6:32 PM, Jerin Jacob wrote: > > On Wed, Jun 24, 2020 at 8:56 PM Andrew Rybchenko > > wrote: > >> > >> On 6/24/20 4:11 PM, Jerin Jacob wrote: > >>> On Wed, Jun 17, 2020 at 3:51 PM Andrew Rybchenko > >>> wrote: > > On

Re: [dpdk-dev] [RFC] ethdev: introduce sample action for rte flow

2020-06-24 Thread Stephen Hemminger
On Wed, 24 Jun 2020 19:07:49 +0200 Thomas Monjalon wrote: > > > > +/** > > + * @warning > > + * @b EXPERIMENTAL: this structure may change without prior notice > > + * > > + * RTE_FLOW_ACTION_TYPE_SAMPLE > > + * > > + * Adds a sample action to a matched flow. > > + * > > + * The matching packet

Re: [dpdk-dev] [RFC] - Offloading tunnel ports

2020-06-24 Thread Thomas Monjalon
Ping for review 09/06/2020 17:07, Oz Shlomo: > Rte_flow API provides the building blocks for vendor agnostic flow > classification offloads. The rte_flow match and action primitives are fine > grained, thus enabling DPDK applications the flexibility to offload network > stacks and complex pipelin

Re: [dpdk-dev] [RFC] ethdev: introduce sample action for rte flow

2020-06-24 Thread Thomas Monjalon
Ping for review 11/06/2020 15:19, Jiawei Wang: > When using full offload, all traffic will be handled by the HW, and > directed to the requested vf or wire, the control application loses > visibility on the traffic. > So there's a need for an action that will enable the control application > some

Re: [dpdk-dev] DPDK 20.08 Mellanox Roadmap

2020-06-24 Thread Thomas Monjalon
+Cc Ian & Flavio who discussed flow mirroring in OvS meeting. See below what Mellanox is submitting: 25/05/2020 15:30, Gal Cohen (Product): > [2] Support flow-based traffic sampling or mirroring: > > Packets of a given classification, can be cloned at a given sampling rate and > forwarded to a v

[dpdk-dev] Promiscuous Mode Feature

2020-06-24 Thread David Liu
Hi all, >From my understanding, the promiscuous mode feature will verify the functionality of promiscuous mode when it is on or off. The plan for testing this feature is as follows: Sending over a packet to verify the ports are working properly before any testing. First to verify the promiscuous

Re: [dpdk-dev] [PATCH 01/13] eal/log: introduce log register macro

2020-06-24 Thread Andrew Rybchenko
On 6/24/20 6:32 PM, Jerin Jacob wrote: > On Wed, Jun 24, 2020 at 8:56 PM Andrew Rybchenko > wrote: >> >> On 6/24/20 4:11 PM, Jerin Jacob wrote: >>> On Wed, Jun 17, 2020 at 3:51 PM Andrew Rybchenko >>> wrote: On 6/17/20 1:02 PM, David Marchand wrote: > On Wed, Jun 17, 2020 at 8:30 AM

Re: [dpdk-dev] [PATCH 01/13] eal/log: introduce log register macro

2020-06-24 Thread Jerin Jacob
On Wed, Jun 24, 2020 at 8:56 PM Andrew Rybchenko wrote: > > On 6/24/20 4:11 PM, Jerin Jacob wrote: > > On Wed, Jun 17, 2020 at 3:51 PM Andrew Rybchenko > > wrote: > >> > >> On 6/17/20 1:02 PM, David Marchand wrote: > >>> On Wed, Jun 17, 2020 at 8:30 AM wrote: > > From: Jerin Jacob > >

Re: [dpdk-dev] [PATCH 01/13] eal/log: introduce log register macro

2020-06-24 Thread Andrew Rybchenko
On 6/24/20 4:11 PM, Jerin Jacob wrote: > On Wed, Jun 17, 2020 at 3:51 PM Andrew Rybchenko > wrote: >> >> On 6/17/20 1:02 PM, David Marchand wrote: >>> On Wed, Jun 17, 2020 at 8:30 AM wrote: From: Jerin Jacob Introducing the RTE_LOG_REGISTER macro to avoid the code duplication

Re: [dpdk-dev] [PATCH] compress/qat: revert change in GEN3 marketing name

2020-06-24 Thread Trahe, Fiona
Hi Akhil, Sorry about the confusion. This was a simple internal miscommunication - there was a decision made to change the name, so we did promptly. The decision was reversed pretty soon after due to an impact on other projects, but I was out-of-the loop on it - I just discovered it recently.

Re: [dpdk-dev] [PATCH v2 2/2] ethdev: add basic stats for telemetry

2020-06-24 Thread Bruce Richardson
On Wed, Jun 24, 2020 at 02:48:24PM +0100, Ciara Power wrote: > The ethdev library now registers a telemetry command for basic ethdev > statistics. > > An example usage is shown below: > > Connecting to /var/run/dpdk/rte/dpdk_telemetry.v2 > {"version": "DPDK 20.08.0-rc0", "pid": 14119, "max_output

Re: [dpdk-dev] [PATCH v2 1/2] telemetry: support array values in data objects

2020-06-24 Thread Bruce Richardson
On Wed, Jun 24, 2020 at 02:48:23PM +0100, Ciara Power wrote: > Arrays and Dicts now support uint64_t, int and string > array values. Only one level of recursion supported. > > Signed-off-by: Ciara Power > A number of comments inline below. Once fixed you can include my ack on V3. Acked-by: Bru

[dpdk-dev] Hardware Checksum Checks Offload Feature

2020-06-24 Thread Owen Hilyard
Hello, To my understanding, this feature is the ability of the driver to offload checksum verification on received packets to the hardware level. If that is incorrect, then please let me know. My plan for testing this feature is as follows; This feature will be verified by a series of test cases

Re: [dpdk-dev] [dpdk-stable] [PATCH] bugfix: rte_raw_checksum

2020-06-24 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas Monjalon > Sent: Wednesday, June 24, 2020 5:04 PM > > 24/06/2020 15:00, Morten Brørup: > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > Sent: Wednesday, June 24, 2020 2:22 PM > > > > > > 27/05/2020 15:40, guohongzhi: > > >

Re: [dpdk-dev] [PATCH v2 1/2] telemetry: support array values in data objects

2020-06-24 Thread Bruce Richardson
On Wed, Jun 24, 2020 at 02:48:23PM +0100, Ciara Power wrote: > Arrays and Dicts now support uint64_t, int and string > array values. Only one level of recursion supported. > > Signed-off-by: Ciara Power > > --- Approach seems good to me, but I think you need more detail in the commit log for thi

Re: [dpdk-dev] [PATCH] eal: generic counter based loop for CPU freq calculation

2020-06-24 Thread Pavan Nikhilesh Bhagavatula
>Subject: [dpdk-dev] [PATCH] eal: generic counter based loop for CPU >freq calculation > >get_tsc_freq uses 'nanosleep' system call to calculate the CPU >frequency. However, 'nanosleep' results in the process getting >un-scheduled. The kernel saves and restores the PMU state. This >ensures that the

Re: [dpdk-dev] [PATCH 3/3] crypto/qat: verify session IOVA

2020-06-24 Thread Trahe, Fiona
> -Original Message- > From: Dybkowski, AdamX > Sent: Monday, June 8, 2020 2:15 PM > To: dev@dpdk.org; Trahe, Fiona ; akhil.go...@nxp.com > Cc: Dybkowski, AdamX > Subject: [PATCH 3/3] crypto/qat: verify session IOVA > > This patch adds the verification of the crypto session IOVA > tha

Re: [dpdk-dev] [dpdk-stable] [PATCH] bugfix: rte_raw_checksum

2020-06-24 Thread Thomas Monjalon
24/06/2020 15:00, Morten Brørup: > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > Sent: Wednesday, June 24, 2020 2:22 PM > > > > 27/05/2020 15:40, guohongzhi: > > > From: Hongzhi Guo > > > > > > __rte_raw_cksum should consider Big Endian. > > > > We need to explain the logic in the com

[dpdk-dev] [PATCH 0/2] Windows bus/vdev support

2020-06-24 Thread talshn
From: Tal Shnaiderman This patchset implements the EAL functions needed for probing PMDs using vdev on Windows. --- Depends-on: series-10579 ("Windows bus/pci support") --- Tal Shnaiderman (2): eal/windows: Add needed calls to detect vdev PMD bus/vdev: Windows support drivers/bus/vdev/me

[dpdk-dev] [PATCH 1/2] eal/windows: Add needed calls to detect vdev PMD

2020-06-24 Thread talshn
From: Tal Shnaiderman Add needed function calls in rte_eal_init to detect vdev PMD. eal_option_device_parse() rte_service_init() rte_bus_probe() Signed-off-by: Tal Shnaiderman --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/windows/eal.c | 19 +++ 2 files cha

[dpdk-dev] [PATCH 2/2] bus/vdev: Windows support

2020-06-24 Thread talshn
From: Tal Shnaiderman current support will build vdev with empty MP functions currently unsupported for Windows Signed-off-by: Tal Shnaiderman --- drivers/bus/vdev/meson.build | 6 -- lib/librte_eal/rte_eal_exports.def | 4 2 files changed, 4 insertions(+), 6 deletions(-) diff

Re: [dpdk-dev] [PATCH 2/3] cryptodev: verify session mempool element size

2020-06-24 Thread Trahe, Fiona
> -Original Message- > From: Dybkowski, AdamX > Sent: Monday, June 8, 2020 2:15 PM > To: dev@dpdk.org; Trahe, Fiona ; akhil.go...@nxp.com > Cc: Dybkowski, AdamX > Subject: [PATCH 2/3] cryptodev: verify session mempool element size > > This patch adds the verification of the element siz

Re: [dpdk-dev] [PATCH] compress/qat: revert change in GEN3 marketing name

2020-06-24 Thread Akhil Goyal
> > Akhil, > > This doesn't have to be backported as the original patch was withdrawn from > the stable before the release, thanks to Fiona's prompt action. That's why > this > commit revert patch affects only the dev branch. > Ok send a v2 with proper description why this need to be reverte

Re: [dpdk-dev] [PATCH] compress/qat: revert change in GEN3 marketing name

2020-06-24 Thread Dybkowski, AdamX
Akhil, This doesn't have to be backported as the original patch was withdrawn from the stable before the release, thanks to Fiona's prompt action. That's why this commit revert patch affects only the dev branch. Adam > -Original Message- > From: Akhil Goyal > Sent: Wednesday, 24 June

[dpdk-dev] [PATCH] net/mlx5: fix iterator type in Rx queue management

2020-06-24 Thread Michael Baum
The mlx5_check_vec_rx_support function in the mlx5_rxtx_vec.c file passes the RX queues array in the loop. Similarly, the mlx5_mprq_enabled function in the mlx5_rxq.c file passes the RX queues array in the loop. In both cases, the iterator of the loop is called i and the variable representing the

Re: [dpdk-dev] [PATCH 1/3] test/crypto: fix asym session mempool creation

2020-06-24 Thread Trahe, Fiona
> -Original Message- > From: Dybkowski, AdamX > Sent: Monday, June 8, 2020 2:15 PM > To: dev@dpdk.org; Trahe, Fiona ; akhil.go...@nxp.com > Cc: Dybkowski, AdamX ; sta...@dpdk.org > Subject: [PATCH 1/3] test/crypto: fix asym session mempool creation > > This patch fixes the element size

Re: [dpdk-dev] [PATCH] compress/qat: revert change in GEN3 marketing name

2020-06-24 Thread Akhil Goyal
Hi Adam/Fiona, Please mention a reason why this patch need to be reverted. We cannot keep on changing a marketing name in every release. If this patch is needed, then we should also queue it for stable backporting. Regards, Akhil > > -Original Message- > > From: Dybkowski, AdamX > > Sent

Re: [dpdk-dev] [PATCH] compress/qat: revert change in GEN3 marketing name

2020-06-24 Thread Trahe, Fiona
> -Original Message- > From: Dybkowski, AdamX > Sent: Monday, June 8, 2020 3:42 PM > To: dev@dpdk.org; Trahe, Fiona ; akhil.go...@nxp.com > Cc: Dybkowski, AdamX > Subject: [PATCH] compress/qat: revert change in GEN3 marketing name > > This reverts commit 9cd9d3e702fba4700539c1a2eddac1

[dpdk-dev] [PATCH v2] cryptodev: add function to check if qp was setup

2020-06-24 Thread Arek Kusztal
From: Fiona Trahe This patch adds function that can check if queue pair was already setup. This may be useful when dealing with multi process approach in cryptodev. Signed-off-by: Fiona Trahe --- v2: - changed return values - added function to map file lib/librte_cryptodev/rte_cryptodev.c

Re: [dpdk-dev] [PATCH v2 2/6] security: add support for DOCSIS protocol

2020-06-24 Thread Coyle, David
Hi Akhil, > -Original Message- > From: Akhil Goyal > Sent: Tuesday, June 23, 2020 7:07 PM > > > > +/** > > + * DOCSIS operation parameters > > + */ > > +struct rte_security_docsis_op { > > + struct rte_crypto_sym_op crypto_sym; > > + /**< Symmetric crypto operation parameters */ > > +

[dpdk-dev] [PATCH v2] examples: add multi process crypto application

2020-06-24 Thread Arek Kusztal
Due to increasing interest in multi process support for crypto PMDs new sample app can be added so in overview we can say that: The Multi-process Crypto application is a simple application that allows to run crypto related operations in a multiple process environment. It builds on the EAL primary/

[dpdk-dev] [PATCH v2] examples: add multi process crypto application

2020-06-24 Thread Arek Kusztal
This patch adds example application that can test usage of cryptodev in multi process environment. More can be found in mp_crypto.rst in sample app guides. Signed-off-by: Arek Kusztal --- doc/guides/sample_app_ug/index.rst |1 + doc/guides/sample_app_ug/mp_crypto.rst | 153 + exampl

[dpdk-dev] [PATCH v2] crypto/qat: add handling of multi process

2020-06-24 Thread Arek Kusztal
This patch improves handling of multi process applications using Intel QuickAssist Technology PMD. Signed-off-by: Arek Kusztal --- v2: - fixed error caused by incorrect pointer due to information from other process - fixed checkpack issues drivers/common/qat/qat_device.c | 109 +

[dpdk-dev] [PATCH 7/7] net/mlx5: use anonymous DV allocator argument

2020-06-24 Thread Michael Baum
The mlx5_dev_spawn function defines an struct mlx5dv_ctx_allocators type variable several hundred rows after it starts, with the only use it being passed as a parameter to the mlx5_glue->dv_set_context_attr function. However, according to DPDK Coding Style Guidelines, variables should be declared a

[dpdk-dev] [PATCH 1/7] common/mlx5: fix code arrangement in tag allocation

2020-06-24 Thread Michael Baum
Flow tag action is supported only when the driver has DR or DV support. The tag allocation is adjusted to the modes DV or DR. In case both DR and DV are not supported in the system, the driver handles static code for error report. This error code, wrongly, was compiled when DV is supported while i

[dpdk-dev] [PATCH 2/7] net/mlx5: use direct API to find port by device

2020-06-24 Thread Michael Baum
Using RTE_ETH_FOREACH_DEV_OF loop is not necessary when the driver wants to find only the first match. Use rte_eth_find_next_of to find it. Signed-off-by: Michael Baum Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_mr.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[dpdk-dev] [PATCH] net/mlx5: fix iterator type in Rx queue management

2020-06-24 Thread Michael Baum
The mlx5_check_vec_rx_support function in the mlx5_rxtx_vec.c file passes the RX queues array in the loop. Similarly, the mlx5_mprq_enabled function in the mlx5_rxq.c file passes the RX queues array in the loop. In both cases, the iterator of the loop is called i and the variable representing the

[dpdk-dev] [PATCH] net/mlx5: fix iterator type in Rx queue management

2020-06-24 Thread Michael Baum
The mlx5_check_vec_rx_support function in the mlx5_rxtx_vec.c file passes the RX queues array in the loop. Similarly, the mlx5_mprq_enabled function in the mlx5_rxq.c file passes the RX queues array in the loop. In both cases, the iterator of the loop is called i and the variable representing the

[dpdk-dev] [PATCH] net/mlx5: fix iterator type in Rx queue management

2020-06-24 Thread Michael Baum
The mlx5_check_vec_rx_support function in the mlx5_rxtx_vec.c file passes the RX queues array in the loop. Similarly, the mlx5_mprq_enabled function in the mlx5_rxq.c file passes the RX queues array in the loop. In both cases, the iterator of the loop is called i and the variable representing the

[dpdk-dev] [PATCH] net/mlx5: fix iterator type in Rx queue management

2020-06-24 Thread Michael Baum
The mlx5_check_vec_rx_support function in the mlx5_rxtx_vec.c file passes the RX queues array in the loop. Similarly, the mlx5_mprq_enabled function in the mlx5_rxq.c file passes the RX queues array in the loop. In both cases, the iterator of the loop is called i and the variable representing the

[dpdk-dev] [PATCH] net/mlx5: fix iterator type in Rx queue management

2020-06-24 Thread Michael Baum
The mlx5_check_vec_rx_support function in the mlx5_rxtx_vec.c file passes the RX queues array in the loop. Similarly, the mlx5_mprq_enabled function in the mlx5_rxq.c file passes the RX queues array in the loop. In both cases, the iterator of the loop is called i and the variable representing the

[dpdk-dev] [PATCH] net/mlx4: remove useless assignment

2020-06-24 Thread Michael Baum
The mlx4_ibv_device_to_pci_addr function defines a variable called ret inside a loop and uses it. During the loop, the function assigns a value within the variable and breaks from the loop, so that this assigning has done nothing and is actually unnecessary. Remove the unnecessary assigning. Sig

[dpdk-dev] [PATCH] net/mlx5: use anonymous DV allocator argument

2020-06-24 Thread Michael Baum
The mlx5_dev_spawn function defines an struct mlx5dv_ctx_allocators type variable several hundred rows after it starts, with the only use it being passed as a parameter to the mlx5_glue->dv_set_context_attr function. However, according to DPDK Coding Style Guidelines, variables should be declared a

Re: [dpdk-dev] [PATCH 2/3] cryptodev: add security operation to crypto operation

2020-06-24 Thread Coyle, David
Hi Akhil > -Original Message- > From: Akhil Goyal > Sent: Tuesday, June 23, 2020 7:38 PM > > > > > > > [DC] It's certainly an option and would work but I don't think it's > > > a good idea to > > be putting > > > protocol specific structs like this in rte_cryptodev - that's what > > > rte

[dpdk-dev] [PATCH v2 1/2] telemetry: support array values in data objects

2020-06-24 Thread Ciara Power
Arrays and Dicts now support uint64_t, int and string array values. Only one level of recursion supported. Signed-off-by: Ciara Power --- v2: - Added support for arrays to have container values. - Added support for int and string arrays within dict/array. - Added APIs for internal containe

[dpdk-dev] [PATCH v2 2/2] ethdev: add basic stats for telemetry

2020-06-24 Thread Ciara Power
The ethdev library now registers a telemetry command for basic ethdev statistics. An example usage is shown below: Connecting to /var/run/dpdk/rte/dpdk_telemetry.v2 {"version": "DPDK 20.08.0-rc0", "pid": 14119, "max_output_len": 16384} --> /ethdev/stats,0 {"/ethdev/stats": {"ipackets": 0, "opacke

[dpdk-dev] [PATCH v2 0/2] add basic ethdev stats with data object recursion

2020-06-24 Thread Ciara Power
This patchset adds support for basic ethdev statistics in Telemetry. To do this, recursive data object support is needed to report the queue statistics in a list. With this patch, an array or dictionary supports uint64_t, int or string array types, which is used for the ethdev queue stats. Ciara P

[dpdk-dev] [PATCH] net/mlx5: use anonymous DV allocator argument

2020-06-24 Thread Michael Baum
The mlx5_dev_spawn function defines an struct mlx5dv_ctx_allocators type variable several hundred rows after it starts, with the only use it being passed as a parameter to the mlx5_glue->dv_set_context_attr function. However, according to DPDK Coding Style Guidelines, variables should be declared a

[dpdk-dev] [PATCH] net/mlx4: remove useless assignment

2020-06-24 Thread Michael Baum
The mlx4_ibv_device_to_pci_addr function defines a variable called ret inside a loop and uses it. During the loop, the function assigns a value within the variable and breaks from the loop, so that this assigning has done nothing and is actually unnecessary. Remove the unnecessary assigning. Sig

Re: [dpdk-dev] [PATCH v2 11/12] examples/vdpa: remove useless device count

2020-06-24 Thread Maxime Coquelin
Sorry, this patch has been sent by mistake, just discard it. On 6/24/20 2:26 PM, Maxime Coquelin wrote: > The VDPA example now uses the vDPA class iterator, so > knowing the number of available devices beforehand is > no longer needed. > > Signed-off-by: Maxime Coquelin > --- > examples/vdpa/ma

Re: [dpdk-dev] [PATCH v2 10/12] examples/vdpa: use new wrappers instead of ops

2020-06-24 Thread Maxime Coquelin
Sorry, this patch has been sent by mistake, just discard it. On 6/24/20 2:26 PM, Maxime Coquelin wrote: > Now that wrappers to query number of queues, Virtio > features and Vhost-user protocol features are available, > let's make the vDPA example to use them. > > Signed-off-by: Maxime Coquelin >

Re: [dpdk-dev] [PATCH v2 12/12] vhost: remove vDPA device count API

2020-06-24 Thread Maxime Coquelin
Sorry, this patch has been sent by mistake, just discard it. On 6/24/20 2:26 PM, Maxime Coquelin wrote: > This API is no more useful, this patch removes it. > > Signed-off-by: Maxime Coquelin > --- > drivers/vdpa/ifc/ifcvf_vdpa.c | 1 + > drivers/vdpa/mlx5/mlx5_vdpa.h | 1 + > lib/librt

[dpdk-dev] [PATCH] common/mlx5: remove useless assignment

2020-06-24 Thread Michael Baum
The mlx5_dev_to_pci_addr function defines a variable called ret inside a loop and uses it. During the loop, the function assigns a value within the variable and breaks from the loop, so that this assigning has done nothing and is actually unnecessary. Remove the unnecessary assigning. Signed-off

[dpdk-dev] [PATCH] net/mlx4: use anonymous DV allocator argument

2020-06-24 Thread Michael Baum
The mlx4_pci_probe function defines an struct mlx4dv_ctx_allocators type variable several hundred rows after it starts, with the only use it being passed as a parameter to the mlx4_glue->dv_set_context_attr function. However, according to DPDK Coding Style Guidelines, variables should be declared a

[dpdk-dev] [PATCH] net/mlx5: use direct API to find port by device

2020-06-24 Thread Michael Baum
Using RTE_ETH_FOREACH_DEV_OF loop is not necessary when the driver wants to find only the first match. Use rte_eth_find_next_of to find it. Signed-off-by: Michael Baum Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_mr.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[dpdk-dev] [PATCH] common/mlx5: fix code arrangement in tag allocation

2020-06-24 Thread Michael Baum
Flow tag action is supported only when the driver has DR or DV support. The tag allocation is adjusted to the modes DV or DR. In case both DR and DV are not supported in the system, the driver handles static code for error report. This error code, wrongly, was compiled when DV is supported while i

Re: [dpdk-dev] [PATCH v3 4/8] fib: introduce AVX512 lookup

2020-06-24 Thread Ananyev, Konstantin
> Add new lookup implementation for DIR24_8 algorithm using > AVX512 instruction set > > Signed-off-by: Vladimir Medvedkin > --- > lib/librte_fib/Makefile | 14 > lib/librte_fib/dir24_8.c| 24 ++ > lib/librte_fib/dir24_8_avx512.c | 165 >

Re: [dpdk-dev] [PATCH v3 1/8] eal: introduce zmm type for AVX 512-bit

2020-06-24 Thread Ananyev, Konstantin
> > New data type to manipulate 512 bit AVX values. > > Signed-off-by: Vladimir Medvedkin > --- > lib/librte_eal/x86/include/rte_vect.h | 20 > 1 file changed, 20 insertions(+) > > diff --git a/lib/librte_eal/x86/include/rte_vect.h > b/lib/librte_eal/x86/include/rte_vect.

Re: [dpdk-dev] [PATCH 01/13] eal/log: introduce log register macro

2020-06-24 Thread Jerin Jacob
On Wed, Jun 17, 2020 at 3:51 PM Andrew Rybchenko wrote: > > On 6/17/20 1:02 PM, David Marchand wrote: > > On Wed, Jun 17, 2020 at 8:30 AM wrote: > >> > >> From: Jerin Jacob > >> > >> Introducing the RTE_LOG_REGISTER macro to avoid the code duplication > >> in the log registration process. > >> >

Re: [dpdk-dev] [PATCH 01/13] eal/log: introduce log register macro

2020-06-24 Thread Jerin Jacob
On Wed, Jun 17, 2020 at 3:56 PM Andrew Rybchenko wrote: > > On 6/17/20 1:00 PM, Thomas Monjalon wrote: > > 17/06/2020 08:30, jer...@marvell.com: > >> From: Jerin Jacob > >> > >> Introducing the RTE_LOG_REGISTER macro to avoid the code duplication > >> in the log registration process. > >> > >> It

Re: [dpdk-dev] [dpdk-stable] [PATCH] bugfix: rte_raw_checksum

2020-06-24 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Wednesday, June 24, 2020 2:22 PM > > 27/05/2020 15:40, guohongzhi: > > From: Hongzhi Guo > > > > __rte_raw_cksum should consider Big Endian. > > We need to explain the logic in the commit log. Having grown up with big endian CPUs, rea

Re: [dpdk-dev] [PATCH] eal: generic counter based loop for CPU freq calculation

2020-06-24 Thread Jerin Jacob
On Tue, Jun 9, 2020 at 3:04 AM Honnappa Nagarahalli wrote: > > get_tsc_freq uses 'nanosleep' system call to calculate the CPU > frequency. However, 'nanosleep' results in the process getting > un-scheduled. The kernel saves and restores the PMU state. This > ensures that the PMU cycles are not cou

[dpdk-dev] [PATCH v2] net/octeontx2: add cn98xx support

2020-06-24 Thread Harman Kalra
New cn98xx SOC comes up with two NIX blocks wrt cn96xx, cn93xx, to achieve higher performance. Also the no of cores increased to 36 from 24. Adding support for cn98xx where need a logic to detect if the LF is attached to NIX0 or NIX1 and then accordingly use the respective NIX block. Signed-off-b

[dpdk-dev] [PATCH v2 02/14] bus/fslmc: fix null pointer dereference

2020-06-24 Thread Maxime Coquelin
This patches fixes a null pointer derefencing that happens when the device string passed to the iterator is NULL. This situation can happen when iterating on a class type. For example: RTE_DEV_FOREACH(dev, "class=eth", &dev_iter) { ... } Fixes: e67a61614d0b ("bus/fslmc: support device iterati

[dpdk-dev] [PATCH v2 14/14] vhost: split vDPA header file

2020-06-24 Thread Maxime Coquelin
This patch split the vDPA header file in two, making rte_vdpa_device structure opaque to the application. Applications should only include rte_vdpa.h, while drivers should include both rte_vdpa.h and rte_vdpa_dev.h. Signed-off-by: Maxime Coquelin --- drivers/vdpa/ifc/ifcvf_vdpa.c | 1 + dri

[dpdk-dev] [PATCH v2 11/14] examples/vdpa: use new wrappers instead of ops

2020-06-24 Thread Maxime Coquelin
Now that wrappers to query number of queues, Virtio features and Vhost-user protocol features are available, let's make the vDPA example to use them. Signed-off-by: Maxime Coquelin --- examples/vdpa/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vdpa/main

[dpdk-dev] [PATCH v2 12/12] vhost: remove vDPA device count API

2020-06-24 Thread Maxime Coquelin
This API is no more useful, this patch removes it. Signed-off-by: Maxime Coquelin --- drivers/vdpa/ifc/ifcvf_vdpa.c | 1 + drivers/vdpa/mlx5/mlx5_vdpa.h | 1 + lib/librte_vhost/Makefile | 3 +- lib/librte_vhost/meson.build| 3 +- lib/librte_vhost/rte_vdpa.h | 155 --

[dpdk-dev] [PATCH v2 13/14] vhost: remove vDPA device count API

2020-06-24 Thread Maxime Coquelin
This API is no more useful, this patch removes it. Signed-off-by: Maxime Coquelin --- lib/librte_vhost/rte_vdpa.h| 13 - lib/librte_vhost/rte_vhost_version.map | 1 - lib/librte_vhost/vdpa.c| 9 - 3 files changed, 23 deletions(-) diff --git a/li

[dpdk-dev] [PATCH v2 11/12] examples/vdpa: remove useless device count

2020-06-24 Thread Maxime Coquelin
The VDPA example now uses the vDPA class iterator, so knowing the number of available devices beforehand is no longer needed. Signed-off-by: Maxime Coquelin --- examples/vdpa/main.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/vdpa/main.c b/examples/vdpa/

[dpdk-dev] [PATCH v2 12/14] examples/vdpa: remove useless device count

2020-06-24 Thread Maxime Coquelin
The VDPA example now uses the vDPA class iterator, so knowing the number of available devices beforehand is no longer needed. Signed-off-by: Maxime Coquelin --- examples/vdpa/main.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/vdpa/main.c b/examples/vdpa/

[dpdk-dev] [PATCH v2 10/14] vhost: introduce wrappers for some vDPA ops

2020-06-24 Thread Maxime Coquelin
This patch is preliminary work to make the vDPA device structure opaque to the user application. Some callbacks of the vDPA devices are used to query capabilities before attaching to a Vhost port. This patch introduces wrappers for these ops. Signed-off-by: Maxime Coquelin --- lib/librte_vhost/r

  1   2   3   >