[PATCH] net/mlx5: fix wrong decap action checking in sample flow

2023-10-10 Thread Jiawei Wang
This patch uses the temp variable to check the current action type, to avoid overlap the sample action following the decap. Fixes: 7356aec64c48 ("net/mlx5: fix mirror flow split with L3 encapsulation") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Suanming Mou --- driver

[PATCH] net/mlx5: support no host PF configuration

2023-10-10 Thread Jiawei Wang
, and it's possible that PF1 device scan results in no switch ports. This patch supports the new configuration by allowing a PF scan with empty switch ports. Signed-off-by: Xueming Li Signed-off-by: Jiawei Wang --- drivers/net/mlx5/linux/mlx5_os.c | 7 --- 1 file changed, 7 dele

[PATCH] net/mlx5: fix the E-Switch mirror flow rule validation

2023-10-10 Thread Jiawei Wang
("net/mlx5: support E-Switch mirroring and jump in one flow") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang --- doc/guides/nics/mlx5.rst| 5 ++ drivers/net/mlx5/mlx5_flow_dv.c | 93 + 2 files changed, 76 insertions(+), 22 deletions(-) diff -

[PATCH] net/mlx5: fix device checking for send to kernel action

2023-10-25 Thread Jiawei Wang
creating action at the VF/SF ports on the FDB table. Fixes: b2cd39187cd4 ("net/mlx5: extend send to kernel action support") Signed-off-by: Jiawei Wang Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow_hw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/mlx5/mlx5

[PATCH] doc: update sample action description for mlx5

2022-10-14 Thread Jiawei Wang
This patch adds mlx5 description about E-Switch mirroring flow (RTE_FLOW_ACTION_TYPE_SAMPLE with sample ratio=1) with encap action, then supports the uplink port only in the sample actions list or in the one flow. Signed-off-by: Jiawei Wang --- doc/guides/nics/mlx5.rst | 2 ++ 1 file changed, 2

[PATCH] net/mlx5: fix tunnel header with IPIP offload

2022-10-20 Thread Jiawei Wang
set the layer attributes correctly. This patch reverts the below code changes to support the match, and adjusts the layers update in case of decap with outer tunnel header. Fixes: fa06906a48ee ("net/mlx5: fix IPIP multi-tunnel validation") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang

[PATCH 0/2] net/mlx5: fix some sample/mirror issues

2022-11-02 Thread Jiawei Wang
Some fixes for sample/mirror issues. Jiawei Wang (2): net/mlx5: fix flow source port checking in sample flow rule net/mlx5: fix mirror flow validation with ASO action drivers/net/mlx5/mlx5_flow.c| 55 +--- drivers/net/mlx5/mlx5_flow.h| 19 ++ drivers/net/mlx5

[PATCH 1/2] net/mlx5: fix flow source port checking in sample flow rule

2022-11-02 Thread Jiawei Wang
ation. Fixes: 04c0d3f20f54 ("net/mlx5: fix port matching in sample flow rule") Fixes: 255b8f86eb6e ("net/mlx5: fix E-Switch egress mirror flow validation") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/net

[PATCH 2/2] net/mlx5: fix mirror flow validation with ASO action

2022-11-02 Thread Jiawei Wang
("net/mlx5: support flow hit action for aging") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 53 - 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/drivers/net/mlx5/mlx5_f

[PATCH 0/2] add new mhpsdp hw port in the flow item and Tx queue API

2023-01-28 Thread Jiawei Wang
. RFC: http://patches.dpdk.org/project/dpdk/cover/20221221102934.13822-1-jiaw...@nvidia.com/ Jiawei Wang (2): ethdev: add mhpsdp hardware port match item ethdev: introduce the mhpsdp hwport field in Tx queue API app/test-pmd/cmdline.c | 84 + app/test

[PATCH 1/2] ethdev: add mhpsdp hardware port match item

2023-01-28 Thread Jiawei Wang
mhpsdp_hw_port hwport is 1 / end actions queue index 0 / end The above command means that creates a flow on a single DPDK port and matches the packet from the first physical port (the hwport 1 stands for the first port) and redirects these packets into RxQ 0. Signed-off-by: Jiawei Wang --- app

[PATCH 2/2] ethdev: introduce the mhpsdp hwport field in Tx queue API

2023-01-28 Thread Jiawei Wang
0 txq 3 mhpsdp_hwport 2 These commands config the TxQ index 0 and TxQ index 1 with mhpsdp_hwport 1, uses TxQ 0 or TxQ 1 send packets, these packets will be sent from the hardware port 0, and similar with hardware port 1 if sending packets with TxQ 2 or TxQ 3. Signed-off-by: Jiawei Wang --- app/

[PATCH v2 2/2] ethdev: introduce the PHY affinity field in Tx queue API

