[PATCH] net/mlx5: fix bug trunk is null

2024-05-15 Thread Haifei Luo
dpdk.org Signed-off-by: Haifei Luo Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_utils.c b/drivers/net/mlx5/mlx5_utils.c index e28db2ec43..93c10f20a7 100644 --- a/drivers/net/mlx5/mlx5_utils

[PATCH] net/mlx5: link status change for bonding cases

2024-02-26 Thread Haifei Luo
hange. Signed-off-by: Haifei Luo --- drivers/net/mlx5/linux/mlx5_ethdev_os.c | 55 ++--- 1 file changed, 50 insertions(+), 5 deletions(-) diff --git a/drivers/net/mlx5/linux/mlx5_ethdev_os.c b/drivers/net/mlx5/linux/mlx5_ethdev_os.c index dd5a0c5..a9b94f8 100644 --- a/dr

[PATCH v4 5/5] net/mlx5: add support for item NSH

2023-10-07 Thread Haifei Luo
1. Add validation for item NSH. It will fail if HCA cap for NSH is false. 2. Add item_flags for NSH. 3. For vxlan-gpe if next header is NSH, set next_protocol as NSH. Signed-off-by: Haifei Luo Acked-by: Dariusz Sosnowski Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.c| 39

[PATCH v4 4/5] app/testpmd: support for NSH flow item

2023-10-07 Thread Haifei Luo
Add support for item NSH. The CLI is: nsh Example: flow create 0 transfer group 1 pattern eth / ipv6 / udp dst is 4790 / vxlan-gpe / nsh / eth / ipv4 / tcp / end actions port_id id 1 / end Signed-off-by: Haifei Luo Acked-by: Dariusz Sosnowski Acked-by: Suanming Mou

[PATCH v4 3/5] net/mlx5: enhance the validation for item VXLAN-GPE

2023-10-07 Thread Haifei Luo
Enhance the validation so that configuring vxlan-gpe's next protocol as NSH is supported. 1. The spec's protocol can have value and nic_mask's protocol is 0xff. Signed-off-by: Haifei Luo Acked-by: Dariusz Sosnowski Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.c | 13 +

[PATCH v4 2/5] common/mlx5: extend HCA attribute query for NSH

2023-10-07 Thread Haifei Luo
Add NSH supporting field in two places: 1. New HCA capability indicating NSH is supported 2. New field in "mlx5_ifc_per_protocol_networking_offload_caps_bits" structure Signed-off-by: Haifei Luo Acked-by: Dariusz Sosnowski Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_devx_

[PATCH v4 1/5] app/testpmd: support for VXLAN-GPE's next protocol

2023-10-07 Thread Haifei Luo
ff-by: Haifei Luo Acked-by: Dariusz Sosnowski Acked-by: Suanming Mou --- app/test-pmd/cmdline_flow.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 95c0a19beb..8a4e06c50a 100644 --- a/app/test-pmd/cmdline_flow.c +++

[PATCH v4 0/5] support item NSH matching

2023-10-07 Thread Haifei Luo
f NSH. Enhance the validation for the case matching item NSH is supported. Add NSH support in net/mlx5. V2: Add Ack info in commit message. V3: Add more Ack in commi message. V4: Add nsh in feature ini file. Haifei Luo (5): app/testpmd: support for VXLAN-GPE's next protocol common/mlx5:

[PATCH v3 5/5] net/mlx5: add support for item NSH

2023-09-25 Thread Haifei Luo
1. Add validation for item NSH. It will fail if HCA cap for NSH is false. 2. Add item_flags for NSH. 3. For vxlan-gpe if next header is NSH, set next_protocol as NSH. Signed-off-by: Haifei Luo Acked-by: Dariusz Sosnowski Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.c| 39

[PATCH v3 4/5] app/testpmd: support for NSH flow item

2023-09-25 Thread Haifei Luo
Add support for item NSH. The CLI is: nsh Example: flow create 0 transfer group 1 pattern eth / ipv6 / udp dst is 4790 / vxlan-gpe / nsh / eth / ipv4 / tcp / end actions port_id id 1 / end Signed-off-by: Haifei Luo Acked-by: Dariusz Sosnowski Acked-by: Suanming Mou

[PATCH v3 3/5] net/mlx5: enhance the validation for item VXLAN-GPE

2023-09-25 Thread Haifei Luo
Enhance the validation so that configuring vxlan-gpe's next protocol as NSH is supported. 1. The spec's protocol can have value and nic_mask's protocol is 0xff. Signed-off-by: Haifei Luo Acked-by: Dariusz Sosnowski Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.c | 13 +

