Vector
Vector

Reputation: 77

How to get XDP program into kernel with iproute2?

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?

Upvotes: 1

Views: 1515

Answers (1)

Vector
Vector

Reputation: 77

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

Upvotes: 1

Related Questions