From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (unknown [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 8A2C85A8C for ; Thu, 31 Mar 2016 11:22:17 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from yaacovh@mellanox.com) with ESMTPS (AES256-SHA encrypted); 31 Mar 2016 11:22:07 +0200 Received: from r-aa-dragon13.mtr.labs.mlnx (r-aa-dragon13.mtr.labs.mlnx [10.209.68.153]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id u2V9M7DX015795; Thu, 31 Mar 2016 12:22:07 +0300 Received: from r-aa-dragon13.mtr.labs.mlnx (localhost [127.0.0.1]) by r-aa-dragon13.mtr.labs.mlnx (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id u2V9LBT1011815; Thu, 31 Mar 2016 12:21:11 +0300 Received: (from yaacovh@localhost) by r-aa-dragon13.mtr.labs.mlnx (8.14.4/8.14.4/Submit) id u2V9LA6M011811; Thu, 31 Mar 2016 12:21:10 +0300 From: Yaacov Hazan To: dev@dpdk.org Cc: adrien.mazarguil@6wind.com, Yaacov Hazan Date: Thu, 31 Mar 2016 12:21:08 +0300 Message-Id: <1459416068-11773-1-git-send-email-yaacovh@mellanox.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459351639-18375-1-git-send-email-yaacovh@mellanox.com> References: <1459351639-18375-1-git-send-email-yaacovh@mellanox.com> Subject: [dpdk-dev] [PATCH v2] mlx5: fix RETA table size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2016 09:22:17 -0000 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 --- drivers/net/mlx5/mlx5_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.9.1