[PATCH v3 2/5] common/mlx5: extend HCA attribute query for NSH

2023-09-25 Thread Haifei Luo
Add NSH supporting field in two places: 1. New HCA capability indicating NSH is supported 2. New field in "mlx5_ifc_per_protocol_networking_offload_caps_bits" structure Signed-off-by: Haifei Luo Acked-by: Dariusz Sosnowski Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_devx_

[PATCH v3 1/5] app/testpmd: support for VXLAN-GPE's next protocol

2023-09-25 Thread Haifei Luo
ff-by: Haifei Luo Acked-by: Dariusz Sosnowski Acked-by: Suanming Mou --- app/test-pmd/cmdline_flow.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 94827bcc4a..d25f941259 100644 --- a/app/test-pmd/cmdline_flow.c +++

[PATCH v3 0/5] support item NSH matching

2023-09-25 Thread Haifei Luo
f NSH. Enhance the validation for the case matching item NSH is supported. Add NSH support in net/mlx5. V2: Add Ack info in commit message. V3: Add more Ack in commi message. Haifei Luo (5): app/testpmd: support for VXLAN-GPE's next protocol common/mlx5: extend HCA attribute query for NSH

[PATCH v2 5/5] net/mlx5: add support for item NSH

2023-09-24 Thread Haifei Luo
1. Add validation for item NSH. It will fail if HCA cap for NSH is false. 2. Add item_flags for NSH. 3. For vxlan-gpe if next header is NSH, set next_protocol as NSH. Signed-off-by: Haifei Luo Acked-by: Dariusz Sosnowski --- drivers/net/mlx5/mlx5_flow.c| 39

[PATCH v2 4/5] app/testpmd: support for NSH flow item

2023-09-24 Thread Haifei Luo
Add support for item NSH. The CLI is: nsh Example: flow create 0 transfer group 1 pattern eth / ipv6 / udp dst is 4790 / vxlan-gpe / nsh / eth / ipv4 / tcp / end actions port_id id 1 / end Signed-off-by: Haifei Luo Acked-by: Dariusz Sosnowski --- app/test-pmd

[PATCH v2 3/5] net/mlx5: enhance the validation for item VXLAN-GPE

2023-09-24 Thread Haifei Luo
Enhance the validation so that configuring vxlan-gpe's next protocol as NSH is supported. 1. The spec's protocol can have value and nic_mask's protocol is 0xff. Signed-off-by: Haifei Luo Acked-by: Dariusz Sosnowski --- drivers/net/mlx5/mlx5_flow.c | 13 ++--- 1

[PATCH v2 2/5] common/mlx5: extend HCA attribute query for NSH

2023-09-24 Thread Haifei Luo
Add NSH supporting field in two places: 1. New HCA capability indicating NSH is supported 2. New field in "mlx5_ifc_per_protocol_networking_offload_caps_bits" structure Signed-off-by: Haifei Luo Acked-by: Dariusz Sosnowski --- drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++ driv

[PATCH v2 1/5] app/testpmd: support for VXLAN-GPE's next protocol

2023-09-24 Thread Haifei Luo
ff-by: Haifei Luo Acked-by: Dariusz Sosnowski --- app/test-pmd/cmdline_flow.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 94827bcc4a..d25f941259 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_f

[PATCH v2 0/5] support item NSH matching

2023-09-24 Thread Haifei Luo
f NSH. Enhance the validation for the case matching item NSH is supported. Add NSH support in net/mlx5. V2: Add Ack info in commit message. Haifei Luo (5): app/testpmd: support for VXLAN-GPE's next protocol common/mlx5: extend HCA attribute query for NSH net/mlx5: enhance the validatio

[PATCH 5/5] net/mlx5: add support for item NSH

2023-08-09 Thread Haifei Luo
1. Add validation for item NSH. It will fail if HCA cap for NSH is false. 2. Add item_flags for NSH. 3. For vxlan-gpe if next header is NSH, set next_protocol as NSH. Signed-off-by: Haifei Luo --- drivers/net/mlx5/mlx5_flow.c| 39 + drivers/net/mlx5

[PATCH 4/5] app/testpmd: support for NSH flow item

2023-08-09 Thread Haifei Luo
Add support for item NSH. The CLI is: nsh Example: flow create 0 transfer group 1 pattern eth / ipv6 / udp dst is 4790 / vxlan-gpe / nsh / eth / ipv4 / tcp / end actions port_id id 1 / end Signed-off-by: Haifei Luo --- app/test-pmd/cmdline_flow.c | 16 1

