RE: [PATCH v3] net/mlx5: add test for live migration

2023-10-16 Thread Rongwei Liu
HI BR Rongwei > -Original Message- > From: Thomas Monjalon > Sent: Monday, October 16, 2023 16:20 > To: Rongwei Liu > Cc: dev@dpdk.org; Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; Suanming Mou > ; Raslan Darawsheh > Subject: Re: [PATCH v3] net/mlx5: add

[PATCH v4] net/mlx5: add test for live migration

2023-10-16 Thread Rongwei Liu
This patch adds testpmd app a runtime function to test the live migration API. testpmd> mlx5 set flow_engine [] Flag is optional and in bitmap style. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- doc/guides/nics/mlx5.rst| 14 drivers/

RE: [PATCH v3] net/mlx5: add test for live migration

2023-10-16 Thread Rongwei Liu
BR Rongwei > -Original Message- > From: Rongwei Liu > Sent: Monday, October 16, 2023 16:26 > To: Thomas Monjalon > Cc: dev@dpdk.org; Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; Suanming Mou > ; Raslan Darawsheh > Subject: RE: [PATCH v3] net/mlx5: add test fo

RE: [PATCH v3] net/mlx5: add test for live migration

2023-10-16 Thread Rongwei Liu
Hi BR Rongwei > -Original Message- > From: Thomas Monjalon > Sent: Monday, October 16, 2023 17:27 > To: Rongwei Liu > Cc: dev@dpdk.org; Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; Suanming Mou > ; Raslan Darawsheh > Subject: Re: [PATCH v3] net/mlx5: add

[PATCH v1] net/mlx5: add indirect encap decap support

2023-10-17 Thread Rongwei Liu
  Signed-off-by: Rongwei Liu Acked-by: Ori Kam Acked-by: Suanming Mou Depends on the preceding series: https://inbox.dpdk.org/dev/20231017073117.23738-1-getel...@nvidia.com/ --- drivers/net/mlx5/mlx5_flow.c| 5 + drivers/net/mlx5/mlx5_flow.h| 15 ++ drivers/net/mlx5/mlx5_flow_hw.c

RE: [PATCH v3] net/mlx5: add test for live migration

