]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaaf2280808327991168905a498b130de7cd2dad2
treef660ac344672e3dc7bb53f8503023c0afa280f7e
parentd2d2e1609142c6e6ca8b4ea7e0604356ac42a5c1
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