[PATCH v5 12/12] net/nfp: add flower PF rxtx logic

2022-08-04 Thread Chaoyong He
This commit implements the flower Rx logic. Fallback packets are multiplexed to the correct representor port based on the prepended metadata. The Rx poll is set to run on the existing service infrastructure. For Tx the existing NFP Tx logic is duplicated to keep the Tx two paths distinct. Flower f

[PATCH v5 11/12] net/nfp: move rxtx function to header file

2022-08-04 Thread Chaoyong He
Flower makes use of the same Rx and Tx checksum logic as the normal PMD. Expose it so that flower can make use of it. Signed-off-by: Chaoyong He Signed-off-by: Heinrich Kuhn Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_common.c| 2 +- drivers/net/nfp/nfp_ethdev.c| 2 +- driv

[PATCH v5 10/12] net/nfp: add flower representor framework

2022-08-04 Thread Chaoyong He
This commit adds the framework to support flower representors. The number of VF representors are parsed from the command line. For physical port representors the current logic aims to create a representor for each physical port present on the hardware. A eth_dev is created for each phyport and VF,

[PATCH v5 09/12] net/nfp: add flower ctrl VNIC rxtx logic

2022-08-04 Thread Chaoyong He
Add a Rx and Tx function for the control vNIC. The logic is mostly identical to the normal Rx and Tx functionality of the NFP PMD. This commit also makes use of the ctrl vNIC service logic to service the ctrl vNIC Rx path. Signed-off-by: Chaoyong He Signed-off-by: Heinrich Kuhn Reviewed-by: Nik

[PATCH v5 08/12] net/nfp: move common rxtx function for flower use

2022-08-04 Thread Chaoyong He
This commit move some common Rx and Tx logic to the rxtx header file so that they can be re-used by flower tx and rx logic. Signed-off-by: Chaoyong He Signed-off-by: Heinrich Kuhn Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_rxtx.c | 32 +--- drivers/net/nf

[PATCH v5 07/12] net/nfp: add flower ctrl VNIC related logics

2022-08-04 Thread Chaoyong He
This commit adds the setup/start logic for the ctrl vNIC. This vNIC is used by the PMD and flower firmware as a communication channel between driver and firmware. In the case of OVS it is also used to communicate flow statistics from hardware to the driver. A rte_eth device is not exposed to DPDK

[PATCH v5 06/12] net/nfp: add flower PF related routines

2022-08-04 Thread Chaoyong He
This commit adds the start/stop/close routine of the flower PF vNIC. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/flower/nfp_flower.c | 193 1 file changed, 193 insertions(+) diff --git a/drivers/net/nfp/flower/nfp_flower.c

[PATCH v5 05/12] net/nfp: add flower PF setup and mempool init logic

2022-08-04 Thread Chaoyong He
This commit adds the vNIC initialization logic for the flower PF vNIC. The flower firmware exposes this vNIC for the purposes of fallback traffic in the switchdev use-case. The logic of setting up this vNIC is similar to the logic seen in nfp_net_init() and nfp_net_start(). This commit also adds m

[PATCH v5 04/12] net/nfp: add initial flower firmware support

2022-08-04 Thread Chaoyong He
This commits adds the basic probing infrastructure to support the flower firmware. This firmware is geared towards offloading OVS and can generally be found in /lib/firmware/netronome/flower. It is also used by the NFP kernel driver when OVS offload with TC is desired. This commit also adds the ba

[PATCH v5 03/12] net/nfp: move app specific init logic to own function

2022-08-04 Thread Chaoyong He
The NFP card can load different firmware applications. This commit move the init logic of corenic app of the secondary process into its own function. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_ethdev.c | 93 +--- 1 fi

[PATCH v5 02/12] net/nfp: simplify initialization and remove dead code

