[PATCH] net/mlx5/hws: add support for NVGRE matching

2024-05-19 Thread Dong Zhou
Add HWS support for RTE_FLOW_ITEM_TYPE_NVGRE item all fields. Signed-off-by: Dong Zhou Acked-by: Alex Vesker --- doc/guides/nics/mlx5.rst | 10 +++ drivers/net/mlx5/hws/mlx5dr_definer.c | 87 +++ drivers/net/mlx5/hws/mlx5dr_definer.h | 3 + drivers/net

[PATCH v1 1/2] net/mlx5: add support for infiniband BTH match

2023-06-06 Thread Dong Zhou
This patch adds support to match opcode and dst_qp fields in infiniband BTH. Currently, only the RoCEv2 packet is supported, the input BTH match item is defaulted to match one RoCEv2 packet. Signed-off-by: Dong Zhou Acked-by: Ori Kam --- doc/guides/nics/features/mlx5.ini | 1 + doc/guides

[PATCH v1 2/2] net/mlx5/hws: add support for infiniband BTH match

2023-06-06 Thread Dong Zhou
This patch adds support to match opcode and dst_qp fields in infiniband BTH. Currently, only the RoCEv2 packet is supported, the input BTH match item is defaulted to match one RoCEv2 packet. Signed-off-by: Dong Zhou Acked-by: Alex Vesker --- drivers/net/mlx5/hws/mlx5dr_definer.c | 76

[PATCH v1 0/2] mlx5 supports InfiniBand BTH item match

2023-06-06 Thread Dong Zhou
mlx5 supports InfiniBand BTH item match by SWS and HWS. depends-on: http://patches.dpdk.org/project/dpdk/patch/20230531032653.3037946-1-dongz...@nvidia.com/ ("ethdev: add flow item for RoCE infiniband BTH") v1: - Update mlx5.ini and mlx5.rst doc in the first patch. Dong Zhou (2):

[PATCH 2/2] net/mlx5/hws: add support for infiniband BTH match

2023-06-01 Thread Dong Zhou
This patch adds support to match opcode and dst_qp fields in infiniband BTH. Currently, only the RoCEv2 packet is supported, the input BTH match item is defaulted to match one RoCEv2 packet. Signed-off-by: Dong Zhou Acked-by: Alex Vesker --- drivers/net/mlx5/hws/mlx5dr_definer.c | 76

[PATCH 1/2] net/mlx5: add support for infiniband BTH match

2023-06-01 Thread Dong Zhou
This patch adds support to match opcode and dst_qp fields in infiniband BTH. Currently, only the RoCEv2 packet is supported, the input BTH match item is defaulted to match one RoCEv2 packet. Signed-off-by: Dong Zhou Acked-by: Ori Kam --- drivers/common/mlx5/mlx5_prm.h | 5 +- drivers/net

[PATCH 0/2] mlx5 supports InfiniBand BTH item match

2023-06-01 Thread Dong Zhou
mlx5 supports InfiniBand BTH item match by SWS and HWS. depends-on: http://patches.dpdk.org/project/dpdk/patch/20230531032653.3037946-1-dongz...@nvidia.com/ ("ethdev: add flow item for RoCE infiniband BTH") Dong Zhou (2): net/mlx5: add support for infiniband BTH match net/mlx

[PATCH v6] ethdev: add flow item for RoCE infiniband BTH

2023-05-31 Thread Dong Zhou
ns queue index 0 / end Signed-off-by: Dong Zhou Acked-by: Ori Kam Acked-by: Andrew Rybchenko v2: - Change "ethernet" name to "Ethernet" in the commit log. - Add "RoCE" and "IB" 2 words to words-case.txt. - Add "rte_byteorder.h" header file in &qu

[PATCH v5] ethdev: add flow item for RoCE infiniband BTH

2023-05-30 Thread Dong Zhou
ns queue index 0 / end Signed-off-by: Dong Zhou Acked-by: Ori Kam Acked-by: Andrew Rybchenko v2: - Change "ethernet" name to "Ethernet" in the commit log. - Add "RoCE" and "IB" 2 words to words-case.txt. - Add "rte_byteorder.h" header file in &qu

RE: [PATCH v4] ethdev: add flow item for RoCE infiniband BTH