2023-01-30 Thread Jiawei Wang
finity 2 These commands config the TxQ index 0 and TxQ index 1 with phy affinity 1, uses TxQ 0 or TxQ 1 send packets, these packets will be sent from the hardware port 0, and similar with hardware port 1 if sending packets with TxQ 2 or TxQ 3. Signed-off-by: Jiawei Wang --- app/test-pmd/c

[PATCH v2 0/2] add new PHY affinity in the flow item and Tx queue API

2023-01-30 Thread Jiawei Wang
port with received. RFC: http://patches.dpdk.org/project/dpdk/cover/20221221102934.13822-1-jiaw...@nvidia.com/ The PMD patch will be sent soon. Jiawei Wang (2): ethdev: add PHY affinity match item ethdev: introduce the PHY affinity field in Tx queue API app/test-pmd/cmdline.c

[PATCH v2 1/2] ethdev: add PHY affinity match item

2023-01-30 Thread Jiawei Wang
-off-by: Jiawei Wang --- app/test-pmd/cmdline_flow.c | 29 + doc/guides/prog_guide/rte_flow.rst | 8 ++ doc/guides/rel_notes/release_23_03.rst | 5 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 4 +++ lib/ethdev/rte_flow.c

[PATCH v3 0/2] add new PHY affinity in the flow item and Tx queue API

2023-02-02 Thread Jiawei Wang
PHY affinity and numbering definition * Add the number of physical ports into device info * Change the patch order v2: Update based on the comments Jiawei Wang (2): ethdev: introduce the PHY affinity field in Tx queue API ethdev: add PHY affinity match item app/test-pmd/cmdline.c

[PATCH v3 1/2] ethdev: introduce the PHY affinity field in Tx queue API

2023-02-02 Thread Jiawei Wang
port config 0 txq 3 phy_affinity 2 These commands config the TxQ index 0 and TxQ index 1 with phy affinity 1, uses TxQ 0 or TxQ 1 send packets, these packets will be sent from the hardware port 0, and similar with hardware port 1 if sending packets with TxQ 2 or TxQ 3. Signed-off-by: Jiawei Wang

[PATCH v3 2/2] ethdev: add PHY affinity match item

2023-02-02 Thread Jiawei Wang
the first port) and redirects these packets into RxQ 0. Signed-off-by: Jiawei Wang Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 29 ++ doc/guides/prog_guide/rte_flow.rst | 8 + doc/guides/rel_notes/release_23_03.rst | 6 doc/guides

[PATCH 0/3] add new PHY affinity support in MLX5 PMD

2023-02-02 Thread Jiawei Wang
This patch series implement PHY affinity item support in MLX5 PMD and the support for TIS creation with tx_phy_affinity value of Tx queue. This patch series relies on the preceding ethdev API: http://patches.dpdk.org/project/dpdk/patch/20230203050717.46914-2-jiaw...@nvidia.com/ Jiawei Wang (3

[PATCH 1/3] drivers: add lag Rx port affinity in PRM

2023-02-02 Thread Jiawei Wang
This patch adds function to query hca capability via Devx for lag_rx_port_affinity. Signed-off-by: Jiawei Wang --- drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++ drivers/common/mlx5/mlx5_devx_cmds.h | 1 + drivers/common/mlx5/mlx5_prm.h | 7 +-- drivers/net/mlx5/linux/mlx5_os.c | 4

[PATCH 2/3] net/mlx5: add PHY affinity item support

2023-02-02 Thread Jiawei Wang
This patch adds the new phy affinity item support in PMD: RTE_FLOW_ITEM_TYPE_PHY_AFFINITY. This patch adds the validation function for the new item, it works for NIC-RX and FDB rule on ROOT-table only. Signed-off-by: Jiawei Wang --- doc/guides/nics/features/default.ini | 1 + doc/guides/nics

[PATCH 3/3] drivers: enhance the Tx queue affinity

2023-02-02 Thread Jiawei Wang
reserved for default HWS hash mode. Signed-off-by: Jiawei Wang --- drivers/common/mlx5/mlx5_prm.h | 8 --- drivers/net/mlx5/mlx5.c| 43 +++--- drivers/net/mlx5/mlx5_devx.c | 24 ++- drivers/net/mlx5/mlx5_ethdev.c | 1 + drivers/net/mlx5

[PATCH v4 0/2] add new PHY affinity in the flow item and Tx queue API

2023-02-03 Thread Jiawei Wang
commit log to make clear v3: * Update exception rule * Update the commit log * Add the description for PHY affinity and numbering definition * Add the number of physical ports into device info * Change the patch order v2: Update based on the comments Jiawei Wang (2): ethdev: introduce the PHY

[PATCH v4 1/2] ethdev: introduce the PHY affinity field in Tx queue API

