From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr60059.outbound.protection.outlook.com [40.107.6.59]) by dpdk.org (Postfix) with ESMTP id 38A471B00C for ; Tue, 16 Jan 2018 02:12:33 +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=C2XVgKAThjOqHXJ9pYVcHmW6Hnu0KqzcU3FuXzeAsal8Ri6fQlEpbuG03VFE7uH9gFmac/OBkxqw0kp0BgKQeq6Hm2dHtV8cKtMl+5QaKdTUt5YpzMExPFUOA+Mu7ujb8Hp8PTqjx6fpIFh+imFTTEvw5SazAdcDW5nRXNoSOZg= Received: from mellanox.com (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.407.7; Tue, 16 Jan 2018 01:12:30 +0000 From: Yongseok Koh To: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com, jerin.jacob@caviumnetworks.com, jianbo.liu@arm.com Cc: dev@dpdk.org, Yongseok Koh Date: Mon, 15 Jan 2018 17:10:48 -0800 Message-Id: <20180116011050.18866-7-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180116011050.18866-1-yskoh@mellanox.com> References: <20171227042824.33373-1-yskoh@mellanox.com> <20180116011050.18866-1-yskoh@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: CO2PR05CA0073.namprd05.prod.outlook.com (2603:10b6:102:2::41) To DB6PR0501MB2040.eurprd05.prod.outlook.com (2603:10a6:4:6::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e8939ed8-a9f5-447c-cf48-08d55c7e37f9 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(48565401081)(2017052603307)(7153060)(7193020); SRVR:DB6PR0501MB2040; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2040; 3:XUUId2cjLSEsX01cFvwnkKu+PlycsQij3h2Z56vd6QVJkmMDqpur/aiF1kiGdzgV/Yn7KQHWCE39Wuv49NYGk82tUkSgKOlAfGwWCyO4N0UgSCVpXFkqmMhOhtEMyBwMQLZCxQotroU9vL1PgVwB6XfcgBKJb225S5TQSbB1nRI09LAvx/S/lh+RMuXDiQUx3PQiW8tq6W32xAv2TmmEvK6cJJgAfGFN+aYXIdsJDa1+nUQaN6Sq5S5WJ4i33BFO; 25:okzsRREDRHVBeQ6NjD+B0djXns1CYmfx4318dMdYhPOM0tJHKomYmL+u07oIjXNYUcPCGVsIfTmfYKZ5vpFqKS9UTk4AnTgZA26etqeM6GCWx5vZfKy7AWVHeDoyWwODsCLIpe1tzZdhZGUXb1PECZf8lpfeEiwNwpe1H4czTt0LHxTuiARmrzQicGKbCXAzT4XFIEGEi+a6AN+hHHQ7G8Pm1F0WwMcNJXA1LxlJ0Ovi7M2KGbgr1k6CCZHdguw5nAxazVNkY0imuLYVXnDRMsInTZwXCwpDfkeSYIqhGFPvMKi+hzemZ7n4z4FD33JQ/EvXjf2RRkMr23AQGMKHqw==; 31:jYh8ZQkv0fH2rw5odTm7u2nw5b/aFbclVFZGFiHNogWkaO02w6sAUPTBRSP+4TqNXyqILOVORRk1ttGliNT3dbXu9ouiNdiutHDi/fvgT1qOmnmoZ47HJ0EetcGkrlIDOvWdj559zWnJmiqq3C51rpWAQc0/dQASUlIpl3y0Cl2MfecP4QzzKiVbGZ5LrIubkIFdGFdDck+G8JGy4Wcbx8KkAVpHyT5pekvgrJkeseo= X-MS-TrafficTypeDiagnostic: DB6PR0501MB2040: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2040; 20:ppOIdyoXJGzkT822utYz0YbTZKgFofu5ntorNkiMyn104tMa4x46rL945rAIHFCOy51mgxFXQTHANZ0imTNn8emXN779MPKthtkO5aQQlKJ7aTxhIGmmjmLEjG+XDJ2tvyzTx9TqIRp5M9GKYpCBkiPyY61zOXAn044ExhW4pOGwtBc4vycVAn5/ugyOzg8prOzyDxwY7HxW8PyJ4Hgr/I4CXD+PUEvsd55ZsuWNOyI5qpTNyhM0v+1wDQNTuUUtCDOqCqxsh84cODGPvj3IG1QIRJ5RiYN2q5KS6m552EX1xSVKVim15SX8sFo89mUKQCGcfvAJYLMbO83sVSYzNEdAzlL/KqXQHIX2VvQHsRx93dQ9jjI6NnLm+xIdZhcLdBXodu+dO1Pb37vNMnImuzCE8/z0x57aob0IiNKqwSIrCqt7O+t9EBfDX8KwFhHZOKKTRqaEcFt8S5PARpXlZ9bAoa8g1neuUc2AFPiDNoMX/XOkyX804dIL9CuMl5Pu; 4:75kxHpm5cHjK4oJyuGlsGwBcaM+VcLfDu+A1M3YMtvxFmgaOSwjzfNCexgzIloe8wdRtvEDxr8S6qaA3iFGBl60uTUqolBuBhsVngWvissGl0eRSRZIIUxAumbS3rJ61kGhb1TGkhqvOX/K8r4nfPhYzdaimo8MiL825tlLnCcqXJwoJjGFG/pgi8JzEA4I71rK37AZGVeZQ63KTwCXfT8hVvDlkK72HcqkZUDR5lAFfa4dDW5/iWVx1LU9JNxc1Pguyv4y2RJxi+J89f9H7kA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231023)(944501161)(6055026)(6041268)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DB6PR0501MB2040; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DB6PR0501MB2040; X-Forefront-PRVS: 0554B1F54F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(366004)(39860400002)(346002)(396003)(189003)(199004)(66066001)(105586002)(106356001)(86362001)(97736004)(21086003)(316002)(5660300001)(2950100002)(6666003)(16526018)(47776003)(16586007)(76176011)(7696005)(478600001)(81156014)(25786009)(51416003)(81166006)(52116002)(4326008)(8676002)(36756003)(386003)(107886003)(8936002)(59450400001)(69596002)(55016002)(1076002)(53936002)(305945005)(50226002)(7736002)(2906002)(3846002)(6116002)(48376002)(50466002)(68736007)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2040; 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; DB6PR0501MB2040; 23:LSw7x0ih7C3FE5pJiuhCOmdMsUUIAUuwMOlvi0j?= =?us-ascii?Q?Rn1hjRWNHfWX4qLOK2ckhwCjcwaO7qe0FI+t5Zbq7pDav6WBjY8FsYooVtw+?= =?us-ascii?Q?7rMMc4dOX0Y6Q4dHn41f2/pnbnaDxyUzsd9TJHlA0pdEDh8H1qYs7mAcFQSd?= =?us-ascii?Q?Skop4N5miM7yv4cvcm8jdSLcVwOxao1okxpTcwsFlBDHAQLSJ0+WarSPS17h?= =?us-ascii?Q?sC/b+4GxRGAeE7jGIkS59cnyeFkcegmph4XsXRG8uAQWAFBHK/Jl5SfwYOX3?= =?us-ascii?Q?Piy+clgI8BksaRNF9rAPr3KNy289BNwBOzw0D4W00xCl1MwDF5iFKE+957zj?= =?us-ascii?Q?3TbA5DXgBihxgfydayuO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hSwzrBzDwMPOOvFZ54YFdx/XnpzSUP5fZon7CHQeF4ffC0qiUpLzRkKv2MNilckNy1fzWSaNdPTPaWPYSNzYVLXYtJKdYCLmKzN1tnbXcCzTZOACU7wRvjYGy+KB9dt2mml4bSZslw5bW5qIzQ+9HJIiSNVdAMlCCIS94h1q/Pd2yZ1hmCx+LaWAcgHEEAXJco+Km3wqVMcgY08IscB3anQYOU03czhfCtcCBlU7YA4YydeCkMnDuMcZPJk1SfZrpVdmjD28jdtc5iZ0PEi02AFrTgcm3l40i4glxU+tUvMeyQzDS4aEOTXGxBgj64bZuhrCGkVimPgeoSlHeYmJk3Pb8=; 5:+Bm9LURckMr5gXyeHhLHpDZJcdhlurKLxdNIh70cvMNDugvkOrxc+Moqujoez3IaZCeg/sC5kEfEz2WPF17//8PVeWutI2ESmaDcewFZYD+dRa8hRR+xB8bmIs8hc+OMxZ6RMxwAwFJcmQrmXdKetIGXN8OlXmmd2f8KOZZhoHY=; 24:nUr4tCFiqJpWzMxdSmL8M55tOx01vATQmJyJEvzxffcGD7PxKAhdA5m+L9mcWjHZSfZQXkkgTczz9iSNvl8xLwY1ZhOTgnEscAJ5I4ALSwQ=; 7:NlycyFFD1/LpRK5B0vhbLc3aF/BvAVpLCwiPWyt5AMpT5Y4qUas3rFosTis9yrh4kfDU2j6RNLvoiff6LwA7Mu8s3JLkmHoqZ6zfRR88+NZ7NvkipvNCSGCk/5SPtwluxIfiGP5vGYFkP6tgbZSxJgouGZcV7cFcjfbqb/q0bzYWOhrP1oX/EdAjO78OEDDaBchCEvU0ULbw+1cre457ZgUThz3Jhn5HznvuRKOJFMJv+uOzvMJYOTE3dAPxjIVx SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 01:12:30.4733 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e8939ed8-a9f5-447c-cf48-08d55c7e37f9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2040 Subject: [dpdk-dev] [PATCH v2 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: Tue, 16 Jan 2018 01:12:33 -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