Re: [dpdk-dev] [PATCH 0/2] Check meter packet mode in PMD

2021-04-01 Thread Thomas Monjalon
01/04/2021 08:52, Li Zhang: > From: Thomas Monjalon > > 01/04/2021 08:16, Li Zhang: > > > Currently meter algorithms only supports rate is bytes per second(BPS). > > > Add packet_mode flag in meter profile parameters data structure in RTE. > > > > What means RTE? > > I see no flag added in these

Re: [dpdk-dev] [PATCH 0/2] fixs for shared RSS action

2021-04-01 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Xiaoyu Min > Sent: Friday, March 26, 2021 8:20 AM > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH 0/2] fixs for shared RSS action > > This series of patchs fix two problems of shared RSS action: > 1. inner RSS (level > 1) doesn't work > 2

Re: [dpdk-dev] [PATCH 0/2] Check meter packet mode in PMD

2021-04-01 Thread Li Zhang
> -Original Message- > From: Thomas Monjalon > Sent: Thursday, April 1, 2021 3:05 PM > To: Li Zhang > Cc: Ori Kam ; Slava Ovsiienko ; > Matan Azrad ; cristian.dumitre...@intel.com; > lir...@marvell.com; dev@dpdk.org; Raslan Darawsheh > ; Roni Bar Yanai > Subject: Re: [PATCH 0/2] Check

Re: [dpdk-dev] [PATCH 0/2] Check meter packet mode in PMD

2021-04-01 Thread Thomas Monjalon
01/04/2021 09:37, Li Zhang: > Thanks, I will change it in V2 patch. Not sure you should do a v2. I think this patchset is needed only because of your other patchset. So it should be integrated with the other one. Am I missing something? > > > > > Depends-on: series=16002 ("Support PPS(packet per

Re: [dpdk-dev] [PATCH v2] net/e1000: fix Rx error counter for badlen packets

2021-04-01 Thread Zhang, Qi Z
> -Original Message- > From: dev On Behalf Of Wang, Haiyue > Sent: Thursday, April 1, 2021 2:16 PM > To: Zhang, AlvinX ; Guo, Jia > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] net/e1000: fix Rx error counter for badlen > packets > > > -Original Message--

Re: [dpdk-dev] [PATCH v2] net/igc: fix Rx error counter for badlen packets

2021-04-01 Thread Zhang, Qi Z
> -Original Message- > From: dev On Behalf Of Wang, Haiyue > Sent: Thursday, April 1, 2021 2:16 PM > To: Zhang, AlvinX ; Guo, Jia > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] net/igc: fix Rx error counter for badlen > packets > > > -Original Message

Re: [dpdk-dev] [PATCH v1 1/4] raw/ifpga/base: use trusted buffer to free

2021-04-01 Thread Zhang, Tianfei
> -Original Message- > From: Huang, Wei > Sent: 2021年3月17日 16:22 > To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Cc: sta...@dpdk.org; Zhang, Tianfei ; Huang, Wei > > Subject: [PATCH v1 1/4] raw/ifpga/base: use trusted buffer to free > > In write_flash_image(), calling function "read"

Re: [dpdk-dev] [PATCH v1 2/4] raw/ifpga/base: check return value of lseek

2021-04-01 Thread Zhang, Tianfei
> -Original Message- > From: Huang, Wei > Sent: 2021年3月17日 16:22 > To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Cc: sta...@dpdk.org; Zhang, Tianfei ; Huang, Wei > > Subject: [PATCH v1 2/4] raw/ifpga/base: check return value of lseek > > In write_flash_image(), calling function "lsee

Re: [dpdk-dev] [PATCH v1 3/4] raw/ifpga/base: assign unsigned value to length

2021-04-01 Thread Zhang, Tianfei
> -Original Message- > From: Huang, Wei > Sent: 2021年3月17日 16:22 > To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Cc: sta...@dpdk.org; Zhang, Tianfei ; Huang, Wei > > Subject: [PATCH v1 3/4] raw/ifpga/base: assign unsigned value to length > > In fpga_update_flash(), "smgr->rsu_length"

Re: [dpdk-dev] [PATCH v1 4/4] raw/ifpga/base: check pointer before dereferencing

2021-04-01 Thread Zhang, Tianfei
> -Original Message- > From: Huang, Wei > Sent: 2021年3月17日 16:22 > To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Cc: sta...@dpdk.org; Zhang, Tianfei ; Huang, Wei > > Subject: [PATCH v1 4/4] raw/ifpga/base: check pointer before dereferencing > > In init_sec_mgr(), pointer "hw" may be

