[dpdk-dev] [PATCH v4 4/4] eal/windows: do not expose POSIX symbols

2021-03-05 Thread Dmitry Kozlyuk
Exposing POSIX symbols could break consumer POSIX compatibility code. Export POSIX names for commonly used symbols only to internal consumers. Move definitions used only by EAL inside EAL. Replace deprecated [r]index() with standard str[r]chr(). Signed-off-by: Dmitry Kozlyuk --- doc/guides/rel_n

[dpdk-dev] [PATCH v4 3/4] build: indicate usage at build time for public headers

2021-03-05 Thread Dmitry Kozlyuk
DPDK code often relies on functions that are not standard C, but are found on all platforms, even if by slightly different names. Some headers provide macros or inline difinitions for such symbols. However, when placed in public headers, these symbols are unnecessarily exposed to DPDK consumers. D

[dpdk-dev] [PATCH v4 2/4] eal: add asprintf() internal wrapper

2021-03-05 Thread Dmitry Kozlyuk
POSIX asprintf() is unavailable on Windows. Add eal_asprintf() wrapper for EAL internal use. On Windows it's a function, on Unix it's a macro for asprintf(). Signed-off-by: Dmitry Kozlyuk Acked-by: Khoa To --- lib/librte_eal/common/eal_common_lcore.c | 2 +- lib/librte_eal/common/eal_comm

[dpdk-dev] [PATCH v4 1/4] eal: add sleep API

2021-03-05 Thread Dmitry Kozlyuk
POSIX sleep(3) is missing from Windows. Add generic rte_thread_sleep() to suspend current OS thread. Signed-off-by: Dmitry Kozlyuk Acked-by: Khoa To --- lib/librte_eal/common/eal_common_timer.c | 5 +++-- lib/librte_eal/include/rte_thread.h | 11 +++ lib/librte_eal/rte_eal_exports

[dpdk-dev] [PATCH v4 0/4] eal/windows: do not expose POSIX symbols

2021-03-05 Thread Dmitry Kozlyuk
On Windows, rte_os.h contains a small POSIX compatibility set of functions and macros. Exposing it from EAL can break consumer own POSIX compatibility layer and is against standards in general. Hide these symbols from external consumers, while keeping them available for DPDK code. v4: * Instea

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

2021-03-05 Thread Ajit Khaparde
Add support for forced ethernet speed setting. Currently testpmd tries to configure the Ethernet port in autoneg mode. It is not possible to set the Ethernet port to a specific speed while starting testpmd. In some cases capability to configure a forced speed for the Ethernet port during initializa

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

2021-03-05 Thread Dumitrescu, Cristian
> -Original Message- > From: Matan Azrad > Sent: Thursday, March 4, 2021 6:34 AM > To: Dumitrescu, Cristian ; Li Zhang > ; Dekel Peled ; Ori Kam > ; Slava Ovsiienko > Cc: dev@dpdk.org; NBU-Contact-Thomas Monjalon > ; Raslan Darawsheh ; > m...@smartsharesystems.com; ajit.khapa...@broadc

[dpdk-dev] [PATCH 6/6] doc: add Marvell CNXK mempool documentation

2021-03-05 Thread Ashwin Sekhar T K
Add Marvell OCTEON CNXK mempool documentation. Signed-off-by: Jerin Jacob Signed-off-by: Nithin Dabilpuram Signed-off-by: Ashwin Sekhar T K --- MAINTAINERS | 6 +++ doc/guides/mempool/cnxk.rst | 84 doc/guides/mempool/index.rst | 1 + do

[dpdk-dev] [PATCH 5/6] mempool/cnxk: add cn10k batch enqueue/dequeue support

2021-03-05 Thread Ashwin Sekhar T K
Add support for asynchronous batch enqueue/dequeue of pointers from NPA pool. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_mempool_ops.c | 258 ++- drivers/mempool/cnxk/cnxk_mempool.c | 19 +- drivers/mempool/cnxk/cnxk_mempool.h | 3 +- drivers

[dpdk-dev] [PATCH 4/6] mempool/cnxk: add base cn10k mempool ops

2021-03-05 Thread Ashwin Sekhar T K
Add base cn10k mempool ops. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn10k_mempool_ops.c | 46 drivers/mempool/cnxk/meson.build | 3 +- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 drivers/mempool/cnxk/cn10k_mempool_ops.c

[dpdk-dev] [PATCH 3/6] mempool/cnxk: add cn9k mempool ops

2021-03-05 Thread Ashwin Sekhar T K
Add mempool ops specific to cn9k. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cn9k_mempool_ops.c | 90 + drivers/mempool/cnxk/meson.build| 3 +- 2 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 drivers/mempool/cnxk/cn9k_mempool_o

[dpdk-dev] [PATCH 2/6] mempool/cnxk: add generic ops

2021-03-05 Thread Ashwin Sekhar T K
Add generic cnxk mempool ops. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool.h | 16 +++ drivers/mempool/cnxk/cnxk_mempool_ops.c | 173 drivers/mempool/cnxk/meson.build| 3 +- 3 files changed, 191 insertions(+), 1 deletion(-) creat