[PATCH 3/5] net/mlx5: enhance the validation for item VXLAN-GPE

2023-08-09 Thread Haifei Luo
Enhance the validation so that configuring vxlan-gpe's next protocol as NSH is supported. 1. The spec's protocol can have value and nic_mask's protocol is 0xff. Signed-off-by: Haifei Luo --- drivers/net/mlx5/mlx5_flow.c | 13 ++--- 1 file changed, 6 insertions(+), 7 del

[PATCH 2/5] common/mlx5: extend HCA attribute query for NSH

2023-08-09 Thread Haifei Luo
Add NSH supporting field in two places: 1. New HCA capability indicating NSH is supported 2. New field in "mlx5_ifc_per_protocol_networking_offload_caps_bits" structure Signed-off-by: Haifei Luo --- drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++ drivers/common/mlx5/mlx5_devx_

[PATCH 1/5] app/testpmd: support for VXLAN-GPE's next protocol

2023-08-09 Thread Haifei Luo
ff-by: Haifei Luo --- app/test-pmd/cmdline_flow.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 94827bcc4a..d25f941259 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -385,6 +385,7 @@ enum

[PATCH 0/5] support item NSH matching

2023-08-09 Thread Haifei Luo
f NSH. Enhance the validation for the case matching item NSH is supported. Add NSH support in net/mlx5. Haifei Luo (5): app/testpmd: support for VXLAN-GPE's next protocol common/mlx5: extend HCA attribute query for NSH net/mlx5: enhance the validation for item VXLAN-GPE app/testpmd: suppo

[PATCH] net/mlx5: functions refactor for getting counter's action

2022-02-21 Thread Haifei Luo
ned-off-by: Haifei Luo Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5.h| 2 +- drivers/net/mlx5/mlx5_flow.c | 41 --- drivers/net/mlx5/mlx5_flow.h | 7 +- drivers/net/mlx5/mlx5_flow_dv

[dpdk-dev] [PATCH] net/mlx5: enhancement for flow dump value

2021-10-26 Thread Haifei Luo
ec_type,id,actions_number,actions Encap_decap: rec_type,id,buf Signed-off-by: Haifei Luo Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5.h | 2 +- drivers/net/mlx5/mlx5_flow.c| 161 ++-- drivers/net/mlx5/mlx5_flow.h| 5 ++ driv

[dpdk-dev] [PATCH] net/mlx5: support flow dump value

2021-05-30 Thread Haifei Luo
,buf Signed-off-by: Haifei Luo --- drivers/net/mlx5/mlx5.h | 15 drivers/net/mlx5/mlx5_flow.c | 165 ++- 2 files changed, 179 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h index 32b2817bf2..c958fd7a9a 100644

[dpdk-dev] [PATCH v5] app/testpmd: add CLI for action meter color

2021-05-12 Thread Haifei Luo
n warning. Signed-off-by: Haifei Luo Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 85 + doc/guides/rel_notes/release_21_05.rst | 3 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 24 3 files changed, 112 insertions(+) diff --git a

[dpdk-dev] [PATCH v4] app/testpmd: add CLI for action meter color

2021-05-12 Thread Haifei Luo
r_actions color type red / end In the above command, the action type is RTE_FLOW_ACTION_TYPE_METER_COLOR, the meter policy action list: green -> green, yellow -> yellow, red -> red. V2: rebase the latest code. V3: update the document. V4: add sample in the document. Signed-off-by: H

Re: [dpdk-dev] [PATCH v2] app/testpmd: add CLI for action meter color

2021-05-12 Thread Haifei Luo
HI Ferruh, Added the docs in V3 and please kindly check. Thank you. -Original Message- From: Haifei Luo Sent: Wednesday, May 12, 2021 9:42 AM To: Ferruh Yigit ; Matan Azrad ; Ori Kam ; Slava Ovsiienko ; Xiaoyun Li Cc: dev@dpdk.org; NBU-Contact-Thomas Monjalon ; Raslan Darawsheh

[dpdk-dev] [PATCH v3] app/testpmd: add CLI for action meter color

2021-05-12 Thread Haifei Luo
r_actions color type red / end In the above command, the action type is RTE_FLOW_ACTION_TYPE_METER_COLOR, the meter policy action list: green -> green, yellow -> yellow, red -> red. V2: rebase the latest code. V3: update the document. Signed-off-by: Haifei Luo Acked-by: Ori Kam ---

