commit | 6088b5823b4cb132a838878747384cbfb5ce6646 | [log] [tgz] |
---|---|---|
author | Daniel Borkmann <daniel@iogearbox.net> | Fri Sep 09 02:45:28 2016 +0200 |
committer | David S. Miller <davem@davemloft.net> | Fri Sep 09 19:36:03 2016 -0700 |
tree | 83d13b9cc765fa76212ba29d4eda9723f6c02e5e | |
parent | bf8d85d4f907d2156e6e5d2831378527957d9bde [diff] |
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>