[dpdk-dev] [PATCH 1/6] mempool/cnxk: add build infra and device probe

2021-03-05 Thread Ashwin Sekhar T K
Add the meson based build infrastructure along with mempool device probe. Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool.c | 212 drivers/mempool/cnxk/cnxk_mempool.h | 12 ++ drivers/mempool/cnxk/meson.build| 29 drivers/mempool/cnx

[dpdk-dev] [PATCH 0/6] Add Marvell CNXK mempool driver

2021-03-05 Thread Ashwin Sekhar T K
This patchset adds the mempool/cnxk driver which provides the support for the integrated mempool device found in Marvell CN10K SoC. The code includes mempool driver functionality for Marvell CN9K SoC as well, but right now it is not enabled. The future plan is to deprecate existing mempool/octeont

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

2021-03-05 Thread Jie Zhou
On Sun, Feb 14, 2021 at 05:16:11AM +0300, Dmitry Kozlyuk wrote: > Many PMDs use POSIX gettimeofday(). Add rte_time_get_us() function > to obtain current time with microsecond precision on all platforms. > > Signed-off-by: Dmitry Kozlyuk > --- > lib/librte_eal/include/rte_time.h| 17 +

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

2021-03-05 Thread Ferruh Yigit
On 3/5/2021 4:17 AM, Ajit Khaparde wrote: Add support for forced ethernet speed setting. Currently testpmd tries to configure the Ethernet port in autoneg mode. It is not possible to set the Ethernet port to a specific speed while starting testpmd. In some cases capability to configure a forced s

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

2021-03-05 Thread 谢华伟(此时此刻)
On 2021/3/4 2:47, 谢华伟(此时此刻) wrote: Actually, igb_uio sysfs attribute exports exactly the same thing as standard PCI sysfs, i.e, pci_dev->resource[] in kernel source code This patch refactors these messy things, and uses standard PCI sysfs attribute. Hi David: My fault. I set vim cc=80, so t

Re: [dpdk-dev] [PATCH v8 1/3] vfio: revert changes for map contiguous areas in one go

2021-03-05 Thread Nithin Dabilpuram
On Fri, Mar 05, 2021 at 01:54:34PM +, Burakov, Anatoly wrote: > On 05-Mar-21 7:50 AM, David Marchand wrote: > > On Fri, Jan 15, 2021 at 8:33 AM Nithin Dabilpuram > > wrote: > > > > > > In order to save DMA entries limited by kernel both for externel > > > memory and hugepage memory, an attemp

Re: [dpdk-dev] [PATCH v2 3/5] net/ark: update internal structs to reflect FPGA updates

2021-03-05 Thread Ferruh Yigit
On 3/4/2021 8:33 PM, Ed Czeck wrote: - New PCIe IDs using net/ark driver Is this new devices support requires any documentation update? Additional to the device documentation update, what do you think putting a release notes update to document new device support? - Update Version IDs and s

Re: [dpdk-dev] [PATCH v2 4/5] net/ark: generalize meta data between FPGA and PMD

2021-03-05 Thread Ferruh Yigit
On 3/4/2021 8:33 PM, Ed Czeck wrote: In this commit we generalize the movement of user-specified meta data between mbufs and FPGA AXIS tuser fields using user-defined hook functions. - Previous use of PMD dynfields are removed - Hook function added to ark_user_ext - Add hook function calls in rx

[dpdk-dev] [PATCH] examples/pipeline: fix strtoul base

2021-03-05 Thread Churchill Khangar
This patch addresses the issue with strtoul base Fixes: 5074e1d55107 ("examples/pipeline: add configuration commands") Cc: cristian.dumitre...@intel.com Signed-off-by: Churchill Khangar Acked-by: Cristian Dumitrescu --- examples/pipeline/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[dpdk-dev] [PATCH v2 1/1] crypto/qat: support Single-Pass GMAC on QAT GEN3

2021-03-05 Thread Adam Dybkowski
This patch implements Single-Pass AES-GMAC possible on QAT GEN3 which improves the performance. On GEN1 and GEN2 the previous chained method is used. Signed-off-by: Adam Dybkowski --- drivers/common/qat/qat_qp.c | 3 +- drivers/crypto/qat/qat_sym.c | 64

[dpdk-dev] [PATCH v2 0/1] crypto/qat: support Single-Pass GMAC on QAT GEN3

2021-03-05 Thread Adam Dybkowski
This patch implements Single-Pass AES-GMAC possible on QAT GEN3 which improves the performance. On GEN1 and GEN2 the previous chained method is used. -- v2: * fix minor building and style issues Adam Dybkowski (1): crypto/qat: support Single-Pass GMAC on QAT GEN3 drivers/common/qat/qat_qp.c

Re: [dpdk-dev] [PATCH v8 1/3] vfio: revert changes for map contiguous areas in one go