2023-05-30 Thread Dong Zhou
> -Original Message- > From: Ferruh Yigit > Sent: Wednesday, May 31, 2023 1:46 AM > To: Dong Zhou ; Ori Kam ; NBU- > Contact-Thomas Monjalon (EXTERNAL) ; Aman Singh > ; Yuying Zhang ; > Andrew Rybchenko ; Olivier Matz > > Cc: dev@dpdk.org > Subject: Re: [P

[PATCH v4] ethdev: add flow item for RoCE infiniband BTH

2023-05-29 Thread Dong Zhou
ns queue index 0 / end Signed-off-by: Dong Zhou Acked-by: Ori Kam Acked-by: Andrew Rybchenko v2: - Change "ethernet" name to "Ethernet" in the commit log. - Add "RoCE" and "IB" 2 words to words-case.txt. - Add "rte_byteorder.h" header file in &qu

[PATCH v3 3/3] net/mlx5/hws: add support for infiniband BTH match

2023-05-25 Thread Dong Zhou
This patch adds support to match opcode and dst_qp fields in infiniband BTH. Currently, only the RoCEv2 packet is supported, the input BTH match item is defaulted to match one RoCEv2 packet. Signed-off-by: Dong Zhou --- drivers/net/mlx5/hws/mlx5dr_definer.c | 76

[PATCH v3 2/3] net/mlx5: add support for infiniband BTH match

2023-05-25 Thread Dong Zhou
This patch adds support to match opcode and dst_qp fields in infiniband BTH. Currently, only the RoCEv2 packet is supported, the input BTH match item is defaulted to match one RoCEv2 packet. Signed-off-by: Dong Zhou Acked-by: Ori Kam --- drivers/common/mlx5/mlx5_prm.h | 5 +- drivers/net

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

2023-05-25 Thread Dong Zhou
ns queue index 0 / end Signed-off-by: Dong Zhou Acked-by: Ori Kam Acked-by: Andrew Rybchenko --- app/test-pmd/cmdline_flow.c | 58 + devtools/words-case.txt | 2 + doc/guides/nics/features/default.ini| 1 + doc/guides/prog_guide/rte_

[PATCH v3 0/3] add support for infiniband BTH match

2023-05-25 Thread Dong Zhou
compile errors. - Add "Acked-by" labels in the first ethdev patch. v3: - Do rebase to fix the patch apply failure. - Add "Acked-by" label in the second net/mlx5 patch. Dong Zhou (3): ethdev: add flow item for RoCE infiniband BTH net/mlx5: add support for infiniba

[PATCH v2 3/3] net/mlx5/hws: add support for infiniband BTH match

2023-05-24 Thread Dong Zhou
This patch adds support to match opcode and dst_qp fields in infiniband BTH. Currently, only the RoCEv2 packet is supported, the input BTH match item is defaulted to match one RoCEv2 packet. Signed-off-by: Dong Zhou --- drivers/net/mlx5/hws/mlx5dr_definer.c | 76

[PATCH v2 2/3] net/mlx5: add support for infiniband BTH match

2023-05-24 Thread Dong Zhou
This patch adds support to match opcode and dst_qp fields in infiniband BTH. Currently, only the RoCEv2 packet is supported, the input BTH match item is defaulted to match one RoCEv2 packet. Signed-off-by: Dong Zhou --- drivers/common/mlx5/mlx5_prm.h | 5 +- drivers/net/mlx5/mlx5_flow.h

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

2023-05-24 Thread Dong Zhou
ns queue index 0 / end Signed-off-by: Dong Zhou Acked-by: Ori Kam Acked-by: Andrew Rybchenko --- app/test-pmd/cmdline_flow.c | 58 + devtools/words-case.txt | 2 + doc/guides/nics/features/default.ini| 1 + doc/guides/prog_guide/rte_

[PATCH v2 0/3] add support for infiniband BTH match

2023-05-24 Thread Dong Zhou
compile errors. - Add "Acked-by" labels in the first ethdev patch. Dong Zhou (3): ethdev: add flow item for RoCE infiniband BTH net/mlx5: add support for infiniband BTH match net/mlx5/hws: add support for infiniband BTH match app/test-pmd/cmdline_flow.c | 58 ++

[PATCH v1 3/3] net/mlx5/hws: add support for infiniband BTH match

2023-05-11 Thread Dong Zhou
This patch adds support to match opcode and dst_qp fields in infiniband BTH. Currently, only the RoCEv2 packet is supported, the input BTH match item is defaulted to match one RoCEv2 packet. Signed-off-by: Dong Zhou --- drivers/net/mlx5/hws/mlx5dr_definer.c | 76

[PATCH v1 2/3] net/mlx5: add support for infiniband BTH match

2023-05-11 Thread Dong Zhou
This patch adds support to match opcode and dst_qp fields in infiniband BTH. Currently, only the RoCEv2 packet is supported, the input BTH match item is defaulted to match one RoCEv2 packet. Signed-off-by: Dong Zhou --- drivers/common/mlx5/mlx5_prm.h | 5 +- drivers/net/mlx5/mlx5_flow.h

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

2023-05-11 Thread Dong Zhou
ns queue index 0 / end Signed-off-by: Dong Zhou --- app/test-pmd/cmdline_flow.c | 58 ++ doc/guides/nics/features/default.ini| 1 + doc/guides/prog_guide/rte_flow.rst | 7 +++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ lib/ethdev/rt

[PATCH v1 0/3] add support for infiniband BTH match

2023-05-11 Thread Dong Zhou
Add new rte item to match the infiniband BTH in RoCE packets. Dong Zhou (3): ethdev: add flow item for RoCE infiniband BTH net/mlx5: add support for infiniband BTH match net/mlx5/hws: add support for infiniband BTH match app/test-pmd/cmdline_flow.c | 58 +++ doc

[RFC PATCH] ethdev: add flow item for RoCE infiniband BTH

2023-03-23 Thread dong zhou
From: Dong Zhou IB(InfiniBand) is one type of networking used in high-performance computing with high throughput and low latency. Like Ethernet, IB defines a layered protocol (Physical, Link, Network, Transport Layers). IB provides native support for RDMA(Remote DMA), an extension of the DMA

[PATCH] net/mlx5: fix thread workspace memory leak

2022-10-13 Thread Dong Zhou
Cc: sta...@dpdk.org Signed-off-by: Dong Zhou Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index e4744b0..6fb1d53 100644 --- a/drivers/net/mlx5/mlx5_flow

[dpdk-dev] [PATCH] net/mlx5: add check for pop and push VLAN actions

2021-07-22 Thread Dong Zhou
For CX6 in FDB domain, pop and push VLAN on both ingress and egress directions are supported. For CX6 in NIC domain, and CX5 in both FWD add NIC domain, pop VLAN is only supported on ingress direction, push VLAN is only supported on egress direction. Signed-off-by: Dong Zhou Acked-by: Matan

[dpdk-dev] [PATCH] doc: update push/pop VLAN support in mlx5 guide

2021-04-01 Thread Dong Zhou
Updates the documentation for push/pop VLAN support. In E-Switch mode, push VLAN on ingress traffic and pop VLAN in egress traffic are both support. Signed-off-by: Dong Zhou --- doc/guides/nics/mlx5.rst | 12 ++-- doc/guides/rel_notes/release_21_05.rst | 6 ++ 2 files

[dpdk-dev] [PATCH v2 1/2] app/flow-perf: split calculation and output used cpu time

2021-01-18 Thread Dong Zhou
The app will calculate and output used cpu time for rte flows insertion rate. It's also need for some new insertion items, such as meter. It's better to split this calculation and output part to a single function, so that all new insertion items can use it. Signed-off-by: Dong Zhou R

[dpdk-dev] [PATCH v2 2/2] app/flow-perf: support meter action

2021-01-18 Thread Dong Zhou
Currently, test-flow-perf app cannot generate flows with meter action. This patch introduces new parameter "--meter" to generate flows with meter action. Signed-off-by: Dong Zhou Reviewed-by: Wisam Jaddo Reviewed-by: Alexander Kozyrev --- app/test-flow-perf/actions_gen.c | 19

[dpdk-dev] [PATCH v2 0/2] app/flow-perf: support meter action

2021-01-18 Thread Dong Zhou
This patch introduces new parameter "--meter" to generate flows with meter action in test-flow-perf application. V2: Divide this patch to 2 patches, one includes the split calculation and output used cpu time for all insertion items, another includes the support for meter action. Do

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

2021-01-13 Thread Dong Zhou
Currently, test-flow-perf app cannot generate flows with meter action. This patch introduces new parameter "--meter" to generate flows with meter action. Signed-off-by: Dong Zhou Reviewed-by: Wisam Jaddo --- app/test-flow-perf/actions_gen.c | 19 ++ app/test-flow-perf/config.h

[dpdk-dev] [PATCH v2] net/mlx5: enlarge maximal flow priority value

2021-01-11 Thread Dong Zhou
nd L4. The internal priority is 16 bits, user can use priorities from 0 - 21843. Those enlarged flow priorities are only used for ingress or egress flow groups greater than 0 and for any transfer flow group. Signed-off-by: Dong Zhou Acked-by: Matan Azrad --- v2: * fix coding style issues, 'p

[dpdk-dev] [PATCH] net/mlx5: enlarge maximal flow priority value

2021-01-08 Thread Dong Zhou
nd L4. The internal priority is 16 bits, user can use priorities from 0 - 21843. Those enlarged flow priorities are only used for ingress or egress flow groups greater than 0 and for any transfer flow group. Signed-off-by: Dong Zhou Acked-by: Matan Azrad --- doc/guides/nics/mlx5.rst

[dpdk-dev] [RFC] net/mlx5: enlarge maximum flow priority

2020-12-14 Thread Dong Zhou
len. This RFC introduces new priority mode by using devargs "flow_priority_mode=0", the maximum priority to user can reach 16K. User can specify the priority of flow that PMD will not adjust it. Signed-off-by: Dong Zhou --- drivers/net/mlx5/mlx5.c| 6 drivers/net/m

Re: [dpdk-dev] [PATCH v2 0/2] pdump: cleanups

2020-06-11 Thread Dong Zhou
> -Original Message- > From: dev On Behalf Of Stephen Hemminger > Sent: Friday, November 8, 2019 4:47 PM > To: dev@dpdk.org > Cc: Stephen Hemminger > Subject: [dpdk-dev] [PATCH v2 0/2] pdump: cleanups > > These are a couple of small cleanups for 19.10 which came out of work on > pcapng s

Re: [dpdk-dev] [PATCH v4 1/3] librte_ethdev: add RSS offload types for ESP and AH

2020-04-16 Thread Dong Zhou
> -Original Message- > From: Iremonger, Bernard > Sent: Wednesday, April 15, 2020 7:14 PM > To: dev@dpdk.org; Xing, Beilei ; Zhang, Qi Z > ; Doherty, Declan > Cc: Ananyev, Konstantin ; Iremonger, > Bernard > Subject: [PATCH v4 1/3] librte_ethdev: add RSS offload types for ESP and AH >

[dpdk-dev] [PATCH v2] ethdev: support flow aging

2020-04-14 Thread Dong Zhou
e_flow API: rte_flow_get_aged_flows to get the aged-out flows contexts from the port. - Support input flow aging command line in Testpmd. Signed-off-by: Dong Zhou --- app/test-pmd/cmdline_flow.c | 26 ++ doc/guides/prog_guide/rte_flow.rst | 22 + doc/guides/rel_notes/rel

[dpdk-dev] [PATCH 2/2] net/mlx5: support flow aging

2020-04-13 Thread Dong Zhou
this API to get aged flows. Signed-off-by: Dong Zhou --- doc/guides/rel_notes/release_20_05.rst | 1 + drivers/net/mlx5/mlx5.c| 30 ++- drivers/net/mlx5/mlx5.h| 46 +++- drivers/net/mlx5/mlx5_flow.c | 147 ++- drivers/net/mlx5/mlx5_f

[dpdk-dev] [PATCH 1/2] net/mlx5: modify ext-counter memory allocation

2020-04-13 Thread Dong Zhou
o get each type memory by using offsetting. Signed-off-by: Dong Zhou --- drivers/net/mlx5/mlx5.c| 4 ++-- drivers/net/mlx5/mlx5.h| 21 - drivers/net/mlx5/mlx5_flow_dv.c| 27 +++ drivers/net/mlx5/mlx5_flow_verbs.c | 16

[dpdk-dev] [PATCH 0/2] support flow aging

2020-04-13 Thread Dong Zhou
m for mlx5 driver. Dong Zhou (2): net/mlx5: modify ext-counter memory allocation net/mlx5: support flow aging doc/guides/rel_notes/release_20_05.rst | 1 + drivers/net/mlx5/mlx5.c| 34 ++- drivers/net/mlx5/mlx5.h| 59 - drivers/net/mlx5/mlx5_f