Radu Stoenescu <radu.stoe@xxxxxxxxx> writes: > I'm running this Ubuntu: Linux anemie 5.0.0-31-generic #33~18.04.1-Ubuntu SMP > > I've cloned and compiled the Linux kernel - the same version and > config as of my machine's. > > When trying to run the xdp_redirec_map sample program from samples/bpf I get: > > sudo ./xdp_redirect_map 2 1 > #=> failed to create map 0 (tx_port): 1 Operation not permitted > > I read that, on certain systems, the default limit of locked memory > might pose problems, and I mitigated that as seen below: > > ulimit -a > > core file size (blocks, -c) 0 > data seg size (kbytes, -d) unlimited > scheduling priority (-e) 0 > file size (blocks, -f) unlimited > pending signals (-i) 31231 > max locked memory (kbytes, -l) 1024 Is this run as your regular user? The limit will be reset in the sudo environment that loads the program; so you'll need to set it as root (so something like `sudo -i; ulimit -l 1024; ./xdp_redirect_map 2 1`) -Toke