From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f48.google.com (mail-it0-f48.google.com [209.85.214.48]) by dpdk.org (Postfix) with ESMTP id 699AC1B226 for ; Mon, 6 Nov 2017 08:25:22 +0100 (CET) Received: by mail-it0-f48.google.com with SMTP id y15so4147090ita.4 for ; Sun, 05 Nov 2017 23:25:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=bTa7UlFc+ku9qGsoxperyyIIm3BjzgUNgriPWfWQceY=; b=mzisniKBFQQFE2+ctHx81hrUW2/bRJRjtlRHViF9nAWOIQV9s+gsnk8K/P8esxTGwV jIq498EZJgYOGz4Q3pJvCWgky/J7Z7046eKX/1Ktto/+idmKI1Bc9GtjaRKoHx5LqkGh BP20ediMRbFLLdkiR0i/9B+xvy03galL6c9Zxj/QhwfxD8kghjnwikEE0Z7+1EU04E7C jeZK/gG5SXJfnS3mvV601Xcls8d94FGHxTpvRgDsY1NJRpe80QSwiZ6c8D/6+IWoJEWE 6io9+sHyHShbL44s0ZFIGveCtWAbEIbKJBP1cd7MN8L3DPSwE9o03sXbR5m8qW0je49P TmXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=bTa7UlFc+ku9qGsoxperyyIIm3BjzgUNgriPWfWQceY=; b=TRoqSpOJ1y8V9pyoQlH5zAtWyDdxN2MH170Se9AXiCrKlv0t60FkFOenZOO4MA4R+9 FnVH+XBAWeSS1J5kHiuZTsO2hBvOTy47kpef8gGpivd7XR8uM016ip9+LUpO4EZBWYLo zbx7e3qCwRvbBzyoMjWxZEXYhmmfhyN7gtHTny/j+VHaLWvT625xTINb7x/f4TZBM/ZM ctT0FAv1dGKx8Z/OUL1Ck/wJVdzLaMrIRs30yXnfAKxnZ/ARsbKzzrzzqdXPpB8MAv2z 8Y5bz3/c1fauVUDD+I2PGniB7GZFDpxvioVIZMdxFbv+fSGm1XPJswQcGLXDR7mCItfP kx6w== X-Gm-Message-State: AJaThX5jWLgnONs8nbW3jf2/Nt1+aNh91Ztbi3Fyurja5TUg3KHPqefW d8spooYeQ+qLUhPDDSrL7As= X-Google-Smtp-Source: ABhQp+TWUHcqllqTapZG6MHGWKz99gzs98kUK9FxOwDYsGgwzN/1E3LPaekrM5d1I5xWCDOA30QM8Q== X-Received: by 10.36.184.5 with SMTP id m5mr8803822ite.69.1509953121679; Sun, 05 Nov 2017 23:25:21 -0800 (PST) Received: from [0.0.0.0] (67.209.179.165.16clouds.com. [67.209.179.165]) by smtp.gmail.com with ESMTPSA id z2sm4118626ite.26.2017.11.05.23.25.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Nov 2017 23:25:20 -0800 (PST) To: Jerin Jacob Cc: dev@dpdk.org, olivier.matz@6wind.com, konstantin.ananyev@intel.com, bruce.richardson@intel.com, jianbo.liu@arm.com, hemant.agrawal@nxp.com, jie2.liu@hxt-semitech.com, bing.zhao@hxt-semitech.com, jia.he@hxt-semitech.com References: <1509612210-5499-1-git-send-email-hejianet@gmail.com> <20171102172337.GB1478@jerin> <25192429-8369-ac3d-44b0-c1b1d7182ef0@gmail.com> <20171103125616.GB20326@jerin> From: Jia He Message-ID: <7b7f3677-8313-9a2f-868f-b3a6231548d6@gmail.com> Date: Mon, 6 Nov 2017 15:25:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171103125616.GB20326@jerin> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v2] ring: guarantee ordering of cons/prod loading when doing 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: Mon, 06 Nov 2017 07:25:22 -0000 Hi Jerin On 11/3/2017 8:56 PM, Jerin Jacob Wrote: > -----Original Message----- >> [...] >> g like that. >> Ok, but how to distinguish following 2 options? > No clearly understood this question. For arm64 case, you can add > CONFIG_RTE_RING_USE_C11_MEM_MODEL=y in config/defconfig_arm64-armv8a-* Sorry for my unclear expressions. I mean there should be one additional config macro besides CONFIG_RTE_RING_USE_C11_MEM_MODEL for users to choose? i.e.  - On X86:CONFIG_RTE_RING_USE_C11_MEM_MODEL=n include rte_ring_generic.h, no changes - On arm64,CONFIG_RTE_RING_USE_C11_MEM_MODEL=y include rte_ring_c11_mem.h by default. In rte_ring_c11_mem.h, implement new version of __rte_ring_move_prod_head/__rte_ring_move_cons_head/update_tail Then, how to distinguish the option of using rte_smp_rmb() or __atomic_load/store_n()? Thanks for the clarification. -- Cheers, Jia