Skip to content

use __atomic operations returning previous value

Tyler Retzlaff dpdk-dev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest17 patches 4 repliesIn review
  2. v117 patches 7 repliesSuperseded

Changes in v2 from the cover letter

net/iavf patch had one incorrect change to __atomic_fetch_sub from __atomic_sub_fetch the new value was assigned to a variable on the previous line so revert the change from the patch.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17vhost: use previous value atomic fetch operationslib/vhost/virtio_net.c+3 -30 replies
2/17telemetry: use previous value atomic fetch operationslib/telemetry/telemetry.c+3 -30 replies
3/17stack: use previous value atomic fetch operationslib/stack/rte_stack_lf_c11.h+1 -10 replies
4/17eal: use previous value atomic fetch operationslib/eal/common/eal_common_trace.c lib/eal/common/rte_service.c lib/eal/ppc/include/rte_atomic.h+16 -160 replies
5/17distributor: use previous value atomic fetch operationslib/distributor/rte_distributor.c+1 -10 replies
6/17bbdev: use previous value atomic fetch operationslib/bbdev/rte_bbdev.c+1 -10 replies
7/17examples/vhost: use previous value atomic fetch operationsexamples/vhost/main.c examples/vhost/virtio_net.c+8 -80 replies
8/17net/virtio: use previous value atomic fetch operationsdrivers/net/virtio/virtio_user/virtio_user_dev.c+1 -10 replies
9/17net/octeontx: use previous value atomic fetch operationsdrivers/net/octeontx/octeontx_ethdev.c+1 -10 replies
10/17net/mlx5: use previous value atomic fetch operationsdrivers/net/mlx5/linux/mlx5_verbs.c drivers/net/mlx5/mlx5_flow.c drivers/net/mlx5/mlx5_flow_dv.c +4 more+25 -250 replies
11/17net/iavf: use previous value atomic fetch operationsdrivers/net/iavf/iavf_vchnl.c+2 -20 replies
12/17net/cxgbe: use previous value atomic fetch operationsdrivers/net/cxgbe/clip_tbl.c drivers/net/cxgbe/cxgbe_main.c drivers/net/cxgbe/l2t.c +2 more+12 -120 replies
13/17drivers/event: use previous value atomic fetch operationsdrivers/event/cnxk/cnxk_eventdev_selftest.c drivers/event/cnxk/cnxk_tim_worker.h drivers/event/dsw/dsw_event.c +1 more+15 -151 reply
14/17dma/skeleton: use previous value atomic fetch operationsdrivers/dma/skeleton/skeleton_dmadev.c+1 -10 replies
15/17drivers/common: use previous value atomic fetch operationsdrivers/common/cnxk/roc_nix_inl_dev.c drivers/common/mlx5/mlx5_common_mr.c drivers/common/mlx5/mlx5_common_utils.c +1 more+15 -150 replies
16/17app/test: use previous value atomic fetch operationsapp/test/test_lcores.c app/test/test_service_cores.c+3 -30 replies
17/17test-eventdev: use previous value atomic fetch operationsapp/test-eventdev/test_order_common.h+1 -10 replies

Reviews trailers per patch

All 17 patches have a Reviewed-by or Acked-by.

PatchMorten BrørupMaxime CoquelinBruce RichardsonRuifeng WangChengwen FengPavan Nikhilesh
SeriesSeries-acked-by Series-acked-by Series-acked-by
1/17A-b R-b
2/17A-b A-b
3/17A-b
4/17A-b
5/17A-b
6/17A-b
7/17A-b R-b
8/17A-b R-b
9/17A-b
10/17A-b
11/17A-b
12/17A-b
13/17A-b A-b
14/17A-b
15/17A-b
16/17A-b
17/17A-b

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.

Read the v2 thread

Cover letter [PATCH v2 00/17] use __atomic operations returning previous value

This series replaces uses of __atomic_{add,and,or,sub,xor}_fetch with __atomic_fetch_{add,and,or,sub,xor} intrinsics. The latter omits generation of code that is only needed if the returned value is actually used.

Additionally, this change simplifies adapting dpdk to standard atomics planned for 23.07 since __atomic_fetch_xxx can be trivially replaced with atomic_fetch_xxx whereas __atomic_xxx_fetch has no standard equivalent.

v2:
net/iavf patch had one incorrect change to __atomic_fetch_sub from __atomic_sub_fetch the new value was assigned to a variable on the previous line so revert the change from the patch.

Tyler Retzlaff (17):
vhost: use previous value atomic fetch operations
telemetry: use previous value atomic fetch operations
stack: use previous value atomic fetch operations
eal: use previous value atomic fetch operations
distributor: use previous value atomic fetch operations
bbdev: use previous value atomic fetch operations examples/vhost: use previous value atomic fetch operations net/virtio: use previous value atomic fetch operations net/octeontx: use previous value atomic fetch operations net/mlx5: use previous value atomic fetch operations net/iavf: use previous value atomic fetch operations net/cxgbe: use previous value atomic fetch operations drivers/event: use previous value atomic fetch operations dma/skeleton: use previous value atomic fetch operations drivers/common: use previous value atomic fetch operations app/test: use previous value atomic fetch operations
test-eventdev: use previous value atomic fetch operations

 app/test-eventdev/test_order_common.h            |  2 +-
 app/test/test_lcores.c                           |  2 +-
 app/test/test_service_cores.c                    |  4 ++--
 drivers/common/cnxk/roc_nix_inl_dev.c            |  2 +-
 drivers/common/mlx5/mlx5_common_mr.c             |  2 +-
 drivers/common/mlx5/mlx5_common_utils.c          | 10 +++++-----
 drivers/common/mlx5/mlx5_malloc.c                | 16 ++++++++--------
 drivers/dma/skeleton/skeleton_dmadev.c           |  2 +-
 drivers/event/cnxk/cnxk_eventdev_selftest.c      | 12 ++++++------
 drivers/event/cnxk/cnxk_tim_worker.h             |  6 +++---
 drivers/event/dsw/dsw_event.c                    |  6 +++---
 drivers/event/octeontx/timvf_worker.h            |  6 +++---
 drivers/net/cxgbe/clip_tbl.c                     |  2 +-
 drivers/net/cxgbe/cxgbe_main.c                   | 12 ++++++------
 drivers/net/cxgbe/l2t.c                          |  4 ++--
 drivers/net/cxgbe/mps_tcam.c                     |  2 +-
 drivers/net/cxgbe/smt.c                          |  4 ++--
 drivers/net/iavf/iavf_vchnl.c                    |  4 ++--
 drivers/net/mlx5/linux/mlx5_verbs.c              |  2 +-
 drivers/net/mlx5/mlx5_flow.c                     |  6 +++---
 drivers/net/mlx5/mlx5_flow_dv.c                  |  4 ++--
 drivers/net/mlx5/mlx5_flow_flex.c                |  6 +++---
 drivers/net/mlx5/mlx5_flow_hw.c                  | 10 +++++-----
 drivers/net/mlx5/mlx5_flow_meter.c               | 20 ++++++++++----------
 drivers/net/mlx5/mlx5_rx.h                       |  2 +-
 drivers/net/octeontx/octeontx_ethdev.c           |  2 +-
 drivers/net/virtio/virtio_user/virtio_user_dev.c |  2 +-
 examples/vhost/main.c                            | 12 ++++++------
 examples/vhost/virtio_net.c                      |  4 ++--
 lib/bbdev/rte_bbdev.c                            |  2 +-
 lib/distributor/rte_distributor.c                |  2 +-
 lib/eal/common/eal_common_trace.c                |  8 ++++----
 lib/eal/common/rte_service.c                     |  8 ++++----
 lib/eal/ppc/include/rte_atomic.h                 | 16 ++++++++--------
 lib/stack/rte_stack_lf_c11.h                     |  2 +-
 lib/telemetry/telemetry.c                        |  6 +++---
 lib/vhost/virtio_net.c                           |  6 +++---
 37 files changed, 109 insertions(+), 109 deletions(-)
Signature · 1 line
1.8.3.1