DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] kni compile failed with Linux-3.10.0-514.6.1.el7.x86_64
@ 2017-02-08  3:52 Cao Tong
  2017-02-08  8:48 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Cao Tong @ 2017-02-08  3:52 UTC (permalink / raw)
  To: users

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] kni compile failed with Linux-3.10.0-514.6.1.el7.x86_64
  2017-02-08  3:52 [dpdk-users] kni compile failed with Linux-3.10.0-514.6.1.el7.x86_64 Cao Tong
@ 2017-02-08  8:48 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2017-02-08  8:48 UTC (permalink / raw)
  To: Cao Tong; +Cc: users

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-08  8:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-08  3:52 [dpdk-users] kni compile failed with Linux-3.10.0-514.6.1.el7.x86_64 Cao Tong
2017-02-08  8:48 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).