diff options
| author | Daniel Borkmann <[email protected]> | 2016-08-18 01:00:38 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-08-18 23:38:16 -0700 |
| commit | 45c7fffaf72e77baab9fd8ff1655540a1d5bac9f (patch) | |
| tree | b8bc93b088eaef3f393c95fe1e3196ed636f3b80 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | |
| parent | b34040227be7da760cc72ef3c807e0985e7f0f16 (diff) | |
bpf: use skb_pkt_type_ok helper in bpf_skb_change_type
Since we have a skb_pkt_type_ok() helper for checking the type before
mangling, make use of it instead of open coding. Follow-up to commit
8b10cab64c13 ("net: simplify and make pkt_type_ok() available for other
users") that came in after d2485c4242a8 ("bpf: add bpf_skb_change_type
helper").
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/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions