<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Probably not a bug.<br><br>1&nbsp;Create&nbsp;a&nbsp;bond&nbsp;with&nbsp;3&nbsp;interfaces&nbsp;(connect&nbsp;them&nbsp;to&nbsp;switch).
<br>2&nbsp;Change&nbsp;bond's&nbsp;mode&nbsp;to&nbsp;active/backup.
<br>3&nbsp;Physicaly&nbsp;remove&nbsp;two&nbsp;cables&nbsp;form&nbsp;interfaces&nbsp;(&nbsp;not&nbsp;the&nbsp;active&nbsp;interface&nbsp;). 4 Put&nbsp;the&nbsp;cables&nbsp;back <br><pre>5 Change&nbsp;the&nbsp;mode&nbsp;to&nbsp;round&nbsp;robin.
6 *********** use SIOCBONDCHANGEACTIVE&nbsp; to set the other inactive slave back to active<br>7 Try&nbsp;to&nbsp;ping&nbsp;some&nbsp;other&nbsp;computer.
</pre>
<br>I notice there is a SIOCBONDCHANGEACTIVE, maybe it solve your problem.<br>Please let me know the result after you do the test.<br><br>thanks<br><br><br>bill<br><br><br><pre><br>At&nbsp;2011-08-01&nbsp;17:15:44,"Eduard&nbsp;Sinelnikov"&nbsp;&lt;eduard.sinelnikov@gmail.com&gt;&nbsp;wrote:
&gt;Hi&nbsp;Bill,
&gt;
&gt;I&nbsp;guess&nbsp;you&nbsp;are&nbsp;right,&nbsp;but&nbsp;what&nbsp;happens&nbsp;if&nbsp;I&nbsp;DO&nbsp;want&nbsp;to&nbsp;stay&nbsp;in
&gt;active/backup&nbsp;for&nbsp;a&nbsp;while&nbsp;and&nbsp;switch&nbsp;to&nbsp;round&nbsp;robin&nbsp;later?
&gt;Is&nbsp;it&nbsp;a&nbsp;bug?
&gt;
&gt;Thanks,
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Eduard.
&gt;
&gt;
&gt;
&gt;2011/8/1&nbsp;bill&nbsp;&lt;bill_carson@126.com&gt;:
&gt;&gt;&nbsp;Hi,&nbsp;Eduard
&gt;&gt;
&gt;&gt;&nbsp;Please&nbsp;put&nbsp;the&nbsp;cables&nbsp;back&nbsp;after&nbsp;change&nbsp;the&nbsp;mode&nbsp;to&nbsp;round&nbsp;robin,
&gt;&gt;&nbsp;and&nbsp;then&nbsp;ping&nbsp;the&nbsp;remote&nbsp;PC
&gt;&gt;
&gt;&gt;&nbsp;The&nbsp;scenario&nbsp;is:
&gt;&gt;&nbsp;1&nbsp;Create&nbsp;a&nbsp;bond&nbsp;with&nbsp;3&nbsp;interfaces&nbsp;(connect&nbsp;them&nbsp;to&nbsp;switch).
&gt;&gt;&nbsp;2&nbsp;Change&nbsp;bond's&nbsp;mode&nbsp;to&nbsp;active/backup.
&gt;&gt;&nbsp;3&nbsp;Physicly&nbsp;remove&nbsp;two&nbsp;cables&nbsp;form&nbsp;interfaces&nbsp;(&nbsp;not&nbsp;the&nbsp;active&nbsp;interface&nbsp;).
&gt;&gt;&nbsp;4&nbsp;Change&nbsp;the&nbsp;mode&nbsp;to&nbsp;round&nbsp;robin.
&gt;&gt;&nbsp;5&nbsp;Put&nbsp;the&nbsp;cables&nbsp;back
&gt;&gt;&nbsp;6&nbsp;Try&nbsp;to&nbsp;ping&nbsp;some&nbsp;other&nbsp;computer.
&gt;&gt;
&gt;&gt;
&gt;&gt;&nbsp;bill
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;&nbsp;At&nbsp;2011-07-31&nbsp;23:15:22,"Eduard&nbsp;Sinelnikov"&nbsp;&lt;eduard.sinelnikov@gmail.com&gt;&nbsp;wrote:
&gt;&gt;&gt;Hi,
&gt;&gt;&gt;
&gt;&gt;&gt;The&nbsp;scenario&nbsp;is:
&gt;&gt;&gt;*&nbsp;Create&nbsp;a&nbsp;bond&nbsp;with&nbsp;3&nbsp;interfaces&nbsp;(connect&nbsp;them&nbsp;to&nbsp;switch).
&gt;&gt;&gt;*&nbsp;Change&nbsp;bond's&nbsp;mode&nbsp;to&nbsp;active/backup.
&gt;&gt;&gt;*&nbsp;Physicly&nbsp;remove&nbsp;two&nbsp;cables&nbsp;form&nbsp;interfaces&nbsp;(&nbsp;not&nbsp;the&nbsp;active&nbsp;interface&nbsp;).
&gt;&gt;&gt;*&nbsp;Put&nbsp;the&nbsp;cables&nbsp;back
&gt;&gt;&gt;*&nbsp;Change&nbsp;the&nbsp;mode&nbsp;to&nbsp;round&nbsp;robin.
&gt;&gt;&gt;*&nbsp;Try&nbsp;to&nbsp;ping&nbsp;some&nbsp;other&nbsp;computer.
&gt;&gt;&gt;
&gt;&gt;&gt;Now&nbsp;only&nbsp;one&nbsp;interface&nbsp;is&nbsp;pinging&nbsp;to&nbsp;remote&nbsp;computer.
&gt;&gt;&gt;Without&nbsp;removing&nbsp;the&nbsp;cables&nbsp;all&nbsp;three&nbsp;interface&nbsp;will&nbsp;ping&nbsp;to&nbsp;remote
&gt;&gt;&gt;computer&nbsp;periodicly.
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;I&nbsp;did&nbsp;some&nbsp;debuging,in&nbsp;the&nbsp;code,&nbsp;and&nbsp;I&nbsp;see&nbsp;that&nbsp;in&nbsp;round&nbsp;robin&nbsp;all&nbsp;the
&gt;&gt;&gt;interface&nbsp;is&nbsp;in&nbsp;active&nbsp;(and&nbsp;all&nbsp;of&nbsp;them&nbsp;transmiting&nbsp;periodically).
&gt;&gt;&gt;After&nbsp;removing&nbsp;and&nbsp;puting&nbsp;back&nbsp;the&nbsp;cables(in&nbsp;active/backup&nbsp;mode).&nbsp;the
&gt;&gt;&gt;interfaces&nbsp;change&nbsp;their&nbsp;status&nbsp;to&nbsp;backup.
&gt;&gt;&gt;After&nbsp;this&nbsp;only&nbsp;one&nbsp;interface&nbsp;is&nbsp;transmiting&nbsp;(&nbsp;the&nbsp;one&nbsp;which&nbsp;was&nbsp;the&nbsp;active).
&gt;&gt;&gt;
&gt;&gt;&gt;Thanks&nbsp;in&nbsp;advance,
&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Eduard
&gt;&gt;&gt;
&gt;&gt;&gt;2011/7/31&nbsp;Peter&nbsp;Senna&nbsp;Tschudin&nbsp;&lt;peter.senna@gmail.com&gt;:
&gt;&gt;&gt;&gt;&nbsp;Hi&nbsp;Eduard,
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&nbsp;On&nbsp;Sun,&nbsp;Jul&nbsp;31,&nbsp;2011&nbsp;at&nbsp;4:59&nbsp;AM,&nbsp;Eduard&nbsp;Sinelnikov
&gt;&gt;&gt;&gt;&nbsp;&lt;eduard.sinelnikov@gmail.com&gt;&nbsp;wrote:
&gt;&gt;&gt;&gt;&gt;&nbsp;Hi,
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&nbsp;In&nbsp;the&nbsp;kernel&nbsp;2.6.39.3&nbsp;(&nbsp;/drivers/net/bond/bond_main.c).
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&nbsp;I&nbsp;followed&nbsp;the&nbsp;code&nbsp;you&nbsp;mentioned.&nbsp;The&nbsp;file&nbsp;is&nbsp;actually&nbsp;at:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&nbsp;./drivers/net/bonding/bond_main.c
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&nbsp;In&nbsp;the&nbsp;function&nbsp;&nbsp;‘bond_xmit_roundrobin’
&gt;&gt;&gt;&gt;&gt;&nbsp;The&nbsp;code&nbsp;check&nbsp;if&nbsp;the&nbsp;bond&nbsp;is&nbsp;active&nbsp;via
&gt;&gt;&gt;&gt;&gt;&nbsp;‘bond_is_active_slave(slave)’&nbsp;Function&nbsp;call.
&gt;&gt;&gt;&gt;&gt;&nbsp;Which&nbsp;actually&nbsp;checks&nbsp;if&nbsp;the&nbsp;slave&nbsp;is&nbsp;backup&nbsp;or&nbsp;active
&gt;&gt;&gt;&gt;&gt;&nbsp;What&nbsp;is&nbsp;the&nbsp;meaning&nbsp;of&nbsp;slave&nbsp;being&nbsp;&nbsp;backup&nbsp;in&nbsp;round&nbsp;robin&nbsp;mode?
&gt;&gt;&gt;&gt;&gt;&nbsp;Correct&nbsp;me&nbsp;if&nbsp;I&nbsp;wrong&nbsp;but&nbsp;in&nbsp;round&nbsp;robin&nbsp;every&nbsp;slave&nbsp;should&nbsp;send&nbsp;a
&gt;&gt;&gt;&gt;&gt;&nbsp;packet,&nbsp;regardless&nbsp;of&nbsp;being&nbsp;active&nbsp;or&nbsp;backup.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&nbsp;I'm&nbsp;not&nbsp;sure&nbsp;about&nbsp;this&nbsp;but&nbsp;my&nbsp;best&nbsp;guess&nbsp;is&nbsp;that&nbsp;even&nbsp;using&nbsp;all
&gt;&gt;&gt;&gt;&nbsp;slaves&nbsp;to&nbsp;send&nbsp;packages,&nbsp;the&nbsp;slaves&nbsp;must&nbsp;be&nbsp;used&nbsp;one&nbsp;at&nbsp;a&nbsp;time,&nbsp;to
&gt;&gt;&gt;&gt;&nbsp;send&nbsp;packages&nbsp;sequentially.&nbsp;And&nbsp;one&nbsp;slave&nbsp;can&nbsp;be&nbsp;deactivated&nbsp;when&nbsp;a
&gt;&gt;&gt;&gt;&nbsp;problem&nbsp;is&nbsp;detected.&nbsp;I&nbsp;think&nbsp;that&nbsp;this&nbsp;two&nbsp;scenarios&nbsp;that&nbsp;justify&nbsp;the
&gt;&gt;&gt;&gt;&nbsp;check.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&nbsp;Thank&nbsp;you,
&gt;&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Eduard
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&nbsp;_______________________________________________
&gt;&gt;&gt;&gt;&gt;&nbsp;Kernelnewbies&nbsp;mailing&nbsp;list
&gt;&gt;&gt;&gt;&gt;&nbsp;Kernelnewbies@kernelnewbies.org
&gt;&gt;&gt;&gt;&gt;&nbsp;http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&nbsp;Peter
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&nbsp;--
&gt;&gt;&gt;&gt;&nbsp;Peter&nbsp;Senna&nbsp;Tschudin
&gt;&gt;&gt;&gt;&nbsp;peter.senna@gmail.com
&gt;&gt;&gt;&gt;&nbsp;gpg&nbsp;id:&nbsp;48274C36
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;_______________________________________________
&gt;&gt;&gt;Kernelnewbies&nbsp;mailing&nbsp;list
&gt;&gt;&gt;Kernelnewbies@kernelnewbies.org
&gt;&gt;&gt;http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt;_______________________________________________
&gt;Kernelnewbies&nbsp;mailing&nbsp;list
&gt;Kernelnewbies@kernelnewbies.org
&gt;http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
</pre></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>