2023-02-03 Thread Jiawei Wang
e second physical port if sending packets with Tx Queue 2 or Tx Queue 3. Signed-off-by: Jiawei Wang --- app/test-pmd/cmdline.c | 100 app/test-pmd/config.c | 1 + devtools/libabigail.abignore| 5 + doc/guides/r

[PATCH v4 2/2] ethdev: add PHY affinity match item

2023-02-03 Thread Jiawei Wang
first physical port and redirects these packets into Rx queue 0. Signed-off-by: Jiawei Wang Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 28 + doc/guides/prog_guide/rte_flow.rst | 8 + doc/guides/rel_notes/release_23_03.rst | 1 + doc/guides

[PATCH 0/3] net/mlx5: extend send to kernel action support

2023-09-08 Thread Jiawei Wang
packets into the kernel through the FDB table. This patchset adds the FDB and NIC-TX tables support for sending to the kernel action, also updates the documentation. [1] https://patchwork.dpdk.org/project/dpdk/list/?series=25318 Jiawei Wang (3): net/mlx5: extend send to kernel action support

[PATCH 1/3] net/mlx5: extend send to kernel action support

2023-09-08 Thread Jiawei Wang
packets into the kernel through the FDB table. This patch adds the FDB and NIC-TX tables support for sending to the kernel action. Signed-off-by: Jiawei Wang --- drivers/net/mlx5/linux/mlx5_os.c | 25 +++-- drivers/net/mlx5/mlx5.h | 4 +++- drivers/net/mlx5/mlx5_flow.h

[PATCH 2/3] net/mlx5: extend hws send to kernel action support

2023-09-08 Thread Jiawei Wang
The hws send to kernel action was supported in NIC and FDB tables, Currently, the send to kernel action is created in NIC RX only. This patch adds the FDB and NIC-TX tables support for sending to the kernel action for HWS. Signed-off-by: Jiawei Wang --- drivers/net/mlx5/mlx5.h | 2

[PATCH 3/3] doc: adds the description for send to kernel

2023-09-08 Thread Jiawei Wang
This patch adds the description for send to kernel action support. Signed-off-by: Jiawei Wang Acked-by: Ori Kam --- doc/guides/nics/mlx5.rst | 7 +++ doc/guides/prog_guide/rte_flow.rst | 9 + lib/ethdev/rte_flow.h | 1 - 3 files changed, 16 insertions(+), 1

[PATCH] net/mlx5: adds the checking for Tx queue affinity

2023-09-21 Thread Jiawei Wang
MLX5 PMD updates the TIS index based on the tx queue affinity, and creates the DevX SQ object with updated the TIS index. This patch adds the checking that set the affinity per Tx Queue if HW objects can be created by DevX. Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers

[dpdk-dev] [PATCH v9 0/2] Support meter policy API

2021-04-19 Thread Jiawei Wang
Currently, the flow meter policy does not support multiple actions per color; also the allowed action types per color are very limited. In addition, the policy cannot be pre-defined. Due to the growing in flow actions offload abilities there is a potential for the user to use variety of actions pe

[dpdk-dev] [PATCH v9 2/2] app/testpmd: support policy actions per color

2021-04-19 Thread Jiawei Wang
From: Haifei Luo Add the create/del policy CLIs to support actions per color. The CLIs are: Create: add port meter policy (port_id) (policy_id) g_actions (actions) y_actions (actions) r_actions (actions) Delete: del port meter policy (port_id) (policy_id) Examples: testpmd> add port meter poli

[dpdk-dev] [PATCH v9 1/2] ethdev: add pre-defined meter policy API

2021-04-19 Thread Jiawei Wang
policy API. Signed-off-by: Li Zhang Signed-off-by: Haifei Luo Signed-off-by: Jiawei Wang Acked-by: Matan Azrad Acked-by: Ray Kinsella Acked-by: Ori Kam Acked-by: Jasvinder Singh --- app/test-flow-perf/main.c | 7 - app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v6 05/15] net/mlx5: use mask for meter register setting

2021-04-20 Thread Jiawei Wang
From: Shun Hao ASO (Advanced Steering Operation) meter feature may require to locate the flow context tag action after the ASO action. When color register is shared by meter_id/flow_id, it's like: Bits[0-7] A meter color value set by the HW. Bits[8-31] A flow id and meter id set by SW. Currently

[dpdk-dev] [PATCH v6 00/15] Add ASO meter support in MLX5 PMD

2021-04-20 Thread Jiawei Wang
5 PMD driver will be responsible for ASO flow meter manage to HW. V2: Fix compile error issue (mlx5_glue->destroy_flow_action) V3: Fix comments. V4: Fix comments and add Acked. V5: Fix unused log_obj_size issue. V6: Fix comments and update release notes. Jiawei Wang (1): doc: update release n

[dpdk-dev] [PATCH v6 01/15] net/mlx5: support three level table walk

