Skip to contentSkip to conversation

Compile error kni_net.c unknown field ‘ndo_change_mtu’

Bug 49 [email protected] 1 participant 2 messages May 18, 2018 – May 31, 2018

lore
Share & tools
lore
#0 lore raw

https://dpdk.org/tracker/show_bug.cgi?id=49

            Bug ID: 49
           Summary: Compile error kni_net.c unknown field ‘ndo_change_mtu’
           Product: DPDK
           Version: 18.02
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: major
          Priority: Normal
         Component: mk
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

Try to build DPDK in CentOS 7. Both 18.02.1 and 17.11.2 have the same error.

uname -a
Linux cse-kvm 3.10.0-862.2.3.el7.x86_64 #1 SMP Wed May 9 18:05:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

make config T=i686-native-linuxapp-gcc

make
== Build lib
== Build lib/librte_compat
== Build lib/librte_eal
== Build lib/librte_eal/common
== Build lib/librte_eal/linuxapp
== Build lib/librte_eal/linuxapp/eal
== Build lib/librte_eal/linuxapp/igb_uio
Building modules, stage 2.
MODPOST 1 modules
== Build lib/librte_eal/linuxapp/kni
CC [M]
/root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.o /root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.c:714:2:
error: unknown field ‘ndo_change_mtu’ specified in initializer
.ndo_change_mtu = kni_net_change_mtu,
^
/root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.c:714:2:
error: missing braces around initializer [-Werror=missing-braces] /root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.c:714:2:
error: (near initialization for ‘kni_net_netdev_ops.<anonymous>’) [-Werror=missing-braces] /root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.c:714:2:
error: initialization from incompatible pointer type [-Werror] /root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.c:714:2:
error: (near initialization for ‘kni_net_netdev_ops.<anonymous>.ndo_select_queue’) [-Werror]
cc1: all warnings being treated as errors
make[8]: *** [/root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni/kni_net.o] Error 1
make[7]: *** [_module_/root/dpdk-stable-18.02.1/build/build/lib/librte_eal/linuxapp/kni] Error 2
make[6]: *** [sub-make] Error 2
make[5]: *** [rte_kni.ko] Error 2
make[4]: *** [kni] Error 2
make[3]: *** [linuxapp] Error 2
make[2]: *** [librte_eal] Error 2
make[1]: *** [lib] Error 2
make: *** [all] Error 2

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

https://dpdk.org/tracker/show_bug.cgi?id=49

balaji shankaran ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|CONFIRMED                   |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |FIXED

--- Comment #1 from balaji shankaran ([email protected]) --- Hi Chen,

I faced same issue in 17.11 and 18.02 versions. Moving to 18.05 I do not see this issue.

P.S: I haven't spend time in root causing it and moved ahead with 18.05 version. Hope this information helps.

Thanks
Balaji S

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.