]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
idpf: export RX hardware timestamping information to XDP
authorYiFei Zhu <zhuyifei@google.com>
Tue, 23 Dec 2025 19:46:46 +0000 (19:46 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 26 Jan 2026 17:32:36 +0000 (09:32 -0800)
commit13a4be41261f7ab8d705f20d9f10652ac1e087c0
tree40758c7e7684b3861ea77a0dc7b52f014058edef
parent24f90786efaf1c573518706408deadcef189e6de
idpf: export RX hardware timestamping information to XDP

The logic is similar to idpf_rx_hwtstamp, but the data is exported
as a BPF kfunc instead of appended to an skb to support grabbing
timestamps in xsk packets.

A idpf_queue_has(PTP, rxq) condition is added to check the queue
supports PTP similar to idpf_rx_process_skb_fields.

Tested using an xsk connection and checking xdp timestamps are
retrievable in received packets.

Cc: intel-wired-lan@lists.osuosl.org
Signed-off-by: YiFei Zhu <zhuyifei@google.com>
Signed-off-by: Mina Almasry <almasrymina@google.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/idpf/xdp.c
drivers/net/ethernet/intel/idpf/xdp.h