[RFC PATCH 0/3] add TLS record processing security offload

2023-08-11 Thread Anoob Joseph
Add Transport Layer Security (TLS) and Datagram Transport Layer Security (DTLS). The protocols provide communications privacy for L4 protocols such as TCP & UDP. TLS (and DTLS) protocol is composed of two layers, 1. TLS Record Protocol 2. TLS Handshake Protocol While TLS Handshake Protocol helps

[RFC PATCH 2/3] security: add TLS record processing

2023-08-11 Thread Anoob Joseph
Add Transport Layer Security (TLS) and Datagram Transport Layer Security (DTLS). The protocols provide communications privacy for L4 protocols such as TCP & UDP. TLS (and DTLS) protocol is composed of two layers, 1. TLS Record Protocol 2. TLS Handshake Protocol While TLS Handshake Protocol helps

[RFC PATCH 1/3] net: add headers for TLS/DTLS packets

2023-08-11 Thread Anoob Joseph
From: Akhil Goyal Added TLS and DTLS packet headers for L4 security applications. Signed-off-by: Akhil Goyal Signed-off-by: Anoob Joseph Signed-off-by: Vidya Sagar Velumuri --- doc/api/doxy-api-index.md | 2 ++ lib/net/meson.build | 2 ++ lib/net/rte_dtls.h| 61 ++

[RFC PATCH 3/3] cryptodev: add details of datapath handling of TLS records

2023-08-11 Thread Anoob Joseph
TLS/DTLS record processing requires content type to be provided per packet (for record write operation). Extend usage of rte_crypto_op.aux_flags for the same purpose. Signed-off-by: Akhil Goyal Signed-off-by: Anoob Joseph Signed-off-by: Vidya Sagar Velumuri --- doc/guides/prog_guide/rte_securi

Re: 20.11.9 patches review and test

2023-08-11 Thread Luca Boccassi
On Fri, 11 Aug 2023 at 04:06, YangHang Liu wrote: > > Hi, Luca > > RedHat QE did not find any new issues about 20.11.9 rc dpdk during the tests. > > I tested below 18 scenarios and all got PASS on RHEL9: > > Guest with device assignment(PF) throughput testing(1G hugepage size): PASS > Guest with d

Re: [PATCH v5] build: update DPDK to use C11 standard

2023-08-11 Thread Bruce Richardson
On Thu, Aug 10, 2023 at 03:34:43PM -0700, Tyler Retzlaff wrote: > On Thu, Aug 10, 2023 at 08:17:23PM +0200, Morten Brørup wrote: > > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > > Sent: Thursday, 10 August 2023 19.03 > > > > > > On Thu, 10 Aug 2023 18:49:09 +0200 > > > Thomas

[PATCH 1/3] security: introduce out of place support for inline ingress

2023-08-11 Thread Nithin Dabilpuram
Similar to out of place(OOP) processing support that exists for Lookaside crypto/security sessions, Inline ingress security sessions may also need out of place processing in usecases where original encrypted packet needs to be retained for post processing. So for NIC's which have such a kind of HW

[PATCH 2/3] net/cnxk: support inline ingress out of place session

2023-08-11 Thread Nithin Dabilpuram
Add support for inline ingress session with out-of-place support. Signed-off-by: Nithin Dabilpuram --- drivers/event/cnxk/cn10k_worker.h | 12 +- drivers/net/cnxk/cn10k_ethdev.c | 13 +- drivers/net/cnxk/cn10k_ethdev_sec.c | 43 +++ drivers/net/cnxk/cn10k_rx.h | 181

[PATCH 3/3] test/security: add unittest for inline ingress oop

2023-08-11 Thread Nithin Dabilpuram
Add unittest for inline ingress out-of-place processing. Signed-off-by: Nithin Dabilpuram --- app/test/test_cryptodev_security_ipsec.c | 8 +++ app/test/test_cryptodev_security_ipsec.h | 1 + app/test/test_security_inline_proto.c| 85 3 files changed, 94 insertions

Re: [PATCH 1/6] eal: provide rte stdatomics optional atomics API

2023-08-11 Thread Bruce Richardson
On Thu, Aug 10, 2023 at 06:31:56PM -0700, Tyler Retzlaff wrote: > Provide API for atomic operations in the rte namespace that may > optionally be configured to use C11 atomics with meson > option enable_stdatomics=true > > Signed-off-by: Tyler Retzlaff > --- > config/meson.build |

Re: [PATCH 6/6] devtools: forbid new direct use of GCC atomic builtins

2023-08-11 Thread Bruce Richardson
On Thu, Aug 10, 2023 at 06:32:01PM -0700, Tyler Retzlaff wrote: > Refrain from using compiler __atomic_xxx builtins DPDK now requires > the use of rte_atomic__explicit macros when operating on DPDK > atomic variables. > > Signed-off-by: Tyler Retzlaff > Acked-by: Morten Brørup > --- Acked-by: Br

[PATCH 01/31] common/cnxk: add aura ref count mechanism

