diff options
author | Daniel Borkmann <[email protected]> | 2016-09-09 02:45:28 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-09-09 19:36:03 -0700 |
commit | 6088b5823b4cb132a838878747384cbfb5ce6646 (patch) | |
tree | 83d13b9cc765fa76212ba29d4eda9723f6c02e5e /tools/perf/scripts/python/net_dropmonitor.py | |
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 <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions