tools/bpf: add unlimited rlimit for flow_dissector_load
authorYonghong Song <yhs@fb.com>
Mon, 29 Oct 2018 21:56:48 +0000 (14:56 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 30 Oct 2018 22:31:21 +0000 (23:31 +0100)
commitb31d30d9be32d41bef3e6076a965565d3a3d8005
tree5be3d9890fe110eda5cb1531ebb46bbf08182edd
parenta6b3a3fa042343e29ffaf9169f5ba3c819d4f9a2
tools/bpf: add unlimited rlimit for flow_dissector_load

On our test machine, bpf selftest test_flow_dissector.sh failed
with the following error:
  # ./test_flow_dissector.sh
  bpffs not mounted. Mounting...
  libbpf: failed to create map (name: 'jmp_table'): Operation not permitted
  libbpf: failed to load object 'bpf_flow.o'
  ./flow_dissector_load: bpf_prog_load bpf_flow.o
  selftests: test_flow_dissector [FAILED]

Let us increase the rlimit to remove the above map
creation failure.

Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/flow_dissector_load.c