2023-08-11 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Each RQ can be associated with lpb_aura and spb_aura. lpb_aura or spb_aura is shared across multiple RQs then cleanup via one RQ will reset the aura context. To prevent, adding ref count mechanism. Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix_fc.c |

[PATCH 02/31] common/cnxk: optimize time while configuring fc on VF

2023-08-11 Thread Nithin Dabilpuram
From: Rakesh Kudurumalla PFC configuration function is taking 8 ms due to mailbox communication to check whether sso is connected to RQ and whether back pressure is enabled on each aura. To optimize this time we are updating aura attributes in nixlf and sso_ena parameter in RQ during write config

[PATCH 03/31] common/cnxk: use only user sqb slack when provided

2023-08-11 Thread Nithin Dabilpuram
From: Satha Rao This patch preferred user provided argument while configuring slack. If no platform argument given then by default MAX(24, 30% of SQ size) was configured as slack. Currently even if user provided SQB slack, we take max of internally calculated value and user given one Signed-off-

[PATCH 04/31] common/cnxk: add workaround for CPT ctx fetch issue

2023-08-11 Thread Nithin Dabilpuram
Add workaround for CPT context fetch issue in CN10KB by setting CTX_ILEN to that of CTX_SIZE and enabling FLR_FLUSH in CPT_LF_CTX_CTL. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_cpt.c | 23 --- drivers/common/cnxk/roc_cpt.h | 2 ++ drivers/c

[PATCH 05/31] common/cnxk: support rate limit on PFC TM tree

2023-08-11 Thread Nithin Dabilpuram
From: Satha Rao New SQ rate limit API to support SQ rate limit on PFC tree. In PFC tree each SQ had its one to one mapped TL3, this patch configures shaper rate on TL3. Also configures the TL2 with link rate. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix.h| 9 ++- drivers/c

[PATCH 06/31] common/cnxk: fixes CGX promisc toggling

2023-08-11 Thread Nithin Dabilpuram
From: Rahul Bhansali This will allow CGX promisc toggling even when exact match feature is enabled. Also, In case of exact feature, CGX promisc enable/disable mbox response returns failure code -1101 in case if no change in the state. This failure code can be ignored and proceed further. Fixes:

[PATCH 07/31] common/cnxk: fix xstats for different packet sizes

2023-08-11 Thread Nithin Dabilpuram
From: Rakesh Kudurumalla xstats for transmitted packets with different sizes are not updated as sizeof mbox response structure are different in dpdk and kernel.This patch fixes the same. Fixes: 503b82de2cbf ("common/cnxk: add mbox request and response definitions") Signed-off-by: Rakesh Kudurum

[PATCH 08/31] common/cnxk: disable BP on SDP link while closing SQ

2023-08-11 Thread Nithin Dabilpuram
From: Satha Rao Host SDP port closes the SDP link on NIX causes crash when BP enabled on SDP link. This patch disables BP on SDP link when SQ flush fails due to link disabled at host. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix_tm.c | 73 ++-- 1 file ch

[PATCH 09/31] common/cnxk: fix leak in error path

2023-08-11 Thread Nithin Dabilpuram
From: Akhil Goyal Fixed resource leak when pthread create fails in dev_init(). Fixes: 1c7a4d37e73d ("common/cnxk: fix mailbox timeout due to deadlock") Signed-off-by: Akhil Goyal --- drivers/common/cnxk/roc_dev.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH 10/31] common/cnxk: fix different size bit operations

2023-08-11 Thread Nithin Dabilpuram
From: Akhil Goyal WORD_SIZE is made as unsigned long long so that bit operations are done on same size of variables. Fixes: 1ec23c7523b4 ("common/cnxk: support anti-replay check in SW for cn9k") Signed-off-by: Akhil Goyal --- drivers/common/cnxk/cnxk_security_ar.h | 2 +- 1 file changed, 1 in

[PATCH 11/31] common/cnxk: fix different size bit operations

2023-08-11 Thread Nithin Dabilpuram
From: Akhil Goyal Bitwise or is being done on relchan which is 32 bit, but the result is 64 bit, hence typecast to uint64_t. Fixes: 8f867a87b9c5 ("common/cnxk: enable SDP channel backpressure to TL4") Fixes: 0885429c3028 ("common/cnxk: add NIX TM hierarchy enable/disable") Signed-off-by: Akhil

[PATCH 12/31] common/cnxk: remove unnecessory ROC API calls

2023-08-11 Thread Nithin Dabilpuram
From: Akhil Goyal Removed the calls to roc_nix_num_rx[tx]_xstats which does a model check again for cn9k/cn10k. The model check is already done before the call in the same leg, hence not needed to call these APIs. Signed-off-by: Akhil Goyal --- drivers/common/cnxk/roc_nix_stats.c | 16

[PATCH 13/31] common/cnxk: sync MAC addr set mailbox structure

2023-08-11 Thread Nithin Dabilpuram
From: Srujana Challa Sync MAC address set mailbox format with kernel. And send match table index to the kernel to add the mac address. This fixes the issues on cn10kb, where traffic was not received when promisc is disabled and two ports are used. Signed-off-by: Srujana Challa --- drivers/comm

