remove legacy atomic functions
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v9 Latest25 patches 1 replyIn review
- v825 patches 7 repliesSuperseded
- v724 patches 4 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v6 | 24 patches | 1 reply | Superseded | |
| v5 | 24 patches | 7 replies | Superseded |
Patches in v9 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/25 | bpf: use C11 atomics in BPF_ST_ATOMIC_REGlib/ | +7 | 0 replies | |
| 2/25 | net/bonding: use stdatomicdrivers/ drivers/ | +17 | 0 replies | |
| 3/25 | net/nbl: remove unused rte_atomic16 fielddrivers/ | +0 | 0 replies | |
| 4/25 | net/ena: replace use of rte_atomicNNdrivers/ drivers/ drivers/ | +18 | 0 replies | |
| 5/25 | net/failsafe: convert to stdatomicdrivers/ drivers/ drivers/ | +23 | 0 replies | |
| 6/25 | net/enic: do not use deprecated rte_atomic64drivers/ drivers/ drivers/ +2 more | +16 | 0 replies | |
| 7/25 | net/pfe: use ethdev linkstatus helpersdrivers/ | +2 | 0 replies | |
| 8/25 | net/sfc: replace rte_atomic with stdatomicdrivers/ drivers/ drivers/ +1 more | +9 | 0 replies | |
| 9/25 | crypto/ccp: replace use of rte_atomic64 with stdatomicdrivers/ drivers/ drivers/ +1 more | +16 | 0 replies | |
| 10/25 | bus/dpaa: remove unused in_use fielddrivers/ | +1 | 0 replies | |
| 11/25 | bus/dpaa: replace rte_atomic16 with stdatomicdrivers/ | +6 | 0 replies | |
| 12/25 | bus/fslmc: replace rte_atomic with stdatomicdrivers/ drivers/ drivers/ +3 more | +45 | 0 replies | |
| 13/25 | common/dpaax: remove unused atomic wrappersdrivers/ | +0 | 0 replies | |
| 14/25 | net/netvsc: replace rte_atomic32 with stdatomicdrivers/ drivers/ drivers/ | +29 | 0 replies | |
| 15/25 | event/sw: convert from rte_atomic32 to stdatomicdrivers/ drivers/ drivers/ | +18 | 0 replies | |
| 16/25 | bus/vmbus: convert from rte_atomic to stdatomicdrivers/ drivers/ | +23 | 0 replies | |
| 17/25 | net/bnx2x: convert from rte_atomic32 to stdatomicdrivers/ drivers/ drivers/ | +7 | 0 replies | |
| 18/25 | drivers/event: replace rte_atomic32 in selftestsdrivers/ drivers/ | +43 | 0 replies | |
| 19/25 | net/hinic: replace rte_atomic32 with stdatomicdrivers/ drivers/ drivers/ | +17 | 0 replies | |
| 20/25 | net/txgbe: replace rte_atomic32 with stdatomicdrivers/ drivers/ | +3 | 0 replies | |
| 21/25 | net/vhost: use stdatomic for state flagsdrivers/ | +18 | 0 replies | |
| 22/25 | net/vhost: use stdatomic instead of rte_atomic32drivers/ | +40 | 0 replies | |
| 23/25 | vdpa/ifc: replace rte_atomic32 with stdatomicdrivers/ | +19 | 0 replies | |
| 24/25 | test/atomic: drop old rte_atomicNN testsapp/ | +29 | 0 replies | |
| 25/25 | eal: remove rte_atomicNN functionsdevtools/ doc/ doc/ +11 more | +9 | 0 replies |
Reviews trailers per patch
8 of 25 patches have a Reviewed-by or Acked-by.
| Patch | Morten Brørup | Marat Khalili | Hyong Youb Kim | Andrew Rybchenko | Hemant Agrawal | Long Li |
|---|---|---|---|---|---|---|
| Series | Series-acked-by | |||||
| 1/25 | R-b | |||||
| 2/25 | ||||||
| 3/25 | ||||||
| 4/25 | ||||||
| 5/25 | ||||||
| 6/25 | A-b | |||||
| 7/25 | ||||||
| 8/25 | R-b | |||||
| 9/25 | ||||||
| 10/25 | A-b | |||||
| 11/25 | A-b | |||||
| 12/25 | A-b | |||||
| 13/25 | A-b | |||||
| 14/25 | R-b | |||||
| 15/25 | ||||||
| 16/25 | ||||||
| 17/25 | ||||||
| 18/25 | ||||||
| 19/25 | ||||||
| 20/25 | ||||||
| 21/25 | ||||||
| 22/25 | ||||||
| 23/25 | ||||||
| 24/25 | ||||||
| 25/25 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.
Cover letter [PATCH v9 00/25] remove legacy atomic functions
The rte_atomicNN_* family was flagged for deprecation in 2021 by commit 3ec965b6de12 ("doc: update atomic operation deprecation") but removal had stalled and usage continued to grow.
This series finishes converting every remaining in-tree caller to the C11-style rte_atomic_*_explicit() / RTE_ATOMIC() API, then removes the legacy functions. The deprecation has been out there long enough so not a big surprise to users.
The eal/ring/smp_mb changes that were part of the earlier RFC and v1-v5 postings are not in this series; they are being handled separately since the ring memory model discussion is independent of removing the legacy API.
v9 - rebase to main
- enic: remove extra memset
- failsafe: zmalloc of txq and rxq consistency
v8 - drop unused in_use flag in dpaa
- consolidate fslmc changes
- vmbus: use acquire ordering on the wait for the previous producer so an earlier producer's data writes are carried by this thread's release store (Long Li)
- collect review tags
- more AI review comments
v7 - fix some review comments
- remove unused macros
- remove ret_atomicNN functions (rather than deprecating them).
v6 - rebase for 26.11
- address some more AI review comments
Stephen Hemminger (25):
bpf: use C11 atomics in BPF_ST_ATOMIC_REG net/bonding: use stdatomic
net/nbl: remove unused rte_atomic16 field net/ena: replace use of rte_atomicNN net/failsafe: convert to stdatomic
net/enic: do not use deprecated rte_atomic64 net/pfe: use ethdev linkstatus helpers net/sfc: replace rte_atomic with stdatomic crypto/ccp: replace use of rte_atomic64 with stdatomic bus/dpaa: remove unused in_use field bus/dpaa: replace rte_atomic16 with stdatomic bus/fslmc: replace rte_atomic with stdatomic common/dpaax: remove unused atomic wrappers net/netvsc: replace rte_atomic32 with stdatomic event/sw: convert from rte_atomic32 to stdatomic bus/vmbus: convert from rte_atomic to stdatomic net/bnx2x: convert from rte_atomic32 to stdatomic drivers/event: replace rte_atomic32 in selftests net/hinic: replace rte_atomic32 with stdatomic net/txgbe: replace rte_atomic32 with stdatomic net/vhost: use stdatomic for state flags net/vhost: use stdatomic instead of rte_atomic32 vdpa/ifc: replace rte_atomic32 with stdatomic test/atomic: drop old rte_atomicNN tests
eal: remove rte_atomicNN functions
app/test/test_atomic.c | 523 +--------- devtools/checkpatches.sh | 8 - .../prog_guide/writing_efficient_code.rst | 9 +- doc/guides/rel_notes/deprecation.rst | 7 - doc/guides/rel_notes/release_26_11.rst | 7 + drivers/bus/dpaa/base/qbman/bman.c | 7 +- drivers/bus/dpaa/base/qbman/qman.c | 9 +- drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c | 11 +- drivers/bus/fslmc/portal/dpaa2_hw_dpci.c | 11 +- drivers/bus/fslmc/portal/dpaa2_hw_dpcon.c | 11 +- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 14 +- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 9 +- drivers/bus/fslmc/qbman/include/compat.h | 18 +- drivers/bus/vmbus/private.h | 2 +- drivers/bus/vmbus/vmbus_bufring.c | 40 +- drivers/common/dpaax/compat.h | 14 - drivers/crypto/ccp/ccp_crypto.c | 11 +- drivers/crypto/ccp/ccp_crypto.h | 2 +- drivers/crypto/ccp/ccp_dev.c | 10 +- drivers/crypto/ccp/ccp_dev.h | 4 +- drivers/event/dpaa2/dpaa2_eventdev_selftest.c | 26 +- drivers/event/octeontx/ssovf_evdev_selftest.c | 57 +- drivers/event/sw/sw_evdev.c | 8 +- drivers/event/sw/sw_evdev.h | 4 +- drivers/event/sw/sw_evdev_worker.c | 16 +- drivers/net/bnx2x/bnx2x.c | 6 +- drivers/net/bnx2x/bnx2x.h | 2 +- drivers/net/bnx2x/ecore_sp.c | 6 +- drivers/net/bonding/eth_bond_8023ad_private.h | 6 +- drivers/net/bonding/rte_eth_bond_8023ad.c | 35 +- drivers/net/ena/base/ena_plat_dpdk.h | 14 +- drivers/net/ena/ena_ethdev.c | 21 +- drivers/net/ena/ena_ethdev.h | 7 +- drivers/net/enic/enic.h | 6 +- drivers/net/enic/enic_compat.h | 1 - drivers/net/enic/enic_main.c | 21 +- drivers/net/enic/enic_rxtx.c | 14 +- drivers/net/enic/enic_rxtx_vec_avx2.c | 4 +- drivers/net/failsafe/failsafe_ops.c | 16 +- drivers/net/failsafe/failsafe_private.h | 29 +- drivers/net/failsafe/failsafe_rxtx.c | 2 +- drivers/net/hinic/base/hinic_compat.h | 2 +- drivers/net/hinic/base/hinic_pmd_hwdev.c | 24 +- drivers/net/hinic/base/hinic_pmd_hwdev.h | 4 +- drivers/net/nbl/nbl_hw/nbl_resource.h | 1 - drivers/net/netvsc/hn_rndis.c | 28 +- drivers/net/netvsc/hn_rxtx.c | 12 +- drivers/net/netvsc/hn_var.h | 6 +- drivers/net/pfe/pfe_ethdev.c | 32 +- drivers/net/sfc/sfc.c | 9 +- drivers/net/sfc/sfc.h | 4 +- drivers/net/sfc/sfc_port.c | 7 +- drivers/net/sfc/sfc_stats.h | 2 +- drivers/net/txgbe/base/txgbe_mng.c | 4 +- drivers/net/txgbe/base/txgbe_type.h | 2 +- drivers/net/vhost/rte_eth_vhost.c | 92 +- drivers/vdpa/ifc/ifcvf_vdpa.c | 37 +- lib/bpf/bpf_exec.c | 13 +- lib/eal/arm/include/rte_atomic_32.h | 4 - lib/eal/arm/include/rte_atomic_64.h | 4 - lib/eal/include/generic/rte_atomic.h | 928 ------------------ lib/eal/loongarch/include/rte_atomic.h | 4 - lib/eal/ppc/include/rte_atomic.h | 175 ---- lib/eal/riscv/include/rte_atomic.h | 4 - lib/eal/x86/include/meson.build | 1 - lib/eal/x86/include/rte_atomic.h | 187 +--- lib/eal/x86/include/rte_atomic_32.h | 212 ---- lib/eal/x86/include/rte_atomic_64.h | 157 --- 68 files changed, 415 insertions(+), 2568 deletions(-) delete mode 100644 lib/eal/x86/include/rte_atomic_32.h
Signature · 1 line
2.53.0