Re: [dpdk-dev] [PATCH v1 1/2] raw/ifpga/base: use untained variable as argument

2021-04-01 Thread Zhang, Tianfei
> -Original Message- > From: Huang, Wei > Sent: 2021年3月17日 16:24 > To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Cc: sta...@dpdk.org; Zhang, Tianfei ; Huang, Wei > > Subject: [PATCH v1 1/2] raw/ifpga/base: use untained variable as argument > > In fme_spi_init(), passing tainted expre

Re: [dpdk-dev] [PATCH v1 2/2] raw/ifpga/base: add argument to use untained variable

2021-04-01 Thread Zhang, Tianfei
> -Original Message- > From: Huang, Wei > Sent: 2021年3月17日 16:24 > To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Cc: sta...@dpdk.org; Zhang, Tianfei ; Huang, Wei > > Subject: [PATCH v1 2/2] raw/ifpga/base: add argument to use untained > variable > > In fme_nios_spi_init(), passing ta

[dpdk-dev] [PATCH] doc: add Linux rawio capability requirement in mlx5 guide

2021-04-01 Thread Eli Britstein
For an application to be able to create "transfer" rte_flows for mlx5 devices, it should have cap_sys_rawio capability. Document it. Fixes: f772cc424c45 ("doc: add required Linux capabilities in mlx5 guide") Cc: sta...@dpdk.org Signed-off-by: Eli Britstein Reviewed-by: Gaetan Rivet --- doc/gui

Re: [dpdk-dev] [PATCH 1/2] pci: rename catch-all ID

2021-04-01 Thread David Marchand
On Thu, Apr 1, 2021 at 12:34 AM Thomas Monjalon wrote: > @@ -95,7 +95,9 @@ struct rte_pci_addr { > }; > > /** Any PCI device identifier (vendor, device, ...) */ > -#define PCI_ANY_ID (0x) > +#define RTE_PCI_ANY_ID (0x) > +/** @deprecated Replaced with RTE_PCI_ANY_ID */ > +#define PCI_ANY

Re: [dpdk-dev] [PATCH] doc: update recommended matching list for i40e

2021-04-01 Thread Zhang, Qi Z
> -Original Message- > From: dev On Behalf Of Xing, Beilei > Sent: Wednesday, March 31, 2021 3:22 PM > To: Zhang, RobinX ; Guo, Jia > Cc: dev@dpdk.org; Yang, Qiming ; Yang, SteveX > > Subject: Re: [dpdk-dev] [PATCH] doc: update recommended matching list for > i40e > > > > > -Or

Re: [dpdk-dev] [PATCH 1/2] pci: rename catch-all ID

2021-04-01 Thread Thomas Monjalon
01/04/2021 09:58, David Marchand: > On Thu, Apr 1, 2021 at 12:34 AM Thomas Monjalon wrote: > > @@ -95,7 +95,9 @@ struct rte_pci_addr { > > }; > > > > /** Any PCI device identifier (vendor, device, ...) */ > > -#define PCI_ANY_ID (0x) > > +#define RTE_PCI_ANY_ID (0x) > > +/** @deprecated

[dpdk-dev] [PATCH 0/4] net/mlx5: support meter policy operations

2021-04-01 Thread Li Zhang
MLX5 PMD checks the validation of actions in policy while add a new meter policy, if pass the validation, allocates the new policy object from the meter policy indexed memory pool. It is common to use the same policy for multiple meters. MLX5 PMD supports two types of policy: termination policy an

[dpdk-dev] [PATCH 3/4] net/mlx5: prepare sub-policy for a flow with meter

2021-04-01 Thread Li Zhang
When a flow with RSS action, the MLX5 PMD splitted the flow into several sub flow according to the flow RSS hashfield value, each sub flow requested the different RSS TIR. The new meter introduces the policy, for the meter flow with RSS in the policy action, each RSS TIR in meter policy maintains

[dpdk-dev] [PATCH 2/4] net/mlx5: support meter creation with policy

2021-04-01 Thread Li Zhang
Make meter creation with policy to support actions per color. The following cases to be considered: 1.Add entry match with meter_id in global drop table. 2.For non-termination policy (policy id 0), add jump rule to suffix table for green and jump rule to drop table for red. 3.Allocate counter

[dpdk-dev] [PATCH 4/4] net/mlx5: connect meter policy to created flows