2021-04-20 Thread Jiawei Wang
From: Suanming Mou This commit adds table entry walk for the three level table. Signed-off-by: Suanming Mou Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_utils.h | 90 +++ 1 file changed, 90 insertions(+) diff --git a/drivers/net/mlx5/mlx5_utils.h b/

[dpdk-dev] [PATCH v6 06/15] common/mlx5: add definitions for ASO flow meter

2021-04-20 Thread Jiawei Wang
From: Li Zhang This patch adds different PRM definitions, related to ASO (Advanced Steering Operation) flow meter feature, in MLX5 PMD code. Signed-off-by: Li Zhang Acked-by: Matan Azrad --- drivers/common/mlx5/mlx5_prm.h | 75 +++--- 1 file changed, 71 ins

[dpdk-dev] [PATCH v6 02/15] common/mlx5: add color register idle bits definition

2021-04-20 Thread Jiawei Wang
From: Shun Hao 8 bits are used for meter color in meter register. When the meter register can be shared, the rest 24 bits can be used by others. This adds the definination for the 24 bits that can be shared. Signed-off-by: Shun Hao Acked-by: Matan Azrad --- drivers/common/mlx5/mlx5_prm.h | 6

[dpdk-dev] [PATCH v6 07/15] common/mlx5: add read ASO flow meter HCA capability

2021-04-20 Thread Jiawei Wang
From: Li Zhang Read and store the device capability of FLOW_METER_ASO general object, using the DevX API. Signed-off-by: Li Zhang Acked-by: Matan Azrad --- drivers/common/mlx5/mlx5_devx_cmds.c | 14 ++ drivers/common/mlx5/mlx5_devx_cmds.h | 8 2 files changed, 22 inserti

[dpdk-dev] [PATCH v6 08/15] common/mlx5: add DevX API to create ASO flow meter object

2021-04-20 Thread Jiawei Wang
From: Li Zhang Add DevX API to create ASO flow meter object. Signed-off-by: Li Zhang Acked-by: Matan Azrad --- drivers/common/mlx5/mlx5_devx_cmds.c | 54 drivers/common/mlx5/mlx5_devx_cmds.h | 18 +++- drivers/common/mlx5/version.map | 1 + 3

[dpdk-dev] [PATCH v6 03/15] net/mlx5: fix meter statistics

2021-04-20 Thread Jiawei Wang
From: Shun Hao Currently, packets after meter will be steered to a global policer table, which includes green/red color rules for every meter, so as to have counter statistics of each color in every meter. There's a bug that all the rules in global policer table are matching only color criteria,

[dpdk-dev] [PATCH v6 09/15] net/mlx5: flow meter pool to manage meter object

2021-04-20 Thread Jiawei Wang
From: Li Zhang Add ASO flow meter pool to manage meter object Signed-off-by: Li Zhang Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5.c| 2 +- drivers/net/mlx5/mlx5.h| 207 - drivers/net/mlx5/mlx5_flow.c | 70 -- drivers/net/mlx5/mlx5_flow.

[dpdk-dev] [PATCH v6 13/15] net/mlx5: make ASO meter queue thread-safe

2021-04-20 Thread Jiawei Wang
From: Li Zhang Synchronize ASO meter queue accesses from different threads using a spinlock. Signed-off-by: Li Zhang Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_flow_aso.c | 16 +--- 2 files changed, 14 insertions(+), 3 deletions(-) di

[dpdk-dev] [PATCH v6 14/15] net/mlx5: allow multiple flow tables on the same level

2021-04-20 Thread Jiawei Wang
From: Li Zhang The driver devices support creation of multiple flow tables. Jump action can be used in order to move the packet steering to different flow table. Table 0 is always the root table for packet steering. Jumping between tables may cause endless loops in steering mechanism, that's why

[dpdk-dev] [PATCH v6 11/15] net/mlx5: add meter ASO queue management

2021-04-20 Thread Jiawei Wang
From: Li Zhang This patch adds the ASO queue management for flow meter, includes send WQE and CQE handle functions. Signed-off-by: Li Zhang Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5.h| 4 + drivers/net/mlx5/mlx5_flow_aso.c | 183 - dri

[dpdk-dev] [PATCH v6 10/15] net/mlx5: initialize the flow meter ASO SQ

2021-04-20 Thread Jiawei Wang
From: Li Zhang Initialize the flow meter ASO SQ WQEs with all the constant data that should not be updated per enqueue operation. Signed-off-by: Li Zhang Acked-by: Matan Azrad --- drivers/net/mlx5/linux/mlx5_os.c | 16 + drivers/net/mlx5/meson.build | 2 +- drivers/net/mlx5/mlx5.c

[dpdk-dev] [PATCH v6 12/15] net/mlx5: add support of ASO meter action

