selftests/bpf: Avoid heap allocation
authorBjörn Töpel <bjorn.topel@intel.com>
Fri, 22 Jan 2021 15:47:23 +0000 (16:47 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 25 Jan 2021 23:05:02 +0000 (00:05 +0100)
commit93dd4a06c0e300a2a6538a39f8a30e7b83ff2c66
treef660ac344672e3dc7bb53f8503023c0afa280f7e
parent829725ec7bf538d36f44117eaeb36bdf57be8e54
selftests/bpf: Avoid heap allocation

The data variable is only used locally. Instead of using the heap,
stick to using the stack.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210122154725.22140-11-bjorn.topel@gmail.com
tools/testing/selftests/bpf/xdpxceiver.c