Ethernet Products
Intel® Ethernet products and technologies
4088 Discussions

Unable to compile i40e driver on Centos7

Rajisha
Novice
318 Views

Hi

 

We are having the i40e driver version as 2.8 with NIC XL710.

 

modinfo i40e | grep ver
filename: /lib/modules/3.10.0-1160.42.2.rt56.1182.el7.x86_64/kernel/drivers/net/ethernet/intel/i40e/i40e.ko.xz
version: 2.8.20-k
description: Intel(R) Ethernet Connection XL710 Network Driver
rhelversion: 7.9
srcversion: F7480CBA290FAAF2FAF95C7
vermagic: 3.10.0-1160.42.2.rt56.1182.el7.x86_64 SMP preempt mod_unload modversions

 

We are trying to run Flexran sample-app for DU and RU (https://docs.o-ran-sc.org/projects/o-ran-sc-o-du-phy/en/latest/Setup-Configuration_fh.html) , but we see below error:

EAL: Detected 128 lcore(s)
EAL: Detected 4 NUMA nodes
EAL: Auto-detected process type: PRIMARY
EAL: Multi-process socket /var/run/dpdk/wls_0/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: Probing VFIO support...
EAL: PCI device 0000:17:02.1 on NUMA socket 0
EAL: probe driver: 8086:154c net_i40e_vf
EAL: Driver cannot attach the device (0000:17:02.1)
EAL: Failed to attach device on primary process
sample-app: Network port doesn't exist

 

We are using dpdk version  19.11, so we have to upgrade the driver to 2.9 which is compatible with the dpdk version.

We tried downloading the i40e driver 2.9 version (Intel® Network Adapter Driver for PCIe* 40 Gigabit Ethernet Network Connections under Linux*), but we see errors while compiling.

 

[user@localhost src]$ sudo make install
[sudo] password for user:
make[1]: Entering directory `/usr/src/kernels/3.10.0-1160.42.2.rt56.1182.el7.x86_64'
CC [M] /home/user/Downloads/i40e-2.9.21/src/i40e_main.o
In file included from /home/user/Downloads/i40e-2.9.21/src/i40e.h:43:0,
from /home/user/Downloads/i40e-2.9.21/src/i40e_main.c:8:
include/linux/ptp_clock_kernel.h:46:8: error: redefinition of ‘struct ptp_system_timestamp’
struct ptp_system_timestamp {
^
In file included from /home/user/Downloads/i40e-2.9.21/src/i40e.h:33:0,
from /home/user/Downloads/i40e-2.9.21/src/i40e_main.c:8:
/home/user/Downloads/i40e-2.9.21/src/kcompat.h:6424:8: note: originally defined here
struct ptp_system_timestamp {
^
In file included from /home/user/Downloads/i40e-2.9.21/src/i40e.h:43:0,
from /home/user/Downloads/i40e-2.9.21/src/i40e_main.c:8:
include/linux/ptp_clock_kernel.h:242:20: error: conflicting types for ‘ptp_read_system_prets’
static inline void ptp_read_system_prets(struct ptp_system_timestamp *sts)
^
In file included from /home/user/Downloads/i40e-2.9.21/src/i40e.h:33:0,
from /home/user/Downloads/i40e-2.9.21/src/i40e_main.c:8:
/home/user/Downloads/i40e-2.9.21/src/kcompat.h:6430:1: note: previous definition of ‘ptp_read_system_prets’ was here
ptp_read_system_prets(struct ptp_system_timestamp __always_unused *sts)
^
In file included from /home/user/Downloads/i40e-2.9.21/src/i40e.h:43:0,
from /home/user/Downloads/i40e-2.9.21/src/i40e_main.c:8:
include/linux/ptp_clock_kernel.h:248:20: error: conflicting types for ‘ptp_read_system_postts’
static inline void ptp_read_system_postts(struct ptp_system_timestamp *sts)
^
In file included from /home/user/Downloads/i40e-2.9.21/src/i40e.h:33:0,
from /home/user/Downloads/i40e-2.9.21/src/i40e_main.c:8:
/home/user/Downloads/i40e-2.9.21/src/kcompat.h:6436:1: note: previous definition of ‘ptp_read_system_postts’ was here
ptp_read_system_postts(struct ptp_system_timestamp __always_unused *sts)
^
make[2]: *** [/home/user/Downloads/i40e-2.9.21/src/i40e_main.o] Error 1
make[1]: *** [_module_/home/user/Downloads/i40e-2.9.21/src] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-1160.42.2.rt56.1182.el7.x86_64'
make: *** [default] Error 2

 

When we try to solve this error, other dependency errors are coming.

 

Can anyone help us in upgrading the i40e driver version from 2.8 to 2.9.

 

Thank you.

Regards,

Rajisha

0 Kudos
1 Reply
Mike_Intel
Moderator
280 Views

Hello Rajisha,


Thank you for posting in Intel Ethernet Communities. 


Since this question involves DPDK, please check with Intel Premier Support for further assistance. See the following for access to Intel Premier Support.

Click the "Access and Log In" to contact the DPDK support https://www.intel.com/content/www/us/en/design/support/ips/training/welcome.html

 

Please be informed that we will now close this request. Just feel free to post a new question if you may have any other inquiry in the future as this thread will no longer be monitored.



Thank you and stay safe.


Best regards,

Michael L.

Intel® Customer Support Technician


Reply