bpf: add helper to invalidate hash
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 22 Sep 2016 23:28:37 +0000 (01:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Sep 2016 12:40:28 +0000 (08:40 -0400)
commit7a4b28c6cc9ffac50f791b99cc7e46106436e5d8
treea75242c2019c0a87017ca6babca3953c0b206e38
parent669dc4d76d0ecc2d795df735839f43cfddf9f617
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>
include/uapi/linux/bpf.h
net/core/filter.c