<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hi, Eduard<br><br>Please put the cables back after change the mode to round robin,<br>and then ping the remote PC<br><br><pre>The scenario is: <br>1 Create a bond with 3 interfaces (connect them to switch). <br>2 Change bond's mode to active/backup. <br>3 Physicly remove two cables form interfaces ( not the active interface ). <br>4 Change the mode to round robin.<br>5 Put the cables back<br>6 Try to ping some other computer.
</pre><br><div></div><br>bill<br><br><br><pre><br>At&nbsp;2011-07-31&nbsp;23:15:22,"Eduard&nbsp;Sinelnikov"&nbsp;&lt;eduard.sinelnikov@gmail.com&gt;&nbsp;wrote:
&gt;Hi,
&gt;
&gt;The&nbsp;scenario&nbsp;is:
&gt;*&nbsp;Create&nbsp;a&nbsp;bond&nbsp;with&nbsp;3&nbsp;interfaces&nbsp;(connect&nbsp;them&nbsp;to&nbsp;switch).
&gt;*&nbsp;Change&nbsp;bond's&nbsp;mode&nbsp;to&nbsp;active/backup.
&gt;*&nbsp;Physicly&nbsp;remove&nbsp;two&nbsp;cables&nbsp;form&nbsp;interfaces&nbsp;(&nbsp;not&nbsp;the&nbsp;active&nbsp;interface&nbsp;).
&gt;*&nbsp;Put&nbsp;the&nbsp;cables&nbsp;back
&gt;*&nbsp;Change&nbsp;the&nbsp;mode&nbsp;to&nbsp;round&nbsp;robin.
&gt;*&nbsp;Try&nbsp;to&nbsp;ping&nbsp;some&nbsp;other&nbsp;computer.
&gt;
&gt;Now&nbsp;only&nbsp;one&nbsp;interface&nbsp;is&nbsp;pinging&nbsp;to&nbsp;remote&nbsp;computer.
&gt;Without&nbsp;removing&nbsp;the&nbsp;cables&nbsp;all&nbsp;three&nbsp;interface&nbsp;will&nbsp;ping&nbsp;to&nbsp;remote
&gt;computer&nbsp;periodicly.
&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;interface&nbsp;is&nbsp;in&nbsp;active&nbsp;(and&nbsp;all&nbsp;of&nbsp;them&nbsp;transmiting&nbsp;periodically).
&gt;After&nbsp;removing&nbsp;and&nbsp;puting&nbsp;back&nbsp;the&nbsp;cables(in&nbsp;active/backup&nbsp;mode).&nbsp;the
&gt;interfaces&nbsp;change&nbsp;their&nbsp;status&nbsp;to&nbsp;backup.
&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;Thanks&nbsp;in&nbsp;advance,
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Eduard
&gt;
&gt;2011/7/31&nbsp;Peter&nbsp;Senna&nbsp;Tschudin&nbsp;&lt;peter.senna@gmail.com&gt;:
&gt;&gt;&nbsp;Hi&nbsp;Eduard,
&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;&nbsp;&lt;eduard.sinelnikov@gmail.com&gt;&nbsp;wrote:
&gt;&gt;&gt;&nbsp;Hi,
&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;&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;&nbsp;./drivers/net/bonding/bond_main.c
&gt;&gt;
&gt;&gt;&gt;&nbsp;In&nbsp;the&nbsp;function&nbsp;&nbsp;‘bond_xmit_roundrobin’
&gt;&gt;&gt;&nbsp;The&nbsp;code&nbsp;check&nbsp;if&nbsp;the&nbsp;bond&nbsp;is&nbsp;active&nbsp;via
&gt;&gt;&gt;&nbsp;‘bond_is_active_slave(slave)’&nbsp;Function&nbsp;call.
&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;&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;&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;&nbsp;packet,&nbsp;regardless&nbsp;of&nbsp;being&nbsp;active&nbsp;or&nbsp;backup.
&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;&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;&nbsp;send&nbsp;packages&nbsp;sequentially.&nbsp;And&nbsp;one&nbsp;slave&nbsp;can&nbsp;be&nbsp;deactivated&nbsp;when&nbsp;a
&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;&nbsp;check.
&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;&nbsp;Thank&nbsp;you,
&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Eduard
&gt;&gt;&gt;
&gt;&gt;&gt;&nbsp;_______________________________________________
&gt;&gt;&gt;&nbsp;Kernelnewbies&nbsp;mailing&nbsp;list
&gt;&gt;&gt;&nbsp;Kernelnewbies@kernelnewbies.org
&gt;&gt;&gt;&nbsp;http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;&nbsp;Peter
&gt;&gt;
&gt;&gt;&nbsp;--
&gt;&gt;&nbsp;Peter&nbsp;Senna&nbsp;Tschudin
&gt;&gt;&nbsp;peter.senna@gmail.com
&gt;&gt;&nbsp;gpg&nbsp;id:&nbsp;48274C36
&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>