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

Add support for SR-IOV cni plugin #503

Merged
merged 2 commits into from
Dec 1, 2017
Merged

Add support for SR-IOV cni plugin #503

merged 2 commits into from
Dec 1, 2017

Conversation

jellonek
Copy link
Contributor

@jellonek jellonek commented Nov 17, 2017

Do not merge before #508 on which this one depends.

Thinks which need additional work:

  • replace suid bit hack with proper propagation of rights for accessing pci devices by qemu (code for configfd already in sources, but even after passing it through tapmanager/vmwrapper - there is an access error)
  • RecreateContainerSideNetwork depends on possibility to look on interfaces in container namespace, but when one is passed to VM it's disconnected from host. Better way of that would be to serialize full csn to metadatastore and deserialize in during this recreate, so there would be no need to try to guess pci address from the sysfs
  • csn.Teardown rebinds interface kernel driver, but device is probably visible only on host and this func is called in container namespace. Also even on host it probably will have other mac address than our autogenerated (which is now used to find device), so instead of finding it using mac address it probably needs to be located on TapFDSource.Release level by pci address, moved to container namespace and at the end renamed using name expected by cni plugin.

This change is Reviewable

@jellonek jellonek requested a review from ivan4th November 17, 2017 00:24
@jellonek jellonek force-pushed the jell/new-sriov branch 7 times, most recently from 0a556f6 to 54ea3f2 Compare November 27, 2017 16:54
@jellonek jellonek changed the base branch from master to sriov November 30, 2017 19:31
@pigmej
Copy link
Contributor

pigmej commented Dec 1, 2017

:lgtm:


Reviewed 5 of 5 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@pigmej pigmej merged commit 7da06d8 into sriov Dec 1, 2017
@jellonek jellonek deleted the jell/new-sriov branch December 1, 2017 16:00
jellonek added a commit that referenced this pull request Dec 12, 2017
Followup for #503
This commit covers third bullet point, providing recreated network
interface in container namespace ready to reconfigure with original IPAM
configuration needed for later CNI DEL invocation.
jellonek added a commit that referenced this pull request Dec 13, 2017
Followup for #503
This commit covers third bullet point, providing recreated network
interface in container namespace ready to reconfigure with original IPAM
configuration needed for later CNI DEL invocation.
jellonek added a commit that referenced this pull request Dec 13, 2017
Followup for #503
This commit covers third bullet point, providing recreated network
interface in container namespace ready to reconfigure with original IPAM
configuration needed for later CNI DEL invocation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants