samples/bpf: adjust rlimit RLIMIT_MEMLOCK for xdp1
authorTushar Dave <tushar.n.dave@oracle.com>
Fri, 27 Oct 2017 23:12:30 +0000 (16:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Oct 2017 03:17:13 +0000 (12:17 +0900)
commit6dfca831c03ef654b1f7bff1b8d487d330e9f76b
treea61e2bc456827fd8eaed8aef7eda09a0c246c7df
parent5c1a6eaf0d4eb51e96f193a603af59b55660cb08
samples/bpf: adjust rlimit RLIMIT_MEMLOCK for xdp1

Default rlimit RLIMIT_MEMLOCK is 64KB, causes bpf map failure.
e.g.
[root@lab bpf]#./xdp1 -N $(</sys/class/net/eth2/ifindex)
failed to create a map: 1 Operation not permitted

Fix it.

Signed-off-by: Tushar Dave <tushar.n.dave@oracle.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/xdp1_user.c