summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_defs.h
diff options
context:
space:
mode:
authorNelio Laranjeiro <nelio.laranjeiro@6wind.com>2015-10-30 19:55:08 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-10-31 00:21:58 +0100
commit95e16ef3254f7e75076c7ed2bdd4e8275c5e6894 (patch)
tree2a245abcf1933a56b18fc29518d9abfc2a7d147f /drivers/net/mlx5/mlx5_defs.h
parenta76133214d88a9a36ead68369db2aa43a23b1d2b (diff)
downloaddpdk-next-eventdev-95e16ef3254f7e75076c7ed2bdd4e8275c5e6894.zip
dpdk-next-eventdev-95e16ef3254f7e75076c7ed2bdd4e8275c5e6894.tar.gz
dpdk-next-eventdev-95e16ef3254f7e75076c7ed2bdd4e8275c5e6894.tar.xz
mlx5: adapt indirection table size depending on Rx queues number
Use the maximum size of the indirection table when the number of requested RX queues is not a power of two, this help to improve RSS balancing. A message informs users that balancing is not optimal in such cases. Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_defs.h')
-rw-r--r--drivers/net/mlx5/mlx5_defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_defs.h b/drivers/net/mlx5/mlx5_defs.h
index 369f8b6..3952c71 100644
--- a/drivers/net/mlx5/mlx5_defs.h
+++ b/drivers/net/mlx5/mlx5_defs.h
@@ -46,6 +46,9 @@
/* Request send completion once in every 64 sends, might be less. */
#define MLX5_PMD_TX_PER_COMP_REQ 64
+/* RSS Indirection table size. */
+#define RSS_INDIRECTION_TABLE_SIZE 128
+
/* Maximum number of Scatter/Gather Elements per Work Request. */
#ifndef MLX5_PMD_SGE_WR_N
#define MLX5_PMD_SGE_WR_N 4