diff options
| author | Stanislav Fomichev <[email protected]> | 2019-02-27 19:15:11 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-02-28 23:48:51 +0000 |
| commit | ebace0e981b2aa6b2c0eb9bee0df3676fd690d8b (patch) | |
| tree | af47c4984dd7df6781c7954f75e082f3ef8d1123 /tools/bpf/bpftool/prog.c | |
| parent | bpf: add missing entries to bpf_helpers.h (diff) | |
| download | kernel-ebace0e981b2aa6b2c0eb9bee0df3676fd690d8b.tar.gz kernel-ebace0e981b2aa6b2c0eb9bee0df3676fd690d8b.zip | |
selftests/bpf: use __bpf_constant_htons in test_prog.c for flow dissector
Older GCC (<4.8) isn't smart enough to optimize !__builtin_constant_p()
branch in bpf_htons.
I recently fixed it for pkt_v4 and pkt_v6 in commit a0517a0f7ef23
("selftests/bpf: use __bpf_constant_htons in test_prog.c"), but
later added another bunch of bpf_htons in commit bf0f0fd939451
("selftests/bpf: add simple BPF_PROG_TEST_RUN examples for flow
dissector").
Fixes: bf0f0fd939451 ("selftests/bpf: add simple BPF_PROG_TEST_RUN examples for flow dissector")
Signed-off-by: Stanislav Fomichev <[email protected]>
Acked-by: Song Liu <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
