[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] 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 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] 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

[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] 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 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] 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: 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 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: 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

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

[RFC 5/5] drivers: enhance the Tx queue affinity

2022-12-21 Thread Jiawei Wang
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 | 21 ++--- drivers/net/mlx5/mlx5_tx.h | 1 + drivers/net/mlx5/mlx5_txq.c| 9

[RFC 4/5] net/mlx5: add port affinity item support

2022-12-21 Thread Jiawei Wang
This patch adds the new port affinity item supports in PMD: RTE_FLOW_ITEM_TYPE_PORT_AFFINITY. This patch adds the validation function for the new item, it works for NIC-RX rules on ROOT-table only. Signed-off-by: Jiawei Wang --- doc/guides/nics/features/mlx5.ini | 1 + doc/guides/nics/mlx5

[RFC 3/5] drivers: add lag Rx port affinity in PRM

2022-12-21 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

[RFC 2/5] ethdev: introduce the affinity field in Tx queue API

2022-12-21 Thread Jiawei Wang
with TxQ 2 or TxQ 3. Signed-off-by: Jiawei Wang --- app/test-pmd/cmdline.c | 84 + devtools/libabigail.abignore| 5 ++ doc/guides/rel_notes/release_22_03.rst | 4 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 13 li

[RFC 1/5] ethdev: add port affinity match item

2022-12-21 Thread Jiawei Wang
-off-by: Jiawei Wang --- app/test-pmd/cmdline_flow.c | 29 + doc/guides/prog_guide/rte_flow.rst | 7 + doc/guides/rel_notes/release_22_03.rst | 5 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 4 +++ lib/ethdev/rte_flow.c

[RFC 0/5] add new port affinity item and affinity in Tx queue API

2022-12-21 Thread Jiawei Wang
ceived. Jiawei Wang (5): ethdev: add port affinity match item ethdev: introduce the affinity field in Tx queue API drivers: add lag Rx port affinity in PRM net/mlx5: add port affinity item support drivers: enhance the Tx queue affinity app/test-pmd/cmdline.c

[PATCH v3] 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: Viacheslav Ovsiienko --- v2:

[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:

[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 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 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 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] 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] 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 v2] net/mlx5: fix modify action attributes detection

2022-08-31 Thread Jiawei Wang
mlx5: fix match information in meter") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Matan Azrad --- v2: fix the style warning --- drivers/net/mlx5/mlx5_flow_dv.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_d

[PATCH] net/mlx5: fix modify action attributes detection

2022-08-31 Thread Jiawei Wang
mlx5: fix match information in meter") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_flow_dv.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index bee9363515..f0dbc96dc8

