From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr60082.outbound.protection.outlook.com [40.107.6.82]) by dpdk.org (Postfix) with ESMTP id B07131B2E8 for ; Fri, 19 Jan 2018 01:44:55 +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=WJXnlHAowwnsZ4oK6qyl4289Cd/Z/N/MhbtAB52AQSs=; b=L/jU4NbmV91ZQX3m8keeSPF/1kIGG+LFGPVK5ZYZAXzvQ2qX4WWUGe7LuTx8srrEgB017dYHAdLMKjQoyqPRwe404GlKbwFUlNsM+qtaZkyflJRSsuOJ1aBHWyfsoz6IE4cpOXb6ghyPJRmSSlbZPzidD10rb+LUeUB7wygEzWQ= 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:44:51 +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:24 -0800 Message-Id: <20180119004430.15305-3-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: 62c227ee-aaae-4e32-e0a4-08d55ed5dabe 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:pbNb6Ty5YB2tqFTGQcchsc7hmTrPaTiUIn0rpEE//ShlLfepje4CBNmWT8DyguAZXedc7kHUdgU/RDcekYAwjY4nTYHFsEfaGP8Glx250n3auV1G4GAzJ0HdClQzWta4yc8NY9rLRWaalGRvNl0vtq2UvTV2IwbgrVElJuNTrC8k+7G+BNV2Ya3Ftc1SnZjs0zrIPvcqcyDcal7koUMaEkkGQwIoGp7qwKjje0dkE5PYWVWR7djkjFTWbrMOnDQP; 25:IvkSCO1uXHVjEvin6uBFtD4XehOrULGvirHaim4JY5BhbwYWB06d15oT/FKQEcOBYTADTKT0/Ut0/XEZXwugNXHcG/4QhU7gYPnhCFCOkEL55mqBVWWbCc7p+GwTcDtRpPRtKJ/5zAKAwancBFTHMQSyua+LM0pG8aL3nvJqn03XMy/9443IkBbZlGCFKrZjSdYUBstDvgaM2JHcZXcbSXplvDMLwaD2UtIoTTRJkACNOpxch2GBeKMLX1GndHjKE7dM459rBRLUc5+2RZ8G7M9cm7Ufrpekr9jDXjS9M0m8BCHsQ5iQmBL9zzWkqw+/jKJhyZk4+J3sPqAs67fSog==; 31:PatgTKuNxjT6BE9qIM63nRA30RN7t23ip9+qjN0CIaH/LYKvZR/fyH2DrwcmVYw7CZ4vURBKua+IvReopBduHxOIPXtzhE+fSKEkv/0GcBQhu7RQ+sJDlbwJ++8gC/V9b201WZ22p1GPZEk7V8yIcYWX67FJmvXQ0oYUf5ApY4XK6Cld2fx6d6dotDnBMw58fwPy9HbwsfngzFqwnpzWmq+1oNbXf4SDQXUD7clVgks= X-MS-TrafficTypeDiagnostic: VI1PR0501MB2045: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2045; 20:C0eOr+cT54BJ4naC5Xistesov/SMSL434rSgpa9VZK+OTcKe84KwTW50fnROK2TiAf9XxLohqIpEXGnS4Z5NYp1T0evZsovqtL9LW4GAvpqj3loDDmKEjRwu1bkq+95F8Ku3jYddDOWri5Fidj893+XP4by6x6QTk1ajzP5ptp7GsgpjHz81KmJGfocBi9hYiZVLv0fdl8WUAkyPgYfKMcSKb953pJs/U2fnpbqroBrLqVCQ6jbLxeJETjDv5cI9Qeqg5TYwf5OA3oCrrp/E0Et7JRJZzGNFziuSL/W1LEXGaSt+1tfB+SaFO0wxrKIDOgsrsCL6v54ud6zSWijxfm4DGNAf0h6sAfXiCd0WE3HYWhL77J+cqsVzYVBClmZC80YbT4cLlabnxaBJS5iiT1R2MxayQbmPJy5j2EXe+HkmItFTaafPgr+Uq/mIpjoui94Z+QVRdTM5d7+0nCw30VAOJlhOKoXElx+Z7nRFWIXCgevmqe7pOzV6l9lC+XgB; 4:mn3fJdwHJCVpTf2vev6oWwaLElBwO2B9w3Qf5/CGwRjoQnm8iyRSiMoI6r0+kXLkO9B1xysSWGkQWKHGS3rFJ33J9BxKFVcup/UXkjEDdiIC8Ae7x9wlPAEIhpZVt5f3CFRh7giRoPTnD099UZK4DiSZXCaFI2XudNeTdAumIf44IyMI4efR8fjz7wJgeQt736sed1lYuNR/dzqgtjHSWd7YnaRvL6hbTcu2hAAHQXFdS0rhgUxYdkOC/akq3fvgd2ZZOaQ+8dHQxR595nnHMA== 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)(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:KfKsKmPqlibi3NdBYEpTwBMjogFeHIWBjGjC53K?= =?us-ascii?Q?Lba52uNdAGKIRhNfiiZMBLVJL66AmPB55pFyHciXxWJAekWrfL6QDidtIgaf?= =?us-ascii?Q?4drKBsXrZQrUmd7nHT5CX/4j68J3JRIfqin4P3FMK4rEnp0K1HYDt9H6T+bT?= =?us-ascii?Q?I8W+pCK40sdbTxTBvS32XRbu/Vnlc4PvDRbqSg8SNhkObt43mks2LIyFcaYp?= =?us-ascii?Q?u1SpuhCxRGcSibVmSacOaEdiILDQqO7bJ66MHXacEjCASVMAf8HSmidLJqLm?= =?us-ascii?Q?/HL6jPk0EIEUZ/3YYnfjTzKqAHbz9G8QMoR3d4Q9hCL3XkZ3Jrur0wi7+rVi?= =?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sZDGpnBAStWZwkTsolOiKjA7qsPCdWWz6ZZ/SJ1P4pNX60EKtmMqMBw3sTiTxT6Hckt5wiHk5udppcIw2e2ZuSMMFUVsRdGGOiJWtu10iq7hKybM8hNBetUf19tkJen4H23g7tkdqoTkWOshwfzyodQdUziUBTtfqVb/uEa05MHWhFjog5aXk0lEIvqPygOuRYELzutAenI8aODXj5OpLcNbR3hJbmTbCWWIDZmnOsuiDbDWCEgywN0tqR/NlWQ21NaCXa/HFyIEgwGRhhKYA9tEUnyij8fgekhC8iL5xqzO8r/R2ESCRIQqIjOAX0h9QyjQ2rSPA=; 5:p69A3SPbfHuR+Zr4wynKYN8OUDXTzW3Y3joBco+U2sry2xpJVimJozfjjYupephvQ1Onk2TkJ7FscabiwZqC4f/hZv6/eGAnPIgt5VSpSNvauaJjQb3XYYirG7UqSmPhP0i0foG3j6BXLkT+QFPxjcz7XRPXqI9v/ZEyrZ9V97E=; 24:vNPiwO9POa7h3fvmqC8RQpHCCEiM1ikBLMfnkE5JtOxKgYX4iTj42+3noMLXrC356GIn+x03DfQq1xRdwJxoYZqWBO4ODcexZ7IXT+eqegs=; 7:jY6NfLDyG5isFZXsSYcw2w8BXKMR6WESRtGUsIl/tO7GSjGzowl1KkQSl7P33P7ZsUDCph5IaxzIBnirWH3T3IwZzo294X4yioE9Z6ZK8kqk+zNC/eC4wWWuSp4pAyiFoxzS94EZTmpujHkG48RnS+u7tDlzTeN1VerKDAJxzhhC3RXOGz08wCvtMamS+oNDMoQJ9yfohKjgt6xJwSkOfM+AjAzMMZ8kYQSIKuHeWsh1GoUCzBWqW8XRKiyyyFTF SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2018 00:44:51.4873 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 62c227ee-aaae-4e32-e0a4-08d55ed5dabe 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 2/8] eal/x86: define DMA memory barriers 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:44:56 -0000 Signed-off-by: Yongseok Koh --- lib/librte_eal/common/include/arch/x86/rte_atomic.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_eal/common/include/arch/x86/rte_atomic.h b/lib/librte_eal/common/include/arch/x86/rte_atomic.h index 36cfabc38..ae41e615f 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_atomic.h +++ b/lib/librte_eal/common/include/arch/x86/rte_atomic.h @@ -39,6 +39,10 @@ extern "C" { #define rte_io_rmb() rte_compiler_barrier() +#define rte_dma_wmb() rte_compiler_barrier() + +#define rte_dma_rmb() rte_compiler_barrier() + /*------------------------- 16 bit atomic operations -------------------------*/ #ifndef RTE_FORCE_INTRINSICS -- 2.11.0