From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0066.outbound.protection.outlook.com [104.47.0.66]) by dpdk.org (Postfix) with ESMTP id 1FF03A494 for ; Tue, 16 Jan 2018 02:12:26 +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=Yz9MloYagWASI1CTXh/zHnueKpTu50gJQ0mfegYHUT0=; b=fy8o6q/Ubf/CcUAW5jc/mJKf7s1wdyBjB/GcbOntjCUh6X9F79zjluUl/82zpqNiqthCTh2W/0SVdUk0Cia1zxdAvfxaGAaoZ4SDFKjZuuYvRQWuC1dstUVC9OyLFc/rIg3FPKCyCaxn770TYhu+ce5nQKCEZSMqpNHS/I8i3e4= 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:23 +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:44 -0800 Message-Id: <20180116011050.18866-3-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: a46e8607-8506-4877-32eb-08d55c7e3399 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:8Bt99vsghuJjlZBXSRWbs/aUb0LS9L/3szqguvm4PY5w3abGwMHIK2yROLEyyzRVk5rRap2qxMjZODBQWAgrFWCpCL8MWfrQigwMAtIo0TkNWh+9GrbcjMjUwQKv7hDc26Jbhsi5atJy6EiGqXpOopuuTC5FdROWeWVZbz+CoMiYpx45HoR1R32+Wf9BEeyBrksT3EeDvnHgVncykSVKud+4tDIg5+DYAhkCEOOzNhG7sKDVnFFJANE0MbcwSQ+j; 25:11NxJtztUWN0KL7xUTQFun7dFJRiz+co8GMEoqb9yij3CSXlZ4O5DWkJ5rb3cfcZrHvJEFmvCd81RDV6KKnR0L0xxbvf5YfWz63eqN4ItJ51YI2nyD/Kzx7Bvk7QDEUFan5KPg9Xsrvp+g5wsB3S2R/L5lZrnyOwEZMIYuIMYF3mz2uU1sEKSIBCRlPQfv8BvhdvSBc/Az/QoIfEPcPfDjom5kFtLyk+lE9ZWzSkOZsTwCKU2J/HcUW4+6UCtfrbqHJgUe1i7klkkqm/tovz56cg246poBzJCPIZjwZyuK5/AauhgaRkzHBAlKQ5JYtpv9cAsON9MEOvmO3mgt200Q==; 31:dr+w2M4ZgozCqJJIzplUP+N7WIf5fwIgTLyZc0gDaZWezL7OhNn9N8HGx4/aTKw+7BYFq3xwtM2iko+ORmxS9mwJzvrQeh8HC38QslvwcjlA3SSly0oDEf86mWqiu5M6tulDkx7xr44E/LsErZQj4mj/CfEdQ4DSlYWOP2eemZsY3haBGcgTRK88GurTF2I7xlNhMGmGdL2rUv40jzWkW2eKmxFk0c25fxpAX1o066M= 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:tZpAFSZUQnh8CEcwUimFq3OTM5z7ge6jxhgpmaBH+LiXNmSVk/xwkfHwrxzDPW7SXPTdhlWdRpmxWINGfyAzf+Vx/24vBqcHVA/Ph5fcGykMbxrV8rUZ7BQ6yZa8gzd5LP2pLgCB0lzy0ZkwqAnOFWOhRUORCG4+3AmVMLjL1R9R4HQh1OHC1m+HSsq7aInmQkkx9r0tjcMSzzEwc7uwPUkRL0QVhtOYLdVwR3ay0/4hG+Atn3cGsMjZGElqk3BukbMyQ1V02gA6nZr1NGsnzVHn1edVdum0soWsHpnMic3fBYRTVSqK1axgsHNdbFeZSn9ZCH47Bo4CQnKr3poE04hDupfErxg5sAW96gEqO+z/cjQ3aRYU4wnQlefTZsyaFBDf+fwNf5VNdas43hpVyTP2EjVTDyAC4cWk/NVq1tuufk9bGNxtcHAZsYBU4Si0I151ssMXd0O7BL8BZyCUm9PXjpdtvWSB0FvsqLwxCacsq2n/lOrXjOK4+iQzGSat; 4:Kwi4gh3T1iWe0IO+3F91qP2dwNtrN1PJ2uAmRzF8s74hGYFds5Pqqqq1on55/RguHxDhh5mOpUhjWlzpbatzb8IwyJ5xBQ06t+75ziCS+M5ZXU6GN/DB8bNSZO+tHozpJL7VpUNE0hyjkrmqwBh79RCOfyLBHQahYdXJc8lcSV1dYHUsyb7dP+TEGlOjzUcg3eXnwiEltm0m9h2VdmcGbf/fyHRRy2lON7srks8M3K8rbV9BQS+SPXGcBGVYb1d95XvctDvQ81KGe7obFDqdMg== 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)(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:lxxCEJQKKlewai/9xMazxLr8LaI9TYWLzqARcXD?= =?us-ascii?Q?2JBgNBgHBs8FJMsQEBGVRraky33X3dANpD43nZIqPGia+2c7TgCBrUvG/I3G?= =?us-ascii?Q?p/YbxX/7WwLwbynUhSNUwapIMfxegzyEjZcITps7VLuFDp6Pobi3Bp6urQSR?= =?us-ascii?Q?fSDlaELZjwaUTuB+IEy3Pzzc8wPfNxqZZLev9y0R3neI/URvg5sCyF4RRXMK?= =?us-ascii?Q?jGqQTYVQhdMwBEr78qh7GD7Gg/eVO1MPPXGz2Ca5RDCmYZyzWEP5NiH/vkEU?= =?us-ascii?Q?HeEbzvh5ZWtaRY4/7pQX2MU4CDuM4wk69RE/nm3TvUfKVNon2dDKSo94OMCR?= =?us-ascii?Q?RM1PibNdEK2kJYwcwEQxTGCOLcItGy/LZ2Zd2rK5aBvApH0AUbfH0WOVJ7bJ?= =?us-ascii?Q?VZlccM9iKdO9AlUj8kzgn1K44ASHaeWcOdnDXzC96JJvijS1OHWl9KzDjDN4?= =?us-ascii?Q?P28fbzizBMSzdn8zYcTCiZVFp5QA0f+jUY9NrYbWd8u85CsJ4EQTHkd0GAoW?= =?us-ascii?Q?34GNNxZk6Rmyu7U+HxhcFHagi307eNUQoGM6HpZZaWcRAwlbfDWMZmIYLA14?= =?us-ascii?Q?fI6uD65aFTj63tBumMSESsREGdeDdhH8Em2T7oRkph0cq58VbrLQN8F0FJtU?= =?us-ascii?Q?vkDq6yAb+CunYpDVWjrrGpaMY/OvjX1PAxSb/PZeKJ8ePPfsbB/y6laS164t?= =?us-ascii?Q?ct2yimR7di6Eg3ZT/gbwIe9sB26tdviPPVEWJMT6pitPiRFtODrzpo9gB0oY?= =?us-ascii?Q?svTKfYrLN2XsM/vnlHrvBVpPihDTHP/3k0a78MADuy543oVRMmllgp+GF5+6?= =?us-ascii?Q?qmHEVb9xHIgLjgEEKYj/qrOCOC5eKmF/Si1+IDIwKqZSbD3AuUJew4sO7+To?= =?us-ascii?Q?Nl85nGUbu7Sjn+5ye30PUk7FX0AHJmASq+BD/RLS3OwqKPWWj3/1ZD6FjoFM?= =?us-ascii?Q?nK6hoHu7U01u74vCSJqcPlVion2AvMHVy0i4QkViT/xprE0yQ0vAEAZQrPuk?= =?us-ascii?Q?A3CwLQg/WeMYzm6bcflyHlWRXQZTcJCRawZzrWYax1ZChhRNB1gzcJScZ4MU?= =?us-ascii?Q?CsmkWCgvx5fT3ySX0htwCJq6crU7wWZ3VaT7nP3LKGH2q7Da13wILOn4eHIV?= =?us-ascii?Q?YIBF5VIIm50gZKY1kLJnWWZHUJsgPcK8z?= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2040; 6:EUxqPixODnTSJleGdT3eHCNdna+sev69xBfyjE5Elfn2jGf0xj01oOh+uT1tFp249In8/aalxIURRTph6TpDOP5032EkuRcwsaaAcjt65FO8ucyqaMyph7i34UbPnacW6DjHihMvW/Z1tYSQWM0r7AFIbRcyJx8i3OFzTZFst72ryKwhmNWxUKbm4mrUsPUs0yVJVfzc5RUbZP5vXnk2NCr6V1mdRVRxsXFiEeYqbImQKV5UWCg3cna1FrgPzIRb/fELWc4VYvuI1h/tUk3W7C/d4nXmO6WHSSijJY1+9YxqwXhtRu1FGgj8aLPPjOYdfMH5okwhLclsMqiKVHHA485s0Ao5ixaPxG7fcb4veSY=; 5:ypEyXEzSpSGMQjuDhG5TKVpjg7u888SNk0s5BsBbnAGo+GuQzDpf97TqYSYW1qxggqYVLuKKl4eqwQ0jhy0kB3xdGuZcUnG7XP0A1vJoplRtKQz9u+TTxrxd6yPnyebskpv9mSZaekBzvVU/Yflayhox7gkTqk7CrFUl7JQAX7k=; 24:MBLz/D5JCwCb76+f5bMM1xOtsVq41G9I7pRY1AQfRB8CB+TWrLUUDP3LulqycgQdxmS0KPFXyU7Sjqg7FmfU3Q9k4jYm3f41ooiyz79ditU=; 7:7CJDdzbL1alHSmXvMrY+2R/z4hTAAH3BdcPcHCSKUxF4A/ZvESHi8wZZFZ9ifpKrH/BaPjTevRmwmH/J3ObenSAbRGACF961ZlH8ltNQ6i1vqI4pvjZPHgOEFHzKhKPXIRcjAw1X+BZFYLte4wp8G3Z7D8sBP09wkOCRJAn4qEh+sw+PV6+xyKmbOMbAOnRiY52rbwrKrxKw8EN0Ir8J3Wy/lEqQPUYr3s8cSTaLbXezT1vhLm5yk9mZUYA94sNK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 01:12:23.1292 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a46e8607-8506-4877-32eb-08d55c7e3399 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 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: Tue, 16 Jan 2018 01:12:26 -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 8469f97e1..4def21d24 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_atomic.h +++ b/lib/librte_eal/common/include/arch/x86/rte_atomic.h @@ -38,6 +38,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