]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: Don't allow mode change via sysfs with slaves present
authorVeaceslav Falico <vfalico@redhat.com>
Tue, 15 Nov 2011 06:44:42 +0000 (06:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Nov 2011 00:31:54 +0000 (19:31 -0500)
commit499e452b2bb4711f6d1f801df33c1e5cf7b99487
tree3eed4c74cbfceea961a8c18c3de1848b60be2437
parent6d8d34564037516a10f4e00047557fb1a5781823
bonding: Don't allow mode change via sysfs with slaves present

When changing mode via bonding's sysfs, the slaves are not initialized
correctly. Forbid to change modes with slaves present to ensure that every
slave is initialized correctly via bond_enslave().

Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Acked-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c