[PATCH 11/15] common/cnxk: derive hash key for MACsec

2023-05-23 Thread Akhil Goyal
MACsec hardware configuration need hash key to be generated from the cipher key of AES-GCM-128/256. Added an ROC API to derive the hash key and extend the case for AES-256 as well. Signed-off-by: Akhil Goyal --- drivers/common/cnxk/roc_aes.c | 86 ++--- drivers/comm

[PATCH 12/15] net/cnxk: add MACsec initialization

2023-05-23 Thread Akhil Goyal
Added initialization routines for MACsec for cn10kb platform. Signed-off-by: Akhil Goyal --- drivers/net/cnxk/cn10k_ethdev_sec.c | 6 ++ drivers/net/cnxk/cnxk_ethdev.c | 13 +++ drivers/net/cnxk/cnxk_ethdev.h | 14 +++ drivers/net/cnxk/cnxk_ethdev_mcs.c | 151 +

[PATCH 13/15] net/cnxk: create/destroy MACsec SC/SA

2023-05-23 Thread Akhil Goyal
Added support to create/destroy MACsec SA and SC. Signed-off-by: Akhil Goyal --- drivers/net/cnxk/cn10k_ethdev_sec.c | 9 +- drivers/net/cnxk/cnxk_ethdev_mcs.c | 250 drivers/net/cnxk/cnxk_ethdev_mcs.h | 16 ++ 3 files changed, 271 insertions(+), 4 deletions(-)

[PATCH 14/15] net/cnxk: add MACsec session and flow configuration

2023-05-23 Thread Akhil Goyal
Added support for MACsec session/flow create/destroy. Signed-off-by: Akhil Goyal --- drivers/net/cnxk/cn10k_ethdev_sec.c | 11 +- drivers/net/cnxk/cn10k_flow.c | 22 ++- drivers/net/cnxk/cnxk_ethdev.c | 2 + drivers/net/cnxk/cnxk_ethdev.h | 16 ++ drivers/net/cnxk/cnxk_ethde

[PATCH 15/15] net/cnxk: add MACsec stats

2023-05-23 Thread Akhil Goyal
Added support for MACsec SC/flow/session stats. Signed-off-by: Akhil Goyal --- drivers/net/cnxk/cn10k_ethdev_sec.c | 11 +++-- drivers/net/cnxk/cnxk_ethdev_mcs.c | 64 + drivers/net/cnxk/cnxk_ethdev_mcs.h | 9 3 files changed, 81 insertions(+), 3 deletions(-)

Re: [PATCH 02/13] security: add MACsec packet number threshold

