aregm / nff-go

NFF-Go -Network Function Framework for GO (former YANFF)
BSD 3-Clause "New" or "Revised" License
1.38k stars 156 forks source link

I build the project and cannot find if_xdp #733

Closed baerwang closed 2 years ago

baerwang commented 2 years ago
  INSTALL-MAP pktgen.map
make[2]: Leaving directory `/opt/nff-go/dpdk/pktgen-dpdk'
cp pktgen-dpdk/app/x86_64-native-linuxapp-gcc/pktgen .
make[1]: Leaving directory `/opt/nff-go/dpdk'
make -C test 
make[1]: Entering directory `/opt/nff-go/test'
make -C stability 
make[2]: Entering directory `/opt/nff-go/test/stability'
make -C testMerge 
Checking for AVX support... AVX and AVX2
make[3]: Entering directory `/opt/nff-go/test/stability/testMerge'
go build  -tags "mlx bpf" testMerge.go 
# github.com/intel-go/nff-go/internal/low
In file included from ../../../internal/low/low.go:16:0:
./low.h:1067:26: fatal error: linux/if_xdp.h: No such file or directory
 #include <linux/if_xdp.h>
aregm commented 2 years ago

edwin.verplanke@intel.com is in charge now.

baerwang commented 2 years ago

find / |grep if_xdp.h cp /usr/src/kernels/$(uname -r)/include/uapi/linux/if_xdp.h /usr/include/linux/