Re: [dpdk-dev] [PATCH v2] app/testpmd: add CLI for action meter color

2021-05-11 Thread Haifei Luo
HI Ferruh, Will update the doc and send V3. Thank you. -Original Message- From: Ferruh Yigit Sent: Wednesday, May 12, 2021 3:22 AM To: Haifei Luo ; Matan Azrad ; Ori Kam ; Slava Ovsiienko ; Xiaoyun Li Cc: dev@dpdk.org; NBU-Contact-Thomas Monjalon ; Raslan Darawsheh Subject: Re

[dpdk-dev] [PATCH v2] app/testpmd: add CLI for action meter color

2021-05-11 Thread Haifei Luo
type yellow / end r_actions color type red / end In the above command, the action type is RTE_FLOW_ACTION_TYPE_METER_COLOR, the meter policy action list: green -> green, yellow -> yellow, red -> red. V2: rebase the latest code. Signed-off-by: Haifei Luo Acked-by: Ori Kam --- app

[dpdk-dev] [PATCH] app/testpmd: support meter color action in policy

2021-04-28 Thread Haifei Luo
type yellow / end r_actions color type red / end In the above command, the action type is RTE_FLOW_ACTION_TYPE_METER_COLOR, the meter policy action list: green -> green, yellow -> yellow, red -> red. Signed-off-by: Haifei Luo --- app/test-pmd/cmdline_fl

[dpdk-dev] [PATCH v3 1/2] common/mlx5: add mlx5 APIs for single flow dump feature

2021-04-15 Thread Haifei Luo
add mlx5 APIs for single flow dump feature Signed-off-by: Haifei Luo Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/linux/meson.build | 6 -- drivers/common/mlx5/linux/mlx5_glue.c | 13 + drivers/common/mlx5/linux/mlx5_glue.h | 1 + drivers/common/mlx5

[dpdk-dev] [PATCH v3 2/2] net/mlx5: add mlx5 APIs for single flow dump feature

2021-04-15 Thread Haifei Luo
; } __rte_packed; If flow_ptr is 0, all flows for the specified port will be dumped. Signed-off-by: Haifei Luo --- drivers/net/mlx5/linux/mlx5_os.h | 3 +++ drivers/net/mlx5/linux/mlx5_socket.c | 47 drivers/net/mlx5/mlx5.h | 10 drivers/net

[dpdk-dev] [PATCH v3 0/2] support single flow dump on MLX5 PMD

2021-04-15 Thread Haifei Luo
ries=16367 V2: Rebase to fix apply patch failure. V3: Fix commments. Modify data structures sent to DPDK application. Haifei Luo (2): common/mlx5: add mlx5 APIs for single flow dump feature net/mlx5: add mlx5 APIs for single flow dump feature drivers/common/mlx5/linux/meson.build | 6 +++-

Re: [dpdk-dev] [PATCH v5 1/3] ethdev: dump single flow rule

2021-04-14 Thread Haifei Luo
HI Thomas, #1, okay. Will change the place for comments. #2, yes, I can change the description. Thank you so much. -Original Message- From: Thomas Monjalon Sent: Wednesday, April 14, 2021 6:33 PM To: Haifei Luo Cc: dev@dpdk.org; Ori Kam ; Slava Ovsiienko ; Raslan Darawsheh

[dpdk-dev] [PATCH v6 2/2] app/testpmd: add CLIs for single flow dump feature

2021-04-14 Thread Haifei Luo
Add support for single flow dump. The CLIs to dump one rule: flow dump PORT rule ID to dump all: flow dump PORT all Examples: testpmd> flow dump 0 all testpmd> flow dump 0 rule 0 Signed-off-by: Haifei Luo Acked-by: Ajit Khaparde --- app/test-pmd/cmdline_flow.c

[dpdk-dev] [PATCH v6 1/2] ethdev: dump single flow rule

2021-04-14 Thread Haifei Luo
Previous implementations support dump all the flows. Add new arg rte_flow in rte_flow_dev_dump to dump one flow. Signed-off-by: Haifei Luo Acked-by: Ajit Khaparde Acked-by: Ori Kam --- app/test-pmd/config.c | 2 +- doc/guides/nics/mlx5.rst | 9 ++--- doc

[dpdk-dev] [PATCH v6 0/2] single flow dump

2021-04-14 Thread Haifei Luo
comments. Modify title and enhance API's description. V6: Distribute the release notes updates to the patches that introduces the change. Haifei Luo (2): ethdev: dump single flow rule app/testpmd: add CLIs for single flow dump feature app/test-pmd/cmdline_flow.c

Re: [dpdk-dev] [PATCH v3 3/3] doc: add single flow dump to guides

2021-04-14 Thread Haifei Luo
Hi Ferruh, "Can you please distribute the release notes updates to the patches that introduces the change?" okay -Original Message- From: Ferruh Yigit Sent: Wednesday, April 14, 2021 4:24 PM To: Haifei Luo ; dev@dpdk.org Cc: Ori Kam ; Slava Ovsiienko ; Raslan Darawsheh

[dpdk-dev] [PATCH v5 2/3] app/testpmd: add CLIs for single flow dump feature

2021-04-14 Thread Haifei Luo
Add support for single flow dump. The CLIs to dump one rule: flow dump PORT rule ID to dump all: flow dump PORT all Examples: testpmd> flow dump 0 all testpmd> flow dump 0 rule 0 Signed-off-by: Haifei Luo Acked-by: Ajit Khaparde --- app/test-pmd/cmdline_flow.c

[dpdk-dev] [PATCH v5 0/3] support single flow dump

2021-04-14 Thread Haifei Luo
comments. Modify title and enhance API's description. Haifei Luo (3): ethdev: dump single flow rule app/testpmd: add CLIs for single flow dump feature doc: add single flow dump to guides app/test-pmd/cmdline_flow.c | 55 +

[dpdk-dev] [PATCH v5 3/3] doc: add single flow dump to guides

2021-04-14 Thread Haifei Luo
Add testpmd CLIs and APIs changes in release_notes. Signed-off-by: Haifei Luo --- doc/guides/rel_notes/release_21_05.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_21_05.rst b/doc/guides/rel_notes/release_21_05.rst index a0b9079..e3ae470 100644 --- a

[dpdk-dev] [PATCH v5 1/3] ethdev: dump single flow rule

2021-04-14 Thread Haifei Luo
Previous implementations support dump all the flows. Add new arg rte_flow in rte_flow_dev_dump to dump one flow. Signed-off-by: Haifei Luo Acked-by: Ajit Khaparde Acked-by: Ori Kam --- app/test-pmd/config.c| 2 +- doc/guides/nics/mlx5.rst | 9 ++--- drivers/net

Re: [dpdk-dev] [PATCH v4 1/3] ethdev: modify rte API for single flow dump

2021-04-14 Thread Haifei Luo
HI Thomas, #1, okay , will modify title as " ethdev: dump single flow rule " . #2, yes, it can pass NULL. Will modify as you described. Thank you so much for the comments. -Original Message- From: Thomas Monjalon Sent: Wednesday, April 14, 2021 4:58 PM To: Haifei Lu

Re: [dpdk-dev] [PATCH v4 1/3] ethdev: modify rte API for single flow dump

2021-04-14 Thread Haifei Luo
Hi Thomas, I will remove it from prog_guide/rte_flow.rst. Is it okay ? Thank you. -Original Message- From: Thomas Monjalon Sent: Wednesday, April 14, 2021 5:01 PM To: Ori Kam Cc: dev@dpdk.org; Haifei Luo ; Slava Ovsiienko ; Raslan Darawsheh ; Xueming(Steven) Li ; Haifei Luo

[dpdk-dev] [PATCH v2 2/2] net/mlx5: add mlx5 APIs for single flow dump feature

2021-04-14 Thread Haifei Luo
Modify API mlx5_flow_dev_dump to support the feature. Modify mlx5_socket since one extra arg flow_ptr is added. Signed-off-by: Haifei Luo --- drivers/net/mlx5/linux/mlx5_socket.c | 30 -- drivers/net/mlx5/mlx5_flow.c | 30 -- 2

[dpdk-dev] [PATCH v2 0/2] support single flow dump on MLX5 PMD

2021-04-14 Thread Haifei Luo
uot;) http://patchwork.dpdk.org/project/dpdk/list/?series=16362 V2: rebase to fix apply patch failure. Haifei Luo (2): common/mlx5: add mlx5 APIs for single flow dump feature net/mlx5: add mlx5 APIs for single flow dump feature drivers/common/mlx5/linux/meson.build | 6 -- drivers/common/mlx5/linux/m

[dpdk-dev] [PATCH v2 1/2] common/mlx5: add mlx5 APIs for single flow dump feature

