From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0056.outbound.protection.outlook.com [65.55.169.56]) by dpdk.org (Postfix) with ESMTP id EE4AF8DAC for ; Wed, 4 Nov 2015 14:30:26 +0100 (CET) Received: from BLUPR0701MB1969.namprd07.prod.outlook.com (10.163.121.20) by BLUPR0701MB1779.namprd07.prod.outlook.com (10.162.87.149) with Microsoft SMTP Server (TLS) id 15.1.312.18; Wed, 4 Nov 2015 13:30:25 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from localhost.localdomain.localdomain (122.166.133.227) by BLUPR0701MB1969.namprd07.prod.outlook.com (10.163.121.20) with Microsoft SMTP Server (TLS) id 15.1.318.15; Wed, 4 Nov 2015 13:29:36 +0000 From: Jerin Jacob To: Date: Wed, 4 Nov 2015 18:58:47 +0530 Message-ID: <1446643728-15701-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.166.133.227] X-ClientProxiedBy: MAXPR01CA0066.INDPRD01.PROD.OUTLOOK.COM (25.164.146.166) To BLUPR0701MB1969.namprd07.prod.outlook.com (25.163.121.20) X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1969; 2:CtDHpf2/xMYlgJ4WgUplpb/GhbyN15keMb2zcGv4e4hDV27gBDl+0nvLctuTy3w1kvhqUcIEZKC8P7a/ZDT511HKdz69WfDjR59Bf/hohZ7s3ht4ddVhhcNO7d+t1mqgZdWYwh+FpPWnJn/oP97/juBvbJpNGBsGW0oA2mLOd4Q=; 3:0zGy0xVy1HZh70gLb1UYLIen6f5CDzPwptyQZDPUeo3bu2cT+m4EAHVImWjBoI8nX3VVyxDPSZubicPSfzZLO5saarQwt5Dx9TAKgPHV+Lg4XwBch4H99GFxEGEmd+GxGZmUWPMyZFPgE413P14McQ==; 25:uUhUZbz+eOydm6xwsAYzf+y1kfT7ct8cG8SVGeJYU2hA/RTtz5JW1uo0kOggam3/7YXWp4++vBP8NyK9zj5i4sWPQdeyfCYBzhwlNfsU/UWfEyw58xrL1IHjXuc0z63cMmR+24CyK6fiWmDNAdbb/5u/zQ9GJ/yIucgGpc9bbEVJaapH6SjTvW91+ySsrlz2vmmK8BFHK+ypADqZl1r2Uz5MULNaKk6LDfV+cDgsK3B6N6YR/VbsJ6PUeP495Gf0aQnj3RzohRWElRvUrCXHMQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0701MB1969; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1969; 20:/A2DHyVGItLahnF53BBqoTYfraCQ8oUO27HxGtLZdJxqDl//3GmzLUkWDbdb3wxddMwVQWfY8jt9SH/O2ep0obV/dVyO3vdzlYCuvRgvMcxReilMz3I1qUxV6ltOkiHjzyCOjpba3DhNFiBDBWFvWRdZYivsFseJ7bdZk2owRlWnZeicysfJvyK7tUOun83IEbIDBkdc8s637PkqipGTR/3NtmIm8yxVXptfusqf3ZLCVLMrmqBRNT9C3OWCkqnfB+dNigP9SmOJHQLzywa8/2NN1A/Ye1BSlIoqzdqsyCR2pOwpahwlSV+azmWrfJFP36eqAe/2BzzO0BUfKIISBNFersSp1sq48cKopBMVCKm1abhCNhp4grLxzZC1OFwHGbeUfW1J/e1w9zTXceb/spiQIRISw9hnad7kNX26q8da3jcPO8CuemHrgbQ648xw5tO3PrCNWtHWAOlxemtkG6TjPOXBFR1JMoRVVBxfk+IawMPVJQe4GiqY/uEv1JM46CMbKUO1BmjrEWRtL2DlI18rh3FADlviVqbjypmOGRbEdWXS1dKOzHlNtn0WtQaoa1IluWQMdWjTMxU2tziCnVITnM5xuaAXfElHq/o2znU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:BLUPR0701MB1969; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1969; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1969; 4:8awsHFT4yTV6JnKYtCYcvOGwcGhpks6//S3k7gUfuCuROaLFtREB7KSWoKGK9CWQEYjn3bwW08Aojhqk/JbTtvGSeEmKnTl6WeYlvf1La4176+ZKyVlL5Xoovbavi5/lg/WPiO9/1MNj93T9zUUG0/7Y7/N9BLhkWXxuvqOWWfyC/CN8DswWzQXfyMpj5lJl4/IykJcZOz31lJR/mgj2YQ/7I+wehzRpKOr7whpQmh4asXF/woPzCtwr0AQeuulUbCVAdvZ3814CEmXhrRnsEazUbr/Dymc/+/ASho4ZwdQmYvb7jUYiI2p1NCojQ0ekKKQXa6sn4P6IBqKK8IjXrCujbnOEDF/WqZ+6UcnbowO5aTpygvs30DvZOUM3rXn/ X-Forefront-PRVS: 0750463DC9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(189002)(199003)(50466002)(50986999)(5004730100002)(229853001)(106356001)(40100003)(2351001)(110136002)(107886002)(5001960100002)(77096005)(5007970100001)(92566002)(5003940100001)(105586002)(87976001)(189998001)(33646002)(122386002)(81156007)(50226001)(42186005)(97736004)(86362001)(4001430100002)(101416001)(47776003)(66066001)(36756003)(48376002)(5008740100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1969; H:localhost.localdomain.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1969; 23:Y4aooIH5KuDe7jXlHcONVf9hpv0/KAHJT0iSW4z?= =?us-ascii?Q?kjEnmXwBmmR2pqTDXM3RTvO2H4+9Tvp7q/lGuobZMha+SvtETnrgmdapsT1B?= =?us-ascii?Q?uLwhoJaiO8yXxOhuB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exchange-Diagnostics: 1; BLUPR0701MB1969; 5:MjO0pyASCcNfO9qcBYm/oxpGsTG37sU5r2wZIwISUHqf3gEqhIQHALLYilhvnp2tfx4ZeY0Jy5yz3GxpnK/i7YFsfcdkDNwkXPuLUPaTK0S0GhudrEGMRW8Xc7kvjt6txq7h2llA1hb1zWJiggLSTQ==; 24:LHvZXrC0mvg/wXU//k5PcoKbljDFoRpqH4kscE5ktcVfUi6ogUiBD2z96aAft1l8cMagXu8nZ6B2vjBC6dl5pMxGKEfyebxmoUZvT5LF4tA=; 20:0Ib6D2kY5msOu3rDjZjvdT8MsJPIizJwohUzJ3jPq1UZyFMB++VA4CK7oT+u6N82r95B7xIWw/6NFiVoHOoZAg== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2015 13:29:36.9015 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1969 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1779; 2:EDST2uPyV13zi29/84nhlaZ04Ygg0Xx4cp5Hq81gyg8Ojt/tfB4Qk9jPtZr9qq/6ipwKo2sdDse0IDa0SY/LUkyllu8IFRTcwFheS3pC8QSZWNP6r29RGjLPFqoELAy8hdr1NaZspwxKqCceIFoEmG5wJiqwxrFL2EHdLSxdLhU=; 23:bfVc97vGY+r1LZRLfM/oWBMSg1+ceh6W+1Rd9BGsGS2xQNCuA0EL6UWb6IXQinEbX1gC9gRLsNUd2O2Tw8hrflSTNagGvwVBtiv91h3L5vBp83Ol0E5PFU86d0/l/gQHsNQozKE4trLrA9RcldDQVQnBfjn1M3R2UOE26lkqHf9n5eyFQ3rD0TfPeb/aVIzj X-OriginatorOrg: caviumnetworks.com Cc: changchun.ouyang@intel.com Subject: [dpdk-dev] [RFC ][PATCH] Introduce rte_smp_mb(), rte_smp_wmb() and rte_smp_rmb() X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2015 13:30:27 -0000 Its a RFC patch and I am not sure about the ordering behavior in tile and ppc_64 architecture so kept as rte_compiler_barrier() as existing code. If it need changes in tile and ppc_64 then let me know, I will send the updated patch. Jerin Jacob (1): Introduce rte_smp_*mb() for memory barriers to use between lcores drivers/net/virtio/virtqueue.h | 8 +++---- drivers/net/xenvirt/rte_eth_xenvirt.c | 4 ++-- drivers/net/xenvirt/virtqueue.h | 2 +- .../common/include/arch/ppc_64/rte_atomic.h | 6 +++++ .../common/include/arch/tile/rte_atomic.h | 6 +++++ .../common/include/arch/x86/rte_atomic.h | 6 +++++ lib/librte_eal/common/include/generic/rte_atomic.h | 27 ++++++++++++++++++++++ lib/librte_ring/rte_ring.h | 8 +++---- 8 files changed, 55 insertions(+), 12 deletions(-) -- 2.1.0