From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30067.outbound.protection.outlook.com [40.107.3.67]) by dpdk.org (Postfix) with ESMTP id 959E01B64E for ; Thu, 2 Nov 2017 17:43:18 +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=tC0XbnwSa/Nd+eniQ+qkpHEymTNpQjY8ACiPly0cuXQ=; b=PqInnI5DNMbn+K1m9v9/P7rP2h3//oOQbI44e/vSB7UX7dAyRbdRZwmD/krvU9m1NX+BHpNzKSqgl0+0PwKl66F16U0XV8RpN69peMKBwFBxuFUnXnvFMiSXPxNBfkGgocmDwPnxY8HuFeQT1CtDAfiMP9LE+/3yoejgDdPyH5Q= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; Received: from mellanox.com (37.142.13.130) by HE1PR0502MB3659.eurprd05.prod.outlook.com (2603:10a6:7:85::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Thu, 2 Nov 2017 16:43:16 +0000 From: Matan Azrad To: Adrien Mazarguil Cc: dev@dpdk.org, Ophir Munk Date: Thu, 2 Nov 2017 16:42:46 +0000 Message-Id: <1509640971-8637-4-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1509640971-8637-1-git-send-email-matan@mellanox.com> References: <1509358049-18854-1-git-send-email-matan@mellanox.com> <1509640971-8637-1-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1PR0801CA0068.eurprd08.prod.outlook.com (2603:10a6:800:7d::12) To HE1PR0502MB3659.eurprd05.prod.outlook.com (2603:10a6:7:85::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c78e7479-b9de-4126-0515-08d52210d1a5 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603199); SRVR:HE1PR0502MB3659; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0502MB3659; 3:LaV9xjRwA5ZoaLEzXspp8QWp+FaSSKW9ASdccnbWjW+1Irj5DncR25Sj+jkVBLaRqsacUCahclsNLtwEUR0kU2QijxUnUZHjMrIucwh44C/ilA6DJmShDylC058ZIBfOR5aI+XlZWNn5LFjLVzJNHZqCyqhkNlcxDD3MQPR6QarRTuNihwnJwdqIYOf8xNtnEN2v7w+55qo4EprZGxNxHd63o8H4sRaaiodUbcSinu0UnweJBDgAqRG4F8Sfy7EI; 25:jM8b8l+k7vvS0AL2rhXAaJ5a7KowxFxPQRRQOXlBxsKsGGooEaIfykM8QsBG5VCD8ffeFDq4+G6CCsBdcVQ+R7a/KrTd/SRVvvh751tQxYn9AwubGJH1mVC7Tnmiss6LYj0IyJBrA6xqGCTxMgPo1dB7x+F2NSWCiw3FMmq0+3qyJduMvl8a+ZjaA9C5vtfO+/YeAeBRTlODqDj6uaDXc8GBfOXpV989Oa5zkQQlXxZzQYUw+d/7zQLFX3dKAavRo3r+cUrz9ORFGAHqEZx0jGmZTmBZBfTPXKdfYxO19wbno5oqUhfnBs5dWCAN2w52Ii8089P0PaO5VYu6vJwp2g==; 31:1Uzkzyk/RPUUNQIK7QOxRIybY6v5JGkQtspx4C0w2Cu9QpM8TiMsY74sazJWZ77UV70KKU+db582ygk4qwlALBul2ZPIIe2Ggyf0xYopeNeerK6Yy57Eg+bKo9sa5p/SU/CJTnj759FIwx2U6ZSzkWdsd7iISkt8hIrtH/0iH1XEtQgGqC871PpkPL0FCUNoJv3G6lkbc9Jch+xI2uCzDnLNPJOxyCJN8pFKumvfo2Y= X-MS-TrafficTypeDiagnostic: HE1PR0502MB3659: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; HE1PR0502MB3659; 20:IlURGkkdXYHyteYxjVBfDu5pA+TtaMhZHaXnNOQAB+mjTHYE/71nzUvGCDQM9oaPT7jJvWstRkCd2AAMTLJ4sJezI3ayl++e59h+Q/UPBaitePeNlNKuBLiXUpG4qdHVyoTynt9Ux94Zcrv1YhvKZiUpInLWwk5AkisB8UTDa1M+e3Ezi2Lbt8eK42CSH7I9WgqSx0tRTaLRxwfC66f7OwmRlnmeRa4Yp/KNN/Z6TT3KLG/pUSFdUW4kgE5l4KbC+KuumGfrksO/x7oRggupltjav0zx+JdMLtcgem3y0DYaBY2yRD+NzyBsmBYFRvPZTmUB35zhtjklpyoJFuQJ51DypOZG30bKfxUHc6SJ+G9IvxoZxg1DtTaX1BYVCSgbeTm4YYxL4ppReM1+Fb0lLGkm0xtyTFk+WqdeSsN1g+EAE7BH5YWWmwSz1qQJo3C1BoXIjTo08PpZS+zP/ikViz0f23+sWpi2y9LszttdyxV6+1pOHtYt4FQU2S58Sf0w; 4:cUtEJNIXEGv/BElxflhIPxRvRqTVb410/aLaeS4it2S9iMK4MNGERhoVDQceL5aiiHQl/AJEm2rbV15YtQ9J3lj60z1N36sya6U4w8/DF1T6okUhlftVS52Qie0oAQepEi8Dy+jGCCD7/9cmWPV5bOFTWnGAWzrfa4ZlI4Og20MSYgfHPocisc5XEuqFfcRxInEeBxXA71MKEErPQq5lEbWHZdmU1R04tBXwtDHtiOlGi5ibBmCEveIAfU3r1vRdds8jJ4Gbxon2bKTbCXq/xQ== X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(3231020)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(20161123564025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0502MB3659; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0502MB3659; X-Forefront-PRVS: 047999FF16 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(39860400002)(189002)(199003)(16586007)(50226002)(316002)(106356001)(105586002)(101416001)(21086003)(25786009)(8936002)(478600001)(4720700003)(8676002)(81156014)(189998001)(36756003)(33026002)(81166006)(97736004)(4326008)(5003940100001)(2906002)(55016002)(68736007)(33646002)(5660300001)(305945005)(107886003)(7736002)(50466002)(53936002)(48376002)(66066001)(16526018)(2950100002)(6916009)(6666003)(50986999)(47776003)(76176999)(3846002)(86362001)(69596002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0502MB3659; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0502MB3659; 23:ormYGbPFcHPGkIhQODKhbOOjQNDU1dqfQet+kdj?= =?us-ascii?Q?HSmvHbp0m938PPuEaCGF5hSQHZwkcNNgEjMqdSrHC9/9RTRCuPs+zSz9/ntD?= =?us-ascii?Q?JXryWPGBWvN2Nju2p391E1NIN0mDHsdZknP0icmbAmNPM0tvpPnzwM45v6kz?= =?us-ascii?Q?T6y871yPBM3NB86EcGOvHREdI+Mpw7OGoflJTljgIWwKOeKKFZy4krMdzoN6?= =?us-ascii?Q?RJgTv2/jTcOYuYR4WJygFcEEiDGW6905yA5q3kAZT4T2p3D9/AxmNH+CTVop?= =?us-ascii?Q?WMLc6QiJdy0g6CoLYA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=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0502MB3659; 6:d1cr6TwqaXXEhRHAmjsJ4K36vGSwYx9/ZHVIKXzBi5RBgjNV1KPeenUh/Fqis9Oa4iorVD8l1fe4OFKUg8HPgjV+fjSO3getM5kXRuGCn5nf00e5yHzj0Xc5Yh2cJaWpidLav6p0AWjXmJvnDRpYY1KypWczj8kIMwJ1/84+AsHoaMAoGYgTEdoaSKNXBCTh0z7Jci1SAg2D8/575Z/ZoYNGoaEIJaZ3eshy8XnNKlg/e9dfrkalGam0NHudShcoQW/L1zcmoBOIuUVcaynu8sIM3KpH1CnPOQxGpDmP53XLA8AdNLzyTBCbTD1KlUKB2kTQc8KUUKSwd/Bce4tJ2F3jlpEAs1aQwV0tKL3HXXg=; 5:InT7Vg8h2WEdVBH3GZoA7QviDiiLT8I9R7ONuhwr7U9XzAvYoMR/I/T4TV0PSWA4S7MVWYwt4zCWxWr9duJ9ULjZc1LfaM753SyhlwooNchCeGdNLeY1QETcvH3ICWMs/i3g95xkbvDaSvnCtgNc5tB4LE+nlKwWdNF3TsDy0Rk=; 24:vJQ04szS2THG8uhd2eowfL4GXhdpz5O2e84OKHZ+tNz0SoA0dfmz/BQPAEJRNSHPpVczYingZl1Hgwj0hg40MfggShGobm+eK5Fv0/BGxhM=; 7:fBghWNbkU4H5qZlMrGEQidoKyeLbbdkUome0KqvebM2HmTtvCWIJxjeorue38xEPf2xj1DmxWt/gVxzphP0ZzEzUJ7uISfgnJ10XDa7XTUKW4P6rD9OxLKRnQABTv0RHvYZ7PFZvst4uUNJsjwGtiTc2kUhPKIwn8zwpAanQK/Nj2aJpRoyT6aaYn954TIZNiXPSd6wavDWsdRkdhxc5jvB/dGCq2Iw+HIVtAahtCTuUnMb7QSo69sbHpZNm3L76 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2017 16:43:16.7210 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c78e7479-b9de-4126-0515-08d52210d1a5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0502MB3659 Subject: [dpdk-dev] [PATCH v5 3/8] net/mlx4: fix ring wraparound compiler hint 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: Thu, 02 Nov 2017 16:43:18 -0000 Remove unlikely hint from WQ wraparound check because it is expected case. Fixes: c3c977bbecbd ("net/mlx4: add Tx bypassing Verbs") Signed-off-by: Matan Azrad Acked-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx4/mlx4_rxtx.c b/drivers/net/mlx4/mlx4_rxtx.c index f1c8dae..3169fe5 100644 --- a/drivers/net/mlx4/mlx4_rxtx.c +++ b/drivers/net/mlx4/mlx4_rxtx.c @@ -291,7 +291,7 @@ struct pv { addr = rte_pktmbuf_mtod(buf, uintptr_t); rte_prefetch0((volatile void *)addr); /* Handle WQE wraparound. */ - if (unlikely(dseg >= (struct mlx4_wqe_data_seg *)sq->eob)) + if (dseg >= (struct mlx4_wqe_data_seg *)sq->eob) dseg = (struct mlx4_wqe_data_seg *)sq->buf; dseg->addr = rte_cpu_to_be_64(addr); /* Memory region key for this memory pool. */ -- 1.8.3.1