Skip to content

KFunc bpf_xdp_metadata_rx_hash

v6.3

Read XDP frame RX hash.

Definition

If bpf_xdp_metadata_rx_hash 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_hash(const struct xdp_md *ctx, u32 *hash, xdp_rss_hash_type *rss_type)

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