summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_defs.h
diff options
context:
space:
mode:
authorYaacov Hazan <yaacovh@mellanox.com>2016-03-31 12:21:08 +0300
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-03-31 15:15:10 +0200
commitda04298a11969587f68970b3433e73a768a4c1d9 (patch)
tree236c044d387302b1a2e55b0d7eb1763889f3e845 /drivers/net/mlx5/mlx5_defs.h
parentb185e63fdf7a5ae83d2c702a03172e8ac8765fe3 (diff)
downloaddpdk-next-eventdev-da04298a11969587f68970b3433e73a768a4c1d9.zip
dpdk-next-eventdev-da04298a11969587f68970b3433e73a768a4c1d9.tar.gz
dpdk-next-eventdev-da04298a11969587f68970b3433e73a768a4c1d9.tar.xz
mlx5: fix RETA table size
When the number of RX queues is not a power of two, the RETA table is configured to its maximum size for better balancing. Testing showed that limiting its size to 256 improves performance noticeably with little to no impact on balancing results. Fixes: ebb30ec64a68 ("mlx5: increase RETA table size") Signed-off-by: Yaacov Hazan <yaacovh@mellanox.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_defs.h')
-rw-r--r--drivers/net/mlx5/mlx5_defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_defs.h b/drivers/net/mlx5/mlx5_defs.h
index 195440c..09207d9 100644
--- a/drivers/net/mlx5/mlx5_defs.h
+++ b/drivers/net/mlx5/mlx5_defs.h
@@ -52,7 +52,7 @@
#define MLX5_PMD_TX_PER_COMP_REQ 64
/* RSS Indirection table size. */
-#define RSS_INDIRECTION_TABLE_SIZE 512
+#define RSS_INDIRECTION_TABLE_SIZE 256
/* Maximum number of Scatter/Gather Elements per Work Request. */
#ifndef MLX5_PMD_SGE_WR_N