[Patch v9 18/18] net/mana: support Rx interrupts

2022-09-23 Thread longli
From: Long Li mana can receive Rx interrupts from kernel through RDMA verbs interface. Implement Rx interrupts in the driver. Signed-off-by: Long Li --- Change log: v5: New patch added to the series v8: Fix coding style on function definitions. doc/guides/nics/features/mana.ini | 1 + drive

[Patch v9 17/18] net/mana: report queue stats

2022-09-23 Thread longli
From: Long Li Report packet statistics. Signed-off-by: Long Li --- Change log: v5: Fixed calculation of stats packets/bytes/errors by adding them over the queue stats. v8: Fixed coding style on function definitions. doc/guides/nics/features/mana.ini | 1 + drivers/net/mana/mana.c

[Patch v9 16/18] net/mana: start/stop device

2022-09-23 Thread longli
From: Long Li Add support for starting/stopping the device. Signed-off-by: Long Li --- Change log: v2: Use spinlock for memory registration cache. Add prefix mana_ to all function names. v6: Roll back device state on error in mana_dev_start() drivers/net/mana/mana.c | 77 +

[Patch v9 15/18] net/mana: send packets

2022-09-23 Thread longli
From: Long Li With all the TX queues created, MANA can send packets over those queues. Signed-off-by: Long Li --- Change log: v2: rename all camel cases. v7: return the correct number of packets sent v8: fix coding style to function definitions. change enum names to use capital letters. doc/g

[Patch v9 14/18] net/mana: receive packets

2022-09-23 Thread longli
From: Long Li With all the RX queues created, MANA can use those queues to receive packets. Signed-off-by: Long Li --- Change log: v2: Add mana_ to all function names. Rename a camel case. v8: Fix coding style to function definitions. doc/guides/nics/features/mana.ini | 2 + drivers/net/man

[Patch v9 13/18] net/mana: start/stop Rx queues

2022-09-23 Thread longli
From: Long Li MANA allocates device queues through the IB layer when starting Rx queues. When device is stopped all the queues are unmapped and freed. Signed-off-by: Long Li --- Change log: v2: Add prefix mana_ to all function names. Remove unused header files. v4: Move defition "uint32_t i" fr

[Patch v9 11/18] net/mana: implement the hardware layer operations

2022-09-23 Thread longli
From: Long Li The hardware layer of MANA understands the device queue and doorbell formats. Those functions are implemented for use by packet RX/TX code. Signed-off-by: Long Li --- Change log: v2: Remove unused header files. Rename a camel case. v5: Use RTE_BIT32() instead of defining a new BIT

[Patch v9 12/18] net/mana: start/stop Tx queues

2022-09-23 Thread longli
From: Long Li MANA allocate device queues through the IB layer when starting Tx queues. When device is stopped all the queues are unmapped and freed. Signed-off-by: Long Li --- Change log: v2: Add prefix mana_ to all function names. Remove unused header files. v8: fix coding style to function d

[Patch v9 10/18] net/mana: implement memory registration

2022-09-23 Thread longli
From: Long Li MANA hardware has iommu built-in, that provides hardware safe access to user memory through memory registration. Since memory registration is an expensive operation, this patch implements a two level memory registration cache mechanisum for each queue and for each port. Signed-off-

[Patch v9 08/18] net/mana: configure Rx queues

2022-09-23 Thread longli
From: Long Li Rx hardware queue is allocated when starting the queue. This function is for queue configuration pre starting. Signed-off-by: Long Li --- Change log: v8: fix coding style to function definitions v9: move data defintions from earlier patch. drivers/net/mana/mana.c | 73 ++

[Patch v9 09/18] net/mana: configure Tx queues

2022-09-23 Thread longli
From: Long Li Tx hardware queue is allocated when starting the queue, this is for pre configuration. Signed-off-by: Long Li --- change log: v8: fix coding style to function definitions v9: move data definitions from earlier patch. drivers/net/mana/mana.c | 67 +

[Patch v9 07/18] net/mana: configure RSS

2022-09-23 Thread longli
From: Long Li Currently this PMD supports RSS configuration when the device is stopped. Configuring RSS in running state will be supported in the future. Signed-off-by: Long Li --- change log: v8: fix coding sytle to function definitions doc/guides/nics/features/mana.ini | 1 + drivers/net/m

[Patch v9 05/18] net/mana: support device removal interrupts

2022-09-23 Thread longli
From: Long Li MANA supports PCI hot plug events. Add this interrupt to DPDK core so its parent PMD can detect device removal during Azure servicing or live migration. Signed-off-by: Long Li --- v8: fix coding style of function definitions. v9: remove unused data fields. doc/guides/nics/featur

[Patch v9 06/18] net/mana: report device info

2022-09-23 Thread longli
From: Long Li Add the function to get device info. Signed-off-by: Long Li --- v8: use new macro definition start with "MANA_" fix coding style to function definitions v9: move data definitions from earlier patch. doc/guides/nics/features/mana.ini | 1 + drivers/net/mana/mana.c | 8

[Patch v9 04/18] net/mana: support link update

