]> git.karo-electronics.de Git - karo-tx-linux.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)
commitbc1bafbbe9b3558d7789ff151ef4f185b6ad21f3
tree33a8d0dd917e4f46705bc024b4f72500238b87d8
parent5b8481fa42ac58484d633b558579e302aead64c1
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