1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Support bare device name

This commit is contained in:
Alex Forencich 2022-03-28 18:06:22 -07:00
parent cbd9d0dfc6
commit 3b8643877d

View File

@ -374,6 +374,10 @@ struct mqnic *mqnic_open(const char *dev_name)
if (mqnic_try_open(dev, "%s", dev_name) == 0)
goto open;
// device name
if (mqnic_try_open(dev, "/dev/%s", dev_name) == 0)
goto open;
// network interface
if (mqnic_try_open_if_name(dev, dev_name) == 0)
goto open;