]> git.baikalelectronics.ru Git - kernel.git/commit
bond: have random dev address by default instead of zeroes
authorJiri Pirko <jiri@resnulli.us>
Wed, 30 Jan 2013 10:08:11 +0000 (11:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jan 2013 20:34:00 +0000 (15:34 -0500)
commitb5996237f6fc41e724224bc5a06e2f0cb9e264e1
tree89049778a0b6126fd19dc806fafa192b3ef800fa
parent0345ca3b76764f6033227b8e6897c79906e82851
bond: have random dev address by default instead of zeroes

Makes more sense to have randomly generated address by default than to
have all zeroes. It also allows user to for example put the bond into
bridge without need to have any slaves in it.

Also note that this changes only behaviour of bonds with no slaves. Once
the first slave device is enslaved, its address will be used (no change
here).

Also, fix dev_assign_type values on the way.

Reported-by: Pavel Šimerda <psimerda@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bonding.h