Closed amshinde closed 7 years ago
@jodh-intel Thanks for taking a look. Yes, I am planning to move the SRIOV documentation that we did for 2.1 here.
Waiting for @mcastelino before to merge this
@sboeuf I will continue this review later today.
@sameo I have pushed changes to introduce switching on the endpoint type. Have left a comment on the interface names. Let me know if you have a preference on it, before I go ahead and make the changes.
@amshinde Thanks for the switch fixes, I also commented on the Endpoint interface getter. Once this is fixed, I'll approve that PR.
@mcastelino do you expect more changes or can I merge this PR ?
@amshinde please update the SRIOV CNM plugin documentation to show that we can use SRIOV with CC 3.0. https://github.com/clearcontainers/sriov
This PR adds support for passing SRIOV supported NICs to the VM. We check if the network interface passed in the network namespace is a physical device. If a physical network device is found, we skip the bridge creation flow and pass the device directly to the VM through VFIO passthrough. To do this, we unbind the network device from its network driver and bind it to VFIO driver. We do the opposite while stopping the VM.