From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10080.outbound.protection.outlook.com [40.107.1.80]) by dpdk.org (Postfix) with ESMTP id A0165377E for ; Thu, 29 Jun 2017 01:05:19 +0200 (CEST) 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=n2Y/LZBKEBb5upJ5FWqllK+ORoEGepIY5ddLbbUuD1c=; b=GuotJGj7giysKUgguGI/411v8W+qH+4i8wIrM8Yah722ck0tf6GJN5RxWQDxwsGAISh+JuiTWv9DNwwPlS1HD2KjBnW/p/U3nSPCHUDgDVQZT2XCiIO0rsC+KNOTrmPi7XanZxjUIPNw3us1Sn7U2fupJI9TI3Ch8DvTaP+gY8U= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=mellanox.com; Received: from mellanox.com (209.116.155.178) by AM5PR0501MB2035.eurprd05.prod.outlook.com (2603:10a6:203:1a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Wed, 28 Jun 2017 23:05:16 +0000 From: Yongseok Koh To: ferruh.yigit@intel.com Cc: dev@dpdk.org, adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com, Yongseok Koh Date: Wed, 28 Jun 2017 16:03:59 -0700 Message-Id: <20170628230403.10142-2-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170628230403.10142-1-yskoh@mellanox.com> References: <20170628230403.10142-1-yskoh@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: DM5PR21CA0024.namprd21.prod.outlook.com (2603:10b6:3:ac::34) To AM5PR0501MB2035.eurprd05.prod.outlook.com (2603:10a6:203:1a::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fa85c9ab-53fb-487b-8622-08d4be7a24cd X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(48565401081)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM5PR0501MB2035; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2035; 3:L7/rm3jt4QmMORATV0Lg/OPHkZQD+WoNWrnwp6IZI5P2zDyydlIkyYJUM8qY/wa4E1FxE52WdbpbYc6Y8c29ogs3kGyekIVDfEc4EQJURRlXjD01r1LcQxzr6tZ2DkyvN8fLVzZsgbjqBFPbIvD1KaQiboUkjiX+7Qxdzk+q2eFbWxIGGLV0g2HcXrMlSPnzR1y0opaMfjWJK5RcERHAkNurShCcss/IIA/ewTDb5Z/jN1LdPVAD7Tb+gKf/RqRqXS+tDa1sAt5XsZmVxD34jRlnnoJwI/7TxavUomlvhXOAyed3rLneVfeZo0rLGW+Ycmc80uhAFQB0LsBo52qeAo0zVE/XKlpHTel0FZGNE8kYJ0giEe28rf6T5719gGpeUJvRnK6gEozYlirb1LuRL4U+UVnBzDWBIysJa9QG5o0MeTnV2Wvw3nJKnWKlQY1/HCi76MHL259LXUIVmZmQ67AH9loKeJ8Ba7KrjvFnBKgDNM52RPu+nFwE7bpQxddICiL8sl7ik+T31c5epbUq8aOW06EC9UvrSRRSKUlOn0dEOpE3PxciZTr+TvrT0oPomR3sGYqx+cAk4SgJYQuzRH7m1a8aFI/PkI7+8WFyA/UO05LK3jJ8jsqqqExDFYH0BVfyJcga4E9aJnJrhRdv/r8+4/4uL5/j1zdItsBvVhisXK/za8/diD/l79JpkM0ZAlugRE3AF2SkYWT3aHNoVNQcD1tX1uJK2gm3kEU+rrzSDQ22LdsP5EYgobtaQg6pmXm9GwDqrvzHTyZfC/Wm3Q== X-MS-TrafficTypeDiagnostic: AM5PR0501MB2035: X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2035; 25:7T6N6X/wtfGg8dNEni3or/L4QAnKSyjQWOXUSWG954ZvDB+oGg1qH44486iCd6Hj5B73oCgAPCTsqF5tnkGGH0wnMZkLotuMWWTkNpmhcqREOmHrtrXZIn3gtauYMrfO4hk+1EJ0wR2QVjZp3V6Bg6upmWA1TwBnc2S6mdp6WTLN6faPTb5ODh627OPEdwdEON4G2bjnquIV4jU4e0VhhRIHpXz8wPsrn5iSd7ZZEPnQ0LONxn0qf259BK9p/JmCqBoMfwfhYvdLqm2snbcMLxFjywwi9wrv2rzfiZZYeyuW21vXw4mZ5io29Gcw70SHIJiyAt79xUPGXGd9WnPlF9cIETNJ8nH6KZ4CEbLUT7MIkUx+PSAjlFULJf7P1209Vn9lIe7xEKGDa+pjv0h0I5vLSSk3xA09sx8Pxmym1ToVwux42IhxlLcngA2h5Mcu9ta4glNGq50uOSVgY0d12DJUdF7STBtc8UI6giYTbG0FcpUNtmZyOT8BJn7fbMPP82DeNVbgbOR91NU80mc/9CVleYuouf3cZg9YQ/CJ9uSgOZsP3FYhsdYMbFX/8orekNj1VaAunBch7aHt22bkCn79mJF6CNujLTj1D7q4f1LlzvKnWL+8D/tP3HUEDX7KBGkDwCTkGsHjNtd6fUAd7i5xNlYUlPvaF+jL8pY6Axk55IRZ/PPlfGvVTCo8mx5gB9KvuyrGQbrmSra7beSCRjREansD7mGRhm1n4yujwYR5Ojthsl3x1i6I9rKo9PosJODVWKLprNT5rjYmTY3nUxo22XKuDP1ivdJS1bToCi63PfcCI9ae5/3HQ3Kl+szNyq86wO2ruR/YxATQJiVURGt2mHHvXtjL1zNUB2TazdmXwrkW4N0kmRbfoy5cw/P2sWH5tGKGp4IHjp/0E+Cy+9R3EeiyotvhiepWUKgXIy4= X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2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Fh9YsKAtCheYmFJWhzjnbwvde1NSqZACOSdmnPx6pHsaG5nTZo4VgE8KlqtMQytTso/R3sFqzL42FioFuhqUA2ir7YZrjgioc9E0TVALOD1QErcSiBIzJ4o96HRPrE2HgwIdz9SmXJBWkqiwXZJehQeak0wunX9gbqyxmGd5CXGdU0oYhV4TH0EKYTYo X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(167848164394848)(247924648384137); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(6055026)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123558100)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM5PR0501MB2035; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM5PR0501MB2035; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0501MB2035; 4:pyomASlXpBb3iyVD/JOAG6MoVuYGFe4y1koaU1Lb?= =?us-ascii?Q?BwuhwxTVRN/svlZuMagXkMgPH3nYr+yITmVJfbg8XkSXoCH3WTMW4kK1nKyY?= =?us-ascii?Q?cL/ppPraaI9Sp8abszQURBb1Z7kpz1CycLpUN2ndi9kXHxdSXHQWQ4fEQiPg?= =?us-ascii?Q?i8IlLRyzP4aTdhK8VFS5ElPFqaWHo+g0WcmrxuGPLz76/8laxkakEw54uSGt?= =?us-ascii?Q?FkOwNdK4k6mblaK8ZcTVDJUmcl4MqwIODdc17XMYbQz+PoZZO1eH4zTE70qu?= =?us-ascii?Q?1TtAICMU9NGP0FPHKK12kPDx2A64NQgqPK2fc2wzCmv0rPJUIu/+h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J/k/GXjGOx3YoIrEzjwA1a9lnr/+2nCSKIPDYXvc4MEoXFXFZ?= =?us-ascii?Q?UAlFe6gSBJfo5iWEcqHWrnikoYFUqPt6FLO7d4T8?= X-Forefront-PRVS: 03524FBD26 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39450400003)(39410400002)(39400400002)(39840400002)(39860400002)(107886003)(38730400002)(50226002)(1076002)(3846002)(6116002)(7736002)(478600001)(4326008)(2906002)(6916009)(2950100002)(55016002)(50466002)(42186005)(6666003)(53936002)(5003940100001)(48376002)(33646002)(110136004)(2351001)(2361001)(189998001)(86362001)(50986999)(36756003)(81166006)(8676002)(305945005)(76176999)(47776003)(25786009)(5660300001)(66066001)(309714004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0501MB2035; H:mellanox.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0501MB2035; 23:xD7N661UCq8YVIsRZdO5gOnh35A/X/a7XoUnpJo?= =?us-ascii?Q?zORsrxP+w+OJs5AgcSWMQxDu2vu58b3YETVKsBfwtNQsiz4EL8eMGnN7qPrP?= =?us-ascii?Q?Rwm1r0//CXjqkFyK+ni/V8SDO80y6/dfDduRpS6j+NRWPqJKTIrzFx+K14Zb?= =?us-ascii?Q?+qW5MXkWARxkbHhzKXh+MWBMHOTCYw/5Wex2HYlEYPIoA29Bedqnofhz+luv?= =?us-ascii?Q?/xYNlQ+vLraJqXndOEyjt73E4spyvBAFGKnonyxkpY5kPaw+iTzoQGgdIt4D?= =?us-ascii?Q?TgklnXC2ecKAlzHPMYc2oPmgTVB5Oe8aDpjgIYeJB2T81RtcTvH/H4/CP0kd?= =?us-ascii?Q?vN9LSWdyR1fzQ3bUKswn11meChxTabvtpIEZLVwRWFU1AjpKZCwzO79RnXqO?= =?us-ascii?Q?ppShirfaKJSVjLKcR5piBmK6UjfyM1JUY2x4f5a+ttzn1f1e3ti1RixVM4V5?= =?us-ascii?Q?2c746WRtn6P2LONbEvFTVQMQUgltDS4BJctQGtIJUXU810TEK0+z6eXyJ66Q?= =?us-ascii?Q?V/trlnFN7vyBPYD97nwtXNkZMjVkhKKk4XzKjrr8AZjtWbYE6xV5ojcgwpHC?= =?us-ascii?Q?xbHDbVPaUt3rV/0+y2XWVN414YJJPt88KhoFDFPBmodmBfQCwgoeUuBZ3ueS?= =?us-ascii?Q?/7TmPYML5lGARlh3G9rS+DyBGO0f+Rk/UmyvOZkaZoJhvTeRmmel1ifoMQqK?= =?us-ascii?Q?cSU6qSAzv8Ylb8csggNV/OD8XmJOnJ8gGUAsoHtIUz1dkBS6wqqHjBVWMwbH?= =?us-ascii?Q?YmsHObQBCfxvX6ogsXG/OYTCd7YQ+Q9JfByDwrvGCDLAoT8LO48zZfxAty9t?= =?us-ascii?Q?o3ifoFlcNuaJYOQPRNfFPsUjdiS9uV3UAZsE/egOhV+gPevxheu/9fGNOlNi?= =?us-ascii?Q?CzW7d42/XI6M1VwjSu410asCCUsbwatfScUOsbbp7p47+4M9ZVJ4mmxZ6eNr?= =?us-ascii?Q?vaJ0FCgs3tRHkRv80ijWg+bP8QUZG3stoRelH3O2WHEK3hCBvMRykk63W/6b?= =?us-ascii?Q?Xt8qxprnsrPsFz+lHImyZJwmR3N8/gfboSUZuhDM38R5KY65z5abhifJiJ0U?= =?us-ascii?Q?HedNlRnsSyR4CJeQvm6zcr0lm50VfvDHbnxwWTsMstt5FvVZ+qoEZIydp8HM?= =?us-ascii?Q?l7xOiOVyg/+A=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0501MB2035; 6:lMEhfHDop6xf/g0ChOoQ6nKNYWUjBHaUCbwTVIrB?= =?us-ascii?Q?RLF01Rkgs1SgB1BCaQoikNnGZgt09av3kRbDZeBvMtoRs9y+sLwd34/YwljV?= =?us-ascii?Q?F6Z9U3lll1sj7PiwE41FkZyv3zWsFgPyUV92ls2NozZlV5HQx27cQZ+ru6Kx?= =?us-ascii?Q?bwVX48RjpOIfc1WVtyojzTsbUGzVS8SEfTzG6OAwhM+womG34VZM0esdez8B?= =?us-ascii?Q?40gezN6BTNXUy/H50PfT+6J1Ra+Wq8fCYPW3qupyX7YIdcHTpK/9Sbnu5eOg?= =?us-ascii?Q?LzJb5NkGlIU1EGFxFa1SvTJr7ZhIIK12w07mokJnGL5PNCQjy+67RrnuUvfI?= =?us-ascii?Q?6d7reSmhivewz0zei04UIVdm3X2TMESot8oPRZZiUAocKC1ZUmbIu2mWIRTv?= =?us-ascii?Q?DV7A0lyV3pmLAuGHQWjlqN3d0q3U+/xnqhee2xhS7BYVsBYiKxrP221KvrQf?= =?us-ascii?Q?JzV1NEBpckwDIEclZszwkVa4J1ZsDMCcg7Vl0jza2kru61L6/42DD+86D6GV?= =?us-ascii?Q?0Sg4BLcGjG9EAhcedMLguTAoAWlV64HZdO8pwtdlWp2VTnwDPOc/0VxuXRx7?= =?us-ascii?Q?htbYodOhYnzQdXA/W8krwSSMEam6ljTM1tClXYYhjnTiBvyNR0vCFMwZyL8y?= =?us-ascii?Q?vJu/YvxqbbbtDVfCYszQ5MRORMNaPmZj3MWjkAXkJ3A4z34gd9o/viiPD7zR?= =?us-ascii?Q?DDKxWLqBWG2m5evq7chqrDUYRokiVDL2zTRuauDV0V3mb4IMlnmKadVbL9+K?= =?us-ascii?Q?MQKeWBRHiXy5rGejcJkAg1aS1yvjrb3U4QeeNr/aOyf8HoNacXcnLtcSlIyZ?= =?us-ascii?Q?qPC5gz1DmM5lA9WQTS5uX9HBQE5cugMB1ZCJ0y0NzPwKIpi5qodXTQVVQsr6?= =?us-ascii?Q?OslKFI2FHN8iUfnsqcj6O+W6L0gX42nUuP/jXSNuyhumjGuDjd3tREeSwcDd?= =?us-ascii?Q?sFNvenYONwZO7Px1WriU+ZChLBwXPhN90JS968LAFBvcWBVxEsiMvJnd5mJO?= =?us-ascii?Q?n5y2iQa2hRo2VOORiD634U1P?= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2035; 5:2W1tdMQrlFjerU1WFoOY9lyRxv6AhgQyI9LO6DXr1TZlmi/qUNTEB7+9/xB/d350Xs1SvxYFXmLVv3VUSWgvCvL8ruH+yvwmfL56/Rz0KELHvhYiAeCflrJg5ZNrVUe2ru8xhA6+SF+bhgas6uTPUDDEqTdKORpV6UCEI5VMEY8z6ZHKueDWWRLpI4OGs4COOyhm/3kJZOBQOtfXlKNkj62JgRC4bQlE/ILMQcxKA6+yM6h9rPoC2lDLc0vPYCc/lsGAySo0VPvhhX5UyiShg+Un2+WpDEGLwdT8lcWiK9KQuyh59/R47h3EYAsqIHDcArip7Hlhelp2PfVq++C+MlTs/CvJN9AXER8ut+wmFje1NbLh9UAL6dpmk+VjtZ/avueEq6tK+yGRzpo7kJ2/piuulN/pEDjRYvWr24AE3XyW47J1Y+Vqus9VG6Zekkv6ZqbS2OiLwIWVc82nlJUf5PU+HImiyAkrtnddrgh8xpZoqMJSktSRNA5YLejG7TbW; 24:FL7/om3nY0nW7qSOheSwdDiYDfAlWfMXH1XM05uJjTXGqgzC556RW91JR19auyXP6Xgeb6Lsl8WLD+GIIs+S9y1eEio9yCU1fcAOt5CCVVo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2035; 7:RDnImYiFMTMrY2RoRDRWoQUFCA2P5PiXLgKNYniYbdc7rv99ukP5vA+lr9ga9m2pPVwMMSoRo4/q2nIGaoSt9bibKM0fBvk1UNir+Mz3lNC+r1OJZmTWuVkf91C8Ud4FbcTxmxPRN1OmjeS5LGnVHFWHPuMDHMukIzuh6h9CRYU8q7O3f0uTaRoq6Yim/8CyrZH0973rWMWMq1Q+H303jUmfJe2eb/j952Kp9QiBHKNIKQafIPQSB0v6uvj8sd6ddv6it/OQDpE1MAR6aEATLEs/QpOXlhNZDGx7oei77JI31yBuCzjOnHkyUUDrCIB+u5XbekfHCzbc69KSShdsepS+5Tndse6ny/QMq2+wwIsHVuGEG0rbfG4M+t+uvqb7pBTRa+as5DJM8+Zlu9am2OnZvLmw9LmaKYHRvcArRPVeaV/MnJx8bkYw9XvyBJ634lPEtqaJmRIgouTt9q8pp4FjDvA002nIgSYuENRVudPcvJKk4i4BlTqNm8/wyoB1Ogmo2gBIBmf3jqQpLpI7nJbw8/672evKbn4XUEFTd2a/mg+3MW9jvnfiW+q+A5+OWqC853o773Js4mzV6YKkwOFXyoyq4DjIrqToYvAUL1nGta5NW3QlRSO9dqHMZHIAsRexwxsfJIycv5D01EVLXFyxFc31oWq6gG1bfOfQtnex2mQUBd/89hRai/xijvTnAF3FxMGYkREUHiT5jyWm0WutyfNh+Zf7kAapfTz/DqoNapK+4Bcc6Ee0G+IJr37kkh0aFqH2kjeWcInw9BPqQ16RftpNt+ctZEV5n8qQ1Zc= X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2017 23:05:16.7412 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0501MB2035 Subject: [dpdk-dev] [PATCH 1/5] net/mlx5: change indexing for Tx SW ring 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, 28 Jun 2017 23:05:20 -0000 For Tx SW ring (txq->elts[]), indexes are kept and used in txq->elts_head/tail. Because of this, one entry must always be left unused and it also makes code complex. Changed to store counters instead of indexes in order to make the code simpler and to reduce a few calculations. Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_rxtx.c | 108 +++++++++++++++++-------------------------- drivers/net/mlx5/mlx5_rxtx.h | 4 +- drivers/net/mlx5/mlx5_txq.c | 16 +++---- 3 files changed, 52 insertions(+), 76 deletions(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 70314b393..43db06ad8 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -255,7 +255,8 @@ mlx5_copy_to_wq(void *dst, const void *src, size_t n, static inline void txq_complete(struct txq *txq) { - const unsigned int elts_n = 1 << txq->elts_n; + const uint16_t elts_n = 1 << txq->elts_n; + const uint16_t elts_m = elts_n - 1; const unsigned int cqe_n = 1 << txq->cqe_n; const unsigned int cqe_cnt = cqe_n - 1; uint16_t elts_free = txq->elts_tail; @@ -292,24 +293,23 @@ txq_complete(struct txq *txq) ctrl = (volatile struct mlx5_wqe_ctrl *) tx_mlx5_wqe(txq, txq->wqe_pi); elts_tail = ctrl->ctrl3; - assert(elts_tail < (1 << txq->wqe_n)); + assert((elts_tail & elts_m) < (1 << txq->wqe_n)); /* Free buffers. */ while (elts_free != elts_tail) { - struct rte_mbuf *elt = (*txq->elts)[elts_free]; - unsigned int elts_free_next = - (elts_free + 1) & (elts_n - 1); - struct rte_mbuf *elt_next = (*txq->elts)[elts_free_next]; + struct rte_mbuf *elt = (*txq->elts)[elts_free & elts_m]; + struct rte_mbuf *elt_next = + (*txq->elts)[(elts_free + 1) & elts_m]; #ifndef NDEBUG /* Poisoning. */ - memset(&(*txq->elts)[elts_free], + memset(&(*txq->elts)[elts_free & elts_m], 0x66, - sizeof((*txq->elts)[elts_free])); + sizeof((*txq->elts)[elts_free & elts_m])); #endif RTE_MBUF_PREFETCH_TO_FREE(elt_next); /* Only one segment needs to be freed. */ rte_pktmbuf_free_seg(elt); - elts_free = elts_free_next; + ++elts_free; } txq->cq_ci = cq_ci; txq->elts_tail = elts_tail; @@ -409,12 +409,10 @@ int mlx5_tx_descriptor_status(void *tx_queue, uint16_t offset) { struct txq *txq = tx_queue; - const unsigned int elts_n = 1 << txq->elts_n; - const unsigned int elts_cnt = elts_n - 1; - unsigned int used; + uint16_t used; txq_complete(txq); - used = (txq->elts_head - txq->elts_tail) & elts_cnt; + used = txq->elts_head - txq->elts_tail; if (offset < used) return RTE_ETH_TX_DESC_FULL; return RTE_ETH_TX_DESC_DONE; @@ -488,11 +486,12 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) { struct txq *txq = (struct txq *)dpdk_txq; uint16_t elts_head = txq->elts_head; - const unsigned int elts_n = 1 << txq->elts_n; + const uint16_t elts_n = 1 << txq->elts_n; + const uint16_t elts_m = elts_n - 1; unsigned int i = 0; unsigned int j = 0; unsigned int k = 0; - unsigned int max; + uint16_t max_elts; unsigned int max_inline = txq->max_inline; const unsigned int inline_en = !!max_inline && txq->inline_en; uint16_t max_wqe; @@ -509,9 +508,7 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) rte_prefetch0(*pkts); /* Start processing. */ txq_complete(txq); - max = (elts_n - (elts_head - txq->elts_tail)); - if (max > elts_n) - max -= elts_n; + max_elts = (elts_n - (elts_head - txq->elts_tail)); max_wqe = (1u << txq->wqe_n) - (txq->wqe_ci - txq->wqe_pi); if (unlikely(!max_wqe)) return 0; @@ -540,9 +537,9 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) * that one ring entry remains unused. */ assert(segs_n); - if (max < segs_n + 1) + if (max_elts < segs_n) break; - max -= segs_n; + max_elts -= segs_n; --segs_n; if (unlikely(--max_wqe == 0)) break; @@ -561,7 +558,7 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) if (length < (MLX5_WQE_DWORD_SIZE + 2)) break; /* Update element. */ - (*txq->elts)[elts_head] = buf; + (*txq->elts)[elts_head & elts_m] = buf; /* Prefetch next buffer data. */ if (pkts_n - i > 1) rte_prefetch0( @@ -801,8 +798,7 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) naddr, naddr >> 32, }; - elts_head = (elts_head + 1) & (elts_n - 1); - (*txq->elts)[elts_head] = buf; + (*txq->elts)[++elts_head & elts_m] = buf; ++sg; /* Advance counter only if all segs are successfully posted. */ if (sg < segs_n) @@ -810,7 +806,7 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) else j += sg; next_pkt: - elts_head = (elts_head + 1) & (elts_n - 1); + ++elts_head; ++pkts; ++i; /* Initialize known and common part of the WQE structure. */ @@ -853,7 +849,7 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) /* Take a shortcut if nothing must be sent. */ if (unlikely((i + k) == 0)) return 0; - txq->elts_head = (txq->elts_head + i + j) & (elts_n - 1); + txq->elts_head += (i + j); /* Check whether completion threshold has been reached. */ comp = txq->elts_comp + i + j + k; if (comp >= MLX5_TX_COMP_THRESH) { @@ -960,10 +956,11 @@ mlx5_tx_burst_mpw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) { struct txq *txq = (struct txq *)dpdk_txq; uint16_t elts_head = txq->elts_head; - const unsigned int elts_n = 1 << txq->elts_n; + const uint16_t elts_n = 1 << txq->elts_n; + const uint16_t elts_m = elts_n - 1; unsigned int i = 0; unsigned int j = 0; - unsigned int max; + uint16_t max_elts; uint16_t max_wqe; unsigned int comp; struct mlx5_mpw mpw = { @@ -977,15 +974,12 @@ mlx5_tx_burst_mpw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) rte_prefetch0(tx_mlx5_wqe(txq, txq->wqe_ci + 1)); /* Start processing. */ txq_complete(txq); - max = (elts_n - (elts_head - txq->elts_tail)); - if (max > elts_n) - max -= elts_n; + max_elts = (elts_n - (elts_head - txq->elts_tail)); max_wqe = (1u << txq->wqe_n) - (txq->wqe_ci - txq->wqe_pi); if (unlikely(!max_wqe)) return 0; do { struct rte_mbuf *buf = *(pkts++); - unsigned int elts_head_next; uint32_t length; unsigned int segs_n = buf->nb_segs; uint32_t cs_flags = 0; @@ -995,12 +989,12 @@ mlx5_tx_burst_mpw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) * that one ring entry remains unused. */ assert(segs_n); - if (max < segs_n + 1) + if (max_elts < segs_n) break; /* Do not bother with large packets MPW cannot handle. */ if (segs_n > MLX5_MPW_DSEG_MAX) break; - max -= segs_n; + max_elts -= segs_n; --pkts_n; /* Should we enable HW CKSUM offload */ if (buf->ol_flags & @@ -1036,9 +1030,8 @@ mlx5_tx_burst_mpw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) volatile struct mlx5_wqe_data_seg *dseg; uintptr_t addr; - elts_head_next = (elts_head + 1) & (elts_n - 1); assert(buf); - (*txq->elts)[elts_head] = buf; + (*txq->elts)[elts_head++ & elts_m] = buf; dseg = mpw.data.dseg[mpw.pkts_n]; addr = rte_pktmbuf_mtod(buf, uintptr_t); *dseg = (struct mlx5_wqe_data_seg){ @@ -1046,7 +1039,6 @@ mlx5_tx_burst_mpw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) .lkey = txq_mp2mr(txq, txq_mb2mp(buf)), .addr = htonll(addr), }; - elts_head = elts_head_next; #if defined(MLX5_PMD_SOFT_COUNTERS) || !defined(NDEBUG) length += DATA_LEN(buf); #endif @@ -1057,7 +1049,6 @@ mlx5_tx_burst_mpw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) assert(length == mpw.len); if (mpw.pkts_n == MLX5_MPW_DSEG_MAX) mlx5_mpw_close(txq, &mpw); - elts_head = elts_head_next; #ifdef MLX5_PMD_SOFT_COUNTERS /* Increment sent bytes counter. */ txq->stats.obytes += length; @@ -1175,10 +1166,11 @@ mlx5_tx_burst_mpw_inline(void *dpdk_txq, struct rte_mbuf **pkts, { struct txq *txq = (struct txq *)dpdk_txq; uint16_t elts_head = txq->elts_head; - const unsigned int elts_n = 1 << txq->elts_n; + const uint16_t elts_n = 1 << txq->elts_n; + const uint16_t elts_m = elts_n - 1; unsigned int i = 0; unsigned int j = 0; - unsigned int max; + uint16_t max_elts; uint16_t max_wqe; unsigned int comp; unsigned int inline_room = txq->max_inline * RTE_CACHE_LINE_SIZE; @@ -1205,12 +1197,9 @@ mlx5_tx_burst_mpw_inline(void *dpdk_txq, struct rte_mbuf **pkts, rte_prefetch0(tx_mlx5_wqe(txq, txq->wqe_ci + 1)); /* Start processing. */ txq_complete(txq); - max = (elts_n - (elts_head - txq->elts_tail)); - if (max > elts_n) - max -= elts_n; + max_elts = (elts_n - (elts_head - txq->elts_tail)); do { struct rte_mbuf *buf = *(pkts++); - unsigned int elts_head_next; uintptr_t addr; uint32_t length; unsigned int segs_n = buf->nb_segs; @@ -1221,12 +1210,12 @@ mlx5_tx_burst_mpw_inline(void *dpdk_txq, struct rte_mbuf **pkts, * that one ring entry remains unused. */ assert(segs_n); - if (max < segs_n + 1) + if (max_elts < segs_n) break; /* Do not bother with large packets MPW cannot handle. */ if (segs_n > MLX5_MPW_DSEG_MAX) break; - max -= segs_n; + max_elts -= segs_n; --pkts_n; /* * Compute max_wqe in case less WQE were consumed in previous @@ -1287,10 +1276,8 @@ mlx5_tx_burst_mpw_inline(void *dpdk_txq, struct rte_mbuf **pkts, do { volatile struct mlx5_wqe_data_seg *dseg; - elts_head_next = - (elts_head + 1) & (elts_n - 1); assert(buf); - (*txq->elts)[elts_head] = buf; + (*txq->elts)[elts_head++ & elts_m] = buf; dseg = mpw.data.dseg[mpw.pkts_n]; addr = rte_pktmbuf_mtod(buf, uintptr_t); *dseg = (struct mlx5_wqe_data_seg){ @@ -1298,7 +1285,6 @@ mlx5_tx_burst_mpw_inline(void *dpdk_txq, struct rte_mbuf **pkts, .lkey = txq_mp2mr(txq, txq_mb2mp(buf)), .addr = htonll(addr), }; - elts_head = elts_head_next; #if defined(MLX5_PMD_SOFT_COUNTERS) || !defined(NDEBUG) length += DATA_LEN(buf); #endif @@ -1315,9 +1301,8 @@ mlx5_tx_burst_mpw_inline(void *dpdk_txq, struct rte_mbuf **pkts, assert(mpw.state == MLX5_MPW_INL_STATE_OPENED); assert(length <= inline_room); assert(length == DATA_LEN(buf)); - elts_head_next = (elts_head + 1) & (elts_n - 1); addr = rte_pktmbuf_mtod(buf, uintptr_t); - (*txq->elts)[elts_head] = buf; + (*txq->elts)[elts_head++ & elts_m] = buf; /* Maximum number of bytes before wrapping. */ max = ((((uintptr_t)(txq->wqes)) + (1 << txq->wqe_n) * @@ -1354,7 +1339,6 @@ mlx5_tx_burst_mpw_inline(void *dpdk_txq, struct rte_mbuf **pkts, inline_room -= length; } } - elts_head = elts_head_next; #ifdef MLX5_PMD_SOFT_COUNTERS /* Increment sent bytes counter. */ txq->stats.obytes += length; @@ -1476,10 +1460,11 @@ mlx5_tx_burst_empw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) { struct txq *txq = (struct txq *)dpdk_txq; uint16_t elts_head = txq->elts_head; - const unsigned int elts_n = 1 << txq->elts_n; + const uint16_t elts_n = 1 << txq->elts_n; + const uint16_t elts_m = elts_n - 1; unsigned int i = 0; unsigned int j = 0; - unsigned int max_elts; + uint16_t max_elts; uint16_t max_wqe; unsigned int max_inline = txq->max_inline * RTE_CACHE_LINE_SIZE; unsigned int mpw_room = 0; @@ -1494,8 +1479,6 @@ mlx5_tx_burst_empw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) /* Start processing. */ txq_complete(txq); max_elts = (elts_n - (elts_head - txq->elts_tail)); - if (max_elts > elts_n) - max_elts -= elts_n; /* A CQE slot must always be available. */ assert((1u << txq->cqe_n) - (txq->cq_pi - txq->cq_ci)); max_wqe = (1u << txq->wqe_n) - (txq->wqe_ci - txq->wqe_pi); @@ -1503,7 +1486,6 @@ mlx5_tx_burst_empw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) return 0; do { struct rte_mbuf *buf = *(pkts++); - unsigned int elts_head_next; uintptr_t addr; uint64_t naddr; unsigned int n; @@ -1517,7 +1499,7 @@ mlx5_tx_burst_empw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) * that one ring entry remains unused. */ assert(segs_n); - if (max_elts - j < segs_n + 1) + if (max_elts - j < segs_n) break; /* Do not bother with large packets MPW cannot handle. */ if (segs_n > MLX5_MPW_DSEG_MAX) @@ -1601,10 +1583,8 @@ mlx5_tx_burst_empw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) do { volatile struct mlx5_wqe_data_seg *dseg; - elts_head_next = - (elts_head + 1) & (elts_n - 1); assert(buf); - (*txq->elts)[elts_head] = buf; + (*txq->elts)[elts_head++ & elts_m] = buf; dseg = mpw.data.dseg[mpw.pkts_n]; addr = rte_pktmbuf_mtod(buf, uintptr_t); *dseg = (struct mlx5_wqe_data_seg){ @@ -1612,7 +1592,6 @@ mlx5_tx_burst_empw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) .lkey = txq_mp2mr(txq, txq_mb2mp(buf)), .addr = htonll(addr), }; - elts_head = elts_head_next; #if defined(MLX5_PMD_SOFT_COUNTERS) || !defined(NDEBUG) length += DATA_LEN(buf); #endif @@ -1663,7 +1642,6 @@ mlx5_tx_burst_empw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) /* No need to get completion as the entire packet is * copied to WQ. Free the buf right away. */ - elts_head_next = elts_head; rte_pktmbuf_free_seg(buf); mpw_room -= (inl_pad + sizeof(inl_hdr) + length); /* Add pad in the next packet if any. */ @@ -1686,8 +1664,7 @@ mlx5_tx_burst_empw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) dseg = (volatile void *) ((uintptr_t)mpw.data.raw + inl_pad); - elts_head_next = (elts_head + 1) & (elts_n - 1); - (*txq->elts)[elts_head] = buf; + (*txq->elts)[elts_head++ & elts_m] = buf; addr = rte_pktmbuf_mtod(buf, uintptr_t); for (n = 0; n * RTE_CACHE_LINE_SIZE < length; n++) rte_prefetch2((void *)(addr + @@ -1706,7 +1683,6 @@ mlx5_tx_burst_empw(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) mpw_room -= (inl_pad + sizeof(*dseg)); inl_pad = 0; } - elts_head = elts_head_next; #ifdef MLX5_PMD_SOFT_COUNTERS /* Increment sent bytes counter. */ txq->stats.obytes += length; diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h index 450a56966..f9b738b4e 100644 --- a/drivers/net/mlx5/mlx5_rxtx.h +++ b/drivers/net/mlx5/mlx5_rxtx.h @@ -242,8 +242,8 @@ struct hash_rxq { /* TX queue descriptor. */ RTE_STD_C11 struct txq { - uint16_t elts_head; /* Current index in (*elts)[]. */ - uint16_t elts_tail; /* First element awaiting completion. */ + uint16_t elts_head; /* Current counter in (*elts)[]. */ + uint16_t elts_tail; /* Counter of first element awaiting completion. */ uint16_t elts_comp; /* Counter since last completion request. */ uint16_t mpw_comp; /* WQ index since last completion request. */ uint16_t cq_ci; /* Consumer index for completion queue. */ diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c index bf72468d5..f0729a2a8 100644 --- a/drivers/net/mlx5/mlx5_txq.c +++ b/drivers/net/mlx5/mlx5_txq.c @@ -103,9 +103,10 @@ txq_alloc_elts(struct txq_ctrl *txq_ctrl, unsigned int elts_n) static void txq_free_elts(struct txq_ctrl *txq_ctrl) { - unsigned int elts_n = 1 << txq_ctrl->txq.elts_n; - unsigned int elts_head = txq_ctrl->txq.elts_head; - unsigned int elts_tail = txq_ctrl->txq.elts_tail; + const uint16_t elts_n = 1 << txq_ctrl->txq.elts_n; + const uint16_t elts_m = elts_n - 1; + uint16_t elts_head = txq_ctrl->txq.elts_head; + uint16_t elts_tail = txq_ctrl->txq.elts_tail; struct rte_mbuf *(*elts)[elts_n] = txq_ctrl->txq.elts; DEBUG("%p: freeing WRs", (void *)txq_ctrl); @@ -114,18 +115,17 @@ txq_free_elts(struct txq_ctrl *txq_ctrl) txq_ctrl->txq.elts_comp = 0; while (elts_tail != elts_head) { - struct rte_mbuf *elt = (*elts)[elts_tail]; + struct rte_mbuf *elt = (*elts)[elts_tail & elts_m]; assert(elt != NULL); rte_pktmbuf_free_seg(elt); #ifndef NDEBUG /* Poisoning. */ - memset(&(*elts)[elts_tail], + memset(&(*elts)[elts_tail & elts_m], 0x77, - sizeof((*elts)[elts_tail])); + sizeof((*elts)[elts_tail & elts_m])); #endif - if (++elts_tail == elts_n) - elts_tail = 0; + ++elts_tail; } } -- 2.11.0