2023-05-23 Thread Stephen Hemminger
On Wed, 24 May 2023 01:19:07 +0530 Akhil Goyal wrote: > diff --git a/lib/security/rte_security.h b/lib/security/rte_security.h > index c7a523b6d6..30bac4e25a 100644 > --- a/lib/security/rte_security.h > +++ b/lib/security/rte_security.h > @@ -399,6 +399,8 @@ struct rte_security_macsec_sa { > str

[PATCH v5 0/5] ethdev: modify field API for multiple headers

2023-05-23 Thread Michael Baum
This patch-set extend the modify field action API to support both multiple MPLS and GENEVE option headers. In current API, the header type is provided by rte_flow_field_id enumeration and the encapsulation level (inner/outer/tunnel) is specified by data.level field. However, there is no way to spe

[PATCH v5 1/5] doc: fix blank lines in modify field action description

2023-05-23 Thread Michael Baum
The modify field action description inside "Generic flow API (rte_flow)" documentation, lists all operations supported for a destination field. In addition, it lists the values supported for a encapsulation level field. Before the lists, in both cases, miss a blank line causing them to look regula

[PATCH v5 2/5] doc: fix blank line in asynchronous operations description

2023-05-23 Thread Michael Baum
The asynchronous operations description inside "Generic flow API (rte_flow)" documentation, adds some bullets to describe asynchronous operations behavior. Before the first bullet, miss a blank line causing it to look a regular text line. This patch adds the blank line. Fixes: 197e820c6685 ("eth

[PATCH v5 3/5] doc: fix wrong indentation in RSS action description

2023-05-23 Thread Michael Baum
The RSS action description inside "Generic flow API (rte_flow)" documentation, lists the values supported for a encapsulation level field. For "2" value, it uses 3 spaces as an indentation instead of 2 after line breaking, causing the first line to be bold. This patch updates the number of spaces

[PATCH v5 4/5] ethdev: add GENEVE TLV option modification support

2023-05-23 Thread Michael Baum
Add modify field support for GENEVE option fields: - "RTE_FLOW_FIELD_GENEVE_OPT_TYPE" - "RTE_FLOW_FIELD_GENEVE_OPT_CLASS" - "RTE_FLOW_FIELD_GENEVE_OPT_DATA" Each GENEVE TLV option is identified by both its "class" and "type", so 2 new fields were added to "rte_flow_action_modify_data" structure

[PATCH v5 5/5] ethdev: add MPLS header modification support

2023-05-23 Thread Michael Baum
Add support for MPLS modify header using "RTE_FLOW_FIELD_MPLS" id. Since MPLS heaser might appear more the one time in inner/outer/tunnel, a new field was added to "rte_flow_action_modify_data" structure in addition to "level" field. The "tag_index" field is the index of the header inside encapsul

RE: [PATCH v2 2/3] ip_frag: improve reassembly lookup performance

2023-05-23 Thread Pavan Nikhilesh Bhagavatula
> -Original Message- > From: Pavan Nikhilesh Bhagavatula > Sent: Tuesday, May 23, 2023 11:29 PM > To: Honnappa Nagarahalli ; Jerin Jacob > Kollanukkaran ; nd ; Konstantin > Ananyev > Cc: dev@dpdk.org; nd ; nd > Subject: RE: [PATCH v2 2/3] ip_frag: improve reassembly lookup > performanc

Re: [PATCH v2 2/3] ip_frag: improve reassembly lookup performance

2023-05-23 Thread Stephen Hemminger
On Tue, 23 May 2023 20:09:20 +0530 wrote: > From: Pavan Nikhilesh > > Improve reassembly lookup performance by using NEON intrinsics for > key validation. > > Signed-off-by: Pavan Nikhilesh > --- > lib/ip_frag/ip_frag_internal.c | 224 +-- > lib/ip_frag/ip_reass

RE: [PATCH] net/ice: DCF adds default RSS

2023-05-23 Thread Zhang, Qi Z
> -Original Message- > From: Ye, MingjinX > Sent: Tuesday, May 16, 2023 6:25 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; sta...@dpdk.org; Zhou, YidingX > ; Ye, MingjinX ; Zhang, Qi > Z > Subject: [PATCH] net/ice: DCF adds default RSS > > When dcf and iavf ports are used together, the d

RE: [PATCH v2] net/ice: adjust timestamp mbuf register

2023-05-23 Thread Zhang, Qi Z
> -Original Message- > From: Qiao, Wenjing > Sent: Friday, May 19, 2023 3:12 PM > To: Yang, Qiming ; Zhang, Qi Z > > Cc: dev@dpdk.org; Qiao, Wenjing ; > sta...@dpdk.org > Subject: [PATCH v2] net/ice: adjust timestamp mbuf register > > Due to only support timestamp at port level, adjus

RE: [PATCH] net/ice: fix timestamp enable error

2023-05-23 Thread Zhang, Qi Z
> -Original Message- > From: Qiao, Wenjing > Sent: Friday, May 19, 2023 2:48 PM > To: Yang, Qiming ; Zhang, Qi Z > > Cc: dev@dpdk.org; Qiao, Wenjing ; > sta...@dpdk.org > Subject: [PATCH] net/ice: fix timestamp enable error > > Use the following command: > 1. dpdk-testpmd -c 0x3 -n 4

RE: [PATCH 0/4] support UDP fragmentation offload

2023-05-23 Thread Xu, Ke1
> From: Zhichao Zeng > Sent: Thursday, April 13, 2023 1:34 PM > To: dev@dpdk.org > Cc: Zeng, ZhichaoX > Subject: [PATCH 0/4] support UDP fragmentation offload > > This patch set supports UDP fragmentation offload for ice and iavf. > > Zhichao Zeng (4): > net: calculate correct UDP pseudo head

[dpdk-dev] [PATCH v2 1/2] common/cnxk: support Tx queue flow pattern in ROC API

2023-05-23 Thread psatheesh
From: Satheesh Paul Added ROC API changes to support Tx queue flow pattern item. Signed-off-by: Satheesh Paul Reviewed-by: Kiran Kumar K --- v2: * Updated documentation for Tx queue pattern item and verified generated documents as well. drivers/common/cnxk/roc_npc.c | 16 +--- dr

[dpdk-dev] [PATCH v2 2/2] net/cnxk: support Tx queue flow pattern item

2023-05-23 Thread psatheesh
From: Satheesh Paul Added support for Tx queue flow pattern item. Signed-off-by: Satheesh Paul Reviewed-by: Kiran Kumar K --- doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + doc/guides/nics/features/default

RE: [PATCH 4/4] net/iavf: enable UDP fragmentation offload

2023-05-23 Thread Xu, Ke1
> From: Zeng, ZhichaoX > Sent: Thursday, April 13, 2023 1:35 PM > To: dev@dpdk.org > Cc: Zhang, Qi Z ; Xu, Ke1 ; Zeng, > ZhichaoX ; Wu, Jingjing ; > Xing, Beilei > Subject: [PATCH 4/4] net/iavf: enable UDP fragmentation offload > > This commit enables transmit segmentation offload for UDP, inclu

Re: [PATCH v6 04/15] graph: add get/set graph worker model APIs

2023-05-23 Thread Jerin Jacob
On Tue, May 9, 2023 at 11:34 AM Zhirun Yan wrote: > > Add new get/set APIs to configure graph worker model which is used to > determine which model will be chosen. > > Signed-off-by: Haiyue Wang > Signed-off-by: Cunming Liang > Signed-off-by: Zhirun Yan > --- > diff --git a/lib/graph/rte_graph_

Re: [PATCH v6 06/15] graph: introduce graph bind unbind API

2023-05-23 Thread Jerin Jacob
On Tue, May 9, 2023 at 11:34 AM Zhirun Yan wrote: > > Add lcore_id for graph to hold affinity core id where graph would run on. > Add bind/unbind API to set/unset graph affinity attribute. lcore_id will > be set as MAX by default, it means not enable this attribute. > > Signed-off-by: Haiyue Wang

Re: [PATCH v6 05/15] graph: introduce graph node core affinity API

2023-05-23 Thread Jerin Jacob
On Tue, May 9, 2023 at 11:34 AM Zhirun Yan wrote: > > Add lcore_id for node to hold affinity core id and impl > rte_graph_model_dispatch_lcore_affinity_set to set node affinity > with specific lcore. > > Signed-off-by: Haiyue Wang > Signed-off-by: Cunming Liang > Signed-off-by: Zhirun Yan > ---

RE: [PATCH] net/mlx5: enhance error log for tunnel offloading

2023-05-23 Thread Raslan Darawsheh
Hi, > -Original Message- > From: David Marchand > Sent: Thursday, April 27, 2023 2:56 PM > To: dev@dpdk.org > Cc: NBU-Contact-Thomas Monjalon (EXTERNAL) ; > Matan Azrad ; Slava Ovsiienko > ; Gregory Etelson > Subject: [PATCH] net/mlx5: enhance error log for tunnel offloading > > Tunnel

RE: [PATCH v1 0/2] Fix VXLAN matching

2023-05-23 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Rongwei Liu > Sent: Tuesday, May 16, 2023 8:41 AM > To: dev@dpdk.org; Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) > Subject: [PATCH v1 0/2] Fix VXLAN matching > > Fix VXLAN matching with zero value and mis5 layou

RE: [PATCH v1 1/8] ethdev: add IPv6 extension push remove action

2023-05-23 Thread Ori Kam
Hi Rongwei, > -Original Message- > From: Rongwei Liu > Sent: Monday, April 17, 2023 12:26 PM > > Add new rte_actions to push and remove the specific > type of IPv6 extension to and from original packets. > > A new extension to be pushed should be the last extension > due to the next h

RE: [PATCH v1 1/3] ethdev: add flow item for RoCE infiniband BTH

2023-05-23 Thread Bill Zhou
Hi Andrew, will update those 2 comments in the V2, thanks. > -Original Message- > From: Andrew Rybchenko > Sent: Monday, May 22, 2023 3:02 PM > To: Ori Kam ; Bill Zhou ; Slava > Ovsiienko ; NBU-Contact-Thomas Monjalon > (EXTERNAL) ; Aman Singh > ; Yuying Zhang ; > Ferruh Yigit ; Olivier M

<    1   2