2022-08-04 Thread Chaoyong He
Calling nfp_net_init() is only done for the corenic firmware flavor and it is guaranteed to always be called from the primary process, so the explicit check for RTE_PROC_PRIMARY can be dropped. The calling graph of nfp_net_init() already guaranteed the free of resources when it fail, so remove the

[PATCH v5 01/12] net/nfp: move app specific attributes to own struct

2022-08-04 Thread Chaoyong He
The NFP Card can load different firmware applications. Currently only the CoreNIC application is supported. This commit makes needed infrastructure changes in order to support other firmware applications too. Clearer separation is made between the PF device and any application specific concepts. T

[PATCH v5 00/12] preparation for the rte_flow offload of nfp PMD

2022-08-04 Thread Chaoyong He
This is the first patch series to add the support of rte_flow offload for nfp PMD, includes: Add the support of flower firmware Add the support of representor port Add the flower service infrastructure Add the cmsg interactive channels between pmd and fw * Changes since v4 - Remove the unneeded '_

[Bug 1056] [dpdk-19.11.13-rc1] unit_tests_eal/link_bonding_rssconf: link_bonding_rssconf_autotest test failed

2022-08-04 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1056 linglix.c...@intel.com changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

RE: [PATCH 3/6] examples/ipsec-secgw: add lookaside event mode

2022-08-04 Thread Suanming Mou
Hi, > -Original Message- > From: Volodymyr Fialko > Sent: Thursday, August 4, 2022 6:36 PM > To: dev@dpdk.org; Radu Nicolau ; Akhil Goyal > > Cc: jer...@marvell.com; ano...@marvell.com; Volodymyr Fialko > > Subject: [PATCH 3/6] examples/ipsec-secgw: add lookaside event mode > > Add bas

[PATCH v3] net/ice: refactor proto_ext to remove global variable

2022-08-04 Thread Kevin Liu
The ice has the feature to extract protocol fields into flex descriptor by programming per queue. However, the dynamic field for proto_ext are allocated by PMD, it is the responsibility of application to reserved the field, before start DPDK. Application with parse the offset and proto_ext name to

[PATCH v2] net/ice: refactor proto_ext to remove global variable

2022-08-04 Thread Kevin Liu
The ice has the feature to extract protocol fields into flex descriptor by programming per queue. However, the dynamic field for proto_ext are allocated by PMD, it is the responsibility of application to reserved the field, before start DPDK. Application with parse the offset and proto_ext name to

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

2022-08-04 Thread Harris, James R
> On Jul 28, 2022, at 8:26 AM, David Marchand wrote: > > This is a PoC for hiding the rte_bus, rte_driver and rte_device objects. > And mark associated driver only API as internal. > > A good amount of the patches are preparation work on rte_bus.h, > rte_dev.h, rte_devargs.h and rte_eal.h head

Re: [PATCH 00/10] ethdev: cleanup deprecated defines

2022-08-04 Thread Stephen Hemminger
On Thu, 4 Aug 2022 22:05:52 +0300 Andrew Rybchenko wrote: > Remove deprecated because of invalid namespace defines. > > Andrew Rybchenko (10): > ethdev: remove deprecated link speed and duplex defines > ethdev: remove deprecated Rx and Tx multi-queue mode defines > ethdev: remove deprecat

[PATCH 10/10] ethdev: remove deprecated metadata dynamic fields defines

2022-08-04 Thread Andrew Rybchenko
Remove deprecated ``PKT_{R,T}X_DYNF_METADATA`` defines. Use corresponding defines ``RTE_MBUF_DYNFLAG_{R,T}X_METADATA`` instead. Signed-off-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 3 +++ lib/ethdev/rte_flow.h | 4 2 files changed, 3 insertions(+), 4

[PATCH 09/10] ethdev: remove deprecated maximum Rx MAC addresses define

2022-08-04 Thread Andrew Rybchenko
Remove deprecated ``ETH_NUM_RECEIVE_MAC_ADDR`` define. Use corresponding define with ``RTE_`` prefix instead. Signed-off-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 3 +++ lib/ethdev/rte_ethdev.h| 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --

[PATCH 08/10] ethdev: remove deprecated VLAN offload configuration defines

2022-08-04 Thread Andrew Rybchenko
Remove deprecated ``ETH_VLAN_*`` and ``ETH_QINQ_`` defines. Use corresponding defines with ``RTE_`` prefix instead. Signed-off-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 3 +++ lib/ethdev/rte_ethdev.h| 16 2 files changed, 3 insertions(+),

[PATCH 07/10] ethdev: remove deprecated flow control defines

2022-08-04 Thread Andrew Rybchenko
Remove deprecated ``RTE_FC_*`` defines. Use corresponding defines with ``RTE_ETH_FC_`` prefix instead. Signed-off-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 3 +++ lib/ethdev/rte_ethdev.h| 4 2 files changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH 06/10] ethdev: remove deprecated tunnel type defines

2022-08-04 Thread Andrew Rybchenko
Remove deprecated ``RTE_TUNNEL_*`` defines. Use corresponding defines with ``RTE_ETH_TUNNEL_`` prefix instead. Signed-off-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 3 +++ lib/ethdev/rte_ethdev.h| 10 -- 2 files changed, 3 insertions(+), 10 deletio

[PATCH 05/10] ethdev: remove deprecated DCB and VMDq defines

2022-08-04 Thread Andrew Rybchenko
Remove deprecated ``ETH_DCB_*``, ``ETH_VMDQ_``, ``ETH_*_TCS``, ``ETH_*_POOLS`` and ``ETH_MAX_VMDQ_POOL`` defines. Use corresponding defines with ``RTE_`` prefix instead. Signed-off-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 4 lib/ethdev/rte_ethdev.h|

[PATCH 03/10] ethdev: remove deprecated defines for RSS configuration

2022-08-04 Thread Andrew Rybchenko
Remove deprecated ``ETH_RSS_*`` defines used for hash function and RETA size specification. Use corresponding defines with ``RTE_`` prefix instead. Signed-off-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 4 ++ lib/ethdev/rte_ethdev.h| 84 ---

[PATCH 04/10] ethdev: remove deprecated Rx and Tx offload defines

2022-08-04 Thread Andrew Rybchenko
Remove deprecated ``DEV_RX_OFFLOAD_*`` and ``DEV_TX_OFFLOAD_`` defines. Use corresponding defines with ``RTE_ETH_RX_OFFLOAD_`` and ``RTE_ETH_TX_OFFLOAD_`` prefix instead. Signed-off-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 4 +++ lib/ethdev/rte_ethdev.h|

[PATCH 01/10] ethdev: remove deprecated link speed and duplex defines

2022-08-04 Thread Andrew Rybchenko
Remove deprecated ``ETH_LINK_SPEED_``, ``ETH_SPEED_NUM_`` and ``ETH_LINK_`` defines. Use corresponding defines with ``RTE_`` prefix instead. Signed-off-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 4 +++ lib/ethdev/rte_ethdev.h| 41 --

[PATCH 00/10] ethdev: cleanup deprecated defines

2022-08-04 Thread Andrew Rybchenko
Remove deprecated because of invalid namespace defines. Andrew Rybchenko (10): ethdev: remove deprecated link speed and duplex defines ethdev: remove deprecated Rx and Tx multi-queue mode defines ethdev: remove deprecated defines for RSS configuration ethdev: remove deprecated Rx and Tx of

[PATCH 02/10] ethdev: remove deprecated Rx and Tx multi-queue mode defines

2022-08-04 Thread Andrew Rybchenko
Remove deprecated ``ETH_MQ_RX_*`` and ``ETH_MQ_TX_*`` defines. Use corresponding defines with ``RTE_`` prefix instead. Signed-off-by: Andrew Rybchenko --- doc/guides/rel_notes/release_22_11.rst | 3 +++ lib/ethdev/rte_ethdev.h| 18 -- 2 files changed, 3 insertion

