From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0076.outbound.protection.outlook.com [104.47.0.76]) by dpdk.org (Postfix) with ESMTP id BB94C1B264 for ; Tue, 31 Oct 2017 19:21:57 +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=gN19LvwnCxvN93fr3kMzOayARGGeOZLPjP1CPLDR8bk=; b=FaSY+ipVIzfUC95AmOqyUWPTpiIGlmQH95D259mlLMYL+wmG3143y32Lmc6REfJUBopBHjI7TC6/fhS3W3B6enhhpBeC1RGnFyjVmwNFKtIc4hOes049WZUQ6Iv/ZEIop13MJritlVddghtrIoBzajSVFidExSfmZkJGxoKyzCY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; Received: from mellanox.com (37.142.13.130) by VI1PR0502MB3664.eurprd05.prod.outlook.com (2603:10a6:803:f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Tue, 31 Oct 2017 18:21:55 +0000 From: Matan Azrad To: Adrien Mazarguil Cc: dev@dpdk.org, Ophir Munk Date: Tue, 31 Oct 2017 18:21:28 +0000 Message-Id: <1509474093-31388-4-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1509474093-31388-1-git-send-email-matan@mellanox.com> References: <1509358049-18854-1-git-send-email-matan@mellanox.com> <1509474093-31388-1-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1PR0801CA0074.eurprd08.prod.outlook.com (2603:10a6:800:7d::18) To VI1PR0502MB3664.eurprd05.prod.outlook.com (2603:10a6:803:f::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: edfae99d-ac68-498b-f170-08d5208c44c2 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(2017052603199); SRVR:VI1PR0502MB3664; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3664; 3:8PPNt/KalbIlBTD34bHMSuGs4AeAhyPDHeW38i2pj4KSdls7ABhlxwraRoAzh/+vmGSbsNmVB9ss+6qN7KXv8eSzM265OB+b+qRUVG91TcZ6X2gp7Y2Xmq+jr8cnyw4T7OyYLJgkLiF13cu2lwmp2yO3WWqXQih4Mn3z/g/L8dWqklgCd/aFBtjK77OZ8LkdiKGCPUZn+1tKRJJ1T7PD6JW0WjwavNW3ORRPCNSszH82PbqAi6zxv4bW3cikMGco; 25:Ti9/tqY65a3duYWqlO0WN7CrCI/Izo3mlym0qNJxOQAIT+rpiB/b0e6kInEY7Cdmtckv+weHcE7zD+4jGUqhWOJ1p88soEAWG4CUeIs90Lj2WA5pH2n6U4rHTXgGUJTwNoH0oR95YQZvVs0fGsVm4ghGXs33zpSfa3lBUTqjlSQoDs4erasWHcihNvGoL/oSt3q/moRjJXvwHoiLDpqI8nE0VrFHoSrBUCWgjf4PlwQLoB34rN7D3pYQ89hhOKL/+GbjK/V6RdS3MrPsbHxnEluwti3DqrHkcK4870Crtpl0I2UPjPaTzszpM1IXPHNXNv4B3pM6xEKZGHW0IYUJ3g==; 31:EmZUClq/ZXXlyEsU+6qcUFxq4FgrBaFoeGfFel7HlyOnrhPjBaqC0wLuMnarRk9fuWREXMxojDp+Sk5Ftbo8ovc+cHP60Ck/QMLIsZ6CPQOFA/FtreyIqOnj88THOvnDhIeJNlo48Va6C+bq6pjAg11fboIejXffnXATt0ENJEBS+CX0SvSO0M3Sqcc0PaWTPsBHC5DIAZIuz2RiqHMJTzZuLvk4CJBfCKURCvkcBqU= X-MS-TrafficTypeDiagnostic: VI1PR0502MB3664: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3664; 20:Ce2MXgR5gKT1Q7yh0H+RG/rcI44UvO+MsAIiUlSROEUThE2jmQ08kmMlM+wmSVKwZFr5sbw0JscdbcaM06grdJxGP6f6D0eCfeFvE9YKk689pfOzODwu8XSz151yTp/VjsriJt070mEQPZXOcA+ff3K3x3r6eWm0o/+XxSOn5vvVlA927QygiI2Iz2SI8IVcklP/U3a4mxYzwo1Is++oiMgHQj3sg+ZbkgTZ4iClXZ1ojZBWqKouGyIJGGtZbNxDVmNWa6/UXjgO5i50ovULDvh/IGqHroX96ZLrpCFnMoDTtaBgnl9VmJWjNJNnmTJJ/lW0Eq/9+lMxPaeJkRoZLm8IR4zX9gauJUaf+68NelNtETDg5nMYm5SkRAD69FJ4wyPYgvJBJC1rat54IKOovq0Z8khApaoMJT7i/OsZfPOHbqK9jA2k/M1P30awAj+mqlrcSBvfsp+7PLq/820Mp2BJYOivSySkRXIhIPhvByAC5Z8jeYoUbDtBcvZw9Cmy; 4:RS9cl0qFKi1L93vYl9sgXT56J27UCzZRFyfGHcII0M4eKWkIZGyybeHAet5rhxHKRc02a0KVmfP3Ob0/FaHcd8K5F+GZ4eMG3bN+jxiFanLBp1Zd1s6/OkOlFYNZMECZRlxt+LNzIwTy+7gl7bzv/ICxtpx1Xjo28Hq4uilsxSlF0POix1OMT+uNNFxMmdR96YwkPPQeDInseM/vAR2B6SQVGy0VVymx02WOmC02bDY65eDGqw+8fo2LRRzreuWb6Il+5OVNGKh9lZfCM6kckQ== 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)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231020)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123555025)(20161123558100)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0502MB3664; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0502MB3664; X-Forefront-PRVS: 04772EA191 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(39860400002)(376002)(189002)(199003)(50466002)(97736004)(66066001)(478600001)(189998001)(36756003)(33026002)(25786009)(7736002)(316002)(107886003)(16586007)(4326008)(86362001)(50226002)(53936002)(16526018)(101416001)(106356001)(5660300001)(2906002)(5003940100001)(69596002)(47776003)(6116002)(3846002)(68736007)(105586002)(81156014)(8936002)(81166006)(21086003)(305945005)(55016002)(4720700003)(2950100002)(76176999)(50986999)(6916009)(6666003)(48376002)(8676002)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0502MB3664; 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; VI1PR0502MB3664; 23:Ksk5jvfQTKvluD+s4uhfVDG6zS4FhaJPkvoTXQW?= =?us-ascii?Q?6iidAu85p5i5+BLDYaqdNqf+IqV1mRt6f+TdTVXgQTq56yBn0co4tQTWznvd?= =?us-ascii?Q?NTRgBX+ZzR54kN/cj4TTilgDay9vEtYfmwXswrSFVHvYfs+ZvX0LXnW+ZJP7?= =?us-ascii?Q?x5pkMEBLYqrYvhFz0qtWJDwrgydAqa1PmsWECryaHROBXeJy1l1WbnUcclg3?= =?us-ascii?Q?5OfIACfk6e0vaMoofgQsovKfO/NwhrrLOlCuGCMTAM4Uwead8OheO28QjBgH?= =?us-ascii?Q?PM+8/EFC3EJIDYxuAc7+N4NMNEZfJkHW8+GwvwVzRyzC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-Exchange-Diagnostics: 1; VI1PR0502MB3664; 6:n0PdpCz0+7xTQB7rIgVbCJjESJ2lvIz3eQcm4QWE2dhUDNyMhWdkvae2JMqTd4VAhnu9QE/PPzEYzh/ScLiH/GrwVPkTFR5dcXVb6cJ0EXrffnAD1lYr155TgEZsbTmxOMdzL0j9vILhhZUP4IqfvcMkdcndDtNScCLkbzY/tx7D8uOTU+ZRnoPvq39uayybOlkQI+HPgujiEFfWIIaj2tDgbzNiKI0uwIoemp0DTpZBhssAf7pBbgUVXdE3QeAO+A0XI5keRtjtPZSkzStvEiIGbVgDBffljEz1U6ooQ40PwaS2qBNsjpRuZgMPqxEyTZY4tBv7tVxIVB+MOiTBF/MW/3DZcCh3uWrv4rcTmGg=; 5:pKYAs/cMve/Ht6woKXQ5osOYFvxVpuEdAKr80aNHgF7OXOqX1+ecpCC7E8wjKgU7F2kCGAedb88/ExSYp8gBBJl5bNxUIcu+1KZToj7TmI7+muy8NzqrZiYu8DZy2SBdhIZhsX+/e/sD7f1OMmrG3UV85SpXgrOEJeuhFMlVwS8=; 24:CtJ+Vfp7tmbFoL/jMrnJgUl03+dOb2QRYyGmTz1K4NImrpLso6ORrboMcmZPb0WmjzjLqeJMgA7gwhwieFSaaskzJarOSXwOa7LWTC3JaPg=; 7:nUM+PcpTfnvR4dzmQpZknLl1EZhDnthq+2ZBU//Yvl88c+DYMBjXeRPCTqRhg7soy7EOvhB8eTSfNUReQdszJ72SPWJymnhOA6rQXgyshhgMq2LF7m9wybsm3ln493f+zkb0B1hW2Cc+KcIWZ8C9WpgdChIJXBtb0M82sZufxm6dc5NC/fRqepbIRoNr4r+a2wZr7uO4PSWETA2z/Ru1NL7bAfShwCwP8b6GLFSOAJF2YAtrMiWF/mZ69e8qjDWz SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2017 18:21:55.8148 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: edfae99d-ac68-498b-f170-08d5208c44c2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB3664 Subject: [dpdk-dev] [PATCH v4 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: Tue, 31 Oct 2017 18:21:58 -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 --- 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 3b5faa1..eddce82 100644 --- a/drivers/net/mlx4/mlx4_rxtx.c +++ b/drivers/net/mlx4/mlx4_rxtx.c @@ -292,7 +292,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