All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/3] net/af_packet: correctness fixes and improvements
@ 2026-01-27 18:13 scott.k.mitch1
  2026-01-27 18:13 ` [PATCH v1 1/3] net/af_packet: fix thread safety and frame calculations scott.k.mitch1
                   ` (3 more replies)
  0 siblings, 4 replies; 86+ messages in thread
From: scott.k.mitch1 @ 2026-01-27 18:13 UTC (permalink / raw)
  To: dev; +Cc: Scott

From: Scott <scott.k.mitch1@gmail.com>

This series addresses correctness issues and adds performance
optimizations to the AF_PACKET driver, laying the groundwork for
upcoming advanced features.

The series is structured as:

Patch 1/3: Thread safety and frame calculation fixes
  - Critical correctness fixes for multi-threaded environments
  - Proper atomic operations and memory ordering for tp_status
  - Fixes frame address calculation bugs

Patch 2/3: Performance optimizations
  - Use rte_memcpy() for better performance
  - Add prefetching for next frame/mbuf
  - Use rte_pktmbuf_free_bulk() instead of individual frees

Patch 3/3: New features and device arguments
  - Software checksum offload support
  - TX poll behavior control (txpollnotrdy devarg)
  - Improved devarg validation

These changes prepare the driver for planned follow-up patches that will
add significant new capabilities:

- io_uring SQPOLL support for TX send notify, which meaningfully improves
  performance by eliminating syscall overhead and enabling kernel-side
  polling

- GRO/GSO support via PACKET_VNET_HDR to aggregate packets and reduce
  per-packet interface traversal overhead

- TPACKET_V3 protocol support for block-based RX/TX processing, providing
  packet batching benefits and reducing cache pressure

The correctness fixes in patch 1/3 are particularly important for these
future features, as io_uring SQPOLL mode involves asynchronous kernel
updates to tp_status from independent CPU cores, requiring proper memory
ordering.

Scott Mitchell (3):
  net/af_packet: fix thread safety and frame calculations
  net/af_packet: RX/TX rte_memcpy, bulk free, prefetch
  net/af_packet: software checksum and tx poll control

 drivers/net/af_packet/rte_eth_af_packet.c | 389 +++++++++++++++-------
 1 file changed, 270 insertions(+), 119 deletions(-)

--
2.39.5 (Apple Git-154)


^ permalink raw reply	[flat|nested] 86+ messages in thread

end of thread, other threads:[~2026-12-02 17:29 UTC | newest]