[PATCH 21/21] net/softnic: update the default device program

2022-08-04 Thread Cristian Dumitrescu
Update the default device program. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/firmware.cli | 51 -- drivers/net/softnic/firmware.spec | 19 +++ drivers/net/softnic/firmware_rx.io | 30 ++ drivers

[PATCH 20/21] net/softnic: add pipeline mirroring CLI command

2022-08-04 Thread Cristian Dumitrescu
Add CLI command for pipeline mirroring configuration. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/rte_eth_softnic_cli.c | 96 +++ 1 file changed, 96 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/drivers/n

[PATCH 19/21] net/softnic: add pipeline statistics CLI command

2022-08-04 Thread Cristian Dumitrescu
Add CLI command for pipeline statistics counters query. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/rte_eth_softnic_cli.c | 204 ++ 1 file changed, 204 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/driver

[PATCH 18/21] net/softnic: add the pipeline meter CLI commands

2022-08-04 Thread Cristian Dumitrescu
Add CLI commands for pipeline meter configuration. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/rte_eth_softnic_cli.c | 423 ++ 1 file changed, 423 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/drivers/net

[PATCH 17/21] net/softnic: add the pipeline register read/write CLI commands

2022-08-04 Thread Cristian Dumitrescu
Add CLI commands for pipeline registers read and write operations. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/rte_eth_softnic_cli.c | 127 ++ 1 file changed, 127 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_cli.

[PATCH 16/21] net/softnic: add pipeline commit and abort CLI commands

2022-08-04 Thread Cristian Dumitrescu
Add CLI commands for pipeline table update commit and abort. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/rte_eth_softnic_cli.c | 70 +++ 1 file changed, 70 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/dr

[PATCH 15/21] net/softnic: add pipeline learner table CLI commands

2022-08-04 Thread Cristian Dumitrescu
Add CLI command for managing the learner table default entry. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/rte_eth_softnic_cli.c | 106 ++ 1 file changed, 106 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/

[PATCH 14/21] net/softnic: add pipeline selector table CLI commands

2022-08-04 Thread Cristian Dumitrescu
Add CLI commands for selector tables group and member management. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/rte_eth_softnic_cli.c | 517 ++ 1 file changed, 517 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c

[PATCH 13/21] net/softnic: add pipeline table CLI commands

2022-08-04 Thread Cristian Dumitrescu
Add CLI commands for pipeline table entry management. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/rte_eth_softnic_cli.c | 376 ++ 1 file changed, 376 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/drivers/

[PATCH 12/21] net/softnic: add pipeline build CLI command

2022-08-04 Thread Cristian Dumitrescu
Add CLI command for pipeline build. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/rte_eth_softnic_cli.c | 66 +++ 1 file changed, 66 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/drivers/net/softnic/rte_eth

[PATCH 11/21] net/softnic: add pipeline library build CLI command

2022-08-04 Thread Cristian Dumitrescu
Add CLI command for pipeline shared library build. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/rte_eth_softnic_cli.c | 143 ++ 1 file changed, 143 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/drivers/net

[PATCH 09/21] net/softnic: remove unused text parsing functions

2022-08-04 Thread Cristian Dumitrescu
Remove the text parsing functions that are not used. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/meson.build | 1 - drivers/net/softnic/parser.c | 523 -- drivers/net/softnic/parser.h | 68 ---

[PATCH 10/21] net/softnic: add pipeline code generation CLI command

2022-08-04 Thread Cristian Dumitrescu
Add CLI command for pipeline code generation. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/rte_eth_softnic_cli.c | 57 ++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/dr

[PATCH 07/21] net/softnic: replace the legacy pipeline with the SWX pipeline

