Re: [dpdk-users] kni compile failed with Linux-3.10.0-514.6.1.el7.x86_64

2017-02-08 Thread Thomas Monjalon
2017-02-08 11:52, Cao Tong:
> hi,
> 
> KNI compile failed with kernel "Linux-3.10.0-514.6.1.el7.x86_64" under 
> CentOS 7.
> 
> DPDK version is 'dpdk-stable-16.07.2'

In order to build with recent kernel versions, you must use a recent DPDK 
version.

Please try 16.11 or master.



[dpdk-users] kni compile failed with Linux-3.10.0-514.6.1.el7.x86_64

2017-02-07 Thread Cao Tong

hi,

KNI compile failed with kernel "Linux-3.10.0-514.6.1.el7.x86_64" under 
CentOS 7.


DPDK version is 'dpdk-stable-16.07.2' .

  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,
^


--

Cao Tong