2021-04-01 Thread Li Zhang
From: Shun Hao Currently ASO meter must be followed by policy table, so this adds the support that connecting meter and policy table. There are several cases to be considered: 1. For non-termination policy, connect meter to the default policy table. 2. For non-RSS termination policy case, simply

[dpdk-dev] [PATCH 1/4] net/mlx5: support meter policy operations

2021-04-01 Thread Li Zhang
MLX5 PMD checks the validation of actions in policy while add a new meter policy, if pass the validation, allocates the new policy object from the meter policy indexed memory pool. It is common to use the same policy for multiple meters. MLX5 PMD supports two types of policy: termination policy an

[dpdk-dev] [PATCH] app/testpmd: fix queue Rx and Tx offload reconfig cmd

2021-04-01 Thread dapengx . yu
From: Dapeng Yu Configure per queue rx offloading and per queue tx offloading command shouldn't trigger the rte_eth_dev_configure() to reconfigure device. The patch sets the queue reconfiguration flag only, and does not set the device reconfiguration flag. Therefore after port is restarted, rte_

Re: [dpdk-dev] [PATCH] eal: move DMA mapping from bus-specific to generic driver

2021-04-01 Thread Kinsella, Ray
On 31/03/2021 23:53, Thomas Monjalon wrote: > 01/04/2021 00:45, Thomas Monjalon: >> The operations of DMA mapping and unmapping are controlled in some >> bus drivers, following rte_bus specification. >> If the device driver don't provide any specific mapping operation, >> the bus driver may have

Re: [dpdk-dev] [PATCH v2 1/2] vhost: Add API to get negotiated protocol features

2021-04-01 Thread Kinsella, Ray
On 31/03/2021 17:45, Ferruh Yigit wrote: > On 3/22/2021 7:22 AM, Keiichi Watanabe wrote: >> Add rte_vhost_get_negotiated_protocol_features, which returns a set of >> enabled protocol features. >> >> Signed-off-by: Keiichi Watanabe > > <...> > >> diff --git a/lib/librte_vhost/version.map b/lib

Re: [dpdk-dev] [PATCH v2] app/test-pmd: enable testpmd on windows

2021-04-01 Thread Tal Shnaiderman
> Subject: [dpdk-dev] [PATCH v2] app/test-pmd: enable testpmd on windows > > From: Jie Zhou > > This patch is to enable testpmd on windows. It mainly includes: > - Enable building libraries on Windows that TestPMD depends on > - Enable building testpmd on Windows > - Resolve name collisions with

Re: [dpdk-dev] [PATCH v1 1/4] raw/ifpga/base: use trusted buffer to free

2021-04-01 Thread Xu, Rosen
Hi, -Original Message- From: Huang, Wei Sent: Wednesday, March 17, 2021 4:22 PM To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z Cc: sta...@dpdk.org; Zhang, Tianfei ; Huang, Wei Subject: [PATCH v1 1/4] raw/ifpga/base: use trusted buffer to free In write_flash_image(), calling function "rea

Re: [dpdk-dev] [PATCH v1 2/4] raw/ifpga/base: check return value of lseek

2021-04-01 Thread Xu, Rosen
Hi, -Original Message- From: Huang, Wei Sent: Wednesday, March 17, 2021 4:22 PM To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z Cc: sta...@dpdk.org; Zhang, Tianfei ; Huang, Wei Subject: [PATCH v1 2/4] raw/ifpga/base: check return value of lseek In write_flash_image(), calling function "ls

Re: [dpdk-dev] [PATCH v1 3/4] raw/ifpga/base: assign unsigned value to length

2021-04-01 Thread Xu, Rosen
Hi, -Original Message- From: Huang, Wei Sent: Wednesday, March 17, 2021 4:22 PM To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z Cc: sta...@dpdk.org; Zhang, Tianfei ; Huang, Wei Subject: [PATCH v1 3/4] raw/ifpga/base: assign unsigned value to length In fpga_update_flash(), "smgr->rsu_lengt

Re: [dpdk-dev] [PATCH v1 4/4] raw/ifpga/base: check pointer before dereferencing

2021-04-01 Thread Xu, Rosen
Hi, -Original Message- From: Huang, Wei Sent: Wednesday, March 17, 2021 4:22 PM To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z Cc: sta...@dpdk.org; Zhang, Tianfei ; Huang, Wei Subject: [PATCH v1 4/4] raw/ifpga/base: check pointer before dereferencing In init_sec_mgr(), pointer "hw" may b

