commit | b9632679944307f3caab183fa69a4d79ffeb40ce | [log] [tgz] |
---|---|---|
author | Ilya Leoshkevich <iii@linux.ibm.com> | Fri Aug 30 13:07:29 2019 +0200 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Tue Sep 03 21:01:52 2019 +0200 |
tree | b77888de194fbd005964c463913ca970ac18bcc5 | |
parent | 504792e07a44844f24e9d79913e4a2f8373cd332 [diff] |
selftests/bpf: introduce bpf_cpu_to_be64 and bpf_be64_to_cpu test_lwt_seg6local and test_seg6_loop use custom 64-bit endianness conversion macros. Centralize their definitions in bpf_endian.h in order to reduce code duplication. This will also be useful when bpf_endian.h is promoted to an offical libbpf header. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>