2022-08-04 Thread Cristian Dumitrescu
Replace the legacy pipeline support with support for the SWX pipeline. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/meson.build |1 - drivers/net/softnic/rte_eth_softnic.c |6 - drivers/net/softnic/rte_eth_softnic_action.c

[PATCH 08/21] net/softnic: remove the list of Ethernet devices

2022-08-04 Thread Cristian Dumitrescu
The list of Ethernet devices within this driver is redundant, as the DPDK global list of Ethernet devices can be used instead. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/meson.build | 1 - drivers/net/softnic/rte_eth_softnic.c

[PATCH 06/21] net/softnic: remove the legacy pipeline CLI commands

2022-08-04 Thread Cristian Dumitrescu
Remove the legacy pipeline CLI commands. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/rte_eth_softnic_cli.c | 4527 - 1 file changed, 4527 deletions(-) diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/drivers/net/softnic/r

[PATCH 05/21] net/softnic: remove tap support

2022-08-04 Thread Cristian Dumitrescu
Remove the TUN/TAP device support. The TUN/TAP devices are still supported as virtual Ethernet devices through the TAP Poll Mode Driver. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/meson.build | 1 - drivers/net/softnic/rte_eth_softnic

[PATCH 04/21] net/softnic: remove cryptodev support

2022-08-04 Thread Cristian Dumitrescu
Remove the cryptographic device API support. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/meson.build | 3 +- drivers/net/softnic/rte_eth_softnic.c | 1 - drivers/net/softnic/rte_eth_softnic_cli.c | 171 --

[PATCH 03/21] net/softnic: remove the meter support

2022-08-04 Thread Cristian Dumitrescu
Remove the Ethernet device meter API support. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/meson.build | 1 - drivers/net/softnic/rte_eth_softnic.c | 16 - .../net/softnic/rte_eth_softnic_internals.h | 117 --- drivers/net/so

[PATCH 01/21] net/softnic: remove the traffic manager support

2022-08-04 Thread Cristian Dumitrescu
Remove the Ethernet device traffic manager API support. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/meson.build |3 +- drivers/net/softnic/rte_eth_softnic.c | 170 - drivers/net/softnic/rte_eth_softnic.h | 10 - dr

[PATCH 02/21] net/softnic: remove flow support

2022-08-04 Thread Cristian Dumitrescu
Remove the Ethernet device flow API support. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra --- drivers/net/softnic/meson.build|1 - drivers/net/softnic/rte_eth_softnic.c |9 - drivers/net/softnic/rte_eth_softnic_cli.c | 81 - drivers/net/softnic/rte

[PATCH 00/21] net/softnic: replace the legacy pipeline with SWX pipeline

2022-08-04 Thread Cristian Dumitrescu
The legacy pipeline API is soon going to be marked for deprecation, hence the Soft NIC driver is updated to support the new SWX pipeline type. The SWX pipeline has better encapsulation than the legacy pipeline, mainly due to P4 language alignment, which results in most of the functionality being s

[PATCH 6/6] devtools: add trace function check in checkpatch

2022-08-04 Thread Ankur Dwivedi
This patch adds a check in checkpatch tool, to check if trace function is added in any new function added in ethdev library. It uses the existing build_map_changes() function and version.map file to create a list of newly added functions. The definition of these functions are checked if they conta

[PATCH 5/6] ethdev: add trace points for driver

2022-08-04 Thread Ankur Dwivedi
Adds trace points for ethdev driver specific functions in ethdev lib. Signed-off-by: Ankur Dwivedi --- lib/ethdev/ethdev_driver.c | 29 + lib/ethdev/ethdev_trace_points.c | 66 ++ lib/ethdev/rte_ethdev_trace.h| 200 +++ lib/ethdev/version.map

[PATCH 4/6] ethdev: add trace points for tm

