[dpdk-dev] [PATCH v3 0/4] use C11 atomic builtins for libs
David Marchand
david.marchand at redhat.com
Fri Sep 25 15:59:58 CEST 2020
On Thu, Sep 24, 2020 at 7:40 AM Phil Yang <phil.yang at arm.com> wrote:
>
> Since rte_atomicXX APIs are not allowed to be used[1][2], use C11 atomic
> builtins instead in eal, bbdev, power, and ethdev libs.
>
> [1] http://code.dpdk.org/dpdk/latest/source/doc/guides/rel_notes/deprecation.rst#L87
> [2] http://code.dpdk.org/dpdk/latest/source/devtools/checkpatches.sh#L80
>
> v3:
> remove unnecessary rte_atomic.h headers. (David)
>
> v2:
> Fix Clang int-conversion warning.
>
> v1:
> Initial version.
>
> Phil Yang (4):
> eal: use C11 atomic builtins for already initialized check
> bbdev: use C11 atomic builtins for device processing counter
> power: use C11 atomic builtins for power in use state update
> ethdev: use C11 atomic builtins for link status update
>
> lib/librte_bbdev/rte_bbdev.c | 5 ++--
> lib/librte_bbdev/rte_bbdev.h | 4 +--
> lib/librte_eal/freebsd/eal.c | 19 +++++++-------
> lib/librte_eal/linux/eal.c | 21 +++++++--------
> lib/librte_ethdev/rte_ethdev_driver.h | 19 ++++----------
> lib/librte_power/power_acpi_cpufreq.c | 45 +++++++++++++++++++++++++--------
> lib/librte_power/power_pstate_cpufreq.c | 45 +++++++++++++++++++++++++--------
> 7 files changed, 100 insertions(+), 58 deletions(-)
>
Series applied, thanks Phil.
--
David Marchand
More information about the dev
mailing list