summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5.h
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2018-11-01 17:20:32 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2018-11-05 15:01:25 +0100
commit09d8b41699bb0d90f736015a977fd3613769b4e0 (patch)
treefb2e53b90a1c719116fe0533d6ef3f5f014e2eba /drivers/net/mlx5/mlx5.h
parentf87bfa8eaedf59643f2cae405e691f0e04685f2a (diff)
downloaddpdk-09d8b41699bb0d90f736015a977fd3613769b4e0.zip
dpdk-09d8b41699bb0d90f736015a977fd3613769b4e0.tar.gz
dpdk-09d8b41699bb0d90f736015a977fd3613769b4e0.tar.xz
net/mlx5: make vectorized Tx threshold configurable
Add txqs_max_vec parameter to configure the maximum number of Tx queues to enable vectorized Tx. And its default value is set according to the architecture and device type. Signed-off-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5.h')
-rw-r--r--drivers/net/mlx5/mlx5.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h
index 74d11c0..bc500b2 100644
--- a/drivers/net/mlx5/mlx5.h
+++ b/drivers/net/mlx5/mlx5.h
@@ -140,6 +140,7 @@ struct mlx5_dev_config {
unsigned int ind_table_max_size; /* Maximum indirection table size. */
int txq_inline; /* Maximum packet size for inlining. */
int txqs_inline; /* Queue number threshold for inlining. */
+ int txqs_vec; /* Queue number threshold for vectorized Tx. */
int inline_max_packet_sz; /* Max packet size for inlining. */
};