Re: Packet forwarding in XDP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14.11.2017 12:27, Anmol Panda wrote:
On 14.11.2017 12:07, David Miller wrote:
From: Anmol Panda <anmol07.visitor@xxxxxxxxxxxxxx>
Date: Tue, 14 Nov 2017 12:03:23 +0530

No bpf syscall, kernel headers too old?

Please enable CONFIG_BPF_SYSCALL in your kernel config.

Hello David,

   Thank you for your response. We have downloaded the latest stable
version of the Linux kernel (4.13.12) and we compiled it with these
flags enabled as per the directions here:
http://cilium.readthedocs.io/en/stable/bpf/  .

CONFIG_CGROUP_BPF=y
CONFIG_BPF=y
CONFIG_BPF_SYSCALL=y
CONFIG_NET_SCH_INGRESS=m
CONFIG_NET_CLS_BPF=m
CONFIG_NET_CLS_ACT=y
CONFIG_BPF_JIT=y
CONFIG_LWTUNNEL_BPF=y
CONFIG_HAVE_EBPF_JIT=y
CONFIG_BPF_EVENTS=y
CONFIG_TEST_BPF=m

   We also enabled bpf_jit_enable and after the new kernel
installation, we verified the setup using the ./test_verifier script
int eh tools/testing/selftests/bpf/ folder and the all 506 tests were
passed. When we tried the xdp1 program in the sample/tests/ we got the
error:

No bpf syscall, kernel headers too old?


   Is there anything we are missing here? Please guide us.

Thank you,
Sincerely,

Sorry, once correction. The error encountered was in the tc_redirect_l2.sh script and not the xdp1.

Sincerely,



[Index of Archives]     [Linux Networking Development]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Campsites]

  Powered by Linux