Ethernet Products
Determine ramifications of Intel® Ethernet products and technologies
4811 Discussions

Unable to compile i40e driver 2.17.4 on CentOS 8

MPark
Novice
4,027 Views

Dear Intel,

 

I tried to compile i40e driver v2.17.4 on clean CentOS 8, but I got an error below.

This kind of compile error didn't happen before with CentOS 7.

Would you please advise me on how to fix it?

 

[michael@localhost src]$ make
*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but
*** the signing key cannot be found. Module signing has been
*** disabled for this build.
make[1]: Entering directory '/usr/src/kernels/4.18.0-348.2.1.el8_5.x86_64'
CC [M] /home/michael/Downloads/i40e-2.17.4/src/i40e_main.o
In file included from /home/michael/Downloads/i40e-2.17.4/src/i40e.h:34,
from /home/michael/Downloads/i40e-2.17.4/src/i40e_main.c:8:
/home/michael/Downloads/i40e-2.17.4/src/kcompat.h: In function ‘_kc_xdp_rxq_info_reg’:
/home/michael/Downloads/i40e-2.17.4/src/kcompat.h:7312:9: error: too few arguments to function ‘xdp_rxq_info_reg’
return xdp_rxq_info_reg(xdp_rxq, dev, queue_index);
^~~~~~~~~~~~~~~~
In file included from ./include/linux/netdevice.h:47,
from ./include/net/sock.h:51,
from ./include/linux/tcp.h:23,
from ./include/net/tcp.h:24,
from /home/michael/Downloads/i40e-2.17.4/src/i40e.h:7,
from /home/michael/Downloads/i40e-2.17.4/src/i40e_main.c:8:
./include/net/xdp.h:267:5: note: declared here
int xdp_rxq_info_reg(struct xdp_rxq_info *xdp_rxq,
^~~~~~~~~~~~~~~~
In file included from /home/michael/Downloads/i40e-2.17.4/src/i40e.h:34,
from /home/michael/Downloads/i40e-2.17.4/src/i40e_main.c:8:
/home/michael/Downloads/i40e-2.17.4/src/kcompat.h: In function ‘_kc_napi_busy_loop’:
/home/michael/Downloads/i40e-2.17.4/src/kcompat.h:7327:2: error: too few arguments to function ‘napi_busy_loop’
napi_busy_loop(napi_id, loop_end, loop_end_arg);
^~~~~~~~~~~~~~
In file included from /home/michael/Downloads/i40e-2.17.4/src/kcompat.h:7320,
from /home/michael/Downloads/i40e-2.17.4/src/i40e.h:34,
from /home/michael/Downloads/i40e-2.17.4/src/i40e_main.c:8:
./include/net/busy_poll.h:58:6: note: declared here
void napi_busy_loop(unsigned int napi_id,
^~~~~~~~~~~~~~
In file included from ./include/net/devlink.h:24,
from /home/michael/Downloads/i40e-2.17.4/src/kcompat_impl.h:149,
from /home/michael/Downloads/i40e-2.17.4/src/kcompat.h:7344,
from /home/michael/Downloads/i40e-2.17.4/src/i40e.h:34,
from /home/michael/Downloads/i40e-2.17.4/src/i40e_main.c:8:
./include/uapi/linux/devlink.h: At top level:
./include/uapi/linux/devlink.h:258: warning: "DEVLINK_FLASH_OVERWRITE_SETTINGS" redefined
#define DEVLINK_FLASH_OVERWRITE_SETTINGS _BITUL(DEVLINK_FLASH_OVERWRITE_SETTINGS_BIT)

In file included from /home/michael/Downloads/i40e-2.17.4/src/i40e.h:34,
from /home/michael/Downloads/i40e-2.17.4/src/i40e_main.c:8:
/home/michael/Downloads/i40e-2.17.4/src/kcompat.h:7264: note: this is the location of the previous definition
#define DEVLINK_FLASH_OVERWRITE_SETTINGS BIT(0)

In file included from ./include/net/devlink.h:24,
from /home/michael/Downloads/i40e-2.17.4/src/kcompat_impl.h:149,
from /home/michael/Downloads/i40e-2.17.4/src/kcompat.h:7344,
from /home/michael/Downloads/i40e-2.17.4/src/i40e.h:34,
from /home/michael/Downloads/i40e-2.17.4/src/i40e_main.c:8:
./include/uapi/linux/devlink.h:259: warning: "DEVLINK_FLASH_OVERWRITE_IDENTIFIERS" redefined
#define DEVLINK_FLASH_OVERWRITE_IDENTIFIERS _BITUL(DEVLINK_FLASH_OVERWRITE_IDENTIFIERS_BIT)

In file included from /home/michael/Downloads/i40e-2.17.4/src/i40e.h:34,
from /home/michael/Downloads/i40e-2.17.4/src/i40e_main.c:8:
/home/michael/Downloads/i40e-2.17.4/src/kcompat.h:7268: note: this is the location of the previous definition
#define DEVLINK_FLASH_OVERWRITE_IDENTIFIERS BIT(1)

In file included from /home/michael/Downloads/i40e-2.17.4/src/kcompat_impl.h:149,
from /home/michael/Downloads/i40e-2.17.4/src/kcompat.h:7344,
from /home/michael/Downloads/i40e-2.17.4/src/i40e.h:34,
from /home/michael/Downloads/i40e-2.17.4/src/i40e_main.c:8:
./include/net/devlink.h:609:8: error: redefinition of ‘struct devlink_flash_update_params’
struct devlink_flash_update_params {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/michael/Downloads/i40e-2.17.4/src/i40e.h:34,
from /home/michael/Downloads/i40e-2.17.4/src/i40e_main.c:8:
/home/michael/Downloads/i40e-2.17.4/src/kcompat.h:7257:8: note: originally defined here
struct devlink_flash_update_params {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:316: /home/michael/Downloads/i40e-2.17.4/src/i40e_main.o] Error 1
make[1]: *** [Makefile:1571: _module_/home/michael/Downloads/i40e-2.17.4/src] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-348.2.1.el8_5.x86_64'
make: *** [Makefile:69: default] Error 2
[michael@localhost src]$


[michael@localhost src]$ ls -l /usr/src/kernels/
total 4
drwxr-xr-x. 23 root root 4096 Dec 17 00:00 4.18.0-348.2.1.el8_5.x86_64
[michael@localhost src]$[michael@localhost src]$ uname -a
Linux localhost.localdomain 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[michael@localhost src]$ gcc --version
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-4)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[michael@localhost src]$ g++ --version
g++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-4)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[michael@localhost src]$

 

Best Regards,

Michael Park

0 Kudos
1 Solution
Zigfreid_Intel
Moderator
3,892 Views

Hello MPark,


We do apologize for the delay, our latest driver has now been released which is version 2.17.15. 


https://www.intel.com/content/www/us/en/download/18026/intel-network-adapter-driver-for-pcie-40-gigabit-ethernet-network-connections-under-linux.html


Please try testing our new driver and advise us if this would resolve the issue that you are getting. 


Hoping to hear from you soon.


Should there be no response from you, I’ll make sure to reach out after 3 business days


Best regards,

Zigfreid I.

Intel® Customer Support


View solution in original post

0 Kudos
8 Replies
Zigfreid_Intel
Moderator
4,006 Views

Hello MPark,


Thank you for posting on Intel Ethernet Communities. 


We would like to know if you are using a discreet network adapter on your system? If you are, can we request a photo of the markings both front and back of the card so we can determine if this is a genuine intel or a 3rd party OEM adapter. 


If you're not using any network adapter, please provide us the exact model of your mother board instead.


If you have questions or other clarifications please let us know so we can help you further


Awaiting to hear from you soon, should there be no response from you, I’ll make sure to reach out after 3 business days. Thank you and have a nice day!



Best regards,

Zigfreid I.

Intel® Customer Support


0 Kudos
MPark
Novice
3,997 Views

Hello Zigfreid,

 

I am a FAE of one of Intel sales distributers in Korea.

I created this ticket for one of my customers who built their own Network Interface Card using Intel XL710-BM1/BM2.

 

This issue is not related with hardware. It's an error when compiling XL710-BM1/BM2 driver.

If we compile i40e driver v2.17.4 on CentOS 7 (kernel 3.10.0, gcc 4.8.5), the reported problem didn't happen.

If we compile the driver on CentOS 8 (kernel 4.18.0, gcc 8.5), the error happened.

We don't need to connect XL710 NIC to the host to reproduce this issue.

 

Best Regards,

Michael Park

0 Kudos
Zigfreid_Intel
Moderator
3,991 Views

Hello MPark,


Good day! We hope that you are having a great one so far.


Thank you very much for providing us a detailed explanation of your current concern. Please allow us to further check on this so that we can provide you our best recommendation for this. 


Can we ask if you can provide us between 3-4 business days for this? Once we have all the information we need we will notify you immediately instead. Thank you and have a good day! 



0 Kudos
Zigfreid_Intel
Moderator
3,935 Views


Hello MPark,


We do apologize for the delay since we will not be able to provide you an update today, as the case is still being further investigated. Rest assure that we are closely monitoring this case and once an update is available we will notify you immediately. 


We would like to ask for more time for this, is it okay if we can ask for another 3-4 business days to provide you an update? We thank you for your patience and understanding and we hope you have a nice day!


 

Best regards,

Zigfreid I.

Intel® Customer Support


0 Kudos
MPark
Novice
3,928 Views

Hello Zigfreid,

 

No problem. I will be waiting for your update.

 

Best Regards,

Michael Park

0 Kudos
Zigfreid_Intel
Moderator
3,893 Views

Hello MPark,


We do apologize for the delay, our latest driver has now been released which is version 2.17.15. 


https://www.intel.com/content/www/us/en/download/18026/intel-network-adapter-driver-for-pcie-40-gigabit-ethernet-network-connections-under-linux.html


Please try testing our new driver and advise us if this would resolve the issue that you are getting. 


Hoping to hear from you soon.


Should there be no response from you, I’ll make sure to reach out after 3 business days


Best regards,

Zigfreid I.

Intel® Customer Support


0 Kudos
walt_z
Beginner
3,811 Views

Pls update it for i211, the same error on Cent OS 8, 

4.18.0-348.7.1.el8_5.x86_64

0 Kudos
Zigfreid_Intel
Moderator
3,866 Views

Hello MPark,


Since you have accepted and marked our recommendations, we will now proceed in closing the thread. For future inquires just feel free to post a new question, since this thread will no longer be monitored. Thank you and have a good day!


Best regards,

Zigfreid I.

Intel® Customer Support


0 Kudos
Reply