2022-09-23 Thread longli
From: Long Li The carrier state is managed by the Azure host. MANA runs as a VF and always reports "up". Signed-off-by: Long Li --- doc/guides/nics/features/mana.ini | 1 + drivers/net/mana/mana.c | 18 ++ 2 files changed, 19 insertions(+) diff --git a/doc/guides/ni

[Patch v9 03/18] net/mana: report supported ptypes

2022-09-23 Thread longli
From: Long Li Report supported protocol types. Signed-off-by: Long Li --- Change log. v7: change link_speed to RTE_ETH_SPEED_NUM_100G drivers/net/mana/mana.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/net/mana/mana.c b/drivers/net/mana/mana.c index 64069e2b

[Patch v9 02/18] net/mana: device configuration and stop

2022-09-23 Thread longli
From: Long Li MANA defines its memory allocation functions to override IB layer default functions to allocate device queues. This patch adds the code for device configuration and stop. Signed-off-by: Long Li --- v2: Removed validation for offload settings in mana_dev_configure(). v8: Fix coding

[Patch v9 01/18] net/mana: add basic driver with build environment and doc

2022-09-23 Thread longli
From: Long Li MANA is a PCI device. It uses IB verbs to access hardware through the kernel RDMA layer. This patch introduces build environment and basic device probe functions. Signed-off-by: Long Li --- Change log: v2: Fix typos. Make the driver build only on x86-64 and Linux. Remove unused he

[Patch v9 00/18] Introduce Microsoft Azure Network Adatper (MANA) PMD

2022-09-23 Thread longli
From: Long Li MANA is a network interface card to be used in the Azure cloud environment. MANA provides safe access to user memory through memory registration. It has IOMMU built into the hardware. MANA uses IB verbs and RDMA layer to configure hardware resources. It requires the corresponding R

[PATCH v6 14/14] baseband/acc: simplify meson dependency

2022-09-23 Thread Nicolas Chautru
From: Nic Chautru Removing some of libraries from the external dependency captured in meson build file. Signed-off-by: Nic Chautru --- drivers/baseband/acc/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/baseband/acc/meson.build b/drivers/baseband/acc/me

[PATCH v6 13/14] baseband/acc: add PF configure companion function

2022-09-23 Thread Nicolas Chautru
From: Nic Chautru Add configure function notably to configure the device from the PF within DPDK and bbdev-test (without external dependency). Signed-off-by: Nic Chautru --- app/test-bbdev/test_bbdev_perf.c | 71 drivers/baseband/acc/meson.build | 2 +- drivers/baseband/acc/r

[PATCH v6 12/14] baseband/acc: add device status and vf2pf comms

