]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: xdp_monitor increase memory rlimit
authorJesper Dangaard Brouer <brouer@redhat.com>
Fri, 6 Oct 2017 08:41:51 +0000 (10:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Oct 2017 17:04:36 +0000 (10:04 -0700)
commit3a48c5a99f9dce6501f49fa05ecbce8cb0f863b5
tree487dd38ac704263937622d1963786e191fb6083a
parente30f9dadae99a95284b7bea144dd2686643a453d
samples/bpf: xdp_monitor increase memory rlimit

Other concurrent running programs, like perf or the XDP program what
needed to be monitored, might take up part of the max locked memory
limit.  Thus, the xdp_monitor tool have to set the RLIMIT_MEMLOCK to
RLIM_INFINITY, as it cannot determine a more sane limit.

Using the man exit(3) specified EXIT_FAILURE return exit code, and
correct other users too.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/xdp_monitor_user.c