2022-08-04 Thread Ankur Dwivedi
Adds trace points for rte_tm specific functions in ethdev lib. Signed-off-by: Ankur Dwivedi --- lib/ethdev/ethdev_trace_points.c | 90 ++ lib/ethdev/rte_ethdev_trace.h| 283 +++ lib/ethdev/rte_tm.c | 40 + lib/ethdev/version.map

[PATCH 3/6] ethdev: add trace points for mtr

2022-08-04 Thread Ankur Dwivedi
Adds trace points for rte_mtr specific functions in ethdev lib. Signed-off-by: Ankur Dwivedi --- lib/ethdev/ethdev_trace_points.c | 57 ++ lib/ethdev/rte_ethdev_trace.h| 176 +++ lib/ethdev/rte_mtr.c | 27 + lib/ethdev/version.map

[PATCH 2/6] ethdev: add trace points for flow

2022-08-04 Thread Ankur Dwivedi
Adds trace points for rte_flow specific functions in ethdev lib. Signed-off-by: Ankur Dwivedi --- lib/ethdev/ethdev_trace_points.c | 117 + lib/ethdev/rte_ethdev_trace.h| 405 +++ lib/ethdev/rte_flow.c| 54 + lib/ethdev/version.map

[PATCH 1/6] ethdev: add trace points

2022-08-04 Thread Ankur Dwivedi
Add trace points for ethdev functions. Signed-off-by: Ankur Dwivedi --- lib/ethdev/ethdev_private.c |5 + lib/ethdev/ethdev_trace_points.c | 438 +++ lib/ethdev/rte_ethdev.c | 150 lib/ethdev/rte_ethdev_trace.h| 1182 ++ lib/ethdev

[PATCH 0/6] add trace points in ethdev library

2022-08-04 Thread Ankur Dwivedi
This series adds trace points for functions in the ethdev library. The trace points are added in ethdev, flow, mtr, tm and ethdev_driver files. Apart from the tracepoints, check-trace-func function is added in checkpatch script. The function checks if any new api is added in ethdev library, then i

[PATCH 3/3] crypto/qat: compilation fix for GCC-12

2022-08-04 Thread Amit Prakash Shukla
GCC 12 raises the following warning: from ../lib/eal/x86/include/rte_vect.h:31, from ../lib/eal/x86/include/rte_memcpy.h:17, from ../drivers/crypto/qat/qat_sym_session.c:10: In function '_mm_storeu_si128', inlined from 'rte_mov16' at .

[PATCH 2/3] ipsec: compilation fix for GCC-12

2022-08-04 Thread Amit Prakash Shukla
GCC 12 raises the following warning: In file included from ../lib/eal/x86/include/rte_atomic.h:15, from ../lib/eal/include/generic/rte_pause.h:19, from ../lib/eal/x86/include/rte_pause.h:12, from ../lib/eal/include/generic/rte_spinlock.h:25,

[PATCH 1/3] test/test_ipsec: compilation fix for GCC-12

2022-08-04 Thread Amit Prakash Shukla
GCC-12 raises following warning: p/test/dpdk-test.p/test_ipsec.c.o -c ../app/test/test_ipsec.c In file included from ../lib/eal/x86/include/rte_atomic.h:15, from ../lib/eal/include/generic/rte_pause.h:19, from ../lib/eal/x86/include/rte_pause.h:12,

RE: [EXT] [dpdk-dev v2] Crypto/qat: fix build with OpenSSL 1.1

2022-08-04 Thread Akhil Goyal
> Subject: [EXT] [dpdk-dev v2] Crypto/qat: fix build with OpenSSL 1.1 common/qat: fix build with OpenSSL 1.1 > This patch add in libcrypto version check before enable libipsec-mb for > QAT. The inter-ipsec-mb lib for partial hash and AES calculation should > only be enabled when both OpensSSL 3.0

[PATCH 6/6] examples/ipsec-secgw: reduce number of QP for event lookaside

