From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0060.outbound.protection.outlook.com [104.47.2.60]) by dpdk.org (Postfix) with ESMTP id 8E19B1B322 for ; Fri, 19 Jan 2018 01:45:05 +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=EHoN0Eh0UsmzZsqPC33Gxl5npYLyY8MdFLOdjQVCKbc=; b=LEGFpX4j5kCla4qevS6rEik8QAsqGMihRJAU/OYDeqZ6aWaL8Lo4Jdu6hoEabaB5M6BN42XkGWHR6L2H4ecQvV93SH9v2BygTDhA2rXXetmSkNq36uLrTfdP6lzA+y4zSZkzosxqDNVC3+z3eZxCO7VJrSAxvIroptjkI29XiC8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from mellanox.com (209.116.155.178) by VI1PR0501MB2045.eurprd05.prod.outlook.com (2603:10a6:800:36::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Fri, 19 Jan 2018 00:45:01 +0000 From: Yongseok Koh To: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com, bruce.richardson@intel.com, konstantin.ananyev@intel.com, chaozhu@linux.vnet.ibm.com, jerin.jacob@caviumnetworks.com, jianbo.liu@arm.com Cc: dev@dpdk.org, Yongseok Koh Date: Thu, 18 Jan 2018 16:44:28 -0800 Message-Id: <20180119004430.15305-7-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180119004430.15305-1-yskoh@mellanox.com> References: <20180116011050.18866-1-yskoh@mellanox.com> <20180119004430.15305-1-yskoh@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: DM5PR2001CA0022.namprd20.prod.outlook.com (2603:10b6:4:16::32) To VI1PR0501MB2045.eurprd05.prod.outlook.com (2603:10a6:800:36::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 552a90d1-ccbd-41b1-4340-08d55ed5e08c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(48565401081)(2017052603307)(7153060)(7193020); SRVR:VI1PR0501MB2045; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2045; 3:Dx00RaEoWSTJ44fuBc4ikYQUQTKIKyWLQP1pp0EBiSbV+oWaKzDHK/bi8Jjzi+lj8e3Hf6GOyygzX1/aEBRKfBW7X98yYPNwAJL3i9E5Hgj6ezzsnhkvETkAsEC9oRC6VmjdfXA5khYV4rSebOF3/y7e7Gz41L0/2K9jokxPsdq1F0lt9OFZZ+El5bmspeODH+f6dPx0qWFK4RgzTOC2v0Y0C6UCMky4XIbeiHFJwXbLTADFFDlvCOMORCtbB68p; 25:XRtiPCM4M4q1+dqf8OtbZQld6UrP+8+wnASHTH+RUcRUnf88R8M75O1I4WAHesrgf/eSBgBdfvoQTdraTkgxxic3NZ+RX9rdOEaZuDcmSvreYpClTdol1ws3CdUO+8PDASChUw1cCdKKFjWs+Icq/7CREkgqulaCU+M1xmOMRFqporfk2oXm0n+X+HHouZ5HZu4urELOysKBg1jGySNUoQcDOL3zeWMSjavGjBsuie3SrKqK7/hboy8/pelbZNGA86tfqG3LKrB1rUzvq9ck4VBhVl77OO+CxU0NlMwrr2YoqZYRzkqhnfSRlJ312TBI8eT3X9moKqc9P9V+hUDbxg==; 31:Xg7kvB3REdUWUPiBibzm35EbEo+0b8o23xuvKOORy09WErcJseIdYo7i/QVQuxtLoyLxzwlDkZEEvubFaSDWKvZ1TxSgMriJ0s60yOo5lBvzHh7j0Z1CmYjkXjtuLogBSo5WVcIuAOEbCalfKgEl5wFqLyTEMThdSOglb/FD/Y8tStsVRg6apk8paPpnD4xTSlzikA+GTXxRKODsi2A4UXvBQmI8inTar3fpnvniuMY= X-MS-TrafficTypeDiagnostic: VI1PR0501MB2045: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2045; 20:xuEH7MhNy85r8jlYaLIVDOsdmjOGup66an8/NTbF08R7gf/33NU1Ltw+M59qnXF6HsfKrrtCSpwi8CCbSx37vgbkkPEPg7kRFUNDi4Dh0r+NNgXNKgAWKWwBL3TxH9iKZiC2sBXbvZrsQpqrvb3eOhnu2nikRGF3HQWeQNcwIGl0NrT+2Kp7aXoQaj3faKtMVdnPlCn9wUtQqGyrPKhSDdzElkX6ne9c6gTcIge38w4rY/MvNAmyjz6bzW6E+B0TX+ecvyUJbW5n/vRcsH/bV5gQ2ds8mXxjW2dt/5NvukvkKqXc0op71eomzMhzirhXhVXE6M9kHAYT6pXsnf9syqeScIwQGZymL9yxfKDkv6yPvGO9RaE0kkR4dxzZh3e5lDNsvB1u7iCNx/0IK0wnTXTfE8hRuARHx+XEPaFikbl1ECtOs7oG/OQXscTvnZ0X4L9XvS7gBwsRBRq1P9Jg7aRhXOJJZEnvfmznC5Tg/zAJSBH7C/8vqUHoObfCzkVR; 4:uHo0pp5rXrIIEtcNwxoNsHK0ImZz4Kx44SWzX+dN+tyfrd9BrMK3nViJNM7WKTcm01aqj/kH6MZbMsrCCmQ5lwIcpOHgw7lkQROPSDKcifY63hoAU4R9lDxAjybI4yO1aefxsr5OHTz/C62KiOh+lw60QZtvXYYeYL7LMQGBKmvh3VZydSE2GAxVhm0bBlXTQg9DmmbbedkmrH8lr9VjZHevatJ0jSACV3GwMQAtOHZLoIj8I0as92S5dbOjSSj61g8uUz1XJVYo6cZWGcE77Q== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040495)(2401047)(5005006)(8121501046)(3231023)(2400069)(944501161)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041282)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:VI1PR0501MB2045; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:VI1PR0501MB2045; X-Forefront-PRVS: 0557CBAD84 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(396003)(346002)(376002)(366004)(39860400002)(189003)(199004)(25786009)(48376002)(59450400001)(50466002)(386003)(7696005)(76176011)(51416003)(52116002)(4326008)(478600001)(86362001)(36756003)(305945005)(7736002)(16526018)(26005)(16586007)(2950100002)(6666003)(316002)(97736004)(5660300001)(105586002)(106356001)(53936002)(47776003)(66066001)(8936002)(8676002)(21086003)(81156014)(50226002)(81166006)(2906002)(6116002)(3846002)(68736007)(69596002)(107886003)(1076002)(55016002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2045; 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; VI1PR0501MB2045; 23:e7W4kCJJ4naM6ZnQiGgT0zfItMSGW8vrMzQz26m?= =?us-ascii?Q?nRn/PKkUziSz68U17U55wZwBzFSg7+/rWjG+I3O2u8vcbwmqN5xfA/kK9bLz?= =?us-ascii?Q?UzwEkMZXPaJif3jOu3Q14/ilVc+2u4kRXDk9jcECpZEtSmVPjxr8Lvdunlq5?= =?us-ascii?Q?Wwjvw7OzrWNxjOgyeBpDlglXqWrAMYSAzQY6QztJIWJzLiVysXOXZv8/NMnH?= =?us-ascii?Q?ZW7aygYaIdyfBokQjBNYcIRyVPTFuKB0ZeCVzWkAAwI+Lro2N0lSOPKxHkYP?= =?us-ascii?Q?KxZW8darp3KhYVHJUi8U2QneLUIAwDCniwNON6X+uU3MVD2IqLBl3KLnjYIP?= =?us-ascii?Q?Ygjvr41ehkAhp7uSubtSNGEjiDWj35j7ygeA8/74UMVYtue4bFm6nTFP76iW?= =?us-ascii?Q?ONsRFIeQovlT9mzx3zXTZliPhKi54fT9isFFmKwQFkz6nSp4mCzk5g/+QsIp?= =?us-ascii?Q?eFqewl8FM1OdeXga+yXTAcin3Yqk6+Y4ql6GRNBMuBlflPZ9cLlKWyOMXF31?= =?us-ascii?Q?/Px/3mYOgogEWNLVwOF395VVWag/6IoS2222eCY5KRb9KTU4/lCjS7cCPPsI?= =?us-ascii?Q?0lX1VHi1AnGYgPdjqAJ+bmulxw86AzFoHO6I9xGggc8bDlVo+p0l0BM7upUi?= =?us-ascii?Q?7+9MBw93ijHgPhaiEqKvM5hPU/wI0jtAb2mzKl+/Mz0XZOmqSw907BaalQaM?= =?us-ascii?Q?PW9XRW6IUqTpX5APG7T+QBPQqqOH2UB9ojRolBKAFpd4kX1IAuQsOkYiDvwN?= =?us-ascii?Q?ZS+L49zN5p1F13sSUn3JcSeghklh+fZ1JB30tK9G+OSOxAYVOj6FD11u6WL8?= =?us-ascii?Q?yalcP/s5rI/EySr7gq/439wkFFq3v3/OhZDXZgJzm9AU/FdGIAUkLJ0QdhJN?= =?us-ascii?Q?lGbVGQgPv6quUJoD3slr3C/ns46qmZ3zya1o9IsKTMvyUjXHvcdmgepEwvEU?= =?us-ascii?Q?apUA/43BC9lg23PgyYMAtQj5/Wij+CECTqqYnmxqKNMDDDfbuxPFS0dVGc2R?= =?us-ascii?Q?44YgM4ZxU8cqWdjAa7nd09bmYONjIyncuJRNGaRcR47B225SawOIuD0DLu06?= =?us-ascii?Q?CPcDKCkAhqnYIZxf2UtAwTcSnHZ878teeVbQ55yb9/+Ho4HOqMTKKseWVMNZ?= =?us-ascii?Q?1QoWOe3P+cZyOe3HufDK/2E3R0w0wDhn9Wtph/1Y76+/PDbQ5L9u65w=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2045; 6:j7TZZAvgIkUJBE9YjWu5fR0BdLONjGElHPOUSSQAXqFZj49ALc4NKcDmQlZE3fTyehWBXO2x8cmyGuMX6xfjTTnyDCFtItNRZMPzuyVz5Nct0ZznJAjd0rL5yx2bJqjBy3rBnHqFENi9qT+Ih5QJwpeb79KqElpbIIqH8VLYzT1VMb7K3bupAmWn2q2NbobWCr1Afghi/jdO66vkIlejQQs6cPzXzCmsa3HeSf8vbT/huO2A11D4EmUSLe7avlHYcgDd/2BdhAwWqh2NgGlJm2KAkFGMcjvRl5L1fB3FEsbZVA3Cry3KHIFnGJZ3h8lbJH1UUths5NjGJOQE2txxkIE/2zTCPPSQhRET6eZ7GfM=; 5:q2QHOPVhqsrt1rUwC5Qe0/M4BPPYv1eQvXeN3AzFTDv/5hWCpxGvQTnb2F3y0hvqFs2TfWeCjhN2vBfTQjUx2ySkcHHhUFRpKLsCQV8/G2UOtb8MipB3oq6QMhntUjx6i2jp8JczgigKgAfWEVwTHjnUgQ6rg5NGE+Kd+71RYIs=; 24:oLS9tdbJ1I4PwhKASCiIbZaXtJaeJTZJDt8R0ECRwV4zsXXO1zi5ucCo5IzG4yYUswtRUN3wsNk0PyBW2jHl1l7NB4KSWWMQGAc0SkAi0Fk=; 7:cvAsxou2j53Huql7CfHPmUZwMAfN1GCqGB4aOEGNIotWIasZzIHywPQu7zM2YSbJKpoayd5qAS+q7WHuI0im/Tz32jkQokZ4nHRe56lQUUTj2hq8pMD1qh+50dJOOmJh+aB9g0d8xCaorAMwesKngChZM/XOWdkpW9B2duBXDFZ/1/Ak2JxNvMko28UtWNyDABulFjO1Eh12vxN95QD/5Jv8B8eB7yBQPxu7hFxUljd4u+WqPuvg+nBOVvtAXMFq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2018 00:45:01.2220 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 552a90d1-ccbd-41b1-4340-08d55ed5e08c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2045 Subject: [dpdk-dev] [PATCH v3 6/8] net/mlx5: remove unnecessary memory barrier 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: Fri, 19 Jan 2018 00:45:05 -0000 As rte_write64() has an IO barrier, there's no need to have a barrier before the call. Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_rxq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c index 950472754..11438c86a 100644 --- a/drivers/net/mlx5/mlx5_rxq.c +++ b/drivers/net/mlx5/mlx5_rxq.c @@ -517,7 +517,6 @@ mlx5_arm_cq(struct mlx5_rxq_data *rxq, int sq_n_rxq) doorbell = (uint64_t)doorbell_hi << 32; doorbell |= rxq->cqn; rxq->cq_db[MLX5_CQ_ARM_DB] = rte_cpu_to_be_32(doorbell_hi); - rte_wmb(); rte_write64(rte_cpu_to_be_64(doorbell), cq_db_reg); } -- 2.11.0