Refer to the official documents (e.g.), Mellanox cards provide the feature of "Probed" and "Unprobed" VFs:
Probed VFs: the ones exists in ifconfig/ip link. Essentially, they are claimed by the host driver, thus net is present in their sysfs dirs.
Unprobed VFs: the ones doesn't have corresponding network interfaces (also no net dir in sysfs).
The function FindVFDirForNetdev should not stop searching (and return an error) when it encounters an unprobed VF.
Refer to the official documents (e.g.), Mellanox cards provide the feature of "Probed" and "Unprobed" VFs:
Probed VFs: the ones exists in
ifconfig
/ip link
. Essentially, they are claimed by the host driver, thusnet
is present in their sysfs dirs. Unprobed VFs: the ones doesn't have corresponding network interfaces (also nonet
dir in sysfs).The function
FindVFDirForNetdev
should not stop searching (and return an error) when it encounters an unprobed VF.