2021-04-14 Thread Haifei Luo
add mlx5 APIs for single flow dump feature Signed-off-by: Haifei Luo Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/linux/meson.build | 6 -- drivers/common/mlx5/linux/mlx5_glue.c | 13 + drivers/common/mlx5/linux/mlx5_glue.h | 1 + drivers/common/mlx5

[dpdk-dev] [PATCH v4 3/3] doc: add single flow dump to guides

2021-04-14 Thread Haifei Luo
Add testpmd CLI and API changes in release_notes. Signed-off-by: Haifei Luo --- doc/guides/rel_notes/release_21_05.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_21_05.rst b/doc/guides/rel_notes/release_21_05.rst index a0b9079..e3ae470 100644 --- a

[dpdk-dev] [PATCH v4 2/3] app/testpmd: add CLIs for single flow dump feature

2021-04-14 Thread Haifei Luo
Add support for single flow dump. The CLIs to dump one rule: flow dump PORT rule ID to dump all: flow dump PORT all Examples: testpmd> flow dump 0 all testpmd> flow dump 0 rule 0 Signed-off-by: Haifei Luo Acked-by: Ajit Khaparde --- app/test-pmd/cmdline_flow.c

[dpdk-dev] [PATCH v4 1/3] ethdev: modify rte API for single flow dump

2021-04-14 Thread Haifei Luo
Previous implementations support dump all the flows. Add new arg rte_flow in rte_flow_dev_dump to dump one flow. Signed-off-by: Haifei Luo Acked-by: Ajit Khaparde Acked-by: Ori Kam --- app/test-pmd/config.c| 2 +- doc/guides/nics/mlx5.rst | 9 ++--- doc

[dpdk-dev] [PATCH v4 0/3] support single flow dump

2021-04-14 Thread Haifei Luo
ut rte API. V1 has one API rte_flow_dump, remove it and update rte_flow_dev_dump by adding one arg rte_flow. V3: split into two series. One is for ethdev/testpmd/doc, the other is for drivers. V4: Fix comments. Remove "Flow dump" from features/default.ini and features/mlx5.ini. Haifei L

Re: [dpdk-dev] [PATCH v3 3/3] doc: add single flow dump to guides

2021-04-14 Thread Haifei Luo
Hi Ferruh, Okay , I will remove it from feature list. Thank you. -Original Message- From: Ferruh Yigit Sent: Wednesday, April 14, 2021 4:24 PM To: Haifei Luo ; dev@dpdk.org Cc: Ori Kam ; Slava Ovsiienko ; Raslan Darawsheh ; Xueming(Steven) Li ; ajit.khapa...@broadcom.com; Matan

[dpdk-dev] [PATCH 0/2] support single flow dump on MLX5 PMD

2021-04-14 Thread Haifei Luo
uot;) http://patchwork.dpdk.org/project/dpdk/list/?series=16355 Haifei Luo (2): common/mlx5: add mlx5 APIs for single flow dump feature net/mlx5: add mlx5 APIs for single flow dump feature drivers/common/mlx5/linux/meson.build | 6 -- drivers/common/mlx5/linux/mlx5_glue.c | 13 + drivers/c

[dpdk-dev] [PATCH 2/2] net/mlx5: add mlx5 APIs for single flow dump feature

2021-04-14 Thread Haifei Luo
Modify API mlx5_flow_dev_dump to support the feature. Modify mlx5_socket since one extra arg flow_ptr is added. Signed-off-by: Haifei Luo --- drivers/net/mlx5/linux/mlx5_socket.c | 30 -- drivers/net/mlx5/mlx5_flow.c | 30 -- 2

[dpdk-dev] [PATCH 1/2] common/mlx5: add mlx5 APIs for single flow dump feature

2021-04-14 Thread Haifei Luo
add mlx5 APIs for single flow dump feature Signed-off-by: Haifei Luo Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/linux/meson.build | 6 -- drivers/common/mlx5/linux/mlx5_glue.c | 13 + drivers/common/mlx5/linux/mlx5_glue.h | 1 + drivers/common/mlx5

Re: [dpdk-dev] [PATCH v2 3/5] common/mlx5: add mlx5 APIs for single flow dump feature

2021-04-13 Thread Haifei Luo
HI David, Thank you for the description and I will modify accordingly. -Original Message- From: David Marchand Sent: Wednesday, April 14, 2021 2:21 PM To: Haifei Luo Cc: Kinsella, Ray ; dev@dpdk.org; Ori Kam ; Slava Ovsiienko ; Raslan Darawsheh ; Xueming(Steven) Li ; Matan Azrad

