Re: XDP router exam - bpf create map failed error.

Jesper Dangaard Brouer

On Sun, 28 Jan 2018 17:29:56 +0300
"Mr. Haritsu via iovisor-dev" <iovisor-dev@...> wrote:

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?
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()

Can I ask: What school is giving exams/assignments in XDP?

Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat

Join to automatically receive all group messages.