]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gve: Prepare bpf_xdp_metadata_rx_timestamp support
authorTim Hostetler <thostet@google.com>
Fri, 14 Nov 2025 21:11:45 +0000 (13:11 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 18 Nov 2025 14:52:43 +0000 (15:52 +0100)
commit66adaf1021282edcb9be50bea5ea5aa78afda527
tree57ebf155efd1aafc2f73722a08a7b4fb38c922e0
parentf356a66b87bb19e5370dee469ec32e0094ac9da3
gve: Prepare bpf_xdp_metadata_rx_timestamp support

Support populating XDP RX metadata with hardware RX timestamps. This
patch utilizes the same underlying logic to calculate hardware
timestamps as the regular RX path.

xdp_metadata_ops is registered with the net_device in a future patch.

gve_rx_calculate_hwtstamp was pulled out so as to not duplicate logic
between gve_xdp_rx_timestamp and gve_rx_hwtstamp.

Signed-off-by: Tim Hostetler <thostet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Harshitha Ramamurthy <hramamurthy@google.com>
Signed-off-by: Joshua Washington <joshwash@google.com>
Link: https://patch.msgid.link/20251114211146.292068-4-joshwash@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/google/gve/gve.h
drivers/net/ethernet/google/gve/gve_dqo.h
drivers/net/ethernet/google/gve/gve_rx_dqo.c