diff options
author | Daniel Borkmann | 2016-07-03 01:28:47 +0200 |
---|---|---|
committer | David S. Miller | 2016-07-05 01:08:40 +0200 |
commit | 13c5c240f789bbd2bcacb14a23771491485ae61f (patch) | |
tree | ecf47dfa74f483b539c325e1b95d3772e38e0107 /drivers/net/ethernet/cavium/liquidio/response_manager.c | |
parent | net: samples: pktgen mode samples/tests for qdisc layer (diff) | |
download | kernel-qcow2-linux-13c5c240f789bbd2bcacb14a23771491485ae61f.tar.gz kernel-qcow2-linux-13c5c240f789bbd2bcacb14a23771491485ae61f.tar.xz kernel-qcow2-linux-13c5c240f789bbd2bcacb14a23771491485ae61f.zip |
bpf: add bpf_get_hash_recalc helper
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 <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/liquidio/response_manager.c')
0 files changed, 0 insertions, 0 deletions