2021-04-20 Thread Jiawei Wang
From: Li Zhang When ASO action is available, use it as the meter action Signed-off-by: Shun Hao Signed-off-by: Li Zhang Acked-by: Matan Azrad --- drivers/net/mlx5/linux/mlx5_os.c | 4 +- drivers/net/mlx5/mlx5.c| 12 + drivers/net/mlx5/mlx5.h| 7 +-- drivers/ne

[dpdk-dev] [PATCH v6 15/15] doc: update release notes for ASO meter

2021-04-20 Thread Jiawei Wang
This patches updates the release notes for ASO meter supports. MLX5 PMD can scale the meter usage from 4K to millions with this feature. Signed-off-by: Jiawei Wang --- doc/guides/rel_notes/release_21_05.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/release_21_05

[dpdk-dev] [PATCH v10 0/2] Support meter policy API

2021-04-20 Thread Jiawei Wang
Currently, the flow meter policy does not support multiple actions per color; also the allowed action types per color are very limited. In addition, the policy cannot be pre-defined. Due to the growing in flow actions offload abilities there is a potential for the user to use variety of actions pe

[dpdk-dev] [PATCH v10 2/2] app/testpmd: support policy actions per color

2021-04-20 Thread Jiawei Wang
From: Haifei Luo Add the create/del policy CLIs to support actions per color. The CLIs are: Create: add port meter policy (port_id) (policy_id) g_actions (actions) y_actions (actions) r_actions (actions) Delete: del port meter policy (port_id) (policy_id) Examples: testpmd> add port meter poli

[dpdk-dev] [PATCH v10 1/2] ethdev: add pre-defined meter policy API

2021-04-20 Thread Jiawei Wang
policy API. Signed-off-by: Li Zhang Signed-off-by: Haifei Luo Signed-off-by: Jiawei Wang Acked-by: Matan Azrad Acked-by: Ray Kinsella Acked-by: Ori Kam Acked-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- app/test-flow-perf/main.c | 7 - app/test-pmd

[dpdk-dev] [PATCH] net/mlx5: fix the modify field action flag checking

2021-06-28 Thread Jiawei Wang
flags checking into the correct MODIFY_HDR_ACTIONS set. Fixes: 641dbe4fb053 ("net/mlx5: support modify field flow action") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[dpdk-dev] [PATCH] net/mlx5: fix the wrong representor ID checking for sample

2021-06-29 Thread Jiawei Wang
.@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Xueming Li --- drivers/net/mlx5/mlx5.h | 2 +- drivers/net/mlx5/mlx5_flow.c| 4 ++-- drivers/net/mlx5/mlx5_flow_dv.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/ml

[dpdk-dev] [PATCH v2 0/2] control rules with identical pattern behavior

2021-07-05 Thread Jiawei Wang
cted. The default is to allow. Set it to 0 if disallow, for example: -a ,allow_duplicate_pattern=0 Jiawei Wang (2): common/mlx5: add glue function for duplicate rule ability net/mlx5: control rules with identical pattern behavior doc/guides/nics/mlx5.rst | 14 +

[dpdk-dev] [PATCH v2 1/2] common/mlx5: add glue function for duplicate rule ability

2021-07-05 Thread Jiawei Wang
Add glue function to update the duplicate rule allow/disallow through rdma-core DV API. Signed-off-by: Jiawei Wang Acked-by: Matan Azrad --- drivers/common/mlx5/linux/meson.build | 2 ++ drivers/common/mlx5/linux/mlx5_glue.c | 12 drivers/common/mlx5/linux/mlx5_glue.h | 1 + 3

[dpdk-dev] [PATCH v2 2/2] net/mlx5: control rules with identical pattern behavior

2021-07-05 Thread Jiawei Wang
cted. The default is to allow. Set it to 0 if disallow, for example: -a ,allow_duplicate_pattern=0 Signed-off-by: Jiawei Wang Acked-by: Matan Azrad --- doc/guides/nics/mlx5.rst | 14 ++ doc/guides/rel_notes/release_21_08.rst | 6 ++ drivers/net/mlx5/linux

[PATCH] net/mlx5: fix NVGRE item validation for template API

2024-07-25 Thread Jiawei Wang
The template API NVGRE item can support full mask. This patch updates default NVGRE item mask for the template API. Fixes: 80c676259a04 ("net/mlx5: validate HWS template items") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Bing Zhao --- drivers/net/mlx5/mlx5_f

[PATCH] doc: add IP ECN header rewrite to mlx5 notes

2022-07-11 Thread Jiawei Wang
CN field") Signed-off-by: Jiawei Wang Acked-by: Asaf Penso --- doc/guides/nics/mlx5.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index a7f9851d16..eb16669b3f 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nic

[dpdk-dev] [PATCH v2] doc: add sampling and mirroring in testpmd guide

