net/mlx5: increase number of supported DV sub-flows

Message ID 20241027132553.120274-1-getelson@nvidia.com (mailing list archive)
State Accepted, archived
Delegated to: Raslan Darawsheh
Headers
Series net/mlx5: increase number of supported DV sub-flows |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/github-robot: build success github build: passed
ci/intel-Functional success Functional PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-marvell-Functional success Functional Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-unit-amd64-testing pending Testing pending
ci/iol-compile-arm64-testing success Testing PASS
ci/iol-compile-amd64-testing success Testing PASS
ci/iol-sample-apps-testing success Testing PASS

Commit Message

Etelson, Gregory Oct. 27, 2024, 1:25 p.m. UTC
Testpmd example that could not work with existing number of DV
sub-flows:

dpdk-testpmd  -a PCI,dv_xmeta_en=1,l3_vxlan_en=1,dv_flow_en=1 -- \
              -i  --nb-cores=4  --rxq=5 --txq=5

set sample_actions 1 mark id 43704 / \
 rss queues 3 0 1 1 end types ipv4 ipv4-other udp tcp ipv4-udp end / \
 end

flow create 0 priority 15 group 271 ingress \
 pattern mark id spec 16777184 id mask 0xffffff / end \
 actions sample ratio 1 index 1 / queue index 0 / end

Increase number of supported DV sub-flows to 64

Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
---
 drivers/net/mlx5/mlx5_flow.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Raslan Darawsheh Oct. 28, 2024, 1:15 p.m. UTC | #1
Hi,

From: Gregory Etelson <getelson@nvidia.com>
Sent: Sunday, October 27, 2024 3:25 PM
To: dev@dpdk.org
Cc: Gregory Etelson; Maayan Kashani; Raslan Darawsheh; Dariusz Sosnowski; Slava Ovsiienko; Bing Zhao; Ori Kam; Suanming Mou; Matan Azrad
Subject: [PATCH] net/mlx5: increase number of supported DV sub-flows

Testpmd example that could not work with existing number of DV
sub-flows:

dpdk-testpmd  -a PCI,dv_xmeta_en=1,l3_vxlan_en=1,dv_flow_en=1 -- \
              -i  --nb-cores=4  --rxq=5 --txq=5

set sample_actions 1 mark id 43704 / \
 rss queues 3 0 1 1 end types ipv4 ipv4-other udp tcp ipv4-udp end / \
 end

flow create 0 priority 15 group 271 ingress \
 pattern mark id spec 16777184 id mask 0xffffff / end \
 actions sample ratio 1 index 1 / queue index 0 / end

Increase number of supported DV sub-flows to 64

Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>

Patcha applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh
  

Patch

diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h
index db56ae051d..9a8eccdd25 100644
--- a/drivers/net/mlx5/mlx5_flow.h
+++ b/drivers/net/mlx5/mlx5_flow.h
@@ -974,7 +974,7 @@  struct mlx5_flow_verbs_workspace {
 #define MLX5_SCALE_JUMP_FLOW_GROUP_BIT 1
 
 /** Maximal number of device sub-flows supported. */
-#define MLX5_NUM_MAX_DEV_FLOWS 32
+#define MLX5_NUM_MAX_DEV_FLOWS 64
 
 /**
  * tunnel offload rules type