Mellanox / docker-sriov-plugin

Docker networking plugin for SRIOV and passthrough interfaces
Apache License 2.0
79 stars 17 forks source link

Fix compatibility with unprobed VFs #8

Closed Tydus closed 5 years ago

Tydus commented 5 years ago

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.

Tydus commented 5 years ago

Thanks and sorry for the delay. I amended the commits.

Tydus commented 5 years ago

Bump. Can it be merged now?