How to get XDP program into kernel with iproute2?

1.3k Views Asked by At

I am using "ip link" command to put xdp program into kernel, in my virtual machine(kernel-version:4.18)

command like this:

 ip link set dev ens33 xdp obj xdpsock_kern.o sec .text

but after this command, the error said:

No ELF library support compiled in.

what should I do to solve this problem?

1

There are 1 best solutions below

0
Vector On

I solve this problem by reconfigure the iproutes.

git clone git://git.kernel.org/pub/pub/scm/network/iproute2/iproute2.git

cd iproute2/
./configure --prefix=/usr

make
sudo make install

Update: Now hosted at https://github.com/shemminger/iproute2.git