Skip to content

Helper function bpf_set_hash_invalid

v4.9

Definition

Copyright (c) 2015 The Libbpf Authors. All rights reserved.

Invalidate the current skb->hash. It can be used after mangling on headers through direct packet access, in order to indicate that the hash is outdated and to trigger a recalculation the next time the kernel tries to access this hash or when the bpf_get_hash_recalc() helper is called.

Returns

void.

static void (* const bpf_set_hash_invalid)(struct __sk_buff *skb) = (void *) 41;

Usage

Docs could be improved

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

Program types

This helper call can be used in the following program types:

Example

Docs could be improved

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