2021-03-05 Thread Burakov, Anatoly
On 05-Mar-21 7:50 AM, David Marchand wrote: On Fri, Jan 15, 2021 at 8:33 AM Nithin Dabilpuram wrote: In order to save DMA entries limited by kernel both for externel memory and hugepage memory, an attempt was made to map physically contiguous memory in one go. This cannot be done as VFIO IOMMU

[dpdk-dev] [PATCH 51/52] common/cnxk: add tim irq support

2021-03-05 Thread Nithin Dabilpuram
From: Pavan Nikhilesh Add TIM LF IRQ register and un-register functions. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/meson.build| 1 + drivers/common/cnxk/roc_tim.c | 51 ++ drivers/common/cnxk/roc_tim_irq.c | 104 + d

[dpdk-dev] [PATCH 50/52] common/cnxk: add base tim device support

2021-03-05 Thread Nithin Dabilpuram
From: Pavan Nikhilesh Add TIM device init, fini which are used to attach TIM LF resources to the RVU PF/VF and TIM LF alloc and free. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/meson.build| 1 + drivers/common/cnxk/roc_api.h | 3 + drivers/common/cnxk/roc_platform.c |

[dpdk-dev] [PATCH 49/52] common/cnxk: add sso debug support

2021-03-05 Thread Nithin Dabilpuram
From: Pavan Nikhilesh Add sso debug dump support. This dumps all SSO LF register values to a given file handle. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_sso.h | 4 +++ drivers/common/cnxk/roc_sso_debug.c | 68

[dpdk-dev] [PATCH 48/52] common/cnxk: add sso irq support

2021-03-05 Thread Nithin Dabilpuram
From: Pavan Nikhilesh Add support to registering and un-registering SSO HWS and HWGRP IRQs. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/meson.build| 1 + drivers/common/cnxk/roc_sso.c | 41 ++ drivers/common/cnxk/roc_sso_irq.c | 164 +

[dpdk-dev] [PATCH 47/52] common/cnxk: add sso hwgrp interface

2021-03-05 Thread Nithin Dabilpuram
From: Pavan Nikhilesh Add SSO HWGRP interface for configuring XAQ pool, setting priority and internal HW buffer limits for each HWGRP. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/roc_sso.c | 110 drivers/common/cnxk/roc_sso.h | 21 ++

[dpdk-dev] [PATCH 46/52] common/cnxk: add sso hws interface

2021-03-05 Thread Nithin Dabilpuram
From: Pavan Nikhilesh Add SSO HWS interface for setting/unsetting links, retrieving base address and nanoseconds to getwork timeout. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/roc_sso.c | 118 - drivers/common/cnxk/roc_sso.h | 6 ++ d

[dpdk-dev] [PATCH 45/52] common/cnxk: add base sso device support

2021-03-05 Thread Nithin Dabilpuram
From: Pavan Nikhilesh Add SSO device init and fini which attach SSO LF resources to the RVU PF/VF and SSO HWS and HWGRP LFs alloc, free. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_api.h | 3 + drivers/common/cnxk/roc_idev.c

[dpdk-dev] [PATCH 44/52] common/cnxk: add npc init and fini support

2021-03-05 Thread Nithin Dabilpuram
From: Kiran Kumar K Adding support initialize and fini the npc. Further, adding APIs to create and destroy the npc rules. Signed-off-by: Kiran Kumar K --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_npc.c | 713 drivers/common/cnx

[dpdk-dev] [PATCH 43/52] common/cnxk: add npc parsing API

2021-03-05 Thread Nithin Dabilpuram
From: Kiran Kumar K Adding npc parsing API support to parse different patterns and actions. Based on the pattern and actions ltype values will be chosen and mcam data will be configured at perticular offsets. Signed-off-by: Kiran Kumar K --- drivers/common/cnxk/meson.build | 1 + drivers

[dpdk-dev] [PATCH 42/52] common/cnxk: add mcam utility API

2021-03-05 Thread Nithin Dabilpuram
From: Kiran Kumar K Adding mcam utility functions like reading KEX and reserving and writing mcam rules. Signed-off-by: Kiran Kumar K --- drivers/common/cnxk/meson.build| 1 + drivers/common/cnxk/roc_npc_mcam.c | 708 + drivers/common/cnxk/roc_npc_priv

[dpdk-dev] [PATCH 41/52] common/cnxk: add npc helper API

2021-03-05 Thread Nithin Dabilpuram
From: Kiran Kumar K Adding NPC helper APIs to manage MCAM like pre allocating the mcam, configuring the rules, shifting mcam rules and preparing the data for mcam based on KEX. Signed-off-by: Kiran Kumar K --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_npc_priv.h |

[dpdk-dev] [PATCH 40/52] common/cnxk: add npc support

2021-03-05 Thread Nithin Dabilpuram
From: Kiran Kumar K Adding initial npc support. Signed-off-by: Kiran Kumar K --- drivers/common/cnxk/roc_api.h | 3 + drivers/common/cnxk/roc_npc.h | 129 + drivers/common/cnxk/roc_npc_priv.h | 381 + drivers/common/cnxk/roc_platform.

[dpdk-dev] [PATCH 39/52] common/cnxk: add nix tm debug support and misc utils

