Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive link type from PF if the interface name is not available #479

Merged

Commits on May 2, 2023

  1. 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>
    almaslennikov committed May 2, 2023
    Configuration menu
    Copy the full SHA
    aa43530 View commit details
    Browse the repository at this point in the history