2022-08-04 Thread Volodymyr Fialko
Limit number of queue pairs to one for event lookaside mode, since all cores are using same queue in this mode. Signed-off-by: Volodymyr Fialko --- examples/ipsec-secgw/ipsec-secgw.c | 67 +- 1 file changed, 37 insertions(+), 30 deletions(-) diff --git a/examples/ips

[PATCH 5/6] examples/ipsec-secgw: add event vector support for lookaside

2022-08-04 Thread Volodymyr Fialko
Add vector support for event crypto adapter in lookaside mode. Once --event-vector enabled, event crypto adapter will group processed crypto operation into rte_event_vector event with type RTE_EVENT_TYPE_CRYPTODEV_VECTOR. Signed-off-by: Volodymyr Fialko --- doc/guides/sample_app_ug/ipsec_secgw.r

[PATCH 4/6] examples/ipsec-secgw: add stats for event mode

2022-08-04 Thread Volodymyr Fialko
Add per core statistic(rx/tx) counters for event mode worker. Signed-off-by: Volodymyr Fialko --- examples/ipsec-secgw/ipsec_worker.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/ipsec-secgw/ipsec_worker.c b/examples/ipsec-secgw/ipsec_worker.c index 2661f

[PATCH 3/6] examples/ipsec-secgw: add lookaside event mode

2022-08-04 Thread Volodymyr Fialko
Add base support for lookaside event mode. Events that are coming from ethdev will be enqueued to the event crypto adapter, processed and enqueued back to ethdev for the transmission. Signed-off-by: Volodymyr Fialko --- doc/guides/sample_app_ug/ipsec_secgw.rst | 4 +- examples/ipsec-secgw/ipse

[PATCH 2/6] examples/ipsec-secgw: add queue for event crypto adapter

2022-08-04 Thread Volodymyr Fialko
Add separate event queue for event crypto adapter processing, to resolve queue contention between new and already processed events. Signed-off-by: Volodymyr Fialko --- examples/ipsec-secgw/event_helper.c | 95 + examples/ipsec-secgw/event_helper.h | 2 + 2 files chan

[PATCH 1/6] examples/ipsec-secgw: add event crypto adapter init

2022-08-04 Thread Volodymyr Fialko
Create, configure and start an event crypto adapter. This adapter will be used in lookaside event mode processing. Signed-off-by: Volodymyr Fialko --- examples/ipsec-secgw/event_helper.c | 144 examples/ipsec-secgw/event_helper.h | 2 + examples/ipsec-secgw/ipsec-s

[PATCH 0/6] examples/ipsec-secgw: add lookaside event mode

2022-08-04 Thread Volodymyr Fialko
Add support for lookaside event mode for ipsec-secgw example application. Depends-on: Series-24201 Volodymyr Fialko (6): examples/ipsec-secgw: add event crypto adapter init examples/ipsec-secgw: add queue for event crypto adapter examples/ipsec-secgw: add lookaside event mode examples/ips

Re: [PATCH v3 0/2] vhost fixes for OVS SIGSEGV in PMD

2022-08-04 Thread Claudio Fontana
On 8/2/22 19:20, Claudio Fontana wrote: > On 8/2/22 03:40, Stephen Hemminger wrote: >> On Tue, 2 Aug 2022 02:49:36 +0200 >> Claudio Fontana wrote: >> >>> This is an alternative, more general fix compared with PATCH v1, >>> and fixes style issues in v2. >>> >>> The series fixes a segmentation faul

[PATCH 3/3] crypto/cnxk: add vectorization for event crypto

2022-08-04 Thread Volodymyr Fialko
Add support for vector aggregation of crypto operations for cn10k. Crypto operations will be grouped by sub event type, flow id, scheduler type and queue id fields from rte_event_crypto_metadata::response_info. Signed-off-by: Volodymyr Fialko --- Depends-on: Series-24099 Depends-on: Series-24066

[PATCH 2/3] crypto/cnxk: add burst enqueue for event crypto

