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

[switchdev 3/x] Add host.VdpaInterface whch provided helpers to work with VDPA devices #585

Closed

Commits on Jan 15, 2024

  1. Add additional methods to host/kernel.go

    New methods are:
    * BindDriverByBusAndDevice - binds device to the provided driver
    * UnbindDriverByBusAndDevice
    unbind device identified by bus and device ID from the driver
    
    Both methods allows to work with devices not
    only on PCI bus.
    
    +refactor driver-related methods
    +add unit-tests for changed methods
    
    Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
    ykulazhenkov committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    11f1473 View commit details
    Browse the repository at this point in the history
  2. Add wrapper for govdpa lib

    Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
    ykulazhenkov committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    fdeb89f View commit details
    Browse the repository at this point in the history
  3. Add mock for host.KernelInterface interface

    This change is required to be able to test
    implementation of host.VdpaInterface that will
    be added by following commits
    
    Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
    ykulazhenkov committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    58c675a View commit details
    Browse the repository at this point in the history
  4. Add VdpaInterface to host package

    The interface provides implementation
    for the following functions:
    * CreateVDPADevice - creates VDPA device for
    VF with required type(vhost, virtio)
    * DeleteVDPADevice - removes VDPA device
    for provided VF
    * DiscoverVDPAType - return type of existing
    VDPA device for VF
    
    Signed-off-by: Yury Kulazhenkov <ykulazhenkov@nvidia.com>
    ykulazhenkov committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    8fb5484 View commit details
    Browse the repository at this point in the history