bpf: move bpf csum flag check
authorWilliam Tu <u9012063@gmail.com>
Mon, 4 Dec 2017 22:18:29 +0000 (14:18 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 4 Dec 2017 22:22:31 +0000 (23:22 +0100)
commit792f3dd6f02b25afc0b42adce2efd523e81c3fb1
tree22f64a223476b9ac796c5d812f2d57eebc5063c3
parenta3fde2addd5f0218b64102005a237ef727b0dc30
bpf: move bpf csum flag check

trivial move the BPF_F_ZERO_CSUM_TX check right below the
'flags & BPF_F_DONT_FRAGMENT', so common tun_flags handling
is logically together.

Signed-off-by: William Tu <u9012063@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/core/filter.c