2022-08-04 Thread Volodymyr Fialko
Added support for burst enqueue for cn10k event crypto adapter. Instruction will be grouped based on the queue pair and sent in a burst. Signed-off-by: Volodymyr Fialko --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 141 +++--- drivers/crypto/cnxk/cn10k_cryptodev_ops.h | 7 +-

[PATCH 1/3] eventdev: introduce event cryptodev vector type

2022-08-04 Thread Volodymyr Fialko
Introduce ability to aggregate crypto operations processed by event crypto adapter into single event containing rte_event_vector whose event type is RTE_EVENT_TYPE_CRYPTODEV_VECTOR. Application should set RTE_EVENT_CRYPTO_ADAPTER_EVENT_VECTOR in rte_event_crypto_adapter_queue_conf::flag and provid

[PATCH 0/3] Vector support for event crypto adapter

2022-08-04 Thread Volodymyr Fialko
Introduce ability to aggregate crypto operations processed by event crypto adapter into single event containing rte_event_vector whose event type is RTE_EVENT_TYPE_CRYPTODEV_VECTOR. Volodymyr Fialko (3): eventdev: introduce event cryptodev vector type crypto/cnxk: add burst enqueue for event c

[PATCH v5] net/i40e: fix the issue caused by PF and VF release order

2022-08-04 Thread Ke Zhang
A segmentation fault occurs when testpmd exit. This is due to fetching the device name from PF, PF is freed firstly and then VF representor is called later. This commit fixes the bug by fetching the device name from VF representor instead of PF. Fixes: e391a7b7f815 ("net/i40e: fix multi-process

[PATCH] net/ice: fix RSS hash update

2022-08-04 Thread zhichaox . zeng
From: Zhichao Zeng This patch fixes the issue that the RSS does not update correctly when the user sets it to none. Fixes: 4717a12cfaf1 ("net/ice: initialize and update RSS based on user config") Cc: sta...@dpdk.org Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_ethdev.c | 4 +--- 1 file

[Bug 1062] GCC 12 build errors with --buildtype=debug

2022-08-04 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1062 Bug ID: 1062 Summary: GCC 12 build errors with --buildtype=debug Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal

RE: [PATCH] test/ipsec: fix invalid crypto device failing

2022-08-04 Thread Ruifeng Wang
> -Original Message- > From: jspew...@iol.unh.edu > Sent: Tuesday, July 12, 2022 10:17 PM > To: dev@dpdk.org > Cc: bernard.iremon...@intel.com; juraj.lin...@pantheon.tech; > ohily...@iol.unh.edu; Jeremy Spewock ; > sta...@dpdk.org > Subject: [PATCH] test/ipsec: fix invalid crypto device fa

19.11.13 patches review and test

2022-08-04 Thread christian . ehrhardt
Hi all, This is -rc3 just after -rc2 as a build issue was hiding in the former. Sorry for the extra noise, but other than that it all stays the same. there were three patches close to the deadline that I missed and I considered postponing them to 19.11.14 at first. But in the meantime there arriv

[PATCH] net/iavf: fix Tx path

2022-08-04 Thread Ke Zhang
Fix the Tx path and Tx descriptor usage in order to make the Tx offload flags and Tx data descriptor consistent. Fixes: 1e728b01120c ("net/iavf: rework Tx path") Cc: sta...@dpdk.org Signed-off-by: Ke Zhang --- drivers/net/iavf/iavf_rxtx.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletio

RE: 21.11.2 patches review and test

2022-08-04 Thread Jiang, YuX
> -Original Message- > From: Jiang, YuX > Sent: Tuesday, August 2, 2022 6:15 PM > To: Luca Boccassi ; sta...@dpdk.org > Cc: dev@dpdk.org; Walker, Benjamin ; Raslan > Darawsheh ; Thomas Monjalon > ; yangh...@redhat.com > Subject: RE: 21.11.2 patches review and test > > > -Original Mess