[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

[PATCH] net/mlx5: fix the implicit tag insertion in sample flow

2022-03-09 Thread Jiawei Wang
AN or encap action (if any) in the prefix sub-flow. Fixes: 6a951567c159 ("net/mlx5: support E-Switch mirroring and jump in one flow") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow.c | 63 +

[PATCH] net/mlx5: fix the sample flow failure on the trusted device

2022-03-09 Thread Jiawei Wang
ned-off-by: Jiawei Wang Acked-by: Viacheslav Ovsiienko --- doc/guides/nics/mlx5.rst| 2 ++ drivers/net/mlx5/mlx5_flow.c| 6 ++ drivers/net/mlx5/mlx5_flow_dv.c | 10 ++ 3 files changed, 18 insertions(+) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index

[PATCH] net/mlx5: fix the port match in sample flow

2022-03-06 Thread Jiawei Wang
after flow split. This patch copies the explicit port match to the sample suffix subflow, and the latter gets the correct source vport value in the flow matcher. Fixes: b4c0ddbfcc58 ("net/mlx5: split sample flow into two sub-flows") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang --- d

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

2022-03-02 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 Acked-by: Ori Kam --- v4: rebase v3: update the tx_item checking v2: fix one typo ---

[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_

[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 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 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

[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 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

[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 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

[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 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] 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 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

[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 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] 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] 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 2/2] net/mlx5: control rules with identical pattern behavior

2021-05-28 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 --- doc/guides/nics/mlx5.rst | 10 ++ doc/guides/rel_notes/release_21_08.rst | 6 ++ drivers/net/mlx5/linux/mlx5_os.c | 7 ++

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

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

[dpdk-dev] [PATCH v3 1/2] net/mlx5: fix age action in transfer root group

2021-05-12 Thread Jiawei Wang
transfer checking for ASO age action. Fixes: f9bc5274a6f9 ("net/mlx5: allow age modes combination") 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/driver

[dpdk-dev] [PATCH v3 2/2] net/mlx5: fix default context in flow age action

2021-05-12 Thread Jiawei Wang
modes combination") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_flow_dv.c | 81 + 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_

[dpdk-dev] [PATCH v2 2/2] net/mlx5: fix default context in flow age action

2021-05-12 Thread Jiawei Wang
modes combination") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_flow_dv.c | 81 + 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_

[dpdk-dev] [PATCH 2/2] net/mlx5: fix ASO age null context issue

2021-05-12 Thread Jiawei Wang
is NULL then return rte_flow pointer to user, otherwise return the original flow context. Fixes: f9bc5274a6f9 ("net/mlx5: allow age modes combination") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang --- drivers/net/mlx5/mlx5_flow_dv.c | 33 - 1 file c

[dpdk-dev] [PATCH 1/2] net/mlx5: fix the checking for age action

2021-05-12 Thread Jiawei Wang
actual group value for age action checking, Fixes: f9bc5274a6f9 ("net/mlx5: allow age modes combination") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang --- drivers/net/mlx5/mlx5_flow_dv.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/d

[dpdk-dev] [PATCH v2 1/2] net/mlx5: fix age action in transfer root group

2021-05-12 Thread Jiawei Wang
transfer checking for ASO age action. Fixes: f9bc5274a6f9 ("net/mlx5: allow age modes combination") 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/driver

[dpdk-dev] [PATCH v2] net/mlx5: fix RSS expansion for NVGRE

2021-05-12 Thread Jiawei Wang
Currently RSS expansion only supports GRE and GRE KEY. This patch adds RSS expansion for NVGRE item so PMD can expand flow item correctly. Fixes: ea81c1b816f7 ("net/mlx5: fix NVGRE matching") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Xiaoyu Min --- drivers/net/mlx5/m

[dpdk-dev] [PATCH] net/mlx5: fix the mirror not work with meter action

2021-05-11 Thread Jiawei Wang
ction before. Fixes: 07627fbf1506 ("net/mlx5: support E-Switch mirroring with modify action") 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.

[dpdk-dev] [PATCH] net/mlx5: support RSS expansion for NVGRE

2021-05-11 Thread Jiawei Wang
Currently RSS expansion only support GRE and GRE KEY. This patch add RSS expansion for NVGRE item so PMD can expand flow item correctly. Fixes: f4b901a46aec ("net/mlx5: add flow GRE item") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Xiaoyu Min --- drivers/net/mlx5/mlx5_

[dpdk-dev] [PATCH 2/2] net/mlx5: fix ASO age null context issue

2021-05-10 Thread Jiawei Wang
is NULL then return rte_flow pointer to user, otherwise return the original flow context. Fixes: f9bc5274a6f9 ("net/mlx5: allow age modes combination") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang --- drivers/net/mlx5/mlx5_flow_dv.c | 33 - 1 file c

[dpdk-dev] [PATCH 1/2] net/mlx5: fix the checking for age action

2021-05-10 Thread Jiawei Wang
actual group value for age action checking, Fixes: f9bc5274a6f9 ("net/mlx5: allow age modes combination") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang --- drivers/net/mlx5/mlx5_flow_dv.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/d

[dpdk-dev] [PATCH 3/3] app/flow-perf: add the supports for meter PPS

2021-05-10 Thread Jiawei Wang
The flow perf application used the srtcm_rfc2697 as meter profile while do the meter testing. This patch adds the support new configuration parameter '--packet-mode' to generate the meter flows with the packet mode. Signed-off-by: Jiawei Wang Acked-by: Wisam Jaddo --- app/test-flow-p

[dpdk-dev] [PATCH 2/3] app/flow-perf: add new meter CIR Configuration

2021-05-10 Thread Jiawei Wang
Add the new meter CIR configuration parameter, user can set the different value for committed information rate(CIR) parameter. The usage as below: --meter-cir=N, default count is 125. Signed-off-by: Jiawei Wang Acked-by: Wisam Jaddo --- app/test-flow-perf/main.c | 13

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

2021-05-10 Thread Jiawei Wang
: Haifei Luo Signed-off-by: Jiawei Wang Acked-by: Wisam Jaddo --- app/test-flow-perf/main.c | 87 -- doc/guides/tools/flow-perf.rst | 3 ++ 2 files changed, 86 insertions(+), 4 deletions(-) diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/mai

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

2021-05-10 Thread Jiawei Wang
This patch set contains three updates for flow perf application: 1. Adds the option 'policy-mtr' to indicate if create a meter with policy; 2. Adds the option 'meter-cir' to configure the CIR parameter; 3. Adds the option 'packet-mode' to enable the meter PPS. Ji

[dpdk-dev] [PATCH] net/mlx5: fix RSS expansion for GRE KEY

2021-05-07 Thread Jiawei Wang
KEY and mlx5 PMD performs RSS expansion correctly. Fixes: 048f0d45e342 ("net/mlx5: support RSS expansion for IPv6 GRE") Cc: sta...@dpdk.org Signed-off-by: Jiawei Wang Acked-by: Xiaoyu Min Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow.c | 16 +--- 1 file c

[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

  1   2   3   4   >