[dpdk-dev] [PATCH v8 01/15] eal: introduce atomic exchange operation

Ananyev, Konstantin konstantin.ananyev at intel.com
Fri Jan 26 18:59:22 CET 2018



> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stephen Hemminger
> Sent: Friday, January 26, 2018 2:02 AM
> To: dev at dpdk.org
> Cc: Stephen Hemminger <stephen at networkplumber.org>
> Subject: [dpdk-dev] [PATCH v8 01/15] eal: introduce atomic exchange operation
> 
> To handle atomic update of link status (64 bit), every driver
> was doing its own version using cmpset.
> Atomic exchange is a useful primitive in its own right;
> therefore make it a EAL routine.
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---
>  .../common/include/arch/ppc_64/rte_atomic.h        | 21 +++++-
>  .../common/include/arch/x86/rte_atomic.h           | 24 +++++++
>  .../common/include/arch/x86/rte_atomic_32.h        | 12 ++++
>  .../common/include/arch/x86/rte_atomic_64.h        | 12 ++++
>  lib/librte_eal/common/include/generic/rte_atomic.h | 78 ++++++++++++++++++++++

Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>



More information about the dev mailing list