Re: [dpdk-dev] [PATCH v1 1/2] raw/ifpga/base: use untained variable as argument

2021-04-01 Thread Xu, Rosen
Hi, -Original Message- From: Huang, Wei Sent: Wednesday, March 17, 2021 4:24 PM To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z Cc: sta...@dpdk.org; Zhang, Tianfei ; Huang, Wei Subject: [PATCH v1 1/2] raw/ifpga/base: use untained variable as argument In fme_spi_init(), passing tainted exp

Re: [dpdk-dev] [PATCH v1 2/2] raw/ifpga/base: add argument to use untained variable

2021-04-01 Thread Xu, Rosen
Hi, -Original Message- From: Huang, Wei Sent: Wednesday, March 17, 2021 4:24 PM To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z Cc: sta...@dpdk.org; Zhang, Tianfei ; Huang, Wei Subject: [PATCH v1 2/2] raw/ifpga/base: add argument to use untained variable In fme_nios_spi_init(), passing ta

Re: [dpdk-dev] [PATCH 0/2] Check meter packet mode in PMD

2021-04-01 Thread Li Zhang
> -Original Message- > From: Thomas Monjalon > Sent: Thursday, April 1, 2021 3:45 PM > To: Li Zhang > Cc: Ori Kam ; Slava Ovsiienko ; > Matan Azrad ; cristian.dumitre...@intel.com; > lir...@marvell.com; dev@dpdk.org; Raslan Darawsheh > ; Roni Bar Yanai > Subject: Re: [PATCH 0/2] Check

[dpdk-dev] [PATCH] net/hns3: use the correct HiSilicon copyright

2021-04-01 Thread Min Hu (Connor)
According to the suggestion of our legal department, to standardize the copyright license of our code to avoid potential copyright risks, we make a unified modification to the "Hisilicon", which was nonstandard, in the main modules we maintain. We change it to "HiSilicon", which is consistent with

Re: [dpdk-dev] [PATCH v3 1/5] devargs: unify scratch buffer storage

2021-04-01 Thread Kinsella, Ray
On 30/03/2021 13:15, Xueming Li wrote: > In current design, legacy parser rte_devargs_parse() saved scratch > buffer to devargs.args while new parser rte_devargs_layers_parse() saved > to devargs.data. Code using devargs had to know the difference and > cleaned up memory accordingly - error pron

[dpdk-dev] [RFC] devtools: improve DPDK review process

2021-04-01 Thread Anatoly Burakov
A common problem on the DPDK mailing list is lack of reviewers for patches. This script is intended to help with that problem, by picking a random commit author from our git history, and adding a Reviewed-by: tag. This can be added to e.g. commit-msg git hook, like so: # add reviewer to commit

Re: [dpdk-dev] [PATCH v3 3/5] kvargs: add get by key function

2021-04-01 Thread Kinsella, Ray
On 30/03/2021 13:15, Xueming Li wrote: > Adds a new function to get value of a specific key from kvargs list. > > Signed-off-by: Xueming Li > --- > lib/librte_kvargs/rte_kvargs.c | 20 > lib/librte_kvargs/rte_kvargs.h | 21 + > lib/librte_kvargs/versio

Re: [dpdk-dev] [PATCH v3 3/5] kvargs: add get by key function

2021-04-01 Thread Xueming(Steven) Li
>-Original Message- >From: Kinsella, Ray >Sent: Thursday, April 1, 2021 5:06 PM >To: Xueming(Steven) Li ; NBU-Contact-Thomas Monjalon >; Gaetan Rivet > >Cc: dev@dpdk.org; Asaf Penso ; Olivier Matz >; Neil Horman > >Subject: Re: [PATCH v3 3/5] kvargs: add get by key function > > > >On 30

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

2021-04-01 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 v2 03/52] common/cnxk: add model init and IO handling API

2021-04-01 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 v2 04/52] common/cnxk: add interrupt helper API

2021-04-01 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 v2 05/52] common/cnxk: add mbox request and response definitions

2021-04-01 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 v2 06/52] common/cnxk: add mailbox base infra

2021-04-01 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 v2 07/52] common/cnxk: add base device class

2021-04-01 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 v2 08/52] common/cnxk: add VF support to base device class

2021-04-01 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 v2 09/52] common/cnxk: add base npa device support

2021-04-01 Thread Nithin Dabilpuram
From: Ashwin Sekhar T K Add base NPA device support. NPA i.e Network Pool Allocator is HW block that provides HW mempool functionality on Marvell CN9K and CN10K SoC's. NPA by providing HW mempool support, also facilitates Rx and Tx packet alloc and packet free by HW without SW intervention. Sign

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

