Skip to content

net: use READ_ONCE/WRITE_ONCE for ring index accesses

Jakub Kicinski linux-doc linux-rdma netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 5 repliesApplied 3/3
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- convert xdp paths in bnxt as well
v1: https://lore.kernel.org/all/[email protected]/

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: docs: update the sample code in driver.rstDocumentation/networking/driver.rst+27 -340 repliesApplied
2/3bnxt: use READ_ONCE/WRITE_ONCE for ring indexesdrivers/net/ethernet/broadcom/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt.h drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c+10 -114 repliesApplied
3/3mlx4: use READ_ONCE/WRITE_ONCE for ring indexesdrivers/net/ethernet/mellanox/mlx4/en_tx.c+5 -31 replyApplied

Reviews trailers per patch

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

PatchEric DumazetJesse BrandeburgMichael ChanTariq Toukan
1/3R-b R-b
2/3R-b R-b R-b
3/3R-b R-b R-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 4 reviewers.

Read the v2 thread

Cover letter [PATCH net-next v2 0/3] net: use READ_ONCE/WRITE_ONCE for ring index accesses

Small follow up to the lockless ring stop/start macros. Update the doc and the drivers suggested by Eric:
https://lore.kernel.org/all/CANn89iJrBGSybMX1FqrhCEMWT3Nnz2=2+aStsbbwpWzKHjk51g@mail.gmail.com/

v2:
- convert xdp paths in bnxt as well
v1: https://lore.kernel.org/all/[email protected]/

Jakub Kicinski (3):
net: docs: update the sample code in driver.rst
bnxt: use READ_ONCE/WRITE_ONCE for ring indexes
mlx4: use READ_ONCE/WRITE_ONCE for ring indexes

 Documentation/networking/driver.rst           | 61 ++++++++-----------
 drivers/net/ethernet/broadcom/bnxt/bnxt.c     |  6 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt.h     |  9 ++-
 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c |  6 +-
 drivers/net/ethernet/mellanox/mlx4/en_tx.c    |  8 ++-
 5 files changed, 42 insertions(+), 48 deletions(-)
Signature · 1 line
2.39.2