<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello,<br>
We have two X710 network interfaces (physical functions) PF1 and PF2 and creating one virtual functions (VF) on each of them (say VF1 and VF2 respectively).<br>
We are creating a bond between the two VFs (VF1 and VF2 belonging to PF1 and PF2 respectively), in active-backup mode using EAL arguments and assigning a bond mac address.<o:p></o:p></p>
<p class="MsoNormal">Initially VF1 is the primary slave and VF2 is the backup.<o:p></o:p></p>
<p class="MsoNormal">We have been successful in using this bond interface to send and receive packets.<br>
<br>
<o:p></o:p></p>
<p class="MsoNormal">However, when we test for redundancy, we are running into a problem described as follows:<br>
1. Initially the bond interface is able to send network packets using the primary slave.<o:p></o:p></p>
<p class="MsoNormal">2. The primary slave (VF1) is brought down by bringing down the physical functions (PF1) corresponding to the primary slave.<o:p></o:p></p>
<p class="MsoNormal">3. The backup VF (VF2) becomes the primary slave and the bond interface continues to transmit packets.<o:p></o:p></p>
<p class="MsoNormal">4. Some time later, the original primary slave (VF1) is re-enabled and the current slave (VF2) is brought down.<br>
5. The primary slave for the bond interface changes back to the initial interface (VF1).<b><span style="color:red"> However, at this point, the packet transmission stops.</span></b> <br>
<br>
Experiment Details:<br>
1. DPDK 21.05 is used.<o:p></o:p></p>
<p class="MsoNormal">2. The physical functions are bound to<b> i40e driver</b> and the virtual functions are bound to the
<b>vfio-pci</b> driver.<br>
3. The VFs were <b>not assigned a MAC address</b> through the PF manually.<o:p></o:p></p>
<p class="MsoNormal">4. <b>Trust mode</b> was set to <b>“On”</b> for both the VFs.<br>
<br>
A similar experiment performed on the Physical Function does not show this issue and the primary slave switches back and forth as the interfaces are disabled and re-enabled.<br>
<br>
Is it possible to create a bond on Virtual Functions in the active-backup mode?<br>
<br>
Thanks,<br>
Utkarsh Pandey.<o:p></o:p></p>
</div>
</body>
</html>