Daniel Borkmann d1b662adcd bpf: allow option for setting bpf_l4_csum_replace from scratch
When programs need to calculate the csum from scratch for small UDP
packets and use bpf_l4_csum_replace() to feed the result from helpers
like bpf_csum_diff(), then we need a flag besides BPF_F_MARK_MANGLED_0
that would ignore the case of current csum being 0, and which would
still allow for the helper to set the csum and transform when needed
to CSUM_MANGLED_0.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-24 14:46:06 -05:00
..
2017-01-22 16:46:13 -05:00
2017-01-24 12:39:52 -05:00
2016-12-25 17:21:22 +01:00
2016-12-03 23:54:25 -05:00
2017-01-18 13:04:28 -05:00
2016-12-25 17:21:22 +01:00
2016-11-14 13:17:21 -05:00
2017-01-17 14:38:43 -05:00
2016-10-20 11:23:08 -04:00
2017-01-09 11:40:33 +01:00
2016-12-25 17:21:22 +01:00