[PATCH 14/31] common/cnxk: add API to get Rx chan count from NIX

2023-08-11 Thread Nithin Dabilpuram
From: Rahul Bhansali For SDP, provide an API to get Rx chan count from NIX as all channels are always active. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/roc_nix.c | 8 drivers/common/cnxk/roc_nix.h | 1 + drivers/common/cnxk/version.map | 1 + 3 files changed, 10 insert

[PATCH 15/31] common/cnxk: fix BP threshold calculation

2023-08-11 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Current macro to calculate BP threshold were evaluating incorrect threshold because aura_limit is first shifted by shift then percentage is calculated. While first percentage should be calculated and the resultant should be shifted by shift. So formula is updated accordin

[PATCH 16/31] common/cnxk: allow same TC on multiple RQs

2023-08-11 Thread Nithin Dabilpuram
From: Sunil Kumar Kori To achieve actual PFC behavior, user needs to configure different TC on different aura so that PFC can be generated for specific TC but same TC can also configured on multiple RQs which has same configured aura. In this patch, aura with same BP configuration is allowed on

[PATCH 18/31] common/cnxk: enable CQ stashing

2023-08-11 Thread Nithin Dabilpuram
From: Kommula Shiva Shankar This patch enables CQ stashing for better CQE processing performance Signed-off-by: Kommula Shiva Shankar --- drivers/common/cnxk/roc_features.h | 6 ++ drivers/common/cnxk/roc_nix.h | 1 + drivers/common/cnxk/roc_nix_queue.c | 7 +++ 3 files changed,

[PATCH 17/31] common/cnxk: expose different params for bp config

2023-08-11 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Currently same bp percentage is applied on SPB and LPB pool but both pools can be configured with different bp level. Added one more parameter so that separate threshold parameters can be passed for SPB and LPB pools. Signed-off-by: Sunil Kumar Kori --- drivers/common/c

[PATCH 19/31] common/cnxk: fix incorrect aura ID

2023-08-11 Thread Nithin Dabilpuram
From: Pavan Nikhilesh The function `sso_hwgrp_alloc_xaq` expects aura ID, fix incorrectly passing aura handle to it. Fixes: 7e9a94909eea ("common/cnxk: realloc inline device XAQ AURA") Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/roc_nix_inl_dev.c | 3 ++- 1 file changed, 2 insertio

[PATCH 20/31] net/cnxk: fix CQ allocation

2023-08-11 Thread Nithin Dabilpuram
From: Satha Rao Allocate number of CQs sufficient to handle completions of both RQs and SQs. Fixes: dd9446991212 ("net/cnxk: add transmit completion handler") Cc: rkuduruma...@marvell.com Signed-off-by: Satha Rao --- drivers/net/cnxk/cnxk_ethdev.c | 26 +++--- 1 file chang

[PATCH 21/31] net/cnxk: fix issue with GCC 4.8

2023-08-11 Thread Nithin Dabilpuram
Fix issue with GCC 4.8 cross compilation of ARM64 for flexible vector conversions. Fixes: ec28231ed260 ("net/cnxk: support reassembly of multi-segment packets") Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_rx.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --g

[PATCH 22/31] net/cnxk: add mapping of DMAC address indexes

2023-08-11 Thread Nithin Dabilpuram
From: Sunil Kumar Kori Add support to map DMAC address indexes during mac address add and remove operation. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.c | 11 +++ drivers/net/cnxk/cnxk_ethdev.h | 1 + drivers/net/cnxk/cnxk_ethdev_ops.c | 4 +++- 3 files

[PATCH 26/31] net/cnxk: fix uninitialized variable

2023-08-11 Thread Nithin Dabilpuram
From: Akhil Goyal sa_base may be uninitialized in some remote case. It is better to initialize it. Fixes: 4382a7ccf781 ("net/cnxk: support Rx security offload on cn10k") Signed-off-by: Akhil Goyal --- drivers/net/cnxk/cn10k_rx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 23/31] net/cnxk: support rate limit in PFC TM tree

2023-08-11 Thread Nithin Dabilpuram
From: Satha Rao SQ rate limit was different in PFC tree compared to regular rate limit tree. Signed-off-by: Satha Rao --- drivers/net/cnxk/cnxk_tm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/cnxk/cnxk_tm.c b/drivers/net/cnxk/cnxk_tm.c index 9d8cd3f0a9..c799193cb8 10064

[PATCH 27/31] net/cnxk: fix usage of mbuf rearm data

2023-08-11 Thread Nithin Dabilpuram
From: Akhil Goyal mbuf->rearm_data is a zero length array and it is being used to set data from that location. This shows an error in static code analysis. Hence it is typecast to a pointer which can be used to set values accordingly. Fixes: c062f5726f61 ("net/cnxk: support IP reassembly") Sign

[PATCH 24/31] net/cnxk: move MAC address set from init to configure

2023-08-11 Thread Nithin Dabilpuram
From: Srujana Challa Channel(rx_chan_base) is not available in the kernel at the time of nix probe. Hence, move the mac address set call from nix_device_init() to nix_device_configure(). This fixes the issue on cn10kb, where traffic was not getting received when promisc is disabled. Signed-off-b