[dpdk-dev] [PATCH v3 3/3] doc: add single flow dump to guides

2021-04-13 Thread Haifei Luo
Add "Flow dump" in features/default.ini and features/mlx5.ini. Add testpmd CLI and API changes in release_notes. Signed-off-by: Haifei Luo --- doc/guides/nics/features/default.ini | 1 + doc/guides/nics/features/mlx5.ini | 1 + doc/guides/rel_notes/release_21_05.rst | 5

[dpdk-dev] [PATCH v3 2/3] app/testpmd: add CLIs for single flow dump feature

2021-04-13 Thread Haifei Luo
Add support for single flow dump. The CLIs to dump one rule: flow dump PORT rule ID to dump all: flow dump PORT all Examples: testpmd> flow dump 0 all testpmd> flow dump 0 rule 0 Signed-off-by: Haifei Luo Acked-by: Ajit Khaparde --- app/test-pmd/cmdline_flow.c

[dpdk-dev] [PATCH v3 0/3] support single flow dump

2021-04-13 Thread Haifei Luo
ut rte API. V1 has one API rte_flow_dump, remove it and update rte_flow_dev_dump by adding one arg rte_flow. V3: split into two series. One is for ethdev/testpmd/doc, the other is for drivers. Haifei Luo (3): ethdev: modify rte API for single flow dump app/testpmd: add CLIs for single flo

[dpdk-dev] [PATCH v3 1/3] ethdev: modify rte API for single flow dump

2021-04-13 Thread Haifei Luo
Previous implementations support dump all the flows. Add new arg rte_flow in rte_flow_dev_dump to dump one flow. Signed-off-by: Haifei Luo Acked-by: Ajit Khaparde Acked-by: Ori Kam --- app/test-pmd/config.c| 2 +- doc/guides/nics/mlx5.rst | 9 ++--- doc

Re: [dpdk-dev] [PATCH v2 3/5] common/mlx5: add mlx5 APIs for single flow dump feature

2021-04-13 Thread Haifei Luo
HI David, In current release, is the exports file necessary? I will keep the modification if yes. Thank you. drivers/common/mlx5/rte_common_mlx5_exports.def -Original Message- From: Kinsella, Ray Sent: Wednesday, April 14, 2021 12:44 AM To: Haifei Luo ; dev@dpdk.org Cc: Ori Kam

Re: [dpdk-dev] [PATCH v2 4/5] net/mlx5: add mlx5 APIs for single flow dump feature

2021-04-13 Thread Haifei Luo
HI Slava, Yes for "we define 36/72 bytes array?". Correction for my last comment, not byte , and it is one "int" for port_id , 8 "int" for flowptr. Sorry for the possible confusion. -----Original Message- From: Haifei Luo Sent: Tuesday, Ap

Re: [dpdk-dev] [PATCH v2 4/5] net/mlx5: add mlx5 APIs for single flow dump feature

2021-04-12 Thread Haifei Luo
es for flowptr. In DPDK, then we parse the message this way. For #2, I will move them to the beginning. -Original Message- From: Slava Ovsiienko Sent: Monday, April 12, 2021 3:38 PM To: Haifei Luo ; dev@dpdk.org Cc: Ori Kam ; Raslan Darawsheh ; Xueming(Steven) Li ; Haifei Luo

[dpdk-dev] [PATCH v2 5/5] doc: add single flow dump to guides

2021-04-06 Thread Haifei Luo
Add "Flow dump" in features/default.ini and features/mlx5.ini. Add testpmd CLI and API changes in release_notes. Signed-off-by: Haifei Luo --- doc/guides/nics/features/default.ini | 1 + doc/guides/nics/features/mlx5.ini | 1 + doc/guides/rel_notes/release_21_05.rst | 5

[dpdk-dev] [PATCH v2 3/5] common/mlx5: add mlx5 APIs for single flow dump feature

2021-04-06 Thread Haifei Luo
add mlx5 APIs for single flow dump feature Signed-off-by: Haifei Luo --- drivers/common/mlx5/linux/meson.build | 2 ++ drivers/common/mlx5/linux/mlx5_glue.c | 13 + drivers/common/mlx5/linux/mlx5_glue.h | 1 + drivers/common/mlx5/mlx5_devx_cmds.c

[dpdk-dev] [PATCH v2 4/5] net/mlx5: add mlx5 APIs for single flow dump feature