2023-10-25 Thread Rongwei Liu
BR Rongwei > -Original Message- > From: Rongwei Liu > Sent: Monday, October 16, 2023 17:30 > To: NBU-Contact-Thomas Monjalon (EXTERNAL) > Cc: dev@dpdk.org; Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; Suanming Mou > ; Raslan Darawsheh > Subject: RE: [PATCH v3

[PATCH v5] net/mlx5: add test for live migration

2023-10-25 Thread Rongwei Liu
This patch adds testpmd app a runtime function to test the live migration API. testpmd> mlx5 set flow_engine [] Flag is optional. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- doc/guides/nics/mlx5.rst| 15 drivers/net/mlx5/mlx5_testpm

[PATCH v6] net/mlx5: add test for live migration

2023-10-25 Thread Rongwei Liu
This patch adds testpmd app a runtime function to test the live migration API. testpmd> mlx5 set flow_engine [] Flag is optional. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- doc/guides/nics/mlx5.rst| 15 drivers/net/mlx5/mlx5_testpm

RE: [PATCH v5] net/mlx5: add test for live migration

2023-10-25 Thread Rongwei Liu
BR Rongwei > -Original Message- > From: Thomas Monjalon > Sent: Wednesday, October 25, 2023 17:42 > To: Rongwei Liu > Cc: dev@dpdk.org; Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; Suanming Mou > > Subject: Re: [PATCH v5] net/mlx5: add test for live migration

[PATCH v7] net/mlx5: add test for live migration

2023-10-25 Thread Rongwei Liu
This patch adds testpmd app a runtime function to test the live migration API. testpmd> mlx5 set flow_engine [] Flag is optional. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- doc/guides/nics/mlx5.rst| 15 drivers/net/mlx5/mlx5_testpm

RE: [RFC 1/9] ethdev: add IPv6 routing extension header definition

2023-01-16 Thread Rongwei Liu
HI Ori: Those three matching items are redundant. Has been removed already. Do I need to send RFC v2? BR Rongwei > -Original Message- > From: Ori Kam > Sent: Tuesday, January 17, 2023 00:15 > To: Rongwei Liu ; Matan Azrad ; > Slava Ovsiienko ; NBU-Contact-

RE: [PATCH v7] ethdev: add special flags when creating async transfer table

2023-01-17 Thread Rongwei Liu
HI Ferruh: BR Rongwei > -Original Message- > From: Ferruh Yigit > Sent: Wednesday, January 18, 2023 01:02 > To: Rongwei Liu ; Matan Azrad ; > Slava Ovsiienko ; Ori Kam ; > Aman Singh ; Yuying Zhang > ; Andrew Rybchenko > ; Ivan Malov ; > NBU-Contact-Thomas Mon

[PATCH v4 1/3] ethdev: add flow rule group description

2023-01-18 Thread Rongwei Liu
Add more sentences to describe the group concepts and define group 0 as root group for traffic to search a hit rule. Signed-off-by: Rongwei Liu --- lib/ethdev/rte_flow.h | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev

[PATCH v4 0/3] add API for live migration

2023-01-18 Thread Rongwei Liu
. Rongwei Liu (3): ethdev: add flow rule group description ethdev: add standby state for live migration ethdev: add standby flags for live migration doc/guides/rel_notes/release_23_03.rst | 7 +++ lib/ethdev/ethdev_driver.h | 20 +++ lib/ethdev/rte_ethdev.c| 42

[PATCH v4 2/3] ethdev: add standby state for live migration

2023-01-18 Thread Rongwei Liu
effective immediately. Signed-off-by: Rongwei Liu --- doc/guides/rel_notes/release_23_03.rst | 7 lib/ethdev/ethdev_driver.h | 20 + lib/ethdev/rte_ethdev.c| 42 +++ lib/ethdev/rte_ethdev.h| 56

[PATCH v4 3/3] ethdev: add standby flags for live migration

2023-01-18 Thread Rongwei Liu
Some flags are added to the process state API for live migration in order to change the behavior of the flow rules in a standby process. Signed-off-by: Rongwei Liu --- lib/ethdev/rte_ethdev.h | 21 + 1 file changed, 21 insertions(+) diff --git a/lib/ethdev/rte_ethdev.h b

[PATCH v2 0/8] add IPv6 routing extension support

2023-01-18 Thread Rongwei Liu
to definer_conv_data Rongwei Liu (7): ethdev: add IPv6 routing extension header definition net/mlx5: adopt IPv6 routing extension prm definition net/mlx5/hws: add IPv6 routing extension matching support app/testpmd: add IPv6 routing extension header in raw encap ethdev: add modify IPv6

[PATCH v2 1/8] ethdev: add IPv6 routing extension header definition

2023-01-18 Thread Rongwei Liu
Add IPv6 routing extension header definition and no TLV support for now. At rte_flow layer, there are new items defined for matching type/nexthdr/segments_left field. Add command line support for IPv6 routing extension header matching: type/nexthdr/segment_list. Signed-off-by: Rongwei Liu

[PATCH v2 2/8] net/mlx5: adopt IPv6 routing extension prm definition

2023-01-18 Thread Rongwei Liu
Per newest PRM definition, sample_id stands for 3 parts of information instead of single uint32_t id: sample_id + modify_filed_id + format_select_dw. Also new FW capability bits have been introduces to identify the new capability. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko

[PATCH v2 3/8] net/mlx5/hws: Definer, add mlx5dr context to definer_conv_data

2023-01-18 Thread Rongwei Liu
From: Gregory Etelson New mlx5dr_context member replaces mlx5dr_cmd_query_caps. Capabilities structure is a member of mlx5dr_context. Signed-off-by: Gregory Etelson Signed-off-by: Rongwei Liu Reviewed-by: Alex Vesker Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/hws/mlx5dr_definer.c

[PATCH v2 4/8] net/mlx5/hws: add IPv6 routing extension matching support

2023-01-18 Thread Rongwei Liu
Add mlx5 HWS logic to match IPv6 routing extension header. Once detecting IPv6 matching extension items in pattern template create callback, PMD allocates a flex parser to sample the first dword of srv6 header. Only support next_hdr/segments_left/type for now. Signed-off-by: Rongwei Liu

[PATCH v2 6/8] ethdev: add modify IPv6 protocol field

2023-01-18 Thread Rongwei Liu
Add IPv6 protocol modify field definition. Add new modify field destination type string: "ipv6_proto". Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 3 ++- lib/ethdev/rte_flow.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff -

[PATCH v2 7/8] net/mlx5: add modify IPv6 protocol implementation

2023-01-18 Thread Rongwei Liu
Add HWS modify IPv6 protocol implementation. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/mlx5_prm.h | 1 + drivers/net/mlx5/mlx5_flow_dv.c | 10 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common

[PATCH v2 5/8] app/testpmd: add IPv6 routing extension header in raw encap

2023-01-18 Thread Rongwei Liu
Add IPv6 routing extension header support in raw_encap command. 1. No TLV support now. 2. Assume header length equals to the current segment_left. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 23 +++ 1 file changed, 23 insertions(+) diff

[PATCH v2 8/8] doc/mlx5: add IPv6 routing extension matching docs

2023-01-18 Thread Rongwei Liu
Update mlx5 related document on IPv6 routing extension header matching. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- doc/guides/nics/features/default.ini | 1 + doc/guides/nics/features/mlx5.ini| 1 + doc/guides/nics/mlx5.rst | 2 ++ 3 files changed, 4 insertions(+) diff

[PATCH v2 00/11] add flex item support

2023-01-18 Thread Rongwei Liu
Support flex item matching and modify field in async flow. Syntax follows sync flow exactly. Rongwei Liu (11): ethdev: add flex item modify field support app/testpmd: pass flex handle into matching mask net/mlx5: enable hws flex item create net/mlx5: add IPv6 protocol as flex item input

[PATCH v2 01/11] ethdev: add flex item modify field support

2023-01-18 Thread Rongwei Liu
port. Now user can use testpmd cli to specify which flex item to be modified, either source or destination. Syntax is as below: modify_field op set dst_type flex_item dst_level 0 dst_offset 16 src_type value src_value 0x123456781020 width 8 Signed-off-by: Rongwei Liu Acked-by: Ori Kam --

[PATCH v2 02/11] app/testpmd: pass flex handle into matching mask

2023-01-18 Thread Rongwei Liu
In async flow create API, there is only mask information when creating flow table but flex item handle is required to parse the HW sample information. Pass the flex item handle instead of UINT64/32_MAX to mask. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 8

[PATCH v2 03/11] net/mlx5: enable hws flex item create

2023-01-18 Thread Rongwei Liu
Enable flex item create and destroy with dv_flow_en=2 Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/linux/mlx5_os.c | 27 +++ drivers/net/mlx5/mlx5_flow_hw.c | 2 ++ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a

[PATCH v2 06/11] net/mlx5/hws: add hws flex item matching support

2023-01-18 Thread Rongwei Liu
Support flex item matching in hws and syntax follows sws exactly. Flex item should be created in advance and follow current json mapping logic. Signed-off-by: Rongwei Liu Reviewed-by: Alex Vesker Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/hws/mlx5dr_definer.c | 83

[PATCH v2 05/11] net/mlx5: adopt new flex item prm definition

2023-01-18 Thread Rongwei Liu
Per newest PRM definition, sample_id stands for 3 parts of information instead of single uint32_t id: sample_id + modify_filed_id + format_select_dw. Also new FW capability bits have been introduces to identify the new capability. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko

[PATCH v2 07/11] net/mlx5: add flex item modify field implementation

2023-01-18 Thread Rongwei Liu
Add flex item modify field HWS implementation. The minimum modify boundary is one byte. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/mlx5_prm.h | 1 + drivers/net/mlx5/mlx5_flow.h| 3 + drivers/net/mlx5/mlx5_flow_dv.c | 165

[PATCH v2 08/11] net/mlx5: return error for sws modify field

2023-01-18 Thread Rongwei Liu
Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 92a5914d4b..a7c0d5bf17 100644 --- a/drivers

[PATCH v2 04/11] net/mlx5: add IPv6 protocol as flex item input

2023-01-18 Thread Rongwei Liu
Support IPv6 protocol as new flex item input link. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_flex.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow_flex.c b/drivers/net/mlx5/mlx5_flow_flex.c

[PATCH v2 09/11] app/testpmd: raw encap with flex item support

2023-01-18 Thread Rongwei Liu
Application should retrieve raw_encap buffer from spec->pattern if it is flex item. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline_flow.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/app/test-

[PATCH v2 10/11] doc/mlx5: update mlx5 doc

2023-01-18 Thread Rongwei Liu
Add flex item matching and modify field feature into mlx5 documents. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- doc/guides/nics/mlx5.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index f137f156f9

[PATCH v2 11/11] app/testpmd: adjust cleanup sequence when quitting

2023-01-18 Thread Rongwei Liu
If flex item is referenced in async flow either by pattern template or action template, currently testpmd complains "flex item has flow references". Flex items should be flushed after async flow resources cleanup. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- ap

RE: [PATCH v7] ethdev: add special flags when creating async transfer table

2023-01-29 Thread Rongwei Liu
Hi Ivan, BR Rongwei > -Original Message- > From: Ivan Malov > Sent: Monday, January 30, 2023 08:00 > To: Rongwei Liu > Cc: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Aman Singh > ; Yuying Zhang ; > Ferruh Yigit

RE: [PATCH v4 3/3] ethdev: add standby flags for live migration

2023-01-29 Thread Rongwei Liu
Hi Jerin BR Rongwei > -Original Message- > From: Jerin Jacob > Sent: Monday, January 23, 2023 21:20 > To: Rongwei Liu > Cc: dev@dpdk.org; Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; > step...@networkplumber.org; Ras

RE: [PATCH v2 1/8] ethdev: add IPv6 routing extension header definition

2023-01-29 Thread Rongwei Liu
HI Andrew BR Rongwei > -Original Message- > From: Andrew Rybchenko > Sent: Friday, January 20, 2023 17:21 > To: Rongwei Liu ; Matan Azrad ; > Slava Ovsiienko ; Ori Kam ; > NBU-Contact-Thomas Monjalon (EXTERNAL) ; Aman > Singh ; Yuying Zhang > ; Ferruh Yigit ; O

[PATCH v3 0/8] add IPv6 routing extension support

2023-01-29 Thread Rongwei Liu
compilation. Gregory Etelson (1): net/mlx5/hws: Definer, add mlx5dr context to definer_conv_data Rongwei Liu (7): ethdev: add IPv6 routing extension header definition net/mlx5: adopt IPv6 routing extension prm definition net/mlx5/hws: add IPv6 routing extension matching support app/testpmd: add

[PATCH v3 1/8] ethdev: add IPv6 routing extension header definition

2023-01-29 Thread Rongwei Liu
Add IPv6 routing extension header definition and no TLV support for now. At rte_flow layer, there are new items defined for matching type/nexthdr/segments_left field. Add command line support for IPv6 routing extension header matching: type/nexthdr/segment_list. Signed-off-by: Rongwei Liu

[PATCH v3 2/8] net/mlx5: adopt IPv6 routing extension prm definition

2023-01-29 Thread Rongwei Liu
Per newest PRM definition, sample_id stands for 3 parts of information instead of single uint32_t id: sample_id + modify_filed_id + format_select_dw. Also new FW capability bits have been introduces to identify the new capability. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko

[PATCH v3 3/8] net/mlx5/hws: Definer, add mlx5dr context to definer_conv_data

2023-01-29 Thread Rongwei Liu
From: Gregory Etelson New mlx5dr_context member replaces mlx5dr_cmd_query_caps. Capabilities structure is a member of mlx5dr_context. Signed-off-by: Gregory Etelson Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/hws/mlx5dr_definer.c | 42

[PATCH v3 4/8] net/mlx5/hws: add IPv6 routing extension matching support

2023-01-29 Thread Rongwei Liu
Add mlx5 HWS logic to match IPv6 routing extension header. Once detecting IPv6 matching extension items in pattern template create callback, PMD allocates a flex parser to sample the first dword of srv6 header. Only support next_hdr/segments_left/type for now. Signed-off-by: Rongwei Liu

[PATCH v3 5/8] app/testpmd: add IPv6 routing extension header in raw encap

2023-01-29 Thread Rongwei Liu
Add IPv6 routing extension header support in raw_encap command. 1. No TLV support now. 2. Assume header length equals to the current segment_left. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 23 +++ 1 file changed, 23 insertions(+) diff

[PATCH v3 7/8] net/mlx5: add modify IPv6 protocol implementation

2023-01-29 Thread Rongwei Liu
Add HWS modify IPv6 protocol implementation. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/mlx5_prm.h | 1 + drivers/net/mlx5/mlx5_flow_dv.c | 10 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common

[PATCH v3 6/8] ethdev: add modify IPv6 protocol field

2023-01-29 Thread Rongwei Liu
Add IPv6 protocol modify field definition. Add new modify field destination type string: "ipv6_proto". Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 3 ++- lib/ethdev/rte_flow.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff -

[PATCH v3 8/8] doc/mlx5: add IPv6 routing extension matching docs

2023-01-29 Thread Rongwei Liu
Update mlx5 related document on IPv6 routing extension header matching. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- doc/guides/nics/features/default.ini | 1 + doc/guides/nics/features/mlx5.ini| 1 + doc/guides/nics/mlx5.rst | 2 ++ 3 files changed, 4

RE: [PATCH v2 01/11] ethdev: add flex item modify field support

2023-01-29 Thread Rongwei Liu
Hi Andrew BR Rongwei > -Original Message- > From: Andrew Rybchenko > Sent: Friday, January 20, 2023 17:08 > To: Rongwei Liu ; Matan Azrad ; > Slava Ovsiienko ; Ori Kam ; > NBU-Contact-Thomas Monjalon (EXTERNAL) ; Aman > Singh ; Yuying Zhang > ; Ferruh Yigit &g

RE: [PATCH v2 01/11] ethdev: add flex item modify field support

2023-01-29 Thread Rongwei Liu
Hi Andrew BR Rongwei > -Original Message- > From: Andrew Rybchenko > Sent: Friday, January 20, 2023 17:08 > To: Rongwei Liu ; Matan Azrad ; > Slava Ovsiienko ; Ori Kam ; > NBU-Contact-Thomas Monjalon (EXTERNAL) ; Aman > Singh ; Yuying Zhang > ; Ferruh Yigit &g

[PATCH v3 00/11] add flex item support

2023-01-29 Thread Rongwei Liu
Support flex item matching and modify field in async flow. Syntax follows sync flow exactly. v3: enhance format, add flex_handle document. Rongwei Liu (11): ethdev: add flex item modify field support app/testpmd: pass flex handle into matching mask net/mlx5: enable hws flex item create

[PATCH v3 01/11] ethdev: add flex item modify field support

2023-01-29 Thread Rongwei Liu
port. Now user can use testpmd cli to specify which flex item to be modified, either source or destination. Syntax is as below: modify_field op set dst_type flex_item dst_level 0 dst_offset 16 src_type value src_value 0x123456781020 width 8 Signed-off-by: Rongwei Liu Acked-by: Ori Kam --

[PATCH v3 02/11] app/testpmd: pass flex handle into matching mask

2023-01-29 Thread Rongwei Liu
In async flow create API, there is only mask information when creating flow table but flex item handle is required to parse the HW sample information. Pass the flex item handle instead of UINT64/32_MAX to mask. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 8

[PATCH v3 03/11] net/mlx5: enable hws flex item create

2023-01-29 Thread Rongwei Liu
Enable flex item create and destroy with dv_flow_en=2 Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/linux/mlx5_os.c | 27 +++ drivers/net/mlx5/mlx5_flow_hw.c | 2 ++ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a

[PATCH v3 04/11] net/mlx5: add IPv6 protocol as flex item input

2023-01-29 Thread Rongwei Liu
Support IPv6 protocol as new flex item input link. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_flex.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow_flex.c b/drivers/net/mlx5/mlx5_flow_flex.c

[PATCH v3 07/11] net/mlx5: add flex item modify field implementation

2023-01-29 Thread Rongwei Liu
Add flex item modify field HWS implementation. The minimum modify boundary is one byte. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/mlx5_prm.h | 1 + drivers/net/mlx5/mlx5_flow.h| 3 + drivers/net/mlx5/mlx5_flow_dv.c | 165

[PATCH v3 08/11] net/mlx5: return error for sws modify field

2023-01-29 Thread Rongwei Liu
Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 92a5914d4b..a7c0d5bf17 100644 --- a/drivers

[PATCH v3 06/11] net/mlx5/hws: add hws flex item matching support

2023-01-29 Thread Rongwei Liu
Support flex item matching in hws and syntax follows sws exactly. Flex item should be created in advance and follow current json mapping logic. Signed-off-by: Rongwei Liu Reviewed-by: Alex Vesker Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/hws/mlx5dr_definer.c | 83

[PATCH v3 09/11] app/testpmd: raw encap with flex item support

2023-01-29 Thread Rongwei Liu
Application should retrieve raw_encap buffer from spec->pattern if it is flex item. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/app/test-pmd/cmdline_flow.c b/

[PATCH v3 05/11] net/mlx5: adopt new flex item prm definition

2023-01-29 Thread Rongwei Liu
Per newest PRM definition, sample_id stands for 3 parts of information instead of single uint32_t id: sample_id + modify_filed_id + format_select_dw. Also new FW capability bits have been introduces to identify the new capability. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko

[PATCH v3 10/11] doc/mlx5: update mlx5 doc

2023-01-29 Thread Rongwei Liu
Add flex item matching and modify field feature into mlx5 documents. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- doc/guides/nics/mlx5.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index b23ca35b8f..a2634c378f

[PATCH v3 11/11] app/testpmd: adjust cleanup sequence when quitting

2023-01-29 Thread Rongwei Liu
If flex item is referenced in async flow either by pattern template or action template, currently testpmd complains "flex item has flow references". Flex items should be flushed after async flow resources cleanup. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/tes

[PATCH v3 00/11] add flex item support

2023-01-30 Thread Rongwei Liu
Support flex item matching and modify field in async flow. Syntax follows sync flow exactly. v3: enhance format, add flex_handle document. Rongwei Liu (11): ethdev: add flex item modify field support app/testpmd: pass flex handle into matching mask net/mlx5: enable hws flex item create

[PATCH v3 01/11] ethdev: add flex item modify field support

2023-01-30 Thread Rongwei Liu
port. Now user can use testpmd cli to specify which flex item to be modified, either source or destination. Syntax is as below: modify_field op set dst_type flex_item dst_level 0 dst_offset 16 src_type value src_value 0x123456781020 width 8 Signed-off-by: Rongwei Liu Acked-by: Ori Kam --

[PATCH v3 03/11] net/mlx5: enable hws flex item create

2023-01-30 Thread Rongwei Liu
Enable flex item create and destroy with dv_flow_en=2 Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/linux/mlx5_os.c | 27 +++ drivers/net/mlx5/mlx5_flow_hw.c | 2 ++ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a

[PATCH v3 02/11] app/testpmd: pass flex handle into matching mask

2023-01-30 Thread Rongwei Liu
In async flow create API, there is only mask information when creating flow table but flex item handle is required to parse the HW sample information. Pass the flex item handle instead of UINT64/32_MAX to mask. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 8

[PATCH v3 05/11] net/mlx5: adopt new flex item prm definition

2023-01-30 Thread Rongwei Liu
Per newest PRM definition, sample_id stands for 3 parts of information instead of single uint32_t id: sample_id + modify_filed_id + format_select_dw. Also new FW capability bits have been introduces to identify the new capability. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko

[PATCH v3 04/11] net/mlx5: add IPv6 protocol as flex item input

2023-01-30 Thread Rongwei Liu
Support IPv6 protocol as new flex item input link. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_flex.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow_flex.c b/drivers/net/mlx5/mlx5_flow_flex.c

[PATCH v3 06/11] net/mlx5/hws: add hws flex item matching support

2023-01-30 Thread Rongwei Liu
Support flex item matching in hws and syntax follows sws exactly. Flex item should be created in advance and follow current json mapping logic. Signed-off-by: Rongwei Liu Reviewed-by: Alex Vesker Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/hws/mlx5dr_definer.c | 83

[PATCH v3 07/11] net/mlx5: add flex item modify field implementation

2023-01-30 Thread Rongwei Liu
Add flex item modify field HWS implementation. The minimum modify boundary is one byte. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/mlx5_prm.h | 1 + drivers/net/mlx5/mlx5_flow.h| 3 + drivers/net/mlx5/mlx5_flow_dv.c | 165

[PATCH v3 08/11] net/mlx5: return error for sws modify field

2023-01-30 Thread Rongwei Liu
Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 92a5914d4b..a7c0d5bf17 100644 --- a/drivers

[PATCH v3 09/11] app/testpmd: raw encap with flex item support

2023-01-30 Thread Rongwei Liu
Application should retrieve raw_encap buffer from spec->pattern if it is flex item. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/app/test-pmd/cmdline_flow.c b/

[PATCH v3 10/11] doc/mlx5: update mlx5 doc

2023-01-30 Thread Rongwei Liu
Add flex item matching and modify field feature into mlx5 documents. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- doc/guides/nics/mlx5.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index f137f156f9..aceeeb462c 100644 --- a/doc

[PATCH v3 11/11] app/testpmd: adjust cleanup sequence when quitting

2023-01-30 Thread Rongwei Liu
If flex item is referenced in async flow either by pattern template or action template, currently testpmd complains "flex item has flow references". Flex items should be flushed after async flow resources cleanup. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/tes

RE: [PATCH v7] ethdev: add special flags when creating async transfer table

2023-01-30 Thread Rongwei Liu
HI Ivan BR Rongwei > -Original Message- > From: Ivan Malov > Sent: Monday, January 30, 2023 15:40 > To: Rongwei Liu > Cc: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Aman Singh > ; Yuying Zhang ; > Ferruh Yigit

RE: [PATCH v3 1/8] ethdev: add IPv6 routing extension header definition

2023-01-30 Thread Rongwei Liu
HI Stephen: BR Rongwei > -Original Message- > From: Stephen Hemminger > Sent: Tuesday, January 31, 2023 00:48 > To: Rongwei Liu > Cc: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Aman Singh > ; Yuying Zhang ; > Ferr

RE: [PATCH v3 1/8] ethdev: add IPv6 routing extension header definition

2023-01-30 Thread Rongwei Liu
HI Stephen: BR Rongwei > -Original Message- > From: Stephen Hemminger > Sent: Tuesday, January 31, 2023 00:50 > To: Rongwei Liu > Cc: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Aman Singh > ; Yuying Zhang ; > Ferr

RE: [PATCH v3 1/8] ethdev: add IPv6 routing extension header definition

2023-01-30 Thread Rongwei Liu
HI Stephen BR Rongwei > -Original Message- > From: Stephen Hemminger > Sent: Tuesday, January 31, 2023 00:48 > To: Rongwei Liu > Cc: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Aman Singh > ; Yuying Zhang ; > Ferr

RE: [PATCH v4 3/3] ethdev: add standby flags for live migration

2023-01-30 Thread Rongwei Liu
HI Jerin: BR Rongwei > -Original Message- > From: Jerin Jacob > Sent: Tuesday, January 31, 2023 01:10 > To: Rongwei Liu > Cc: dev@dpdk.org; Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; > step...@networkplumber.org; Ras

RE: [PATCH v7] ethdev: add special flags when creating async transfer table

2023-01-30 Thread Rongwei Liu
HI Ivan BR Rongwei > -Original Message- > From: Ivan Malov > Sent: Tuesday, January 31, 2023 07:00 > To: Rongwei Liu > Cc: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Aman Singh > ; Yuying Zhang ; > Ferruh Yigit

RE: [PATCH v3 1/8] ethdev: add IPv6 routing extension header definition

2023-01-30 Thread Rongwei Liu
HI Stephen BR Rongwei > -Original Message- > From: Stephen Hemminger > Sent: Tuesday, January 31, 2023 10:56 > To: Rongwei Liu > Cc: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Aman Singh > ; Yuying Zhang ; > Ferr

RE: [PATCH v3 1/8] ethdev: add IPv6 routing extension header definition

2023-01-30 Thread Rongwei Liu
Hi Stephen BR Rongwei > -Original Message- > From: Stephen Hemminger > Sent: Tuesday, January 31, 2023 11:02 > To: Rongwei Liu > Cc: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Aman Singh > ; Yuying Zhang ; > Ferr

RE: [PATCH v7] ethdev: add special flags when creating async transfer table

2023-01-30 Thread Rongwei Liu
HI Ivan: BR Rongwei > -Original Message- > From: Ivan Malov > Sent: Tuesday, January 31, 2023 13:30 > To: Rongwei Liu > Cc: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Aman Singh > ; Yuying Zhang ; > Ferruh Yigit

RE: [PATCH v4 3/3] ethdev: add standby flags for live migration

2023-01-31 Thread Rongwei Liu
Hi Jerin: BR Rongwei > -Original Message- > From: Jerin Jacob > Sent: Tuesday, January 31, 2023 16:46 > To: Rongwei Liu > Cc: dev@dpdk.org; Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; > step...@networkplumber.org; Ras

RE: [PATCH v3 1/8] ethdev: add IPv6 routing extension header definition

2023-01-31 Thread Rongwei Liu
HI Stephen: BR Rongwei > -Original Message- > From: Rongwei Liu > Sent: Tuesday, January 31, 2023 11:25 > To: Stephen Hemminger ; Andrew Rybchenko > > Cc: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Aman Singh > ; Yu

[PATCH v4 0/3] add IPv6 routing extension support

2023-01-31 Thread Rongwei Liu
: remove redundant rte_flow items. Rongwei Liu (3): ethdev: add IPv6 routing extension header definition ethdev: add modify IPv6 protocol field app/testpmd: add IPv6 routing extension header in raw encap app/test-pmd/cmdline_flow.c| 72 +- doc/guides

[PATCH v4 1/3] ethdev: add IPv6 routing extension header definition

2023-01-31 Thread Rongwei Liu
Add IPv6 routing extension header definition and no TLV support for now. At rte_flow layer, there are new items defined for matching type/nexthdr/segments_left field. Add command line support for IPv6 routing extension header matching: type/nexthdr/segment_list. Signed-off-by: Rongwei Liu

[PATCH v4 2/3] ethdev: add modify IPv6 protocol field

2023-01-31 Thread Rongwei Liu
Add IPv6 protocol modify field definition. Add new modify field destination type string: "ipv6_proto". Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 3 ++- lib/ethdev/rte_flow.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff -

[PATCH v4 3/3] app/testpmd: add IPv6 routing extension header in raw encap

2023-01-31 Thread Rongwei Liu
Add IPv6 routing extension header support in raw_encap command. 1. No TLV support now. 2. Assume header length equals to the current segment_left. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 23 +++ 1 file changed, 23 insertions(+) diff

RE: [PATCH v4 1/3] ethdev: add IPv6 routing extension header definition

2023-02-01 Thread Rongwei Liu
HI Andrew: BR Rongwei > -Original Message- > From: Andrew Rybchenko > Sent: Wednesday, February 1, 2023 17:21 > To: Rongwei Liu ; dev@dpdk.org; Matan Azrad > ; Slava Ovsiienko ; Ori Kam > ; NBU-Contact-Thomas Monjalon (EXTERNAL) > > Cc: Raslan Darawsheh ; Ama

[PATCH v5 0/3] add IPv6 routing extension support

2023-02-01 Thread Rongwei Liu
be32/be16 in network header structure. v2: remove redundant rte_flow items. Rongwei Liu (3): ethdev: add IPv6 routing extension header definition ethdev: add modify IPv6 protocol field app/testpmd: add IPv6 routing extension header in raw encap app/test-pmd/cmdline_flow.c

[PATCH v5 1/3] ethdev: add IPv6 routing extension header definition

2023-02-01 Thread Rongwei Liu
Add IPv6 routing extension header definition and no TLV support for now. At rte_flow layer, there are new items defined for matching type/nexthdr/segments_left field. Add command line support for IPv6 routing extension header matching: type/nexthdr/segment_list. Signed-off-by: Rongwei Liu

[PATCH v5 2/3] ethdev: add modify IPv6 protocol field

2023-02-01 Thread Rongwei Liu
Add IPv6 protocol modify field definition. Add new modify field destination type string: "ipv6_proto". Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 3 ++- lib/ethdev/rte_flow.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff -

[PATCH v5 3/3] app/testpmd: add IPv6 routing extension header in raw encap

2023-02-01 Thread Rongwei Liu
Add IPv6 routing extension header support in raw_encap command. 1. No TLV support now. 2. Assume header length equals to the current segment_left. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 23 +++ 1 file changed, 23 insertions(+) diff

RE: [PATCH v5 2/3] ethdev: add modify IPv6 protocol field

2023-02-01 Thread Rongwei Liu
Hi Stephen BR Rongwei > -Original Message- > From: Stephen Hemminger > Sent: Thursday, February 2, 2023 00:56 > To: Rongwei Liu > Cc: dev@dpdk.org; Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Raslan Darawsheh > ; Ama

RE: [PATCH v3 01/11] ethdev: add flex item modify field support

2023-02-01 Thread Rongwei Liu
Hi Andrew, Can you share some comments on the modified version v3? BR Rongwei > -Original Message- > From: Rongwei Liu > Sent: Monday, January 30, 2023 21:20 > To: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon (EXTERNAL) ; Aman Sing

[PATCH v6 0/3] add IPv6 routing extension support

2023-02-02 Thread Rongwei Liu
egments and move PMD implementation out. v3: enhance the format and use be32/be16 in network header structure. v2: remove redundant rte_flow items. Rongwei Liu (3): ethdev: add IPv6 routing extension header definition ethdev: add modify IPv6 protocol field app/testpmd: add IPv6 routing extension

[PATCH v6 1/3] ethdev: add IPv6 routing extension header definition

2023-02-02 Thread Rongwei Liu
Add IPv6 routing extension header definition and no TLV support for now. At rte_flow layer, there are new items defined for matching type/nexthdr/segments_left field. Add command line support for IPv6 routing extension header matching: type/nexthdr/segment_list. Signed-off-by: Rongwei Liu

[PATCH v6 2/3] ethdev: add modify IPv6 protocol field

2023-02-02 Thread Rongwei Liu
Add IPv6 protocol modify field definition. Add new modify field destination type string: "ipv6_proto". Signed-off-by: Rongwei Liu Acked-by: Ori Kam Acked-by: Andrew Rybchenko --- app/test-pmd/cmdline_flow.c | 3 ++- lib/ethdev/rte_flow.h | 1 + 2 files changed, 3 insert

  1   2   3   4   5   >