2021-03-31 Thread Jiawei Wang
Update documentation for sample action usage in testpmd and show the command line example. Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- v2: * Update the description. --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 63 + 1 file changed, 63

[dpdk-dev] [PATCH v3] doc: add sampling and mirroring in testpmd guide

2021-03-31 Thread Jiawei Wang
Update documentation for sample action usage in testpmd and show the command line example. Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- v3: * Update the description for sampling. v2: * Update the description. --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 52

[dpdk-dev] [PATCH] net/mlx5: fix resource release issue for mirror flow

2021-04-09 Thread Jiawei Wang
ned-off-by: Jiawei Wang Reviewed-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow_dv.c | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 1818895..883fe2e 100644 --- a/driver

[dpdk-dev] [PATCH] net/mlx5: fix VLAN/DECAP actions not work in mirror flow

2021-04-09 Thread Jiawei Wang
gress mirror flow validation") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang --- drivers/net/mlx5/mlx5_flow.c| 8 drivers/net/mlx5/mlx5_flow_dv.c | 15 +++ 2 files changed, 23 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c ind

[dpdk-dev] [PATCH v3] net/mlx5: optimize the device spawn time with representors

2021-10-27 Thread Jiawei Wang
register support check can be done only ones and check results can be shared for all representors. Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- v3: Rebase v2: Fix the CI warning --- drivers/net/mlx5/linux/mlx5_os.c | 33 +- drivers/net/mlx5/mlx5.h

[dpdk-dev] [PATCH] net/mlx5: fix mirror flow split with L3 encapsulation

2021-07-23 Thread Jiawei Wang
mirror") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index a3fdce685e..3200a

[dpdk-dev] [PATCH v2] net/mlx5: fix mirror flow split with L3 encapsulation

2021-07-26 Thread Jiawei Wang
commit. The patch checks whether the decap action is part of "L3 encapsulation" and does not move the decap action into suffix subflow for the case. Fixes: cafd87f62a06 ("net/mlx5: fix VLAN push/pop and decap actions with mirror") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang A

[dpdk-dev] [PATCH 2/2] doc: update the offload information for Metering Hierarchy

2021-08-03 Thread Jiawei Wang
Updates the Minimal SW and HW Version offload support information for Metering hierarchy. Signed-off-by: Jiawei Wang --- doc/guides/nics/mlx5.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index 42559cf261..b6b8ecb3a0 100644

[dpdk-dev] [PATCH 1/2] doc: update the offload information for ASO Metering

2021-08-03 Thread Jiawei Wang
Updates the Minimal SW and HW Version offload support information for ASO metering. Signed-off-by: Jiawei Wang --- doc/guides/nics/mlx5.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index 3e9c736cae..42559cf261 100644 --- a/doc

[PATCH v3] net/mlx5: fix the NIC egress flow mismatch in switchdev mode

2021-11-12 Thread Jiawei Wang
TX_QUEUE items in order to not impact hairpins. Fixes: ce777b147bf8 ("net/mlx5: fix E-Switch flow without port item") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- v3: update the tx_item checking v2: fix one typo --- doc/guides/nics/mlx5.rst

[PATCH 1/2] net/mlx5: fix metadata and meter split shared tag

2021-11-19 Thread Jiawei Wang
tag is used. Fixes: 8d72fa668964 ("net/mlx5: share tag between meter and metadata") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow.c | 35 +-- 1 file changed, 17 insertions(+), 18 deletion

[PATCH 2/2] net/mlx5: fix the mismatch metadata flow with meter action

2021-11-19 Thread Jiawei Wang
("net/mlx5: connect meter policy to created flows") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index

[PATCH] net/mlx5: fix flow mark value missing on combination split

2021-11-22 Thread Jiawei Wang
the following meter subflows handle the flow mark correctly. Fixes: 9ade91dfe85d ("net/mlx5: fix group value of sample suffix flow") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow.c | 5 ++--- drivers/net/mlx5/mlx5_

[dpdk-dev] [PATCH] app/testpmd: fix the sample RSS issue

2021-01-25 Thread Jiawei Wang
stpmd: support RSS in sample action") Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline_flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 0618611..64c0e0f 100644 --- a/ap

[dpdk-dev] [PATCH 2/2] net/mlx5: use global default miss for E-Switch sampling

2021-01-26 Thread Jiawei Wang
In E-Switch steering domain there was dedicated default miss action created for every sampling flow. The patch replaces this one with the global default miss action. Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow.h| 1

[dpdk-dev] [PATCH 0/2] net/mlx5: use global default miss for E-Switch sampling

2021-01-26 Thread Jiawei Wang
This patchset fixes the E-Switch sampling flow creation issue, and also uses the global default miss for each E-Switch sampling flow. Jiawei Wang (2): net/mlx5: fix the E-Switch sample action creation failure net/mlx5: use global default miss for E-Switch sampling drivers/net/mlx5

