From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 2EF245961 for ; Fri, 11 Apr 2014 11:35:58 +0200 (CEST) Received: from was59-1-82-226-113-214.fbx.proxad.net ([82.226.113.214] helo=platinum.localnet) by mail.droids-corp.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WYXvF-0001WV-Jy for dev@dpdk.org; Fri, 11 Apr 2014 11:39:03 +0200 From: Olivier MATZ To: dev@dpdk.org Date: Fri, 11 Apr 2014 11:37:13 +0200 Message-ID: <2202149.SQVFq2HVaI@platinum> Organization: 6WIND User-Agent: KMail/4.11.3 (Linux/3.12.6; KDE/4.11.3; x86_64; ; ) In-Reply-To: <7F861DC0615E0C47A872E6F3C5FCDDBD0109D67F@BPXM14GP.gisp.nec.co.jp> References: <7F861DC0615E0C47A872E6F3C5FCDDBD0109D67F@BPXM14GP.gisp.nec.co.jp> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [memnic PATCH] pmd: use rte_atomic32_cmpset instead of cmpxchg 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: Fri, 11 Apr 2014 09:35:58 -0000 On Thursday, April 03, 2014 07:34:56 AM Hiroshi Shimamoto wrote: > From: Hiroshi Shimamoto > > Because DPDK has its own compare and set function to optimize to > dedicated processor type, use that rte_atomic32_cmpset() instead of > cmpxchg macro which is specially introduced for MEMNIC. > > Signed-off-by: Hiroshi Shimamoto > --- > common/memnic.h | 12 ------------ > pmd/pmd_memnic.c | 10 ++++++---- > 2 files changed, 6 insertions(+), 16 deletions(-) Reviewed-by: Olivier Matz