]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Move endianness BPF helpers out of bpf_util.h
authorDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 19:43:49 +0000 (12:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 19:43:49 +0000 (12:43 -0700)
commite621299537bf1cb6b434cdc22f6ac85d6253c62d
tree33a8d0dd917e4f46705bc024b4f72500238b87d8
parent78ba3974131ba3308f9971864bf249b6f7ecfada
bpf: Move endianness BPF helpers out of bpf_util.h

We do not want to include things like stdio.h and friends into
eBPF program builds.  bpf_util.h is for host compiled programs,
so eBPF C-code helpers don't really belong there.

Add a new bpf_endian.h as a quick fix for this for now.

Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/bpf_endian.h [new file with mode: 0644]
tools/testing/selftests/bpf/bpf_util.h
tools/testing/selftests/bpf/test_l4lb.c
tools/testing/selftests/bpf/test_pkt_access.c