2022-09-23 Thread Nicolas Chautru
From: Nic Chautru Add support to expose the device status seen from the host through v2pf mailbox communication. Signed-off-by: Nic Chautru Reviewed-by: Maxime Coquelin --- drivers/baseband/acc/rte_acc200_pmd.c | 64 --- 1 file changed, 47 insertions(+), 17 deletions(-

[PATCH v6 11/14] baseband/acc: support interrupt

2022-09-23 Thread Nicolas Chautru
From: Nic Chautru Adding support for capability and functions for MSI/MSI-X interrupt and underlying information ring. Signed-off-by: Nic Chautru --- drivers/baseband/acc/rte_acc200_pmd.c | 303 +- 1 file changed, 301 insertions(+), 2 deletions(-) diff --git a/drivers/

[PATCH v6 10/14] baseband/acc: add support for FFT operations

2022-09-23 Thread Nicolas Chautru
From: Nic Chautru Add functions and capability for FFT processing Signed-off-by: Nic Chautru --- drivers/baseband/acc/rte_acc200_pmd.c | 242 +- 1 file changed, 240 insertions(+), 2 deletions(-) diff --git a/drivers/baseband/acc/rte_acc200_pmd.c b/drivers/baseband/acc

[PATCH v6 09/14] baseband/acc: add LTE processing functions

2022-09-23 Thread Nicolas Chautru
From: Nic Chautru Add functions and capability for 4G FEC Signed-off-by: Nic Chautru --- drivers/baseband/acc/rte_acc200_pmd.c | 854 +- 1 file changed, 850 insertions(+), 4 deletions(-) diff --git a/drivers/baseband/acc/rte_acc200_pmd.c b/drivers/baseband/acc/rte_acc

[PATCH v6 08/14] baseband/acc: add LDPC processing functions

2022-09-23 Thread Nicolas Chautru
From: Nic Chautru Adding LDPC encode and decode processing functions. Signed-off-by: Nic Chautru --- drivers/baseband/acc/acc_common.h | 84 ++ drivers/baseband/acc/rte_acc200_pmd.c | 1384 - 2 files changed, 1464 insertions(+), 4 deletions(-) diff --git a/driver

[PATCH v6 07/14] baseband/acc: add queue configuration for ACC200

2022-09-23 Thread Nicolas Chautru
From: Nic Chautru Adding function to create and configure queues for the device. Signed-off-by: Nic Chautru --- drivers/baseband/acc/acc_common.h | 1 + drivers/baseband/acc/rte_acc200_pmd.c | 391 +- 2 files changed, 391 insertions(+), 1 deletion(-) diff --git a

[PATCH v6 06/14] baseband/acc: add info get function for ACC200

2022-09-23 Thread Nicolas Chautru
From: Nic Chautru Add support for info_get to allow to query the device. Null capability exposed. Signed-off-by: Nic Chautru --- drivers/baseband/acc/acc200_pmd.h | 1 + drivers/baseband/acc/rte_acc200_pmd.c | 239 ++ 2 files changed, 240 insertions(+) diff --git

[PATCH v6 05/14] baseband/acc: add HW register definitions for ACC200

2022-09-23 Thread Nicolas Chautru
From: Nic Chautru Add registers list and structure to access the device. Signed-off-by: Nic Chautru Reviewed-by: Maxime Coquelin --- drivers/baseband/acc/acc200_pf_enum.h | 108 + drivers/baseband/acc/acc200_pmd.h | 163 ++ drivers/baseband/acc/acc2

[PATCH v6 04/14] baseband/acc: introduce PMD for ACC200

2022-09-23 Thread Nicolas Chautru
This patch introduces stubs for device driver for the ACC200 integrated VRAN accelerator on SPR-EEC Signed-off-by: Nicolas Chautru Reviewed-by: Maxime Coquelin --- MAINTAINERS | 3 + doc/guides/bbdevs/acc200.rst | 244 ++ doc/guides/b

[PATCH v6 03/14] baseband/acc: rename directory from acc100 to acc

2022-09-23 Thread Nicolas Chautru
From: Nic Chautru Using a common directory for the ACC PMDs Signed-off-by: Nic Chautru --- MAINTAINERS | 2 +- app/test-bbdev/meson.build| 4 ++-- app/test-bbdev/test_bbdev_perf.c | 4 ++-- drivers/baseb

[PATCH v6 01/14] baseband/acc100: remove unused registers

2022-09-23 Thread Nicolas Chautru
From: Nic Chautru Cleaning up the enum files to remove un-used registers definitions. No functionality change. Signed-off-by: Nic Chautru Reviewed-by: Maxime Coquelin --- drivers/baseband/acc100/acc100_pf_enum.h | 939 --- 1 file changed, 939 deletions(-) diff --git a/dri

From: Nicolas Chautru

2022-09-23 Thread Nicolas Chautru
v5/v6:Updates based on Maxime reviews of v4/v5. Thanks. v4: Rebase suggested by Maxime to split first commit and update the order within the series. No functional change. v3: Putting together ACC100 and ACC200 PMDs in common acc directory based on previous discussion on v2. v2: Includes now cod

RE: [PATCH v4 13/14] baseband/acc: add PF configure companion function

2022-09-23 Thread Chautru, Nicolas
Hi Maxime, Thanks will send an updated serie now. Much appreciated. > -Original Message- > From: Maxime Coquelin > Sent: Friday, September 23, 2022 2:26 AM > To: Chautru, Nicolas ; dev@dpdk.org; > tho...@monjalon.net > Cc: t...@redhat.com; m...@ashroe.eu; Richardson, Bruce > ; hemant.ag

RE: [PATCH v4 12/14] baseband/acc: add device status and vf2pf comms

2022-09-23 Thread Chautru, Nicolas
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Friday, September 23, 2022 2:23 AM > To: Chautru, Nicolas ; dev@dpdk.org; > tho...@monjalon.net > Cc: t...@redhat.com; m...@ashroe.eu; Richardson, Bruce > ; hemant.agra...@nxp.com; > david.march...@redhat.com; step...@networ

RE: [PATCH v4 11/14] baseband/acc: support interrupt

2022-09-23 Thread Chautru, Nicolas
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Friday, September 23, 2022 2:17 AM > To: Chautru, Nicolas ; dev@dpdk.org; > tho...@monjalon.net > Cc: t...@redhat.com; m...@ashroe.eu; Richardson, Bruce > ; hemant.agra...@nxp.com; > david.march...@redhat.com; step...@networ

RE: [PATCH v4 10/14] baseband/acc: add support for FFT operations

2022-09-23 Thread Chautru, Nicolas
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Friday, September 23, 2022 2:06 AM > To: Chautru, Nicolas ; dev@dpdk.org; > tho...@monjalon.net > Cc: t...@redhat.com; m...@ashroe.eu; Richardson, Bruce > ; hemant.agra...@nxp.com; > david.march...@redhat.com; step...@networ

RE: [PATCH v4 09/14] baseband/acc: add LTE processing functions

2022-09-23 Thread Chautru, Nicolas
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Friday, September 23, 2022 2:00 AM > To: Chautru, Nicolas ; dev@dpdk.org; > tho...@monjalon.net > Cc: t...@redhat.com; m...@ashroe.eu; Richardson, Bruce > ; hemant.agra...@nxp.com; > david.march...@redhat.com; step...@networ

Re: [RFC v3 00/26] Bus and device cleanup for 22.11

2022-09-23 Thread Harris, James R
> On Sep 23, 2022, at 12:13 AM, David Marchand > wrote: > > On Thu, Sep 22, 2022 at 12:29 AM Harris, James R > wrote: >> >> >> So sticking with the internal header copies for now, this works fine >> for LTS and non-LTS releases. What about stable releases (i.e. 22.11.1)? >> IIUC, these he

RE: [PATCH v4 08/14] baseband/acc: add LDPC processing functions

2022-09-23 Thread Chautru, Nicolas
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Friday, September 23, 2022 1:30 AM > To: Chautru, Nicolas ; dev@dpdk.org; > tho...@monjalon.net > Cc: t...@redhat.com; m...@ashroe.eu; Richardson, Bruce > ; hemant.agra...@nxp.com; > david.march...@redhat.com; step...@networ

Re: [PATCH v3 2/9] net/gve: add logs and OS specific implementation

2022-09-23 Thread Stephen Hemminger
On Fri, 23 Sep 2022 17:38:22 +0800 Junfeng Guo wrote: > + > +#define PMD_DRV_LOG(level, fmt, args...) \ > + rte_log(RTE_LOG_ ## level, gve_logtype_driver, "%s(): " fmt "\n", \ > + __func__, ## args) Many of your existing log messages already have newline, so using this common def

Re: [PATCH v3 1/9] net/gve: introduce GVE PMD base code

2022-09-23 Thread Stephen Hemminger
On Fri, 23 Sep 2022 17:38:21 +0800 Junfeng Guo wrote: > Note that these code are not Intel files and they come from the kernel > community. The base code there has the statement of > SPDX-License-Identifier: (GPL-2.0 OR MIT). Here we just follow the > required MIT license as an exception to DPDK.

Re: [PATCH v3 1/9] net/gve: introduce GVE PMD base code

2022-09-23 Thread Stephen Hemminger
On Fri, 23 Sep 2022 17:38:21 +0800 Junfeng Guo wrote: > +#define GVE_DEVICE_OPTION_TOO_BIG_FMT "Length of %s option larger than > expected. Possible older version of guest driver." Why do you need #define for this? +#define GVE_DEVICE_OPTION_ERROR_FMT "%s option error:\n" \ +"Expected: length=

RE: [Patch v8 01/18] net/mana: add basic driver with build environment and doc

2022-09-23 Thread Long Li
> Subject: Re: [Patch v8 01/18] net/mana: add basic driver with build > environment and doc > > On 9/8/2022 10:56 PM, lon...@linuxonhyperv.com wrote: > > From: Long Li > > > > MANA is a PCI device. It uses IB verbs to access hardware through the > > kernel RDMA layer. This patch introduces build e

RE: [Patch v8 01/18] net/mana: add basic driver with build environment and doc

2022-09-23 Thread Long Li
> Subject: Re: [Patch v8 01/18] net/mana: add basic driver with build > environment and doc > > On 9/8/2022 10:56 PM, lon...@linuxonhyperv.com wrote: > > From: Long Li > > > > MANA is a PCI device. It uses IB verbs to access hardware through the > > kernel RDMA layer. This patch introduces build

RE: [Patch v7 18/18] net/mana: add function to support RX interrupts

2022-09-23 Thread Long Li
> Subject: Re: [Patch v7 18/18] net/mana: add function to support RX > interrupts > > On 9/3/2022 2:41 AM, lon...@linuxonhyperv.com wrote: > > > > > From: Long Li > > > > mana can receive RX interrupts from kernel through RDMA verbs interface. > > Implement RX interrupts in the driver. > > > >

RE: [Patch v7 11/18] net/mana: implement the hardware layer operations

2022-09-23 Thread Long Li
> Subject: Re: [Patch v7 11/18] net/mana: implement the hardware layer > operations > > On 9/3/2022 2:40 AM, lon...@linuxonhyperv.com wrote: > > > > > From: Long Li > > > > The hardware layer of MANA understands the device queue and doorbell > > formats. Those functions are implemented for use b

Re: [PATCH] eal: restore some needed header includes

2022-09-23 Thread Ferruh Yigit
On 9/23/2022 3:12 PM, Andrew Boyer wrote: These are necessary to build when HPET is enabled. Fixes: 2ff3976e677c ("eal: remove unneeded header includes") Cc: sean.morris...@intel.com Signed-off-by: Andrew Boyer Acked-by: Ferruh Yigit

Re: [PATCH] eal: restore some needed header includes

2022-09-23 Thread Ferruh Yigit
On 9/23/2022 2:29 PM, Andrew Boyer wrote: These are necessary to build when HPET is enabled. Fixes: 2ff3976e677c ("eal: remove unneeded header includes") Cc: sean.morris...@intel.com Signed-off-by: Andrew Boyer --- lib/eal/linux/eal_timer.c | 6 ++ 1 file changed, 6 insertions(+) diff

RE: [v1] examples/fips_validation: fix SHA MCT test from segfault

2022-09-23 Thread Dooley, Brian
> -Original Message- > From: Gowrishankar Muthukrishnan > Sent: Friday, September 16, 2022 3:02 PM > To: dev@dpdk.org > Cc: Anoob Joseph ; Zhang, Roy Fan > ; Dooley, Brian ; Akhil > Goyal ; jer...@marvell.com; Gowrishankar > Muthukrishnan > Subject: [v1] examples/fips_validation: fix SHA

RE: [PATCH v2 2/2] examples/fips_validation: add parsing for TDES

2022-09-23 Thread Dooley, Brian
> -Original Message- > From: Gowrishankar Muthukrishnan > Sent: Friday, August 12, 2022 12:52 PM > To: dev@dpdk.org > Cc: Anoob Joseph ; Zhang, Roy Fan > ; Dooley, Brian ; Akhil > Goyal ; jer...@marvell.com; Gowrishankar > Muthukrishnan > Subject: [PATCH v2 2/2] examples/fips_validation:

RE: [PATCH v2] examples/fips_validation: fix memory allocation in AES MCT test

2022-09-23 Thread Dooley, Brian
> -Original Message- > From: Gowrishankar Muthukrishnan > Sent: Friday, August 12, 2022 12:47 PM > To: dev@dpdk.org > Cc: Anoob Joseph ; Zhang, Roy Fan > ; Dooley, Brian ; Akhil > Goyal ; Gowrishankar Muthukrishnan > > Subject: [PATCH v2] examples/fips_validation: fix memory allocation in

RE: [PATCH v1 0/5] FIPS asymmetric validation

2022-09-23 Thread Dooley, Brian
> -Original Message- > From: Gowrishankar Muthukrishnan > Sent: Friday, August 12, 2022 12:57 PM > To: dev@dpdk.org > Cc: Anoob Joseph ; Zhang, Roy Fan > ; Dooley, Brian ; Akhil > Goyal ; jer...@marvell.com; Gowrishankar > Muthukrishnan > Subject: [PATCH v1 0/5] FIPS asymmetric validation

RE: [PATCH v1] examples/fips_validation: fix parsing SHA test type from JSON vector

2022-09-23 Thread Dooley, Brian
> -Original Message- > From: Gowrishankar Muthukrishnan > Sent: Friday, August 12, 2022 12:49 PM > To: dev@dpdk.org > Cc: Anoob Joseph ; Zhang, Roy Fan > ; Dooley, Brian ; Akhil > Goyal ; Gowrishankar Muthukrishnan > > Subject: [PATCH v1] examples/fips_validation: fix parsing SHA test typ

RE: [PATCH v1] ethdev: add direction info when creating the transfer table

2022-09-23 Thread Ori Kam
Hi Andrew, > -Original Message- > From: Andrew Rybchenko > Sent: Friday, 23 September 2022 10:26 > > Hi Ori, > > On 9/22/22 16:00, Ori Kam wrote: > > Hi Andrew, > > > >> -Original Message- > >> From: Andrew Rybchenko > >> Sent: Thursday, 22 September 2022 13:31 > >> > >> On 9/2

Re: [PATCH V2 0/6] pipeline: make the hash function configurable per table

2022-09-23 Thread Thomas Monjalon
19/08/2022 21:52, Cristian Dumitrescu: > The exact match and learner tables use a hash function for the lookup > operation. This patch set makes the hash function configurable and > removes some limitations. > > The hash function previously used by these table types had the > following limitations

RE: [EXT] [PATCH] examples/ipsec-secgw: free event vector mbufs

2022-09-23 Thread Pavan Nikhilesh Bhagavatula
> Free mbufs from event vector list when enqueue operation fails > and during event port flush for cleanup. > > Signed-off-by: Rahul Bhansali > --- > examples/ipsec-secgw/ipsec_worker.c | 34 +-- > -- > 1 file changed, 25 insertions(+), 9 deletions(-) > > diff --git a/ex

[PATCH 26/27] net/mlx5: implement METER MARK action for HWS

2022-09-23 Thread Suanming Mou
From: Alexander Kozyrev Implement METER_MARK action for hardware steering case. Signed-off-by: Alexander Kozyrev --- drivers/net/mlx5/mlx5.h| 9 ++- drivers/net/mlx5/mlx5_flow.h | 2 + drivers/net/mlx5/mlx5_flow_aso.c | 7 +- drivers/net/mlx5/mlx5_flow_hw.c| 116 +

[PATCH 27/27] net/mlx5: implement METER MARK indirect action for HWS

2022-09-23 Thread Suanming Mou
From: Alexander Kozyrev Add ability to create an indirect action handle for METER_MARK. It allows to share one Meter between several different actions. Signed-off-by: Alexander Kozyrev --- drivers/net/mlx5/mlx5_flow.c| 6 ++ drivers/net/mlx5/mlx5_flow.h| 25 - drivers/net/mlx5/m

[PATCH 24/27] net/mlx5: add meter color flow matching in hws

2022-09-23 Thread Suanming Mou
From: Alexander Kozyrev Create hardware steering meter color support. Allow matching on a meter color using hardware steering. Signed-off-by: Alexander Kozyrev --- drivers/net/mlx5/mlx5_flow.h| 1 + drivers/net/mlx5/mlx5_flow_dv.c | 32 ++-- drivers/net/mlx5/ml

[PATCH 25/27] net/mlx5: implement profile/policy get

2022-09-23 Thread Suanming Mou
From: Alexander Kozyrev Add callback functions for both software and hardware steering to get a pointers to Meter profile/policy by their IDs. Signed-off-by: Alexander Kozyrev --- drivers/net/mlx5/mlx5_flow_meter.c | 65 ++ 1 file changed, 65 insertions(+) diff --g

[PATCH 23/27] net/mlx5: add meter color flow matching in dv

2022-09-23 Thread Suanming Mou
From: Alexander Kozyrev Create firmware and software steering meter color support. Allow matching on a meter color in both root and non-root groups. Signed-off-by: Alexander Kozyrev --- drivers/net/mlx5/mlx5_flow.h| 3 + drivers/net/mlx5/mlx5_flow_dv.c | 113 +

[PATCH 21/27] net/mlx5: add HW steering connection tracking support

2022-09-23 Thread Suanming Mou
This commit adds the support of connection tracking to HW steering as SW steering did before. Different with SW steering implementation, take advantage of HW steering bulk action allocation support, in HW steering only one single CT pool is needed. An indexed pool is introduced to record allocate

[PATCH 20/27] lib/ethdev: add connection tracking configuration

2022-09-23 Thread Suanming Mou
This commit adds the maximum connection tracking number configuration for async flow engine. Signed-off-by: Suanming Mou --- lib/ethdev/rte_flow.h | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index abb475bdee..e9a1bce38b 100644 --- a/lib/

[PATCH 19/27] net/mlx5: add support for ASO return register

2022-09-23 Thread Suanming Mou
From: Bing Zhao A REG_C_x metadata register is needed to store the result after an ASO action. Like in the SWS, the meter color register is used for all the ASO actions right now and this register was already filtered out from the available tags. It is assumed that all the devices are using the

[PATCH 22/27] net/mlx5: add HW steering VLAN push, pop and VID modify flow actions

2022-09-23 Thread Suanming Mou
From: Gregory Etelson Add PMD implementation for HW steering VLAN push, pop and modify flow actions. HWS VLAN push flow action is triggered by a sequence of mandatory OF_PUSH_VLAN, OF_SET_VLAN_VID and optional OF_SET_VLAN_PCP flow actions commands. The commands must be arranged in the exact orde

[PATCH 18/27] net/mlx5: add meta item support in egress

2022-09-23 Thread Suanming Mou
From: Dariusz Sosnowski This patch adds support for META item in HW Steering mode, in NIC TX domain. Due to API limitations, usage of META item requires that all mlx5 ports use the same configuration of dv_esw_en and dv_xmeta_en device arguments in order to consistently translate META item to ap

[PATCH 17/27] net/mlx5: add pattern and table attribute validation

2022-09-23 Thread Suanming Mou
From: Dariusz Sosnowski This patch adds validation of direction attributes of pattern templates and template tables. In case of pattern templates the following configurations are allowed (and if this configuration requires addition of implicit pattern items): 1. If E-Switch is enabled (i.e. dv_

[PATCH 16/27] net/mlx5: support indirect count action for HW steering

2022-09-23 Thread Suanming Mou
From: Xiaoyu Min The indirect counter action is taked as _shared_ counter between the flows use it. This _shared_ counter is gotten from counter pool at time the indirect action is created. And be put back to counter pool when indirect action is destroyed. Signed-off-by: Xiaoyu Min --- driver

[PATCH 14/27] net/mlx5: fix indirect action validate

2022-09-23 Thread Suanming Mou
For indirect actions, the action mask type indicates the indirect action type. And action mask conf be NULL means the indirect action will be provided by flow action conf. This commit fixes the indirect action validate. Fixes: 393e0eb555c0 ("net/mlx5: support DR action template API") Signed-off-

[PATCH 13/27] net/mlx5: support DR action template API

2022-09-23 Thread Suanming Mou
From: Dariusz Sosnowski This patch adapts mlx5 PMD to changes in mlx5dr API regarding action templates. It changes the following: 1. Actions template creation: - Flow actions types are translated to mlx5dr action types in order to create mlx5dr_action_template object. - An offset

[PATCH 15/27] net/mlx5: update indirect actions ops to HW variation

2022-09-23 Thread Suanming Mou
From: Xiaoyu Min Each flow engine should have its own callback functions for each flow's ops. Create new callback functions for indirect actions' ops which actually are wrppers of their mlx5_hw_async_* counter parts. Signed-off-by: Xiaoyu Min --- drivers/net/mlx5/mlx5_flow_hw.c | 98 +

[PATCH 11/27] net/mlx5: add HW steering counter action

2022-09-23 Thread Suanming Mou
From: Xiaoyu Min This commit adds HW steering counter action support. Pool mechanism is the basic data structure for the HW steering counter. The HW steering's counter pool is based on the rte_ring of zero-copy variation. There are two global rte_rings: 1. free_list: Store the counters ind

[PATCH 12/27] net/mlx5: support caching queue action

2022-09-23 Thread Suanming Mou
If the port is stopped, the Rx queue data will also be destroyed. At that time, create table with RSS action would be failed due to lack of Rx queue data. This commit adds the cache of queue create operation while port stopped. In case port is stopped, add tables to the ongoing list first, then d

[PATCH 10/27] net/mlx5: add HW steering meter action

2022-09-23 Thread Suanming Mou
From: Alexander Kozyrev This commit adds meter action for HWS steering. HW steering meter is based on ASO. The number of meters will be used by flows should be specified in advanced in the flow configure API. Signed-off-by: Alexander Kozyrev Signed-off-by: Alexander Kozyrev --- drivers/net/

[PATCH 08/27] net/mlx5: add extended metadata mode for hardware steering

2022-09-23 Thread Suanming Mou
From: Bing Zhao The new mode 4 of devarg "dv_xmeta_en" is added for HWS only. In this mode, the Rx / Tx metadata with 32b width copy between FDB and NIC is supported. The mark is only supported in NIC and there is no copy supported. Signed-off-by: Bing Zhao --- drivers/net/mlx5/linux/mlx5_os.c

[PATCH 09/27] ethdev: add meter profiles/policies config

2022-09-23 Thread Suanming Mou
From: Alexander Kozyrev Provide an ability to specify the number of meter profiles/policies alongside with the number of meters during the Flow engine configuration. Signed-off-by: Alexander Kozyrev --- lib/ethdev/rte_flow.h | 22 +- 1 file changed, 21 insertions(+), 1 dele

[PATCH 07/27] net/mlx5: create port actions

2022-09-23 Thread Suanming Mou
From: Dariusz Sosnowski This patch implements creating and caching of port actions for use with HW Steering FDB flows. Actions are created on flow template API configuration and created only on the port designated as master. Attaching and detaching of ports in the same switching domain causes an

[PATCH 06/27] net/mlx5: enable mark flag for all ports in the same domain

2022-09-23 Thread Suanming Mou
From: Bing Zhao In the switchdev mode, there is a unique FDB domain for all the representors and only the eswitch manager can insert the rule into this domain. If a flow rule is like below: flow create 0 ingress transfer pattern port_id id is X / eth / end actions mark id 25 ... It is used for r

[PATCH 05/27] net/mlx5: validate modify field action template

2022-09-23 Thread Suanming Mou
From: Dariusz Sosnowski This patch adds validation step for action templates and validates if RTE_FLOW_ACTION_TYPE_MODIFY_FIELD actions' fields are properly masked. Signed-off-by: Dariusz Sosnowski --- drivers/net/mlx5/mlx5_flow_hw.c | 132 1 file changed, 132

[PATCH 04/27] net/mlx5: add modify field hws support

2022-09-23 Thread Suanming Mou
This patch introduces support for modify_field rte_flow actions in HWS mode. Support includes: - Ingress and egress domains, - SET and ADD operations, - usage of arbitrary bit offsets and widths for packet and metadata fields. Support is implemented in two phases:

[PATCH 03/27] net/mlx5: add shared header reformat support

2022-09-23 Thread Suanming Mou
As the rte_flow_async API defines, the action mask with field value not be 0 means the action will be used as shared in all the flows in the table. The header reformat action with action mask field not be 0 will be created as constant shared action. For encapsulation header reformat action, there

[PATCH 02/27] net/mlx5: fix IPv6 and TCP RSS hash fields

2022-09-23 Thread Suanming Mou
In the flow_dv_hashfields_set() function, while item_flags was 0, the code went directly to the first if and the else case would never have chance be checked. This caused the IPv6 and TCP hash fileds in the else case would never be set. This commit adds the dedicate HW steering hash field set func

[PATCH 01/27] net/mlx5: fix invalid flow attributes

2022-09-23 Thread Suanming Mou
In the function flow_get_drv_type(), attr will be read in non-HWS mode. In case user call the HWS API in SWS mode, attr should be placed in HWS functions, or it will cause crash. Fixes: 572801ab860f ("ethdev: backport upstream rte_flow_async codes") Signed-off-by: Suanming Mou --- drivers/net/m

[PATCH 00/27] net/mlx5: HW steering PMD update

2022-09-23 Thread Suanming Mou
The skeleton of mlx5 HW steering(HWS) has been updated into upstream for pretty a long time, but not updated anymore due to missing of the low-level steering layer code. Luckily, better late than never, the steering layer finnaly comes[1]. This series will add more features to the existing PMD cod

[PATCH] eal: restore some needed header includes

2022-09-23 Thread Andrew Boyer
These are necessary to build when HPET is enabled. Fixes: 2ff3976e677c ("eal: remove unneeded header includes") Cc: sean.morris...@intel.com Signed-off-by: Andrew Boyer --- lib/eal/linux/eal_timer.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/eal/linux/eal_timer.c b/lib/eal/li

[PATCH v2] ethdev: queue rate parameter changed from 16b to 32b

2022-09-23 Thread skoteshwar
From: Satha Rao The rate parameter modified to uint32_t, so that it can work for more than 64 Gbps. Signed-off-by: Satha Rao --- v2: Fixed checkpatch warnings app/test-pmd/cmdline.c| 8 app/test-pmd/config.c | 4 ++-- app/test-pmd/testpmd.h| 4

[PATCH] ethdev: queue rate parameter changed from 16b to 32b

2022-09-23 Thread skoteshwar
From: Satha Rao The rate parameter modified to uint32_t, so that it can work for more than 64 Gbps. Change-Id: I7115c22a4dfdda84d820b221bf33839a7b57f2cd Signed-off-by: Satha Rao --- app/test-pmd/cmdline.c| 8 app/test-pmd/config.c | 4 ++-- app/test-pmd/testp

Re: [PATCH v4 3/3] test/power: add unit tests for uncore API

2022-09-23 Thread Hunt, David
Hi Tadhg, On 20/09/2022 10:48, Tadhg Kearney wrote: Add basic unit tests covering all nine uncore API's. Signed-off-by: Tadhg Kearney --- app/test/meson.build | 2 + app/test/test_power_uncore.c | 299 +++ 2 files changed, 301 insertions(+) create

Re: [PATCH v4 1/3] power: add uncore frequency control API to the power library

2022-09-23 Thread Hunt, David
On 20/09/2022 10:48, Tadhg Kearney wrote: Add API to allow uncore frequency adjustment. This is done through manipulating related uncore frequency control sysfs entries to adjust the minimum and maximum uncore frequency values. Nine API's are being added that are all public and experimental. S

Re: [PATCH v4 2/3] l3fwd-power: add option to call uncore API

2022-09-23 Thread Hunt, David
On 20/09/2022 10:48, Tadhg Kearney wrote: Add option for setting uncore frequency min/max/index, through uncore API. This will be set for each package and die on the SKU. On exit, uncore min and max frequency will be reverted back to previous frequencies. Signed-off-by: Tadhg Kearney --- ..

Re: DPDK 19.11.5 Legacy Memory Design Query

2022-09-23 Thread Dmitry Kozlyuk
2022-09-23 12:12 (UTC+), Umakiran Godavarthi (ugodavar): > [Uma] : Yes I agree if free_hp = 400, nr_hp = 252, we are expecting DPDK > takes only 252 and keep the remaining pages free in its heap. >As you have mentioned just boot DPDK with 1 page, and add > pages we want late

O/S noise histogram

2022-09-23 Thread Morten Brørup
Dear DPDK community, We have been using the code below to measure O/S noise affecting our data plane threads, so we can tune the kernel parameters. The measurement method is based on dedicating an lcore to run the experimental_thread() function, which repeatedly reads the TSC and stores the dif

RE: [PATCH v2 0/6] crypto/security session framework rework

2022-09-23 Thread Coyle, David
Hi Akhil/Fan Patchset verified for QAT and AESNI_MB sessions, with particular focus on Security Cipher-CRC For the series, Tested-by: David Coyle Tested-by: Kevin O'Sullivan Regards, David > -Original Message- > From: Akhil Goyal > Sent: Wednesday, September 21, 2022 4:11 PM > To: A

RE: [PATCH v4 3/3] app/procinfo: support descriptor dump

2022-09-23 Thread Pattan, Reshma
> -Original Message- > From: Dongdong Liu > Subject: [PATCH v4 3/3] app/procinfo: support descriptor dump > > From: "Min Hu (Connor)" > > This patch support HW Rx/Tx descriptor dump > > The command is like: > dpdk-proc-info -a :xx:xx.x --file-prefix=xxx -- -- --show-rx-descripto

Re: DPDK 19.11.5 Legacy Memory Design Query

2022-09-23 Thread Umakiran Godavarthi (ugodavar)
Thanks Dmitry for quick turn around Yes below are my answers There still DPDK malloc internal structures that you cannot adjust. I suggest going another way: Instead of letting DPDK allocate all hugepages and unmapping some, allow DPDK to allocate an absolute minimum (1 x 2MB page?) and add all

Re: [PATCH 0/4] pipeline: support large structure fields

2022-09-23 Thread Thomas Monjalon
12/08/2022 11:54, Cristian Dumitrescu: > This patch set adds support for structure fields bigger than 64 bits. > These fields can be packet header or meta-data fields. They can be > used as part of the table lookup key or as action arguments. They are > now valid operands for the move instruction.

Re: DPDK 19.11.5 Legacy Memory Design Query

2022-09-23 Thread Dmitry Kozlyuk
2022-09-23 11:20 (UTC+), Umakiran Godavarthi (ugodavar): > [Uma] : Yes we are unmapping the entire range hoping all are free inside > DPDK and DPDK heaps never use these pages. > > Suppose we have 400 pages total free_hp, we want only 252 pages , so we > reduce nr_pages to 252. > > So we

RE: [RFT] dumpcap: add file-prefix option

2022-09-23 Thread Kaur, Arshdeep
++ Balaji and Mike. > -Original Message- > From: Kaur, Arshdeep > Sent: Friday, September 16, 2022 1:49 PM > To: Stephen Hemminger ; dev@dpdk.org > Subject: RE: [RFT] dumpcap: add file-prefix option > > > > > -Original Message- > > From: Stephen Hemminger > > Sent: Tuesday, Se

Re: From: Nic Chautru

2022-09-23 Thread Maxime Coquelin
Hi Nicolas, I'm done with v4 review. Please post a v6, I don't plan to review v5 that was posted while I was in the middle of my review. Thanks, Maxime On 9/22/22 02:27, Nic Chautru wrote: v4: Rebase to split the first commit and change the order within the series based on Maxime's feedback.

  1   2   >