2021-04-01 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 v2 11/52] common/cnxk: add npa debug support

2021-04-01 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 v2 12/52] common/cnxk: add npa pool HW ops

2021-04-01 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 v2 13/52] common/cnxk: add npa bulk alloc/free support

2021-04-01 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 v2 14/52] common/cnxk: add npa performance counter support

2021-04-01 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 v2 15/52] common/cnxk: add npa batch alloc/free support

2021-04-01 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 v2 16/52] common/cnxk: add npa lf init/fini callback support

2021-04-01 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 v2 17/52] common/cnxk: add base nix support

2021-04-01 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 v2 18/52] common/cnxk: add nix irq support

2021-04-01 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 v2 19/52] common/cnxk: add nix Rx queue management API

2021-04-01 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 v2 20/52] common/cnxk: add nix Tx queue management API

2021-04-01 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 v2 21/52] common/cnxk: add nix MAC operations support

2021-04-01 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 v2 22/52] common/cnxk: add nix specific npc operations

2021-04-01 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 v2 23/52] common/cnxk: add nix inline IPsec config API

2021-04-01 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 v2 24/52] common/cnxk: add nix RSS support

2021-04-01 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 | 220

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

2021-04-01 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 v2 27/52] common/cnxk: add support for nix extended stats

2021-04-01 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 v2 29/52] common/cnxk: add VLAN filter support

2021-04-01 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 v2 25/52] common/cnxk: add nix ptp support

2021-04-01 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 v2 28/52] common/cnxk: add nix debug dump support

2021-04-01 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 | 805

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

2021-04-01 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 v2 31/52] common/cnxk: add nix LSO support and misc utils

2021-04-01 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 v2 32/52] common/cnxk: add nix traffic management base support

2021-04-01 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 v2 33/52] common/cnxk: add nix tm support to add/delete node

2021-04-01 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 v2 34/52] common/cnxk: add nix tm shaper profile add support

2021-04-01 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 v2 35/52] common/cnxk: add nix tm helper to alloc and free resource

2021-04-01 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 v2 36/52] common/cnxk: add nix tm hierarchy enable/disable

2021-04-01 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 v2 37/52] common/cnxk: add nix tm support for internal hierarchy

2021-04-01 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 v2 38/52] common/cnxk: add nix tm dynamic update support

2021-04-01 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 v2 39/52] common/cnxk: add nix tm debug support and misc utils

2021-04-01 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 v2 40/52] common/cnxk: add npc support

2021-04-01 Thread Nithin Dabilpuram
From: Kiran Kumar K Adding initial support for programming NPC. NPC is Network Parser and CAM unit that provides Rx and Tx packet parsing and packet manipulation functionality on Marvell CN9K and CN10K SoC's. It is mapped to RTE Flow in DPDK. Signed-off-by: Kiran Kumar K --- drivers/common/cnx

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

2021-04-01 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 v2 42/52] common/cnxk: add mcam utility API

2021-04-01 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 v2 43/52] common/cnxk: add npc parsing API

2021-04-01 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 v2 44/52] common/cnxk: add npc init and fini support

2021-04-01 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 v2 45/52] common/cnxk: add base sso device support

2021-04-01 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 v2 46/52] common/cnxk: add sso hws interface

2021-04-01 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 | 128 - drivers/common/cnxk/roc_sso.h | 6 ++ d

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

2021-04-01 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 v2 48/52] common/cnxk: add sso irq support

2021-04-01 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 v2 49/52] common/cnxk: add sso debug support

2021-04-01 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 v2 51/52] common/cnxk: add tim irq support

2021-04-01 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 v2 50/52] common/cnxk: add base tim device support

2021-04-01 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 v2 52/52] common/cnxk: add support for rss action in rte_flow

2021-04-01 Thread Nithin Dabilpuram
From: Satheesh Paul Added support for allocating rss group and setting it as action of an NPC rule for rte_flow. Signed-off-by: Satheesh Paul --- drivers/common/cnxk/roc_npc.c | 159 + drivers/common/cnxk/roc_npc.h | 20 + drivers/common/cnxk/

Re: [dpdk-dev] [RFC] devtools: improve DPDK review process

2021-04-01 Thread Gaëtan Rivet
On Thu, Apr 1, 2021, at 11:05, Anatoly Burakov wrote: > A common problem on the DPDK mailing list is lack of reviewers for > patches. This script is intended to help with that problem, by picking > a random commit author from our git history, and adding a Reviewed-by: > tag. This can be added to e.