2021-03-05 Thread Nithin Dabilpuram
Add support to dump TM HW registers and hierarchy on error. This patch also adds support for misc utils such as API to query TM HW resource availability, resource pre-allocation and static priority support on root node. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix.h

[dpdk-dev] [PATCH 38/52] common/cnxk: add nix tm dynamic update support

2021-03-05 Thread Nithin Dabilpuram
Add support for dynamic node update of shaper profile, RR quantum and also support to suspend or resume an active TM node. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix.h| 10 ++ drivers/common/cnxk/roc_nix_tm_ops.c | 220 +++ drivers/c

[dpdk-dev] [PATCH 35/52] common/cnxk: add nix tm helper to alloc and free resource

2021-03-05 Thread Nithin Dabilpuram
Add TM helper API to estimate, alloc, assign, and free resources for a NIX LF / ethdev. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix.h | 1 + drivers/common/cnxk/roc_nix_priv.h | 16 ++ drivers/common/cnxk/roc_nix_tm.c | 461 +

[dpdk-dev] [PATCH 37/52] common/cnxk: add nix tm support for internal hierarchy

2021-03-05 Thread Nithin Dabilpuram
Add support to create internal TM default hierarchy and ratelimit hierarchy and API to ratelimit SQ to a given rate. This will be used by cnxk ethdev driver's tx queue ratelimit op. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix.h| 7 ++ drivers/common/cnxk/roc_nix_pr

[dpdk-dev] [PATCH 36/52] common/cnxk: add nix tm hierarchy enable/disable

2021-03-05 Thread Nithin Dabilpuram
Add support to enable or disable hierarchy along with allocating node HW resources such as shapers and schedulers and configuring them to match the user created or default hierarchy. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix.h | 8 + drivers/common/cnxk/roc_nix_

[dpdk-dev] [PATCH 34/52] common/cnxk: add nix tm shaper profile add support

2021-03-05 Thread Nithin Dabilpuram
From: Satha Rao Add support to add/delete/update shaper profile for a given NIX. Also add support to walk through existing shaper profiles. Signed-off-by: Nithin Dabilpuram Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix.h | 25 + drivers/common/cnxk/roc_nix_priv.h

[dpdk-dev] [PATCH 33/52] common/cnxk: add nix tm support to add/delete node

2021-03-05 Thread Nithin Dabilpuram
Add support to add/delete nodes in a hierarchy. This patch also adds misc utils to get node name, walk through nodes etc. Signed-off-by: Nithin Dabilpuram Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix.h | 42 +++ drivers/common/cnxk/roc_nix_priv.h | 14 +++ drivers

[dpdk-dev] [PATCH 32/52] common/cnxk: add nix traffic management base support

2021-03-05 Thread Nithin Dabilpuram
Add nix traffic management base support to init/fini node, shaper profile and topology, setup SQ for a given user hierarchy or default internal hierarchy. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/meson.build| 3 + drivers/common/cnxk/roc_nix.c | 7 + drivers/

[dpdk-dev] [PATCH 31/52] common/cnxk: add nix LSO support and misc utils

2021-03-05 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Add support to create LSO formats for TCP segmentation offload for IPv4/IPv6, tunnel and non-tunnel protocols. Tunnel protocol support is for GRE and UDP based tunnel protocols. This patch also adds other helper API to retrieve eeprom info and configure Rx for different sw

[dpdk-dev] [PATCH 30/52] common/cnxk: add nix flow control support

2021-03-05 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Add support to enable/disable Rx/Tx flow control and pause frame configuration on NIX. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_nix.h| 34 ++ drivers/common/cnxk/roc_nix_fc.c | 251

[dpdk-dev] [PATCH 29/52] common/cnxk: add VLAN filter support

2021-03-05 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Add helper API to support VLAN filtering and stripping on Rx and VLAN insertion on Tx. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/meson.build| 1 + drivers/common/cnxk/roc_nix.h | 45 drivers/common/cnxk/roc_nix_vlan.c | 205

[dpdk-dev] [PATCH 28/52] common/cnxk: add nix debug dump support

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob Add support to dump NIX RQ, SQ and CQ contexts apart from NIX LF registers. Signed-off-by: Jerin Jacob Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_nix.h | 10 + drivers/common/cnxk/roc_nix_debug.c | 806

[dpdk-dev] [PATCH 27/52] common/cnxk: add support for nix extended stats

2021-03-05 Thread Nithin Dabilpuram
From: Satha Rao Add support for retrieving NIX extended stats that are per NIX LF and per LMAC. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix.h| 18 drivers/common/cnxk/roc_nix_stats.c | 172 + drivers/common/cnxk/roc_nix_xstats.h | 204 +++

[dpdk-dev] [PATCH 26/52] common/cnxk: add nix stats support

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob Add API to provide Rx and Tx stats for a given NIX. Signed-off-by: Jerin Jacob --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_nix.h | 53 drivers/common/cnxk/roc_nix_stats.c | 239 drivers/common/c

[dpdk-dev] [PATCH 25/52] common/cnxk: add nix ptp support

