diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2016-09-22 23:28:37 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-23 12:40:28 (GMT) |
commit | 7a4b28c6cc9ffac50f791b99cc7e46106436e5d8 (patch) | |
tree | a75242c2019c0a87017ca6babca3953c0b206e38 /include | |
parent | 669dc4d76d0ecc2d795df735839f43cfddf9f617 (diff) | |
download | linux-7a4b28c6cc9ffac50f791b99cc7e46106436e5d8.tar.xz |
bpf: add helper to invalidate hash
Add a small helper that complements 36bbef52c7eb ("bpf: direct packet
write and access for helpers for clsact progs") for invalidating the
current skb->hash after mangling on headers via direct packet write.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/bpf.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index e07432b..f09c70b 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -419,6 +419,13 @@ enum bpf_func_id { */ BPF_FUNC_csum_update, + /** + * bpf_set_hash_invalid(skb) + * Invalidate current skb>hash. + * @skb: pointer to skb + */ + BPF_FUNC_set_hash_invalid, + __BPF_FUNC_MAX_ID, }; |