Thread overview: 86+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-27 18:13 [PATCH v1 0/3] net/af_packet: correctness fixes and improvements scott.k.mitch1
2026-01-27 18:13 ` [PATCH v1 1/3] net/af_packet: fix thread safety and frame calculations scott.k.mitch1
2026-01-27 18:39   ` Stephen Hemminger
2026-01-28  1:35     ` Scott Mitchell
2026-01-27 18:13 ` [PATCH v1 2/3] net/af_packet: RX/TX rte_memcpy, bulk free, prefetch scott.k.mitch1
2026-01-27 18:54   ` Stephen Hemminger
2026-01-28  1:23     ` Scott Mitchell
2026-01-28  9:49       ` Morten Brørup
2026-01-28 15:37         ` Scott Mitchell
2026-01-28 16:57           ` Stephen Hemminger
2026-01-27 18:13 ` [PATCH v1 3/3] net/af_packet: software checksum and tx poll control scott.k.mitch1
2026-01-27 18:57   ` Stephen Hemminger
2026-01-28  7:05     ` Scott Mitchell
2026-01-28 17:36       ` Stephen Hemminger
2026-01-28 18:59         ` Scott Mitchell
2026-01-27 20:45   ` [REVIEW] " Stephen Hemminger
2026-01-28  9:36 ` [PATCH v2 0/4] af_packet correctness, performance, cksum scott.k.mitch1
2026-01-28  9:36   ` [PATCH v2 1/4] net/af_packet: fix thread safety and frame calculations scott.k.mitch1
2026-01-28 16:59     ` Stephen Hemminger
2026-01-28 18:00       ` Scott Mitchell
2026-01-28 18:28         ` Stephen Hemminger
2026-01-28  9:36   ` [PATCH v2 2/4] net/af_packet: RX/TX unlikely, bulk free, prefetch scott.k.mitch1
2026-01-28  9:36   ` [PATCH v2 3/4] net/af_packet: tx poll control scott.k.mitch1
2026-01-28  9:36   ` [PATCH v2 4/4] net/af_packet: software checksum scott.k.mitch1
2026-01-28 18:27     ` Stephen Hemminger
2026-01-28 19:08       ` Scott Mitchell
2026-01-28 19:10   ` [PATCH v3 0/4] af_packet correctness, performance, cksum scott.k.mitch1
2026-01-28 19:10     ` [PATCH v3 1/4] net/af_packet: fix thread safety and frame calculations scott.k.mitch1
2026-01-28 19:10     ` [PATCH v3 2/4] net/af_packet: RX/TX unlikely, bulk free, prefetch scott.k.mitch1
2026-01-29  1:07       ` Stephen Hemminger
2026-02-02  5:29         ` Scott Mitchell
2026-01-28 19:10     ` [PATCH v3 3/4] net/af_packet: tx poll control scott.k.mitch1
2026-01-28 19:10     ` [PATCH v3 4/4] net/af_packet: software checksum scott.k.mitch1
2026-01-28 21:57       ` [REVIEW] " Stephen Hemminger
2026-02-02  7:55         ` Scott Mitchell
2026-02-02 16:58           ` Stephen Hemminger
2026-02-02  8:14     ` [PATCH v4 0/4] af_packet correctness, performance, cksum scott.k.mitch1
2026-02-02  8:14       ` [PATCH v4 1/4] net/af_packet: fix thread safety and frame calculations scott.k.mitch1
2026-02-02  8:14       ` [PATCH v4 2/4] net/af_packet: RX/TX bulk free, unlikely hint scott.k.mitch1
2026-02-02  8:14       ` [PATCH v4 3/4] net/af_packet: tx poll control scott.k.mitch1
2026-02-02  8:14       ` [PATCH v4 4/4] net/af_packet: add software checksum offload support scott.k.mitch1
2026-02-02 17:00         ` Stephen Hemminger
2026-02-02 18:47         ` Stephen Hemminger
2026-02-03  6:41           ` Scott Mitchell
2026-02-02 18:53       ` [PATCH v4 0/4] af_packet correctness, performance, cksum Stephen Hemminger
2026-02-03  7:07       ` [PATCH v5 " scott.k.mitch1
2026-02-03  7:07         ` [PATCH v5 1/4] net/af_packet: fix thread safety and frame calculations scott.k.mitch1
2026-02-03  7:07         ` [PATCH v5 2/4] net/af_packet: RX/TX bulk free, unlikely hint scott.k.mitch1
2026-02-03  7:07         ` [PATCH v5 3/4] net/af_packet: tx poll control scott.k.mitch1
2026-02-03  7:07         ` [PATCH v5 4/4] net/af_packet: add software checksum offload support scott.k.mitch1
2026-02-03  8:20           ` Scott Mitchell
2026-02-03 14:12             ` Stephen Hemminger
2026-02-04  2:59               ` Scott Mitchell
2026-02-03 14:13           ` Stephen Hemminger
2026-02-04  1:39             ` Scott Mitchell
2026-02-05 21:27               ` Stephen Hemminger
2026-02-06  1:11         ` [PATCH v6 0/4] af_packet correctness, performance, cksum scott.k.mitch1
2026-02-06  1:11           ` [PATCH v6 1/4] net/af_packet: fix thread safety and frame calculations scott.k.mitch1
2026-02-06  1:11           ` [PATCH v6 2/4] net/af_packet: RX/TX bulk free, unlikely hint scott.k.mitch1
2026-02-06  1:11           ` [PATCH v6 3/4] net/af_packet: tx poll control scott.k.mitch1
2026-02-06  1:11           ` [PATCH v6 4/4] net/af_packet: add software checksum offload support scott.k.mitch1
2026-02-06  1:49           ` [PATCH v6 0/4] af_packet correctness, performance, cksum Stephen Hemminger
2026-02-06  4:45             ` Scott Mitchell
2026-02-06 14:36             ` Morten Brørup
2026-02-06 16:11               ` Stephen Hemminger
2026-12-01 22:24           ` [PATCH v7 0/4] net/af_packet: " Scott Mitchell
2026-12-01 22:24             ` [PATCH v7 1/4] net/af_packet: fix thread safety and frame calculations Scott Mitchell
2026-12-01 22:24             ` [PATCH v7 2/4] net/af_packet: RX/TX bulk free, unlikely hint Scott Mitchell
2026-12-01 22:24             ` [PATCH v7 3/4] net/af_packet: tx poll control Scott Mitchell
2026-12-01 22:24             ` [PATCH v7 4/4] net/af_packet: add software checksum offload support Scott Mitchell
2026-12-01 23:22               ` Scott Mitchell
2026-12-01 22:32             ` [PATCH v7 0/4] net/af_packet: correctness, performance, cksum Scott Mitchell
2026-12-02  7:09             ` Stephen Hemminger
2026-12-02  8:01             ` Morten Brørup
2026-12-02 16:11               ` Scott Mitchell
2026-12-02 17:17             ` [PATCH v8 0/8] net/af_packet fixes and Tx features Scott Mitchell
2026-12-02 17:17               ` [PATCH v8 1/8] net/af_packet: fix frame status memory ordering Scott Mitchell
2026-12-02 17:26                 ` Stephen Hemminger
2026-12-02 17:17               ` [PATCH v8 2/8] net/af_packet: fix frame address with unused block tail Scott Mitchell
2026-12-02 17:17               ` [PATCH v8 3/8] net/af_packet: fix maximum Rx packet length Scott Mitchell
2026-12-02 17:18               ` [PATCH v8 4/8] test/af_packet: add frame layout tests Scott Mitchell
2026-12-02 17:18               ` [PATCH v8 5/8] net/af_packet: reject invalid ring parameters at probe Scott Mitchell
2026-12-02 17:29                 ` Stephen Hemminger
2026-12-02 17:18               ` [PATCH v8 6/8] net/af_packet: clean up Tx and bulk free mbufs Scott Mitchell
2026-12-02 17:18               ` [PATCH v8 7/8] net/af_packet: do not block in Tx when the ring is full Scott Mitchell
2026-12-02 17:18               ` [PATCH v8 8/8] net/af_packet: add Tx checksum offload Scott Mitchell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.