2021-03-05 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Add support to enable/disable Rx and Tx PTP timestamping support. Also provide API's to register ptp info callbacks to get config change update from Kernel. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_nix.h |

[dpdk-dev] [PATCH 24/52] common/cnxk: add nix RSS support

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob Add API's for default/non-default reta table setup, key set/get, and flow algo setup for CN9K and CN10K. Signed-off-by: Jerin Jacob --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_nix.h | 17 +++ drivers/common/cnxk/roc_nix_rss.c | 219

[dpdk-dev] [PATCH 23/52] common/cnxk: add nix inline IPsec config API

2021-03-05 Thread Nithin Dabilpuram
From: Vidya Sagar Velumuri Add API to configure NIX block for inline IPSec. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_nix.c | 28 drivers/common/cnxk/roc_nix.h | 10 ++ drivers/common/cnxk/version.map | 1 + 3 files changed, 39 in

[dpdk-dev] [PATCH 22/52] common/cnxk: add nix specific npc operations

2021-03-05 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Add NIX specific NPC operations such as NPC mac address get/set, mcast entry add/delete, promiscuous mode enable/disable etc. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/meson.build | 2 + drivers/common/cnxk/roc_nix.h | 25 + drivers/com

[dpdk-dev] [PATCH 21/52] common/cnxk: add nix MAC operations support

2021-03-05 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Add support to different MAC related operations such as MAC address set/get, link set/get, link status callback, etc. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_nix.h | 41 ++ drivers/common/cnxk/roc_ni

[dpdk-dev] [PATCH 20/52] common/cnxk: add nix Tx queue management API

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob This patch adds support to init/modify/fini NIX SQ(send queue) for both CN9K and CN10K platforms. Signed-off-by: Jerin Jacob --- drivers/common/cnxk/roc_nix.h | 19 ++ drivers/common/cnxk/roc_nix_queue.c | 358 drivers/common/cnxk/v

[dpdk-dev] [PATCH 19/52] common/cnxk: add nix Rx queue management API

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob Add nix Rx queue management API to init/modify/fini RQ context and also setup CQ(completion queue) context. Current support is both for CN9K and CN10K devices. Signed-off-by: Jerin Jacob --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_nix.h | 5

[dpdk-dev] [PATCH 18/52] common/cnxk: add nix irq support

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob Add support to register NIX error and completion queue IRQ's using base device class IRQ helper API's. Signed-off-by: Jerin Jacob Signed-off-by: Sunil Kumar Kori Signed-off-by: Harman Kalra --- drivers/common/cnxk/meson.build| 1 + drivers/common/cnxk/roc_nix.c |

[dpdk-dev] [PATCH 17/52] common/cnxk: add base nix support

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob Add base nix support as ROC(Rest of Chip) API which will be used by generic ETHDEV PMD(net/cnxk). This patch adds support to device init, fini, resource alloc and free API which sets up a ETHDEV PCI device of either CN9K or CN10K Marvell SoC. Signed-off-by: Jerin Jacob Signed

[dpdk-dev] [PATCH 16/52] common/cnxk: add npa lf init/fini callback support

2021-03-05 Thread Nithin Dabilpuram
From: Ashwin Sekhar T K Add support for npa lf init/fini callbacks. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.c | 27 +++ drivers/common/cnxk/roc_npa.h | 8 drivers/common/cnxk/version.map | 2 ++ 3 files changed, 37 insertions(+)

[dpdk-dev] [PATCH 15/52] common/cnxk: add npa batch alloc/free support

2021-03-05 Thread Nithin Dabilpuram
From: Ashwin Sekhar T K Add APIs to do allocations/frees in batch from NPA pool. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.h | 217 ++ 1 file changed, 217 insertions(+) diff --git a/drivers/common/cnxk/roc_npa.h b/drivers/common/c

[dpdk-dev] [PATCH 14/52] common/cnxk: add npa performance counter support

2021-03-05 Thread Nithin Dabilpuram
From: Ashwin Sekhar T K Add APIs to read NPA performance counters. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.c | 50 + drivers/common/cnxk/roc_npa.h | 37 ++ drivers/common/cnxk/version.map | 1 + 3

[dpdk-dev] [PATCH 13/52] common/cnxk: add npa bulk alloc/free support

2021-03-05 Thread Nithin Dabilpuram
From: Ashwin Sekhar T K Add APIs to alloc/free in bulk from NPA pool. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.h | 229 ++ 1 file changed, 229 insertions(+) diff --git a/drivers/common/cnxk/roc_npa.h b/drivers/common/cnxk/roc_npa

[dpdk-dev] [PATCH 12/52] common/cnxk: add npa pool HW ops

2021-03-05 Thread Nithin Dabilpuram
From: Ashwin Sekhar T K Add APIs for creating, destroying, modifying NPA pools. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.c | 421 drivers/common/cnxk/roc_npa.h | 146 ++ drivers/common/cnxk/version.map | 5 + 3

[dpdk-dev] [PATCH 11/52] common/cnxk: add npa debug support

