Re: [PATCH net-next] bpf: add bpf_get_hash_recalc helper

2016-07-04 Thread David Miller
From: Daniel Borkmann 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 retrie

[PATCH net-next] bpf: add bpf_get_hash_recalc helper

2016-07-02 Thread Daniel Borkmann
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 aga