Re: [PATCH bpf-next] libbpf: make bpf_endian co-exist with vmlinux.h

2020-06-29 Thread Andrii Nakryiko
On Mon, Jun 29, 2020 at 8:09 PM Alexei Starovoitov wrote: > > On Mon, Jun 29, 2020 at 07:05:38PM -0700, Andrii Nakryiko wrote: > > Copy over few #defines from UAPI swab.h header to make all the rest of > > bpf_endian.h work and not rely on any extra headers. This way it can be used > > both with l

Re: [PATCH bpf-next] libbpf: make bpf_endian co-exist with vmlinux.h

2020-06-29 Thread Alexei Starovoitov
On Mon, Jun 29, 2020 at 07:05:38PM -0700, Andrii Nakryiko wrote: > Copy over few #defines from UAPI swab.h header to make all the rest of > bpf_endian.h work and not rely on any extra headers. This way it can be used > both with linux header includes, as well with a vmlinux.h. This has been > a fre

[PATCH bpf-next] libbpf: make bpf_endian co-exist with vmlinux.h

2020-06-29 Thread Andrii Nakryiko
Copy over few #defines from UAPI swab.h header to make all the rest of bpf_endian.h work and not rely on any extra headers. This way it can be used both with linux header includes, as well with a vmlinux.h. This has been a frequent complaint from users, that need this header. Signed-off-by: Andrii