From: Daniel Borkmann <dan...@iogearbox.net> Date: Sun, 3 Jul 2016 01:28:47 +0200
> If skb_clear_hash() was invoked due to mangling of relevant headers and > BPF program needs skb->hash later on, we can add a helper to trigger hash > recalculation via bpf_get_hash_recalc(). > > The helper will return the newly retrieved hash directly, but later access > can also be done via skb context again through skb->hash directly (inline) > without needing to call the helper once more. > > Signed-off-by: Daniel Borkmann <dan...@iogearbox.net> > Acked-by: Alexei Starovoitov <a...@kernel.org> Applied.