From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10055.outbound.protection.outlook.com [40.107.1.55]) by dpdk.org (Postfix) with ESMTP id 0A2857CD8 for ; Wed, 21 Mar 2018 22:48:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=AWXyKN6ugQN94onBl/R03FF8ZtLwgVBtUn2GwfuyL2U=; b=HGPK8KZRAaa/51muXDB0f9l3qbMdq9B5PZT/iWocNG0ew9H9h3Hmi8UNXx9RLvkZOdQaq4tJXElyC5Km5teRDWN9DARku7ePWEVvg56pdqpNtx1s0KiqqF1fr//dgeMSUXddrOjrxIB5AuPhl2NxLuKjKnwRHtaILPUd/HHnuIM= Received: from yongseok-MBP.local (209.116.155.178) by DB6PR0501MB2040.eurprd05.prod.outlook.com (2603:10a6:4:6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Wed, 21 Mar 2018 21:48:03 +0000 Date: Wed, 21 Mar 2018 14:47:50 -0700 From: Yongseok Koh To: "Hanoch Haim (hhaim)" Cc: "dev@dpdk.org" Message-ID: <20180321214749.GA53128@yongseok-MBP.local> References: <1b6a9384a5604f15948162766cde90a9@XCH-RTP-017.cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1b6a9384a5604f15948162766cde90a9@XCH-RTP-017.cisco.com> User-Agent: Mutt/1.9.3 (2018-01-21) X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: BN6PR1401CA0003.namprd14.prod.outlook.com (2603:10b6:405:4b::13) To DB6PR0501MB2040.eurprd05.prod.outlook.com (2603:10a6:4:6::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 93fe5ff2-1076-42a3-7502-08d58f756c8b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB6PR0501MB2040; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2040; 3:rWKkEfwQvHT29yz1sVbjr7v/LKVGSZrn8t57o0B2WywgKaG6/ILEVbk63rqL7YP5WEphMh7I2E0DpGjdqJIST9qvJx4JnVcLY+U+YkO7BlMrF6wGdx6IV8cS3ImANmCGzk6i9sC4zR8ziBHyLcFQZHrD/P0wb+iqvwm+r6HKws5XEFmlujGNlLcWYZTe6pA6OO/QiuydXNABrRU+maTUAYAS3oCvXZD1taCjMgODKQoAT4NeA4kkIVy3ocRWnqA9; 25:X2CqUVcatJ0o4VpKm+zrBKtolo4H2NzxdbTVIHuKpyuAHM+tnOponwJgX2WCsSjg99XpvzGdCydcfUgdJ87vrMtLZS8O2lwnrlGHuNWOXyF656IbWKu6iHX2v/c0PqdE/4t7R3zoVBXuMFB8mZbkRyqED5sNxrXj17OLs8YshhNEhSMOly2QGENc+8ftQbRW/2UkeSXoxKQqBPdcQzG6xi5K6u/BXnVBPXNyGtxRl2rE5/pnLrJnoJFbjIhFQX1E94LlWOElkLtvSOvSAGl8kdMKWeJftbf2OGn6SPcKcG31nla0TW92L1fXOgAosCL7NiYQyTiLIx+9tI8pVKvc4A==; 31:HSWJo0iDzYs/HCquT7AeozIMkSlTzVz0WYxaSBPrG605k7+zyz9RtsnvWCJ2LZsHtarNI8HHxhRnLCLBCoRMEKPhIvYe72RV41dZ9UswoFeBy09uQhilaYhvXFrAiU0O4iCQX/T615uol6/56L1GTwFbaNcFLxQ91oAY5bh7Z7Eamsg3vAxxifofesOjcOBJI0qYdRGacycB4lg21sxOZtYnJk000YJvKLdGXlpwf98= X-MS-TrafficTypeDiagnostic: DB6PR0501MB2040: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2040; 20:kxwC5DnlB8o0qwvzzG7QxHqqGjij+h1taC/3/31OYRod5ENmzbBAbddj0yf+IwcqgYCwJoYic0rYlzqRBGKPGoXwxHgJNL9qV7mnYYvGZW22au50RwViKhxEtU9rmoLo6RRVLgHvwoBC/Ht/bJC9b6biKmXANRAIRpsrL3/+ev7ptIaYPqO7rIL7LJ9Qe9eMeKMOzg9+w2Y5ne2ofU5X98xLJf7XF5qBt3MYEzj9nQBDOaDT2hqNi4lXudpKW/EFlUUc/Z7d4vRYAIuLsVl3V90/OCq+iTmlM7Z5+dydLvR6Y0c56RuRgT968CtF26s+P9WvEGKLbJSJbo2kKfpHU06GWgb1Zjr6UOR64AExnHjHI9BHovdAVVZy+sMVeVFBt+LRvQoPfowuFLiM2EmOCCx8Cn0ndrbYi6ple61GvZDo7Pq6CrDAnSD4xXjLHXBp3pdaNJ+WHAjP/GMXz1vBt4JYoiIhb7mpG5jGUB58BdQVGCzsmsG0A9G1c7tP5fhd; 4:CNEoYjEQU/0Q20i8/xWpFsm2tF497VRu50pNrHSm2hTm2nY8DXzv6D8JA/vI7oXt0xBTUDpF7x28hzIKQUINS4+bxP5fmefelQpavCH5Nobshxm69//JvY703dNJe5jmOhuLcEy6nrapHqqbXnJpE7UGZ6FkzEYXpGafJchoRRBAOSuHTM+IjDEU4YutSF4DCSk41fOADIdGT5SZ+rM7WoYIWiPaYEbjqKhC2KYtItfKu+OHjRYq4UIxzwog9O2tKxo6XVJp6A3Ar8jEu9V7bQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:DB6PR0501MB2040; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB2040; X-Forefront-PRVS: 0618E4E7E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39380400002)(396003)(376002)(39860400002)(346002)(199004)(189003)(47776003)(66066001)(25786009)(33896004)(26005)(186003)(478600001)(16526019)(446003)(76176011)(4326008)(59450400001)(105586002)(52116002)(7696005)(6506007)(386003)(86362001)(6346003)(97736004)(5660300001)(53936002)(229853002)(16586007)(316002)(6666003)(98436002)(55016002)(68736007)(9686003)(6916009)(6246003)(50466002)(305945005)(8676002)(106356001)(58126008)(1076002)(8936002)(7736002)(2906002)(33656002)(6116002)(3846002)(23726003)(2950100002)(81166006)(81156014)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2040; H:yongseok-MBP.local; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0501MB2040; 23:XAOG1xNRe/O5tun38mvb1BQDhB3zoL03DnCe0IA?= =?us-ascii?Q?AXjrW7fwVh7kO5nUhcMkUb/mbS2qCYQF/pNEF9BlxrmkETSz39XwcVsHShjO?= =?us-ascii?Q?o3MontLR7hOgfRCqochFskBanSXkq8b/CdpgkWBk/ImuDGmOEnJpc4QdD39X?= =?us-ascii?Q?A4Wxb4WrE589dneeNsEyblCXPy31EPm17gb9665hnzTgdlnKxk1+cy25XZ4E?= =?us-ascii?Q?LJ1k9bseLdILhx0BOfAiJD01Trf9Zhff/kW3n2ykexh89b3UxyxpTgfJ4i4F?= =?us-ascii?Q?/INyAgV6yTFENQm1OmP0B42rXiM7bgMS0rNRn3T56xv6e5ltTqsOLsepL37+?= =?us-ascii?Q?jNv1uNbUYP2WbpSaeA2FMh095bFkXSkqW78jrvY5L6QRFocgMldm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cbWHpmeQ00RrypkEPrMlwY+pmyK28YDxQKMe10nKr9WDVq?= =?us-ascii?Q?/mg=3D=3D?= X-Microsoft-Antispam-Message-Info: 49cNN1aAmaGbOul1Be6LCfM6mr8t2w01N4WHGU6qf4JSVov1yZZFnGaQubrDlAPcj0svdt8LDLpg+Um/Zdzyq+4Q3GGh2s+6rUbYsPNyWo623cOc9cYDSWy07K4DGQ0dYTJCGAjFyQGSQu12de8C53EZRclczSGHVSLvb+uUxqC6Rlei8m4oTbD2IZ541w87 X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2040; 6:ZFZFIeYfjtv3mQu2LTm+H7oTiiFHfdOChzLAKAS/TqV8jy0rCKCO9cwdomFw38q06oT3UfECzEOCkJ2jaQe69iMS5MfuJzwPJhML0AFi3yFCu470GFHq19R/TuLUWP/s5iLdl4m6kjXEklk4JNIXF4JGD5eZ1D02t9Vuq+AG7VXzLcb4121eZiclVJE1HYEe6jHHAOlxgk+7Jg10BoprbiD406CuuTBxWKMqskpib1+zKg2D1oWTq8yV3vR5JTcNadTIsUZVM88HEbgHKuPCZkt8rTaMEku2UYPjmsFIigRjgQXqvGTQ/JQQn7g3kadDAnm54GGZqfGvoA60L23ulWpZYtGOVtHABJEyh7Xvxxc=; 5:uMnEYCFqkOIDHyXKG0TkWzVS8jxA+VDrqpk1yWRatrWlpgh+u8JyFCam1RaIbCsqGqWr/phNurF02t3b5h8EZvtNkA/mszYYRePxD92vB6YFhAkCgZlD76RFwl887hJKmB2fopXwORrajY3Lo2quOszyuz8MxgbqqqE2W0I6Z1k=; 24:7EGHdqWq7DMr/Cxv06pAx7oWl16JqkAmFt5vP6kjXBooC+DSgFAm2ENPCIrnY3n8khkEYOcePWi3flQRDrnR/6A+pQbcaK1uk/WWenIlz4s=; 7:NhbAgsCYh10m8/RHy2I4qT492/t4b9x9Jv94d02JzerGjKhyl9LHpgrU0qHf4H9x7WFOJrKcWRl6Ou1yGIGLHTBB3JJqknbncGXPVQT7rczCe07tibManBJ+4FBgR274WDIVJ30p/Kza4cbRHiIGkG/pkcRFpjpFH90/2qu6Q+1/I22gxJDN46HY6YudnzmPrhCP6DQ+9EnbkCYgF1CAa/PWm5CXa8EkwG4DA/Xj3C9/Y1rPgo7KHYsPkg5ghTlw SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2018 21:48:03.0473 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 93fe5ff2-1076-42a3-7502-08d58f756c8b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2040 Subject: Re: [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 21:48:05 -0000 On Wed, Mar 21, 2018 at 06:56:33PM +0000, Hanoch Haim (hhaim) wrote: > Hi mlx5 driver expert, > > DPDK: 17.11 > Any reason mlx5 driver change the rate table size dynamically based on the rx- > queues# ? The device only supports 2^n-sized indirection table. For example, if the number of Rx queues is 6, device can't have 1-1 mapping but the size of ind tbl could be 8, 16, 32 and so on. If we configure it as 8 for example, 2 out of 6 queues will have 1/4 of traffic while the rest 4 queues receives 1/8. We thought it was too much disparity and preferred setting the max size in order to mitigate the imbalance. > There is a hidden assumption that the user wants to distribute the packets > evenly which is not always correct. But it is mostly correct because RSS is used for uniform distribution. The decision wasn't made based on our speculation but by many request from multiple customers. > /* 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 = (1 << log2above((rxqs_n & (rxqs_n - 1)) ? > priv->ind_table_max_size : > rxqs_n)); Thanks, Yongseok