[dpdk-dev] [PATCH 0/5] Offload flags fixes

2021-04-01 Thread David Marchand
The important part is the last patch on vhost handling of offloading requests coming from a virtio guest interface. The rest are small fixes that I accumulated while reviewing the mbuf offload flags. On this last patch, it has the potential of breaking existing applications using the vhost librar

[dpdk-dev] [PATCH 0/5] Offload flags fixes

2021-04-01 Thread David Marchand
The important part is the last patch on vhost handling of offloading requests coming from a virtio guest interface. The rest are small fixes that I accumulated while reviewing the mbuf offload flags. On this last patch, it has the potential of breaking existing applications using the vhost librar

[dpdk-dev] [PATCH 1/5] mbuf: mark old offload flag as deprecated

2021-04-01 Thread David Marchand
PKT_RX_EIP_CKSUM_BAD has been declared deprecated quite some time ago, but there was no warning to applications still using it. Fix this by marking as deprecated with the newly introduced RTE_DEPRECATED. Signed-off-by: David Marchand --- lib/librte_mbuf/rte_mbuf_core.h | 3 ++- 1 file changed, 2

[dpdk-dev] [PATCH 2/5] net/tap: do not touch Tx offload flags

2021-04-01 Thread David Marchand
Tx offload flags are of the application responsibility. Leave the mbuf alone and check for TSO where needed. Signed-off-by: David Marchand --- drivers/net/tap/rte_eth_tap.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/driv

[dpdk-dev] [PATCH 4/5] net/virtio: refactor Tx offload helper

2021-04-01 Thread David Marchand
Purely cosmetic but it is rather odd to have an "offload" helper that checks if it actually must do something. We already have the same checks in most callers, so move this branch in them. Signed-off-by: David Marchand --- drivers/net/virtio/virtio_rxtx.c | 7 +- drivers/net/virtio/

[dpdk-dev] [PATCH 3/5] net/virtio: do not touch Tx offload flags

2021-04-01 Thread David Marchand
Tx offload flags are of the application responsibility. Leave the mbuf alone and use a local storage for implicit tcp checksum offloading in case of TSO. Signed-off-by: David Marchand --- drivers/net/virtio/virtqueue.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dri

[dpdk-dev] [PATCH 5/5] vhost: fix offload flags in Rx path

2021-04-01 Thread David Marchand
The vhost library current configures Tx offloading (PKT_TX_*) on any packet received from a guest virtio device which asks for some offloading. This is problematic, as Tx offloading is something that the application must ask for: the application needs to configure devices to support every used off

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

2021-04-01 Thread Nithin Dabilpuram
From: Pavan Nikhilesh Add config support to cross compile for Marvell CN10K SoC. Marvell CN10K SoC is based on ARM Neoverse N2 core. Signed-off-by: Nithin Dabilpuram Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- v2: - Fix commit message. config/arm/arm64_cn10k_linux_gcc | 20

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

2021-04-01 Thread Nithin Dabilpuram
On Thu, Apr 01, 2021 at 01:20:44AM +, Honnappa Nagarahalli wrote: > > > > Subject: Re: [dpdk-dev] [PATCH] config/arm: add support for Marvell CN10K > > > > On Wed, Mar 31, 2021 at 10:53 PM Nithin Dabilpuram > > wrote: > > > > > > From: Pavan Nikhilesh > > > > > > Add config support to cros

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

2021-04-01 Thread Nithin Dabilpuram
On Thu, Apr 01, 2021 at 03:39:01PM +0530, Nithin Dabilpuram wrote: > On Thu, Apr 01, 2021 at 01:20:44AM +, Honnappa Nagarahalli wrote: > > > > > > > Subject: Re: [dpdk-dev] [PATCH] config/arm: add support for Marvell CN10K > > > > > > On Wed, Mar 31, 2021 at 10:53 PM Nithin Dabilpuram > > >

[dpdk-dev] [PATCH v2 0/4] add lookaside IPsec UDP encapsulation and transport mode

2021-04-01 Thread Tejasree Kondoj
This series adds lookaside IPsec UDP encapsulation and transport mode support. The functionality has been tested with ipsec-secgw application running in lookaside protocol offload mode. v2: * Supported per SA UDP encapsulation in ipsec-secgw * Added new packet type for UDP-ESP packets in mbuf Tej

  1   2   3   >