Reputation: 751
I compiled the sample bpf programs which is provided here - https://github.com/torvalds/linux/tree/master/samples/bpf using the instructions. For most of the program while execution I am getting this error:
sudo ./sockex1
failed to create a map: 22 Invalid argument
I have checked the relevant BPF flags on my system and they are correctly set. I am using linux-4.17 source code.
Upvotes: 1
Views: 3075
Reputation: 131
Recompile your kernel with CONFIG_BPF_STREAM_PARSER=y
flag which is required for SOCKMAP
support.
Upvotes: 1