From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rcdn-iport-1.cisco.com (rcdn-iport-1.cisco.com [173.37.86.72]) by dpdk.org (Postfix) with ESMTP id 69CC65F5D for ; Wed, 21 Mar 2018 19:56:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4533; q=dns/txt; s=iport; t=1521658619; x=1522868219; h=from:to:cc:subject:date:message-id:mime-version; bh=zJQMHFM2R3jKNsdzDXoAiULZPjbwTR8WRg2XxmLj/F8=; b=Ab+3j8u81JihZRrPdM5Zd873uoGTwlimVLyslYGMAu39SIGFbWnmgn3q FRiIeCU8nbmNz5URXObVwomrmvwaE6MVUNeAmsrOqxzC0xftnUXqEbeMV lEWXdpDIOfnfIxo8RXUPQD+CUZC8Ym8OEhpZAM7gH85Vf3zOk3iOuNJqL E=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AtAQB7qrJa/4oNJK1dGQEBAQEBAQE?= =?us-ascii?q?BAQEBAQcBAQEBAYJJdGFwMotRjQyDAY4ihQaCCQuFBYNYITQYAQIBAQEBAQE?= =?us-ascii?q?Cax0LhVMGPg4SAYEAJgEEDg2EImSuMjWIR4F7h0OBU0CBDodkhXEDmDsJAo8?= =?us-ascii?q?qjTiQDwIREwGBJQEcOIFScBWCfpBOj1ABgRUBAQ?= X-IronPort-AV: E=Sophos;i="5.48,341,1517875200"; d="scan'208,217";a="371886490" Received: from alln-core-5.cisco.com ([173.36.13.138]) by rcdn-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2018 18:56:37 +0000 Received: from XCH-RTP-017.cisco.com (xch-rtp-017.cisco.com [64.101.220.157]) by alln-core-5.cisco.com (8.14.5/8.14.5) with ESMTP id w2LIuZ7A024987 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for ; Wed, 21 Mar 2018 18:56:35 GMT Received: from xch-rtp-017.cisco.com (64.101.220.157) by XCH-RTP-017.cisco.com (64.101.220.157) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 21 Mar 2018 14:56:34 -0400 Received: from xch-rtp-017.cisco.com ([64.101.220.157]) by XCH-RTP-017.cisco.com ([64.101.220.157]) with mapi id 15.00.1320.000; Wed, 21 Mar 2018 14:56:33 -0400 From: "Hanoch Haim (hhaim)" To: "dev@dpdk.org" CC: "Hanoch Haim (hhaim)" Thread-Topic: mlx5 reta size is dynamic Thread-Index: AdPBRlLwtkvkc0EZRb2Y20W7rzsPgg== Date: Wed, 21 Mar 2018 18:56:33 +0000 Message-ID: <1b6a9384a5604f15948162766cde90a9@XCH-RTP-017.cisco.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [64.103.125.72] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] mlx5 reta size is dynamic X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2018 18:56:59 -0000 Hi mlx5 driver expert, DPDK: 17.11 Any reason mlx5 driver change the rate table size dynamically based on the = rx- queues# ? There is a hidden assumption that the user wants to distribute the packets = evenly which is not always correct. /* If the requested number of RX queues is not a power of two, use the * maximum indirection table size for better balancing. * The result is always rounded to the next power of two. */ reta_idx_n =3D (1 << log2above((rxqs_n & (rxqs_n - 1)) ? priv->ind_table_max_size : rxqs_n)); thanks, Hanoh