2021-04-06 Thread Haifei Luo
Modify API mlx5_flow_dev_dump to support the feature. Modify mlx5_socket since one extra arg flow_ptr is added. Signed-off-by: Haifei Luo --- drivers/net/mlx5/linux/mlx5_socket.c | 30 -- drivers/net/mlx5/mlx5_flow.c | 29 +++-- 2

[dpdk-dev] [PATCH v2 2/5] app/testpmd: add CLIs for single flow dump feature

2021-04-06 Thread Haifei Luo
Add support for single flow dump. The CLIs to dump one rule: flow dump PORT rule ID to dump all: flow dump PORT all Examples: testpmd> flow dump 0 all testpmd> flow dump 0 rule 0 Signed-off-by: Haifei Luo --- app/test-pmd/cmdline_flow.c | 55 +---

[dpdk-dev] [PATCH v2 1/5] ethdev: modify rte API for single flow dump

2021-04-06 Thread Haifei Luo
Previous implementations support dump all the flows. Add new arg rte_flow in rte_flow_dev_dump to dump one flow. Signed-off-by: Haifei Luo --- app/test-pmd/config.c| 2 +- doc/guides/nics/mlx5.rst | 9 ++--- doc/guides/prog_guide/rte_flow.rst | 24

[dpdk-dev] [PATCH v2 0/5] support single flow dump

2021-04-06 Thread Haifei Luo
dump 0 rule 0 For RTE API, add one arg rte_flow in rte_flow_dev_dump. Accordingly, add this arg in related dev_dump and driver APIs. Haifei Luo (5): ethdev: modify rte API for single flow dump app/testpmd: add CLIs for single flow dump feature common/mlx5: add mlx5 APIs for single flow dump f

[dpdk-dev] [PATCH] app/flow-perf: support meter policy API

2021-04-05 Thread Haifei Luo
nds-on: series=16037 ("Support meter policy API ") https://patchwork.dpdk.org/project/dpdk/list/?series=16037 Signed-off-by: Haifei Luo --- app/test-flow-perf/actions_gen.c | 6 ++- app/test-flow-perf/actions_gen.h | 3 +- app/test-flow-perf/config.h | 6 +-- app/test-flow-perf/flow_g

[dpdk-dev] [PATCH 4/4] net/mlx5: add mlx5 APIs for single flow dump feature

2021-03-09 Thread Haifei Luo
Add API mlx5_flow_dump_rule to support the feature. Modify mlx5_socket since one extra arg flow_ptr is added. Signed-off-by: Haifei Luo --- drivers/net/mlx5/linux/mlx5_socket.c | 27 ++--- drivers/net/mlx5/mlx5.h | 3 +++ drivers/net/mlx5/mlx5_flow.c

[dpdk-dev] [PATCH 3/4] common/mlx5: add mlx5 APIs for single flow dump feature

2021-03-09 Thread Haifei Luo
add mlx5 APIs for single flow dump feature Signed-off-by: Haifei Luo --- drivers/common/mlx5/linux/meson.build | 4 drivers/common/mlx5/linux/mlx5_glue.c | 13 + drivers/common/mlx5/linux/mlx5_glue.h | 1 + drivers/common/mlx5/mlx5_devx_cmds.c | 10 ++ drivers/common

[dpdk-dev] [PATCH 2/4] app/testpmd: add CLIs for single flow dump feature

2021-03-09 Thread Haifei Luo
Add support for single flow dump. The CLIs to dump one rule: flow dump PORT rule ID to dump all: flow dump PORT all Examples: testpmd> flow dump 0 all testpmd> flow dump 0 rule 0 Signed-off-by: Haifei Luo --- app/test-pmd/cmdline_flow.c | 55 +---

[dpdk-dev] [PATCH 1/4] ethdev: add rte API for single flow dump

2021-03-09 Thread Haifei Luo
Previous implementations support dump all the flows.Add new ones to dump one flow. New API added: rte_flow_dump. Signed-off-by: Haifei Luo --- doc/guides/nics/mlx5.rst| 10 +++-- doc/guides/prog_guide/rte_flow.rst | 44 + lib/librte_ethdev

[dpdk-dev] [PATCH 0/4] *** Support for one flow dump ***

2021-03-09 Thread Haifei Luo
so new APIs(rte_flow_dump,mlx5_flow_dump_rule, and etc) are added in rte and drivers to support it. Haifei Luo (4): ethdev: add rte API for single flow dump app/testpmd: add CLIs for single flow dump feature common/mlx5: add mlx5 APIs for single flow dump feature net/mlx5: add mlx5 APIs for