diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2016-09-09 02:45:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-10 04:36:03 +0200 |
commit | 6088b5823b4cb132a838878747384cbfb5ce6646 (patch) | |
tree | 83d13b9cc765fa76212ba29d4eda9723f6c02e5e /kernel/trace/bpf_trace.c | |
parent | ip_tunnel: do not clear l4 hashes (diff) | |
download | linux-6088b5823b4cb132a838878747384cbfb5ce6646.tar.xz linux-6088b5823b4cb132a838878747384cbfb5ce6646.zip |
bpf: minor cleanups in helpers
Some minor misc cleanups, f.e. use sizeof(__u32) instead of hardcoding
and in __bpf_skb_max_len(), I missed that we always have skb->dev valid
anyway, so we can drop the unneeded test for dev; also few more other
misc bits addressed here.
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 'kernel/trace/bpf_trace.c')
0 files changed, 0 insertions, 0 deletions