2021-03-05 Thread Nithin Dabilpuram
From: Ashwin Sekhar T K Add NPA debug APIs. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_npa.h | 4 + drivers/common/cnxk/roc_npa_debug.c | 184 drivers/common/cnxk/roc_npa_irq.c | 1 +

[dpdk-dev] [PATCH 10/52] common/cnxk: add npa irq support

2021-03-05 Thread Nithin Dabilpuram
From: Ashwin Sekhar T K Add support for NPA IRQs. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/meson.build| 1 + drivers/common/cnxk/roc_npa.c | 7 + drivers/common/cnxk/roc_npa_irq.c | 297 + drivers/common/cnxk/roc_npa_priv.h |

[dpdk-dev] [PATCH 09/52] common/cnxk: add base npa device support

2021-03-05 Thread Nithin Dabilpuram
From: Ashwin Sekhar T K Add NPA init and fini functions. Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_api.h | 3 + drivers/common/cnxk/roc_dev.c | 11 ++ drivers/common/cnxk/roc_dev_priv.h | 6 + drivers/common/cnxk

[dpdk-dev] [PATCH 08/52] common/cnxk: add VF support to base device class

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob Add VF specific handling such as BAR4 setup, forwarding VF mbox messages to AF and vice-versa, VF FLR handling etc. Signed-off-by: Jerin Jacob --- drivers/common/cnxk/roc_dev.c | 857 - drivers/common/cnxk/roc_dev_priv.h | 42 ++ 2 fi

[dpdk-dev] [PATCH 07/52] common/cnxk: add base device class

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob Introduce 'dev' class to hold cnxk PCIe device specific information and operations. All PCIe drivers(ethdev, mempool, cryptodev and eventdev) of cnxk inherits this base object to avail the common functionalities such as mailbox creation, interrupt registration, LMT setup, VF me

[dpdk-dev] [PATCH 06/52] common/cnxk: add mailbox base infra

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob This patch adds mailbox infra API's to communicate with Kernel AF driver. These API's will be used by all the other cnxk drivers for mbox init/fini, send/recv functionality. Signed-off-by: Jerin Jacob --- drivers/common/cnxk/meson.build | 1 + drivers/common/cnxk/roc_de

[dpdk-dev] [PATCH 05/52] common/cnxk: add mbox request and response definitions

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob The admin function driver sits in Linux kernel as mailbox server. The DPDK AF mailbox client, send the message to mailbox server to complete the administrative task such as get mac address. This patch adds mailbox request and response definition of existing mailbox defined betw

[dpdk-dev] [PATCH 04/52] common/cnxk: add interrupt helper API

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob Add interrupt helper API's in common code to register and unregister for specific interrupt vectors. These API's will be used by all cnxk drivers. Signed-off-by: Jerin Jacob --- drivers/common/cnxk/meson.build| 3 +- drivers/common/cnxk/roc_dev_priv.h | 14 +++ drivers

[dpdk-dev] [PATCH 03/52] common/cnxk: add model init and IO handling API

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob Add routines for SoC model identification and HW IO handling routines specific to CN9K and CN10K Marvell SoC's. These are based on arm64 ISA and behaviour specific to Marvell SoC's. Signed-off-by: Jerin Jacob --- drivers/common/cnxk/meson.build | 4 +- drivers/common/c

[dpdk-dev] [PATCH 02/52] common/cnxk: add build infrastructre and HW definition

2021-03-05 Thread Nithin Dabilpuram
From: Jerin Jacob Add meson build infrastructure along with HW definition header file. This patch also adds cross-compile configs for arm for CN9K series and CN10K series of Marvell SoC's. Signed-off-by: Jerin Jacob Signed-off-by: Nithin Dabilpuram Signed-off-by: Sunil Kumar Kori Signed-off-

[dpdk-dev] [PATCH 01/52] config/arm: add support for Marvell CN10K

2021-03-05 Thread Nithin Dabilpuram
From: Pavan Nikhilesh Add config support to cross compile for Marvell CN10K SoC. Signed-off-by: Nithin Dabilpuram Signed-off-by: Pavan Nikhilesh --- config/arm/arm64_cn10k_linux_gcc | 20 1 file changed, 20 insertions(+) create mode 100644 config/arm/arm64_cn10k_linux_gc

[dpdk-dev] [PATCH 00/52] Add Marvell CNXK common driver

2021-03-05 Thread Nithin Dabilpuram
This patchset adds initial support for common code for Marvell CN10K SoC. Based on this common 'cnxk' driver, new PMD's such as 'net/cnxk', 'mempool/cnxk', 'event/cnxk' etc, will be added later on. Initially 'cnxk' drivers will only support Marvell CN106XX SoC. In future, when code is ready, CN9

[dpdk-dev] [PATCH 1/8] net/qede: remove flags from qede_tx_entry and simplify to rte_mbuf

2021-03-05 Thread Balazs Nemeth
Each sw_tx_ring entry was of type struct qede_tx_entry: struct qede_tx_entry { struct rte_mbuf *mbuf; uint8_t flags; }; Leaving the unused flags member here has a few performance implications. First, each qede_tx_entry takes up more memory which has caching implications as less entr

