This group is locked. No changes can be made to the group while it is locked.
Date
1 - 2 of 2
XDP router exam - bpf create map failed error.
haritsu87
Hi Guys, I'm beginner of XDP and BPF. I'm working also XDP exams and prototype-kernel. xdp_ddos01_blacklist exam it worked and xdp dropped packets. But xdp_router_ipv4 isn't working. root@xdptester:~/samples/bpf# ./xdp_router_ipv4 6 7 failed to create a map: 1 Operation not permitted Does anyone have this problem? Thanks, Regards. -- Haritsu |
On Sun, 28 Jan 2018 17:29:56 +0300
"Mr. Haritsu via iovisor-dev" <iovisor-dev@...> wrote: Hi Guys,It is frustrating that people keeps hitting this, and cannot figure out what the issue is... This is because the kernel return EPERM and not ENOMEM ... if the kernel had returned a "out of memory" error, I bet you could have figured out that you need to increase the "locked memory" limit (RLIMIT_MEMLOCK) via function call setrlimit() https://prototype-kernel.readthedocs.io/en/latest/bpf/troubleshooting.html http://man7.org/linux/man-pages/man3/setrlimit.3p.html Can I ask: What school is giving exams/assignments in XDP? -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer |