[dpdk-dev] small error in rte_eth_bond_api.c

Анатолий Дубинский ard at amicon.ru
Fri Jun 19 20:12:17 CEST 2020


Hello!

I've found a small error in .../drivers/net/bonding/rte_eth_bond_api.c :

Func rte_eth_bond_create:
ret = rte_vdev_init(name, devargs);
if (ret)
return -ENOMEM;

So, we get ENOMEM error regardless of the actual error code.

This code would be more applicable.
ret = rte_vdev_init(name, devargs);
if (ret)
return ret;


Yours sincerely, Anatoly Dubinsky.




More information about the dev mailing list