[dpdk-dev] [PATCH 8/8] net/qede: remove page_offset from struct qede_rx_entry and simplify

2021-03-05 Thread Balazs Nemeth
The member page_offset is always zero. Having this in the qede_rx_entry makes it larger than it needs to be and this has cache performance implications so remove that field. In addition, since qede_rx_entry only has an rte_mbuf*, remove the definition of qede_rx_entry. Signed-off-by: Balazs Nemeth

[dpdk-dev] [PATCH 7/8] net/qede: prefetch next packet to free

2021-03-05 Thread Balazs Nemeth
While handling the current mbuf, pull the next next mbuf into the cache. Note that the last four mbufs pulled into the cache are not handled, but that doesn't matter. Signed-off-by: Balazs Nemeth --- drivers/net/qede/qede_rxtx.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/ne

[dpdk-dev] [PATCH 6/8] net/qede: prefetch txq->hw_cons_ptr

2021-03-05 Thread Balazs Nemeth
Ensure that, while ecore_chain_get_cons_idx is running, txq->hw_cons_ptr is prefetched. This shows a slight performance improvement. Signed-off-by: Balazs Nemeth --- drivers/net/qede/qede_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/q

[dpdk-dev] [PATCH 5/8] net/qede: use rte_pktmbuf_free_bulk instead of rte_pktmbuf_free

2021-03-05 Thread Balazs Nemeth
rte_pktmbuf_free_bulk calls rte_mempool_put_bulk with the number of pending packets to return to the mempool. In contrast, rte_pktmbuf_free calls rte_mempool_put that calls rte_mempool_put_bulk with one object. An important performance related downside of adding one packet at a time to the mempool

[dpdk-dev] [PATCH 4/8] net/qede: inline qede_free_tx_pkt to prepare for rte_pktmbuf_free_bulk

2021-03-05 Thread Balazs Nemeth
The next patch will introduce the use of rte_pktmbuf_free_bulk. Signed-off-by: Balazs Nemeth --- drivers/net/qede/qede_rxtx.c | 51 1 file changed, 23 insertions(+), 28 deletions(-) diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c ind

[dpdk-dev] [PATCH 3/8] net/qede: assume txq->sw_tx_ring[idx] is never null in qede_free_tx_pkt

2021-03-05 Thread Balazs Nemeth
The ring txq->sw_tx_ring is managed with txq->sw_tx_cons. As long as txq->sw_tx_cons is correct, there is no need to check if txq->sw_tx_ring[idx] is null explicitly. Signed-off-by: Balazs Nemeth --- drivers/net/qede/qede_rxtx.c | 27 +++ 1 file changed, 11 insertions(+),

[dpdk-dev] [PATCH 2/8] net/qede: avoid repeatedly calling ecore_chain_get_cons_idx

2021-03-05 Thread Balazs Nemeth
Calling ecore_chain_get_cons_idx repeatedly is slower than calling it once and using the result for the remainder of qede_process_tx_compl. Signed-off-by: Balazs Nemeth --- drivers/net/qede/qede_rxtx.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/d

[dpdk-dev] [PATCH 0/8] Optimize qede use of rx/tx_entries

2021-03-05 Thread Balazs Nemeth
This patch set optimizes qede_{rx,tx}_entry and introduces rte_pktmbuf_free_bulk in qede_process_tx_compl. The overall performance improvement depends on the use-case; in a physical-virtual-physical test on a ThunderX2 99xx system with two SMT threads used in ovs, and two cores used in a vm, an imp

[dpdk-dev] [PATCH] crypto/qat: support Single-Pass GMAC on QAT GEN3

2021-03-05 Thread Adam Dybkowski
This patch implements Single-Pass AES-GMAC possible on QAT GEN3 which improves the performance. On GEN1 and GEN2 the previous chained method is used. Signed-off-by: Adam Dybkowski --- drivers/common/qat/qat_qp.c | 3 +- drivers/crypto/qat/qat_sym.c | 64

[dpdk-dev] [PATCH 5/5] net/txgbe: add FFE parameters for user debugging

2021-03-05 Thread Jiawen Wu
Support to set PHY link mode by user defined. Signed-off-by: Jiawen Wu --- config/rte_config.h | 4 + doc/guides/nics/txgbe.rst | 18 - drivers/net/txgbe/base/txgbe_hw.c | 12 +++ drivers/net/txgbe/base/txgbe_phy.c | 116 +++- drivers/

[dpdk-dev] [PATCH 4/5] net/txgbe: handle AN interrupt and link update

2021-03-05 Thread Jiawen Wu
Read AN interrupt from misc, and do the AN configuration action. When link status is down, PHY power should be restarted to config KR mode again. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_hw.c | 4 +- drivers/net/txgbe/base/txgbe_phy.c | 14 +++ drivers/net/txgbe/base/txg

[dpdk-dev] [PATCH 3/5] net/txgbe/base: support to handle backplane AN73 flow

