<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hello Nathanael<br><br></div>VFs are regular NICs and can be used as regular NICs.<br></div>We are allowing to create bond from them and allowing to attach logical networks to them, because as long as they are not used by any VM, they can be used just as any other interfaces on the host.<br></div><br></div>When creating bond from 2 VFs you should see the pencil icon, because you want to able to edit the bond.<br></div>Vf is an interface and you can use it just as you use regular interface on the host.<br><br></div>* When you create bond from 2 VFs, this VFs are no longer free and you can&#39;t use them to run VM<br></div>* The same for attaching a network to VF, this VF is no longer considered as free VF.<br><br></div>There is no problem about it, this is exactly how it was designed ) , you have to remember that as long as the VFs are not used by VM, they can be used as regular NICs and you can do with them everything you want. <br><br><a href="http://www.ovirt.org/develop/release-management/features/engine/sr-iov/">http://www.ovirt.org/develop/release-management/features/engine/sr-iov/</a><br><br></div>Regards, <br><div><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 6, 2016 at 4:23 PM, Nathanaël Blanchet <span dir="ltr">&lt;<a href="mailto:blanchet@abes.fr" target="_blank">blanchet@abes.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
Le 06/12/2016 à 13:19, Martin Polednik a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 06/12/16 12:14 +0100, Nathanaël Blanchet wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
My new 10G NICS support now SR-IOV, and I&#39;ve played with this new feature as passthrough device, so as to reduce my host CPU consumption.<br>
<br>
At the origin, I set up a bond on both 10G PF nics.<br>
<br>
After many configurations, the only way I manage to use a VF into a VM, is to get out of the bond one nic.<br>
<br>
So does it mean that it is impossible to run a VM with VF with PF attached to a bond?<br>
</blockquote>
<br>
As far as I know, it&#39;s not possible to do that. The reason is that the<br>
bond normally creates new (logical) interface, what you are doing is<br>
assigning &quot;part&quot; of the bond directly to a VM and the driver within VM<br>
isn&#39;t aware of the bond.<br>
</blockquote></span>
This is what I supposed, UI should prevent us to create VFfrom when nic is attached to a bond. Pencil icon should&#39;nt appear in this case.<span class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Moreover, something strange happens : during the boot of the VM, the passthrough device gets an dhcp IP on the native vlan of the bond, and once finally up, the real vlan used by this device is on the different predifined vlan. It implies to me to reconfigure the network to ping something on the wanted vlan. Really crazy.<br>
</blockquote>
<br>
This could be explained by previous statement: bonding PFs at<br>
hypervisor level and then assigning VFs to a VM can most likely cause<br>
undefined behavior.<br>
</blockquote></span>
The issue is the same when the PF is not attached to a bond, so in an expected working situation.<span class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Other question is : In which case can it be useful to be able to bond 2 VF? UI let us to do so, but it is impossible to add any bridge on that virtual bond.<br>
</blockquote>
<br>
At hypervisor level? I believe it doesn&#39;t make sense.<br>
</blockquote></span>
I wonder this because UI allows to do it. The same as above, user shouldn&#39;t be allowed to bond two VFs, and not allowed to add virtual network to a VF<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If you require bond between 2 PFs, you can assign 2 VFs each from<br>
different PF to a VM and bond them within the guest.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Comparing to a large number of restrictions (migration and others), my opinion is that this feature seems to be very difficult to use in production...<br>
</blockquote>
<br>
The use case for SR-IOV is maximum performance at the cost of<br>
convenience while still (somewhat) allowing you to scale.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-- <br>
Nathanaël Blanchet<br>
<br>
Supervision réseau<br>
Pôle Infrastrutures Informatiques<br>
227 avenue Professeur-Jean-Louis-Viala<br>
34193 MONTPELLIER CEDEX 5<br>
Tél. 33 (0)4 67 54 84 55<br>
Fax  33 (0)4 67 54 84 14<br>
<a href="mailto:blanchet@abes.fr" target="_blank">blanchet@abes.fr</a><br>
<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
</blockquote>
<br>
</blockquote>
<br>
-- <br>
Nathanaël Blanchet<br>
<br>
Supervision réseau<br>
Pôle Infrastrutures Informatiques<br>
227 avenue Professeur-Jean-Louis-Viala<br>
34193 MONTPELLIER CEDEX 5       <br>
Tél. 33 (0)4 67 54 84 55<br>
Fax  33 (0)4 67 54 84 14<br>
<a href="mailto:blanchet@abes.fr" target="_blank">blanchet@abes.fr</a><br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Michael Burman<br>RedHat Israel, RHV-M <span>Network </span>QE  <br><br>Mobile: 054-5355725<br>IRC: mburman</div></div></div></div>
</div>