[dpdk-dev] [PATCH 1/2] net/mlx5: fix the E-Switch sample action creation failure

2021-01-26 Thread Jiawei Wang
This patch fixes the incorrect checking for the return value of default miss action creation. Fixes: 14020ad53d4e ("net/mlx5: wrap default miss flow action per OS") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 2

[dpdk-dev] [PATCH] net/mlx5: fix count actions query in sample flow

2021-01-26 Thread Jiawei Wang
the checking to make sure only one count be created once per flow, it's used for all sample sub flows. Fixes: 0756228b2704 ("net/mlx5: update translate function for sample action") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/net/m

[dpdk-dev] [PATCH] net/mlx5: fix validation for counter and age

2021-02-02 Thread Jiawei Wang
Fixes: e7138997e07d ("net/mlx5: make shared counters thread safe") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_flow_dv.c | 55 - 1 file changed, 44 insertions(+), 11 deletions(-) diff --git a/d

[dpdk-dev] [PATCH] net/mlx5: fix E-Switch egress mirror flow validation

2021-02-03 Thread Jiawei Wang
") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 47 + 1 file changed, 47 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 8c11ac3..ee1c4

[PATCH v5 0/2] Added support for Tx queue mapping with an aggregated port

2023-02-14 Thread Jiawei Wang
r v3: * Update exception rule * Update the commit log * Add the description for PHY affinity and numbering definition * Add the number of physical ports into device info * Change the patch order v2: Update based on the comments Jiawei Wang (2): ethdev: introduce the Tx map API for aggregated

[PATCH v5 1/2] ethdev: introduce the Tx map API for aggregated ports

2023-02-14 Thread Jiawei Wang
Signed-off-by: Jiawei Wang --- app/test-pmd/cmdline.c | 96 + doc/guides/rel_notes/release_23_03.rst | 7 ++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 14 +++ lib/ethdev/ethdev_driver.h | 39 + lib/ethdev/e

[PATCH v5 2/2] ethdev: add Aggregated affinity match item

2023-02-14 Thread Jiawei Wang
first physical port and redirects these packets into Rx queue 0. Signed-off-by: Jiawei Wang --- app/test-pmd/cmdline_flow.c | 28 + doc/guides/prog_guide/rte_flow.rst | 9 ++ doc/guides/rel_notes/release_23_03.rst | 1 + doc/guides/testpmd_app_ug

[PATCH v6 0/2] Add Tx queue mapping of aggregated ports

2023-02-17 Thread Jiawei Wang
d the description for PHY affinity and numbering definition * Add the number of physical ports into device info * Change the patch order v2: Update based on the comments Jiawei Wang (2): ethdev: add Tx queue mapping of aggregated ports ethdev: add flow matching of aggregated port app/tes

[PATCH v6 1/2] ethdev: add Tx queue mapping of aggregated ports

2023-02-17 Thread Jiawei Wang
Signed-off-by: Jiawei Wang Acked-by: Thomas Monjalon --- app/test-pmd/cmdline.c | 92 + doc/guides/rel_notes/release_23_03.rst | 7 ++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 14 lib/ethdev/ethdev_driver.h | 39

[PATCH v6 2/2] ethdev: add flow matching of aggregated port

2023-02-17 Thread Jiawei Wang
first physical port and redirects these packets into Rx queue 0. Signed-off-by: Jiawei Wang Acked-by: Thomas Monjalon --- app/test-pmd/cmdline_flow.c | 28 + doc/guides/prog_guide/rte_flow.rst | 8 + doc/guides/rel_notes/release_23_03.rst | 1

[PATCH v7 0/2] Add Tx queue mapping of aggregated ports

2023-02-17 Thread Jiawei Wang
pdate release release note * Reword the commit log to make clear v3: * Update exception rule * Update the commit log * Add the description for PHY affinity and numbering definition * Add the number of physical ports into device info * Change the patch order v2: Update based on the comments Jiawei

[PATCH v7 1/2] ethdev: add Tx queue mapping of aggregated ports

2023-02-17 Thread Jiawei Wang
Signed-off-by: Jiawei Wang Acked-by: Thomas Monjalon --- app/test-pmd/cmdline.c | 92 + doc/guides/rel_notes/release_23_03.rst | 7 ++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 14 lib/ethdev/ethdev_driver.h | 37

[PATCH v7 2/2] ethdev: add flow matching of aggregated port

2023-02-17 Thread Jiawei Wang
first physical port and redirects these packets into Rx queue 0. Signed-off-by: Jiawei Wang Acked-by: Thomas Monjalon --- app/test-pmd/cmdline_flow.c | 28 + doc/guides/prog_guide/rte_flow.rst | 8 + doc/guides/rel_notes/release_23_03.rst | 1

