summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2019-04-30 18:37:17 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2019-05-03 18:45:23 +0200
commit9cc42c58931a428a94e9adf7019eb97faa8fddb1 (patch)
treefde2f71b949ca751d52445f42783ed2453f3e812
parentf6d9ab4e769f0f95ecac1b418106e9f8137ca60c (diff)
downloaddpdk-9cc42c58931a428a94e9adf7019eb97faa8fddb1.zip
dpdk-9cc42c58931a428a94e9adf7019eb97faa8fddb1.tar.gz
dpdk-9cc42c58931a428a94e9adf7019eb97faa8fddb1.tar.xz
net/mlx5: fix max number of queues for NEON Tx
BlueField SmartNIC has 0xa2d2 as PCI device ID on both ARM and x86 host. On ARM side, Tx inlining need not be used as PCI bandwidth is not bottleneck. Vectorized Tx can still be used up to 16 queues. For other archs (e.g., x86), keep using the default value. Fixes: 09d8b41699bb ("net/mlx5: make vectorized Tx threshold configurable") Cc: stable@dpdk.org Signed-off-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
-rw-r--r--drivers/net/mlx5/mlx5_defs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_defs.h b/drivers/net/mlx5/mlx5_defs.h
index 69b6960..13801a5 100644
--- a/drivers/net/mlx5/mlx5_defs.h
+++ b/drivers/net/mlx5/mlx5_defs.h
@@ -63,10 +63,11 @@
/* Default maximum number of Tx queues for vectorized Tx. */
#if defined(RTE_ARCH_ARM64)
#define MLX5_VPMD_MAX_TXQS 8
+#define MLX5_VPMD_MAX_TXQS_BLUEFIELD 16
#else
#define MLX5_VPMD_MAX_TXQS 4
+#define MLX5_VPMD_MAX_TXQS_BLUEFIELD MLX5_VPMD_MAX_TXQS
#endif
-#define MLX5_VPMD_MAX_TXQS_BLUEFIELD 16
/* Threshold of buffer replenishment for vectorized Rx. */
#define MLX5_VPMD_RXQ_RPLNSH_THRESH(n) \