Add some comments for kni.

Some NIC drivers will crash in secondary process after config kni , Such as ENA with DPDK-21.22.3.
If you meet this crash, you can try disable the code below and return 0 directly.
Or run primary first, then config kni interface in kernel, and run secondary processes last.
This commit is contained in:
fengbojiang 2023-09-15 15:56:37 +08:00
parent 8e683b405b
commit bfa9c1237f
1 changed files with 5 additions and 0 deletions

View File

@ -147,6 +147,11 @@ kni_config_network_interface(uint16_t port_id, uint8_t if_up)
rte_eth_dev_set_link_up(port_id) :
rte_eth_dev_set_link_down(port_id);
/*
* Some NIC drivers will crash in secondary process after config kni , Such as ENA with DPDK-21.22.3.
* If you meet this crash, you can try disable the code below and return 0 directly.
* Or run primary first, then config kni interface in kernel, and run secondary processes last.
*/
if(-ENOTSUP == ret) {
if (if_up != 0) {
/* Configure network interface up */