[PATCH 25/31] net/cnxk: update different size bit operations

2023-08-11 Thread Nithin Dabilpuram
From: Akhil Goyal Certain bitwise operations are done with different sized operands which causes warnings in static code analysis. The necessary operands are typecast to remove the warning. Signed-off-by: Akhil Goyal --- drivers/net/cnxk/cn10k_ethdev.c | 2 +- drivers/net/cnxk/cn10k_rx.h

[PATCH 28/31] net/cnxk: fix uninitialized variable

2023-08-11 Thread Nithin Dabilpuram
From: Akhil Goyal shift may be uninitialized in certain case. It is better to initialize. Fixes: 55bfac717c72 ("net/cnxk: support Tx security offload on cn10k") Signed-off-by: Akhil Goyal --- drivers/net/cnxk/cn10k_tx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

[PATCH 29/31] net/cnxk: check returned value for null

2023-08-11 Thread Nithin Dabilpuram
From: Akhil Goyal nix_mtr_find may return NULL in case mtr is not found. Hence checking the return value before using it. Signed-off-by: Akhil Goyal --- drivers/net/cnxk/cnxk_ethdev_mtr.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/net/cnxk/cnxk_ethdev_mtr

[PATCH 30/31] net/cnxk: add flag check for extension header when used

2023-08-11 Thread Nithin Dabilpuram
From: Akhil Goyal send_hdr_ext is being used, but it may be null when the flag check for NIX_TX_NEED_EXT_HDR is not done. Hence added a check here to avoid null pointer dereference. Signed-off-by: Akhil Goyal --- drivers/net/cnxk/cn10k_tx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(

[PATCH 31/31] net/cnxk: fixes for IPv6 header in reassembly

2023-08-11 Thread Nithin Dabilpuram
From: Rahul Bhansali In reassembly path, next header field in IPv6 header is not updated correctly, hence reassembled packet is corrupted. This fix will consider IPv6 fragment header presence at start/mid/end in extension list and update the next header field accordingly. Fixes: ec28231ed260 ("n

[PATCH 0/4] net/cpfl: add basic support for rte_flow

2023-08-11 Thread Wenjing Qiao
This patchset adds basic support for rte_flow. --- Depends-on: series-29139 ("net/cpfl: support port representor") Wenjing Qiao (4): net/cpfl: parse flow parser file in devargs net/cpfl: add flow json parser net/cpfl: introduce CPF common library net/cpfl: setup ctrl path drivers/net/cpf

[PATCH 1/4] net/cpfl: parse flow parser file in devargs

2023-08-11 Thread Wenjing Qiao
Add devargs "flow_parser" for rte_flow json parser. Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_ethdev.c | 30 +- drivers/net/cpfl/cpfl_ethdev.h | 3 +++ drivers/net/cpfl/meson.build | 6 ++ 3 files changed, 38 insertions(+), 1 deletion(-) diff --gi

[PATCH 2/4] net/cpfl: add flow json parser

2023-08-11 Thread Wenjing Qiao
A JSON file will be used to direct DPDK CPF PMD to parse rte_flow tokens into low level hardware resources defined in a DDP package file. Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_flow_parser.c | 1758 +++ drivers/net/cpfl/cpfl_flow_parser.h | 205 drive

[PATCH 3/4] net/cpfl: introduce CPF common library

2023-08-11 Thread Wenjing Qiao
Add common library support for CPFL rte_flow to create/delete rules. Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_actions.h | 858 +++ drivers/net/cpfl/cpfl_controlq.c | 380 ++ drivers/net/cpfl/cpfl_controlq.h | 51 ++ drivers/net/cpfl/cpfl_rul

[PATCH 4/4] net/cpfl: setup ctrl path

2023-08-11 Thread Wenjing Qiao
Setup the control vport and control queue for flow offloading. Signed-off-by: Yuying Zhang Signed-off-by: Beilei Xing Signed-off-by: Qi Zhang Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_ethdev.c | 270 - drivers/net/cpfl/cpfl_ethdev.h | 14 ++ driver

RE: [PATCH 1/6] eal: provide rte stdatomics optional atomics API

2023-08-11 Thread Morten Brørup
> From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > Sent: Friday, 11 August 2023 03.32 > > Provide API for atomic operations in the rte namespace that may > optionally be configured to use C11 atomics with meson > option enable_stdatomics=true > > Signed-off-by: Tyler Retzlaff > --- >

[PATCH] app/test: add external mbuf IPsec tests

2023-08-11 Thread Tejasree Kondoj
Adding IPsec tests using external mbuf API. Signed-off-by: Tejasree Kondoj --- app/test/test_cryptodev.c| 191 ++- app/test/test_cryptodev_security_ipsec.h | 1 + 2 files changed, 189 insertions(+), 3 deletions(-) diff --git a/app/test/test_cryptodev.c b/ap

RE: [PATCH 6/6] devtools: forbid new direct use of GCC atomic builtins

2023-08-11 Thread Morten Brørup
> From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > Sent: Friday, 11 August 2023 03.32 > > Refrain from using compiler __atomic_xxx builtins DPDK now requires > the use of rte_atomic__explicit macros when operating on DPDK > atomic variables. > > Signed-off-by: Tyler Retzlaff > Acked-

[PATCH v2 0/4] net/cpfl: add basic support for rte_flow

2023-08-11 Thread Wenjing Qiao
This patchset adds basic support for rte_flow. --- Depends-on: series-29139 ("net/cpfl: support port representor") Wenjing Qiao (4): net/cpfl: parse flow parser file in devargs net/cpfl: add flow json parser net/cpfl: introduce CPF common library net/cpfl: setup ctrl path drivers/net/cpf

[PATCH v2 1/4] net/cpfl: parse flow parser file in devargs

2023-08-11 Thread Wenjing Qiao
Add devargs "flow_parser" for rte_flow json parser. Signed-off-by: Wenjing Qiao --- Depends-on: series-29139 ("net/cpfl: support port representor") --- drivers/net/cpfl/cpfl_ethdev.c | 30 +- drivers/net/cpfl/cpfl_ethdev.h | 3 +++ drivers/net/cpfl/meson.build | 6

[PATCH v2 2/4] net/cpfl: add flow json parser

2023-08-11 Thread Wenjing Qiao
A JSON file will be used to direct DPDK CPF PMD to parse rte_flow tokens into low level hardware resources defined in a DDP package file. Signed-off-by: Wenjing Qiao --- Depends-on: series-29139 ("net/cpfl: support port representor") --- drivers/net/cpfl/cpfl_flow_parser.c | 1758 +++

[PATCH v2 3/4] net/cpfl: introduce CPF common library

2023-08-11 Thread Wenjing Qiao
Add common library support for CPFL rte_flow to create/delete rules. Signed-off-by: Wenjing Qiao --- Depends-on: series-29139 ("net/cpfl: support port representor") --- drivers/net/cpfl/cpfl_actions.h | 858 +++ drivers/net/cpfl/cpfl_controlq.c | 379 ++

[PATCH v2 4/4] net/cpfl: setup ctrl path

2023-08-11 Thread Wenjing Qiao
Setup the control vport and control queue for flow offloading. Signed-off-by: Yuying Zhang Signed-off-by: Beilei Xing Signed-off-by: Qi Zhang Signed-off-by: Wenjing Qiao --- Depends-on: series-29139 ("net/cpfl: support port representor") --- drivers/net/cpfl/cpfl_ethdev.c | 270 ++

RE: [PATCH v5] build: update DPDK to use C11 standard

2023-08-11 Thread Morten Brørup
> From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Sent: Friday, 11 August 2023 10.53 > > On Thu, Aug 10, 2023 at 03:34:43PM -0700, Tyler Retzlaff wrote: > > On Thu, Aug 10, 2023 at 08:17:23PM +0200, Morten Brørup wrote: > > > > From: Stephen Hemminger [mailto:step...@networkplumber.or

[PATCH v2 0/2] crypto/scheduler: add support for security protocols

2023-08-11 Thread David Coyle
This patchset adds support to the cryptodev scheduler PMD and unit tests for the existing security protocols in the security library, namely IPSec, MACSec, PDCP and DOCSIS. v2: * Improve inclusion of rte_security header files * Fix typo in commit message David Coyle (2): crypto/scheduler: suppo

[PATCH v2 1/2] crypto/scheduler: support security protocols

2023-08-11 Thread David Coyle
Add support to the cryptodev scheduler PMD for the existing security protocols in the security library, namely IPSec, MACSec, PDCP and DOCSIS. This includes adding the following: - synchronization of worker's security capabilities - retrieval of the scheduler's synchronized security capabilities -

[PATCH v2 2/2] test/crypto: add security tests for cryptodev scheduler

2023-08-11 Thread David Coyle
Add IPSec, PDCP and DOCSIS security test cases to the cryptodev scheduler test suite. Signed-off-by: David Coyle Signed-off-by: Kevin O'Sullivan --- app/test/test_cryptodev.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/test/test_cryptodev.c b/app/test/

[PATCH v1 1/2] power: refactor uncore power management interfaces

2023-08-11 Thread Sivaprasad Tummala
currently the uncore power management implementation is vendor specific. Added new vendor agnostic uncore power interface similar to rte_power and rename specific implementations ("rte_power_intel_uncore") to "power_intel_uncore" along with functions. Signed-off-by: Sivaprasad Tummala --- lib/po

[PATCH v1 2/2] power: refactor uncore power management implementation

2023-08-11 Thread Sivaprasad Tummala
currently the uncore power management implementation is vendor specific. Added new vendor agnostic uncore power management implementation similar to rte_power and rename specific implementations ("rte_power_intel_uncore") to "power_intel_uncore" along with functions. Signed-off-by: Sivaprasad Tumm

RE: [EXT] [PATCH v2 0/2] crypto/scheduler: add support for security protocols

2023-08-11 Thread Anoob Joseph
Hi David, While it is desirable to add security under crypto/scheduler, would it be functionally possible if the PMDs perform stateful processing? For example, with lookaside protocol mode of IPsec, fields such as seq no & AR defines how the crypto operation can be performed. Without two PMDs s

[RFC PATCH 1/2] security: add fallback security processing and Rx inject

2023-08-11 Thread Anoob Joseph
Add alternate datapath API for security processing which would do Rx injection (similar to loopback) after successful security processing. With inline protocol offload, variable part of the session context (AR windows, lifetime etc in case of IPsec), is not accessible to the application. If packet

[RFC PATCH 2/2] test/cryptodev: add Rx inject test

2023-08-11 Thread Anoob Joseph
From: Vidya Sagar Velumuri Add test to verify Rx inject. Signed-off-by: Anoob Joseph Signed-off-by: Vidya Sagar Velumuri --- app/test/test_cryptodev.c| 326 +++ app/test/test_cryptodev_security_ipsec.h | 1 + 2 files changed, 274 insertions(+), 53 deletio

[RFC v2] net/sfc: support packet replay in transfer flows

2023-08-11 Thread Ivan Malov
Packet replay enables users to leverage multiple counters in one flow and allows to request delivery to multiple ports. A given flow rule may use either one inline count action and multiple indirect counters or just multiple indirect counters. The inline count action (if any) must come before the

Re: [RFC] ethdev: introduce maximum Rx buffer size

2023-08-11 Thread Andrew Rybchenko
On 8/8/23 07:02, Huisong Li wrote: The Rx buffer size stands for the size hardware supported to receive packets in one mbuf. The "min_rx_bufsize" is the minimum buffer hardware supported in Rx. Actually, some engines also have the maximum buffer specification, like, hns3. For these engines, the a

[PATCH] common/qat: enable gen4 c devices

2023-08-11 Thread Ciara Power
This commit enables QAT 2.0c devices in the Intel QuickAssist Technology PMD. Signed-off-by: Ciara Power --- doc/guides/cryptodevs/qat.rst | 4 doc/guides/rel_notes/release_23_11.rst | 3 +++ drivers/common/qat/qat_device.c| 4 3 files changed, 11 insertions(+) diff -

Re: [PATCH v8 0/3] Split logging functionality out of EAL

2023-08-11 Thread David Marchand
On Wed, Aug 9, 2023 at 3:36 PM Bruce Richardson wrote: > > There is a general desire to reduce the size and scope of EAL. To this > end, this patchset makes a (very) small step in that direction by taking > the logging functionality out of EAL and putting it into its own library > that can be buil

Re: [PATCH v8 0/3] Split logging functionality out of EAL

2023-08-11 Thread Bruce Richardson
On Fri, Aug 11, 2023 at 02:46:13PM +0200, David Marchand wrote: > On Wed, Aug 9, 2023 at 3:36 PM Bruce Richardson > wrote: > > > > There is a general desire to reduce the size and scope of EAL. To this > > end, this patchset makes a (very) small step in that direction by taking > > the logging fun

[PATCH] build: move AVX512 check to x86 config

2023-08-11 Thread David Marchand
The AVX512 check only matters to x86 compilation with gcc. Move it where appropriate. Signed-off-by: David Marchand --- buildtools/meson.build | 3 --- {buildtools => config/x86}/binutils-avx512-check.py | 0 config/x86/meson.build | 3 ++

[PATCH] build: move enabled applications list declaration

2023-08-11 Thread David Marchand
No functional impact foreseen. Simply move this variable and rename it for consistency with other similar variables. Signed-off-by: David Marchand --- app/meson.build | 4 +--- meson.build | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/meson.build b/app/meson.bui

Re: [PATCH v3 1/4] build: unblock the use of the MSVC compiler

2023-08-11 Thread David Marchand
On Tue, Apr 25, 2023 at 10:08 PM Tyler Retzlaff wrote: > > Detect when MSVC toolset is available and tweak toolchain arguments > where the meson build system offers no abstraction. > > Signed-off-by: Tyler Retzlaff > Acked-by: Bruce Richardson > --- > buildtools/meson.build | 10 +++--- > c

Re: [PATCH v3 3/4] build: limit what is built when using MSVC compiler

2023-08-11 Thread David Marchand
On Tue, Apr 25, 2023 at 10:08 PM Tyler Retzlaff wrote: > > Build only kvargs and telemetry when is_ms_compiler. > > Signed-off-by: Tyler Retzlaff > Acked-by: Bruce Richardson > --- > app/meson.build | 5 + > drivers/meson.build | 4 > lib/meson.build | 7 +++ > userto

[PATCH] doc: add note about VMXNET3 on AMD with ESXI

2023-08-11 Thread Igor de Paula
--- .mailmap| 1 + doc/guides/nics/vmxnet3.rst | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.mailmap b/.mailmap index 864d33ee46..d408f11a97 100644 --- a/.mailmap +++ b/.mailmap @@ -1638,3 +1638,4 @@ Ziye Yang Zoltan Kiss Zorik Machulsky Zyta Szpak +Igor de

Re: [PATCH] build: move AVX512 check to x86 config

2023-08-11 Thread Bruce Richardson
On Fri, Aug 11, 2023 at 03:10:24PM +0200, David Marchand wrote: > The AVX512 check only matters to x86 compilation with gcc. > Move it where appropriate. > > Signed-off-by: David Marchand > --- Acked-by: Bruce Richardson

Re: [PATCH] build: move enabled applications list declaration

2023-08-11 Thread Bruce Richardson
On Fri, Aug 11, 2023 at 03:28:05PM +0200, David Marchand wrote: > No functional impact foreseen. Simply move this variable and rename it > for consistency with other similar variables. > > Signed-off-by: David Marchand > --- Acked-by: Bruce Richardson

Re: [PATCH] common/qat: enable gen4 c devices

2023-08-11 Thread David Marchand
Hello Ciara, On Fri, Aug 11, 2023 at 2:38 PM Ciara Power wrote: > > This commit enables QAT 2.0c devices in the > Intel QuickAssist Technology PMD. It is hard to make a link between the commit title "gen 4 c devices", the table below "402xxx" and the release notes "QAT 2.0c". Can you use a singl

[RFC PATCH] ethdev: introduce NAT64 action

2023-08-11 Thread Bing Zhao
In order to support the communication between IPv4 and IPv6 nodes in the network, different technologies are used, like dual-stacks, tunneling and NAT64. In some IPv4-only clients, it is hard to deploy new software and hardware to support IPv6. NAT64 is a choice and it will also reduce the unneces

[PATCH] devtools: list symbols by version

2023-08-11 Thread David Marchand
Make it easier to list experimental symbols added in a certain version. While at it, add a check on map symbol files content to avoid breaking this listing tool. Example: $ ./buildtools/map-list-symbol.sh -V 18.11 lib/eal/version.map lib/eal/version.map EXPERIMENTAL rte_dev_event_callback_process

Re: [PATCH 1/6] eal: provide rte stdatomics optional atomics API

2023-08-11 Thread Tyler Retzlaff
On Fri, Aug 11, 2023 at 11:42:12AM +0200, Morten Brørup wrote: > > From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > > Sent: Friday, 11 August 2023 03.32 > > > > Provide API for atomic operations in the rte namespace that may > > optionally be configured to use C11 atomics with meson >

Re: [PATCH 6/6] devtools: forbid new direct use of GCC atomic builtins

2023-08-11 Thread Tyler Retzlaff
On Fri, Aug 11, 2023 at 11:51:17AM +0200, Morten Brørup wrote: > > From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > > Sent: Friday, 11 August 2023 03.32 > > > > Refrain from using compiler __atomic_xxx builtins DPDK now requires > > the use of rte_atomic__explicit macros when operating

Re: [PATCH] build: move AVX512 check to x86 config

2023-08-11 Thread Tyler Retzlaff
On Fri, Aug 11, 2023 at 03:10:24PM +0200, David Marchand wrote: > The AVX512 check only matters to x86 compilation with gcc. > Move it where appropriate. > > Signed-off-by: David Marchand > --- Acked-by Tyler Retzlaff

Re: [PATCH] build: move enabled applications list declaration

2023-08-11 Thread Tyler Retzlaff
On Fri, Aug 11, 2023 at 03:28:05PM +0200, David Marchand wrote: > No functional impact foreseen. Simply move this variable and rename it > for consistency with other similar variables. > > Signed-off-by: David Marchand > --- Acked-by: Tyler Retzlaff

[PATCH v1 0/3] Add support for inter-domain DMA operations

2023-08-11 Thread Anatoly Burakov
This patchset adds inter-domain DMA operations, and implements driver support for them in Intel(R) IDXD driver. Inter-domain DMA operations are similar to regular DMA operations, except that source and/or destination addresses will be in virtual address space of another process. In this patchset,

[PATCH v1 1/3] dmadev: add inter-domain operations

2023-08-11 Thread Anatoly Burakov
Add a flag to indicate that a specific device supports inter-domain operations, and add an API for inter-domain copy and fill. Inter-domain operation is an operation that is very similar to regular DMA operation, except either source or destination addresses can be in a different process's address

[PATCH v1 2/3] dma/idxd: implement inter-domain operations

2023-08-11 Thread Anatoly Burakov
Implement inter-domain copy and fill operations defined in the newly added DMA device API. Signed-off-by: Vladimir Medvedkin Signed-off-by: Anatoly Burakov --- doc/guides/prog_guide/dmadev.rst | 4 + drivers/dma/idxd/idxd_bus.c | 35 + drivers/dma/idxd/idxd_common.c | 123

[PATCH v1 3/3] dma/idxd: add API to create and attach to window

2023-08-11 Thread Anatoly Burakov
This commit implements functions necessary to use inter-domain operations with idxd driver. The process is as follows: 1. Process A that wishes to share its memory with others, shall call `rte_idxd_window_create()`, which will return a file descriptor 2. Process A is to send above mentioned fi

[PATCH 0/9] net/cnxk: support for port representors

2023-08-11 Thread Harman Kalra
Introducing CNXK driver support for port representor model by adding virtual ethernet ports providing a logical representation in DPDK for SR-IOV virtual function (VF) devices for control and monitoring. These port representor ethdev instances can be spawned on an as needed basis through configura

[PATCH 1/9] common/cnxk: debug log type for representors

2023-08-11 Thread Harman Kalra
Registering exclusive debug log type for representors Signed-off-by: Harman Kalra --- drivers/common/cnxk/roc_platform.c | 1 + drivers/common/cnxk/roc_platform.h | 2 ++ drivers/common/cnxk/version.map| 1 + 3 files changed, 4 insertions(+) diff --git a/drivers/common/cnxk/roc_platform.c

[PATCH 4/9] net/cnxk: callbacks for representor state

2023-08-11 Thread Harman Kalra
Implementing the callbacks for processing representor state. Three operations currently supported: - set a representor to be active if its VF is enabled and set it appropriate pf func value. - check if the VF which sent a mbox has a representor - clear representor state if its VF goes down. Signed

[PATCH 2/9] net/cnxk: probing representor ports

2023-08-11 Thread Harman Kalra
Basic skeleton for probing representor devices. If PF device is passed with "representor" devargs, representor ports gets probed as a separate ethdev device. Signed-off-by: Harman Kalra --- doc/guides/nics/cnxk.rst| 39 + drivers/net/cnxk/cn10k_ethdev.c | 4 +- drivers/net/cnxk/cn

[PATCH 3/9] common/cnxk: maintaining representor state

2023-08-11 Thread Harman Kalra
Maintaining the state of representor which describes whether it has an active VF and what is the func id of the representee. Implement a mbox between VF and PF for the VF to know if representors are available. Signed-off-by: Harman Kalra --- drivers/common/cnxk/roc_dev.c | 167

[PATCH 5/9] net/cnxk: add representor control plane

2023-08-11 Thread Harman Kalra
Implementing the control path for representor ports, where represented ports can be configured using TLV messaging. Signed-off-by: Harman Kalra --- drivers/net/cnxk/cnxk_ethdev.c | 8 + drivers/net/cnxk/cnxk_ethdev.h | 3 + drivers/net/cnxk/cnxk_rep.c | 13 +- drivers/net/cnxk/cnxk_re

[PATCH 7/9] net/cnxk: representor flow ops

2023-08-11 Thread Harman Kalra
Implementing flow operation callbacks for port representors PMD Signed-off-by: Harman Kalra --- drivers/net/cnxk/cnxk_flow.h | 9 +- drivers/net/cnxk/cnxk_rep.h | 3 + drivers/net/cnxk/cnxk_rep_flow.c | 715 +++ drivers/net/cnxk/cnxk_rep_msg.h | 58 +++

[PATCH 6/9] net/cnxk: representor ethdev ops

2023-08-11 Thread Harman Kalra
Implementing ethernet device operation callbacks for port representors PMD Signed-off-by: Harman Kalra --- drivers/net/cnxk/cnxk_rep.c | 62 +-- drivers/net/cnxk/cnxk_rep.h | 36 ++ drivers/net/cnxk/cnxk_rep_msg.h | 15 + drivers/net/cnxk/cnxk_rep_ops.c | 655 +

[PATCH 8/9] common/cnxk: support represented port for cnxk

2023-08-11 Thread Harman Kalra
Adding represented port item an action support for cnxk device. Flow operations can be performed via representor ports as well as represented ports. Signed-off-by: Kiran Kumar K Signed-off-by: Harman Kalra --- drivers/common/cnxk/roc_npc.c | 54 -- drivers/common/cnxk/

[PATCH 9/9] net/cnxk: add represented port for cnxk

2023-08-11 Thread Harman Kalra
Adding represented port item matching and action support for cnxk device. Signed-off-by: Kiran Kumar K Signed-off-by: Harman Kalra --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 2 + doc/guides/nics/features/cnxk_vf.ini | 2 + drivers/net/cnxk/cn

Re: [PATCH] devtools: list symbols by version

2023-08-11 Thread Stephen Hemminger
On Fri, 11 Aug 2023 17:49:44 +0200 David Marchand wrote: > Make it easier to list experimental symbols added in a certain version. > While at it, add a check on map symbol files content to avoid breaking > this listing tool. > > Example: > $ ./buildtools/map-list-symbol.sh -V 18.11 lib/eal/versi

[PATCH v2 0/6] RFC optional rte optional stdatomics API

2023-08-11 Thread Tyler Retzlaff
This series introduces API additions prefixed in the rte namespace that allow the optional use of stdatomics.h from C11 using enable_stdatomics=true for targets where enable_stdatomics=false no functional change is intended. Be aware this does not contain all changes to use stdatomics across the D

[PATCH v2 1/6] eal: provide rte stdatomics optional atomics API

2023-08-11 Thread Tyler Retzlaff
Provide API for atomic operations in the rte namespace that may optionally be configured to use C11 atomics with meson option enable_stdatomics=true Signed-off-by: Tyler Retzlaff --- config/meson.build | 1 + lib/eal/include/generic/rte_atomic.h | 1 + lib/eal/include/g

  1   2   >