From: Mark Blasko <blasko@google.com>
To: dev@dpdk.org
Cc: ciara.loftus@intel.com, mtahhan@redhat.com, joshwash@google.com,
jtranoleary@google.com, blasko@google.com
Subject: [PATCH v4 0/2] net/af_xdp: add Rx timestamping and read_clock support
Date: Sat, 1 Aug 2026 03:25:31 +0000 [thread overview]
Message-ID: <20260801032534.2865192-1-blasko@google.com> (raw)
In-Reply-To: <20260623215325.814776-1-blasko@google.com>
This patch series introduces support for dynamic RX timestamping and
clock querying in the AF_XDP Poll Mode Driver.
The first patch introduces three new vdev devargs to specify
layout-agnostic metadata offsets and bitmasks for extracting hardware
RX timestamps from XDP metadata into the mbuf dynamic timestamp field.
The second patch implements the read_clock ethdev operation, querying
ethtool for the interface's PTP Hardware Clock index at start and using
clock_gettime to query the NIC hardware clock time.
---
v4:
- Patch 1:
- Validate rx_timestamp_offset (8 <= offset <= 256) and valid_hint_offset
(1 <= offset <= 256) bounds.
- Revert parse_integer_arg() to base 10 and add dedicated parse_hex_arg()
for validity mask.
- Optimize fast-path check and use rte_pktmbuf_mtod_offset() macro.
- Preserve config.tx_type in SIOCSHWTSTAMP instead of forcing
HWTSTAMP_TX_OFF.
- Return -errno on socket failure and replace (caddr_t) cast with
(void *).
- Advertise RTE_ETH_RX_OFFLOAD_TIMESTAMP conditionally when
rx_timestamp_offset >= 0.
- Update af_xdp.ini features matrix with Timestamp offload = Y.
- Document CAP_NET_ADMIN requirement and persistent HW filter side
effect in af_xdp.rst.
- Patch 2:
- Move ptp_fd into pmd_process_private for multi-process safety.
- Decouple /dev/ptpX opening from RTE_ETH_RX_OFFLOAD_TIMESTAMP.
- Move read_clock documentation out of "Options" into its own section
in af_xdp.rst.
- Add #ifndef guards around CLOCKFD and FD_TO_CLOCKID macro definitions.
- Replace (caddr_t) cast with (void *).
v3:
- Patch 1:
- Add PMD documentation and release notes entry.
- Move dynamic mbuf timestamp field registration to eth_dev_start().
- Replace 64-bit pointer casting with memcpy.
- Add devargs validation and support auto-base integer parsing.
- Patch 2:
- Add documentation and release notes entry.
- Add PTP file descriptor cleanup on device start, stop, and close.
- Return -errno on clock_gettime() failure and fix PTP open error logging.
v2:
- Patch 1:
- Replace static metadata struct assumption with configurable vdev devargs
for layout-agnostic timestamp offset extraction and validity verification.
- Patch 2:
- New patch introduced in v2 to support read_clock ethdev operation.
---
Mark Blasko (2):
net/af_xdp: add af_xdp rx metadata and dynamic timestamping support
net/af_xdp: add read_clock support to AF_XDP PMD
doc/guides/nics/af_xdp.rst | 46 ++++
doc/guides/nics/features/af_xdp.ini | 1 +
doc/guides/rel_notes/release_26_07.rst | 7 +
drivers/net/af_xdp/rte_eth_af_xdp.c | 322 ++++++++++++++++++++++++-
4 files changed, 371 insertions(+), 5 deletions(-)
--
2.55.0.508.g3f0d502094-goog
next prev parent reply other threads:[~2026-08-01 3:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-23 21:53 [PATCH] net/af_xdp: add Rx metadata and dynamic timestamping support Mark Blasko
2026-06-23 22:06 ` Stephen Hemminger
2026-06-29 0:50 ` Mark Blasko
2026-06-29 17:38 ` Stephen Hemminger
2026-06-29 19:10 ` Joshua Washington
2026-06-29 20:02 ` Stephen Hemminger
2026-06-29 20:03 ` Stephen Hemminger
2026-06-30 0:41 ` Joshua Washington
2026-07-10 22:10 ` [PATCH v2 0/2] net/af_xdp: add Rx timestamping and read_clock support Mark Blasko
2026-07-10 22:10 ` [PATCH v2 1/2] net/af_xdp: add af_xdp rx metadata and dynamic timestamping support Mark Blasko
2026-07-10 22:10 ` [PATCH v2 2/2] net/af_xdp: add read_clock support to AF_XDP PMD Mark Blasko
2026-07-21 12:11 ` [PATCH v3 0/2] net/af_xdp: add Rx timestamping and read_clock support Mark Blasko
2026-07-21 12:11 ` [PATCH v3 1/2] net/af_xdp: add af_xdp rx metadata and dynamic timestamping support Mark Blasko
2026-07-26 17:01 ` Stephen Hemminger
2026-08-01 3:26 ` Mark Blasko
2026-07-21 12:11 ` [PATCH v3 2/2] net/af_xdp: add read_clock support to AF_XDP PMD Mark Blasko
2026-08-01 3:25 ` Mark Blasko [this message]
2026-08-01 3:25 ` [PATCH v4 1/2] net/af_xdp: add af_xdp rx metadata and dynamic timestamping support Mark Blasko
2026-08-01 3:25 ` [PATCH v4 2/2] net/af_xdp: add read_clock support to AF_XDP PMD Mark Blasko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260801032534.2865192-1-blasko@google.com \
--to=blasko@google.com \
--cc=ciara.loftus@intel.com \
--cc=dev@dpdk.org \
--cc=joshwash@google.com \
--cc=jtranoleary@google.com \
--cc=mtahhan@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.