Skip to content

KFunc bpf_xdp_metadata_rx_timestamp

v6.3

Read XDP frame RX timestamp.

Definition

If bpf_xdp_metadata_rx_timestamp is not supported by the target device, the default implementation is called instead. The verifier, at load time, replaces a call to the generic kfunc with a call to the per-device one.

int bpf_xdp_metadata_rx_timestamp(const struct xdp_md *ctx, u64 *timestamp)

Usage

Docs could be improved

This part of the docs is incomplete, contributions are very welcome

Program types

The following program types can make use of this kfunc:

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome