Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Derive link type from PF if the interface name is not available
In case a workload is already consuming a VF and sriov-device-plugin is restarted, when this selector is specified, the device plugin will fail to get the VF link type since getting this information requires the VF netdev. The netdev does not exist in the host namespace as its assigned to pod. this causes sriov-network-device-plugin to fail adding this VF to resource pool, causing it to report the wrong number of resources. To fix this, derive the link type of the device from its PF, if the netdev itself is not available. Signed-off-by: amaslennikov <amaslennikov@nvidia.com>
- Loading branch information