]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: fix multiple module load problem
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 11 Jun 2009 12:46:04 +0000 (05:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jun 2009 12:46:04 +0000 (05:46 -0700)
commit3affa0a52758c6942447f110fe881a48ac8f7cae
tree56231709cf0a5f1108fbdd0909a0b346a31a9b86
parent180b2bee1a81f8da8bf23bc727fe7482e73ddcd9
bonding: fix multiple module load problem

Some users still load bond module multiple times to create bonding
devices.  This accidentally was broken by a later patch about
the time sysfs was fixed.  According to Jay, it was broken
by:
   commit 2f7779391a34a88d5af38c16f18560637d5f8d85
   Author: Jay Vosburgh <fubar@us.ibm.com>
   Date:   Fri Jun 13 18:12:04 2008 -0700

     bonding: Allow setting max_bonds to zero

Note: sysfs and procfs still produce WARN() messages when this is done
so the sysfs method is the recommended API.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c