[PATCH v2 0/3] Add Tx queue mapping of aggregated ports in MLX5 PMD

2023-02-22 Thread Jiawei Wang
: * update the PMD code based on the new RTE API. Jiawei Wang (3): net/mlx5: add lag Rx port affinity in PRM net/mlx5: add aggregated affinity item support net/mlx5: enhance the Tx queue affinity doc/guides/nics/features/default.ini | 1 + doc/guides/nics/features/mlx5.ini| 1 + doc/guides

[PATCH v2 1/3] net/mlx5: add lag Rx port affinity in PRM

2023-02-22 Thread Jiawei Wang
This patch adds function to query hca capability via Devx for lag_rx_port_affinity. Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++ drivers/common/mlx5/mlx5_devx_cmds.h | 1 + drivers/common/mlx5/mlx5_prm.h | 7 +-- drivers

[PATCH v2 2/3] net/mlx5: add aggregated affinity item support

2023-02-22 Thread Jiawei Wang
This patch adds the new aggregated affinity item support in PMD: RTE_FLOW_ITEM_TYPE_AGGR_AFFINITY. This patch adds the validation function for the new item, it works for NIC-RX and FDB rule on ROOT-table only. Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- doc/guides/nics

[PATCH v2 3/3] net/mlx5: enhance the Tx queue affinity

2023-02-22 Thread Jiawei Wang
() and starts sending traffic, the MLX5 PMD updates TIS creation with tx_aggr_affinity value of Tx queue. TIS index 1 goes to first physical port, TIS index 2 goes to second physical port, and so on, TIS index 0 is reserved for default HW hash mode. Signed-off-by: Jiawei Wang Acked-by: Viacheslav

[PATCH] net/mlx5: fix Rx Hash queue resource release in sample flow

2024-05-20 Thread Jiawei Wang
n the wrong place. This patch adds the checking to release the Rx hash queue resource after the sample action release, to avoid one more extra release if there's a failure. Fixes: ca5eb60ecd5b ("net/mlx5: fix resource release for mirror flow") Cc: sta...@dpdk.org Signed-off-by: Jiaw

[PATCH] net/mlx5: fix data access race condition for shared Rx queue

2024-07-05 Thread Jiawei Wang
.@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Bing Zhao Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_devx.c | 3 ++- drivers/net/mlx5/mlx5_flow.c | 24 +--- drivers/net/mlx5/mlx5_rx.h | 4 ++-- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/d

[PATCH] net/mlx5: fix checking for send to kernel action

2023-11-03 Thread Jiawei Wang
This patch adds the checking to avoid creating send_to_kernel action on the FDB table if eswitch disabled. Fixes: 033e826f680b ("net/mlx5: fix device checking for send to kernel action") Signed-off-by: Jiawei Wang Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow_hw.c | 3 +

[PATCH] net/mlx5: fix the validation of the sample encap action

2023-11-07 Thread Jiawei Wang
") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_flow_dv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 154e509707..9753af2cb1 100644 --- a/drivers/net/mlx5

[PATCH] doc: clarify mirroring limitations in mlx5 guide

2023-11-07 Thread Jiawei Wang
Update the description of flow mirroring to make clear what are the limitations of the mlx5 driver. Signed-off-by: Jiawei Wang Acked-by: Thomas Monjalon --- doc/guides/nics/mlx5.rst | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/doc/guides/nics/mlx5

[dpdk-dev] [PATCH] net/mlx5: optimize the device spawn time with representors

2021-09-30 Thread Jiawei Wang
register support check can be done only ones and check results can be shared for all representors. Signed-off-by: Jiawei Wang --- drivers/net/mlx5/linux/mlx5_os.c | 33 +- drivers/net/mlx5/mlx5.h| 10 ++--- drivers/net/mlx5/mlx5_flow.c | 31

[dpdk-dev] [PATCH v2] net/mlx5: optimize the device spawn time with representors

2021-09-30 Thread Jiawei Wang
register support check can be done only ones and check results can be shared for all representors. Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- v2: Fix the CI warning --- drivers/net/mlx5/linux/mlx5_os.c | 33 +- drivers/net/mlx5/mlx5.h

[PATCH] net/mlx5: fix assert on getting register of sample flow

2022-12-09 Thread Jiawei Wang
From: Jiawei Wang The sample flow tried to get the reserved metadata register for match implicitly, and if the reserved metadata register was invalid then back to use the application tag. The assertion failure was caused while getting register due to the reserved metadata regC is invalid on CX

[PATCH v2] net/mlx5: fix assert on getting register of sample flow

2022-12-09 Thread Jiawei Wang
/SF). This patch adds the checking for reserved metadata register before getting the register, to avoid assertion failure. Fixes: 9a726360dd30 ("net/mlx5: fix sample flow action on trusted device") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Slava Ovsiienko --- v2:

  1   2   3   4   >