<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello DPDK users,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I met an issue while testing dpdk bond mode 4: the net_bonding vdev cannot work while the slave devices boot sequence is not same as EAL parameters configuration.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I create my bonding vdev by EAL parameters: "--file-prefix rte --log-level pmd.net.bond:debug --vdev net_bonding0,mode=4,slave=0000:01:00.0,slave=0000:02:00.0"</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thus we have:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
port0 = "<span style="background-color:rgb(255, 255, 255);display:inline !important">0000:01:00.0</span>"</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color:rgb(255, 255, 255);display:inline !important">port1 = "</span><span style="margin:0px;background-color:rgb(255, 255, 255);display:inline !important">0000:02:00.0</span><span style="background-color:rgb(255, 255, 255);display:inline !important">"</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color:rgb(255, 255, 255);display:inline !important"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Success senario: </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<ol>
<li><span>port0 ready then port 1 ready;</span></li></ol>
<div><span><span style="background-color: rgb(255, 255, 255); font-size: 12pt; color: rgb(0, 36, 81); font-family: "Courier New", monospace; display: inline !important;">"</span></span></div>
<div><span><span style="background-color: rgb(255, 255, 255); font-size: 12pt; color: rgb(0, 36, 81); font-family: "Courier New", monospace; display: inline !important;">bond_mode_8023ad_register_lacp_mac(951) - forced allmulti for port 0</span><br>
<span style="background-color: rgb(255, 255, 255); font-size: 12pt; color: rgb(0, 36, 81); font-family: "Courier New", monospace; display: inline !important;">bond_mode_8023ad_register_lacp_mac(951) - forced allmulti for port 1</span><br>
</span></div>
<div><span><span style="background-color: rgb(255, 255, 255); font-size: 12pt; color: rgb(0, 36, 81); font-family: "Courier New", monospace; display: inline !important;">mux_machine(532) - Bond 4: slave id 0 distributing started.</span><span style="background-color:rgb(255, 255, 255);display:inline !important"><br>
</span><span style="background-color: rgb(255, 255, 255); font-size: 12pt; color: rgb(0, 36, 81); font-family: "Courier New", monospace; display: inline !important;">mux_machine(532) - Bond 4: slave id 1 distributing started.</span><span style="background-color:rgb(255, 255, 255);display:inline !important"><br>
</span></span></div>
<div><span><span style="background-color: rgb(255, 255, 255); font-size: 12pt; color: rgb(0, 36, 81); font-family: "Courier New", monospace; display: inline !important;">"</span></span></div>
<ol start="2">
<li><span>After bonding successfully, port1 down and up, it could be in bond state again</span></li></ol>
<div>Fail senario:</div>
<div>
<ol>
<li>port 1 ready then port 0 ready (all in suspend state)</li></ol>
<div><span style="color: rgb(0, 36, 81); font-family: "Courier New", monospace;">"</span></div>
<div><span style="color: rgb(0, 36, 81); font-family: "Courier New", monospace;">bond_mode_8023ad_register_lacp_mac(951) - forced allmulti for port 1</span><br>
<span style="color: rgb(0, 36, 81); font-family: "Courier New", monospace;">bond_mode_8023ad_register_lacp_mac(951) - forced allmulti for port 0</span><br>
</div>
<div><span style="color: rgb(0, 36, 81); font-family: "Courier New", monospace;">/* then no distributing started prints */</span></div>
<div><span style="color: rgb(0, 36, 81); font-family: "Courier New", monospace;">"</span></div>
<ol start="2">
<li><span style="background-color:rgb(255, 255, 255);display:inline !important">After bonding successfully,
</span>port 0 down and up( then port 0 will stay in suspend state)</li></ol>
<div></div>
</div>
<div>ENV:</div>
<div>DPDK: v19.11.6</div>
<div>Switch config: lacp passive mode, same priority for the connected two ports</div>
<div><br>
</div>
<div>Does any one met the same issue ? Is this a dpdk bond bug ? Hope to receive your response. Thanks in advance.</div>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div><span></span></div>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Br,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Christian</div>
</body>
</html>