首页 > 代码库 > [dpdk] SDK编译配置
[dpdk] SDK编译配置
前言:
dpdk-16.07.2 与 内核Linux-3.10.0-514.6.1.el7.x86_64 编译的时候有个关于kni的错误
CC [M] /root/src/thirdparty/dpdk/dpdk-stable-16.07.2/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/igb_main.o /root/src/thirdparty/dpdk/dpdk-stable-16.07.2/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/igb_main.c: In function ‘igb_ndo_bridge_getlink’: /root/src/thirdparty/dpdk/dpdk-stable-16.07.2/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/igb_main.c:2290:2: error: too few arguments to function ‘ndo_dflt_bridge_getlink’ return ndo_dflt_bridge_getlink(skb, pid, seq, dev, mode, 0, 0); ^ In file included from /usr/src/kernels/3.10.0-514.6.1.el7.x86_64/include/net/dst.h:13:0, from /usr/src/kernels/3.10.0-514.6.1.el7.x86_64/include/net/sock.h:72, from /usr/src/kernels/3.10.0-514.6.1.el7.x86_64/include/linux/tcp.h:23, from /root/src/thirdparty/dpdk/dpdk-stable-16.07.2/x86_64-native-linuxapp-gcc/build/lib/librte_eal/linuxapp/kni/igb_main.c:34: /usr/src/kernels/3.10.0-514.6.1.el7.x86_64/include/linux/rtnetlink.h:100:12: note: declared here extern int ndo_dflt_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq, ^
已知:
1. 学会了编译。
2. config已完成
配置:
修改文件 /root/src/thirdparty/dpdk/dpdk-stable-16.07.2/x86_64-native-linuxapp-gcc/.config 可以进行配置。
[root@dpdk x86_64-native-linuxapp-gcc]# diff /root/src/thirdparty/dpdk/dpdk-stable-16.07.2/x86_64-native-linuxapp-gcc/.config /root/src/thirdparty/dpdk/dpdk-stable-16.07.2/x86_64-native-linuxapp-gcc/.config.orig 374,375c374,375 < CONFIG_RTE_LIBRTE_KNI=n < CONFIG_RTE_KNI_KMOD=n --- > CONFIG_RTE_LIBRTE_KNI=y > CONFIG_RTE_KNI_KMOD=y [root@dpdk x86_64-native-linuxapp-gcc]#
这样就不编译kni了,就可以过了。
[dpdk] SDK编译配置
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。