2021-03-05 Thread Jiawen Wu
Suppot to handle the interrupt of auto-negotiation, improve the link training process of connecting with other switches. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_hw.c | 3 + drivers/net/txgbe/base/txgbe_phy.c | 460 +++- drivers/net/txgbe/base/txgbe_

[dpdk-dev] [PATCH 2/5] net/txgbe: update link setup process of backplane NICs

2021-03-05 Thread Jiawen Wu
Use some configuration to control the link setup flow, to adapt to different NIC's construction. Use firmware version to control the impact of firmware update. And fix some left bugs. Signed-off-by: Jiawen Wu --- config/rte_config.h | 7 ++ doc/guides/nics/txgbe.rst

[dpdk-dev] [PATCH 0/5] txgbe backplane AN training

2021-03-05 Thread Jiawen Wu
This series update link process for backplane NICs. And support to control AN training. Jiawen Wu (5): net/txgbe: update device ID net/txgbe: update link setup process of backplane NICs net/txgbe/base: support to handle backplane AN73 flow net/txgbe: handle AN interrupt and link update n

[dpdk-dev] [PATCH 1/5] net/txgbe: update device ID

2021-03-05 Thread Jiawen Wu
For more different devices, update device ID and subsystem id. Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_devids.h | 44 ++--- drivers/net/txgbe/base/txgbe_hw.c | 55 --- drivers/net/txgbe/base/txgbe_phy.c| 40 +++ dr

[dpdk-dev] [PATCH 3/3] app/testpmd: use of Rx/Tx in testpmd

2021-03-05 Thread Lijun Ou
From: Hongbo Zheng In testpmd, when we input "show config rxtx", we can see like this: 1: testpmd> show config rxtx 2: io packet forwarding packets/burst=32 3: nb forwarding cores=1 - nb forwarding ports=1 4: port 0: RX queue number: 1 Tx queue number: 1 5: Rx offloads=0x0 Tx offloads=

[dpdk-dev] [PATCH 2/3] app/testpmd: remove forwarding config from parsing Rx and Tx

2021-03-05 Thread Lijun Ou
From: Huisong Li The "fwd_config_setup()" function does release and apply for memory of forwarding flows, and re-establish these streams when rxq/txq or rxd/txd is changed. The function is also called by "start_packet_forwarding()" when user executes "start" cmd. All changes for rxq/txq or rxd/tx

[dpdk-dev] [PATCH 1/3] app/testpmd: fix forwarding configuration when DCB test

2021-03-05 Thread Lijun Ou
From: Huisong Li Currently, 'nb_fwd_lcores' value are both adjusted based on 'nb_fwd_streams' in rss/simple/icmp_echo_fwd_config_setup. But the operation is lack for dcb_fwd_config_setup, which may lead to a bad events where multiple polling threads operate on the same queue. As a result, various

[dpdk-dev] [PATCH 0/3] Fixes for testpmd

2021-03-05 Thread Lijun Ou
This series add two test bug fixes and a print style. Hongbo Zheng (1): app/testpmd: use of Rx/Tx in testpmd Huisong Li (2): app/testpmd: fix forwarding configuration when DCB test app/testpmd: remove forwarding config from parsing Rx and Tx app/test-pmd/cmdline.c | 106 ++

Re: [dpdk-dev] [PATCH] dpaax: update rel_notes for changes

2021-03-05 Thread Ferruh Yigit
On 3/5/2021 5:36 AM, Hemant Agrawal wrote: This patch updates the release notes for recently submitted changes. Signed-off-by: Hemant Agrawal Applied to dpdk-next-net/main, thanks.

Re: [dpdk-dev] [PATCH v2 0/4] bug fixes for txgbe

2021-03-05 Thread Ferruh Yigit
On 3/5/2021 2:14 AM, Jiawen Wu wrote: This series fix some bugs and remove unused functions. v2: - add fixes line in commit logs Jiawen Wu (4): net/txgbe: remove unused functions net/txgbe: fix Rx missed packet counter net/txgbe: update packet type net/txgbe: fix the process of addi

Re: [dpdk-dev] [PATCH] app/testpmd: support Tx mbuf free on demand cmd

2021-03-05 Thread oulijun
在 2021/3/5 15:46, Li, Xiaoyun 写道: Hi Sorry, forgot to send this in last patchset. -Original Message- From: Lijun Ou Sent: Friday, March 5, 2021 15:33 To: Yigit, Ferruh Cc: Li, Xiaoyun ; dev@dpdk.org; linux...@openeuler.org Subject: [PATCH] app/testpmd: support Tx mbuf free on deman

[dpdk-dev] [PATCH V2] app/testpmd: support Tx mbuf free on demand cmd

2021-03-05 Thread Lijun Ou
From: Chengwen Feng This patch support tx_done_cleanup command: tx_done_cleanup port (port_id) (queue_id) (free_cnt) Users must make sure there are no concurrent access to the same Tx queue (like rte_eth_tx_burst, rte_eth_dev_tx_queue_stop and so on) this command executed. Signed-off-by: Chengw

  1   2   >