]> git.karo-electronics.de Git - linux-beck.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)
commit409cc1f8a4149c26bbb8e5d3bacb36541ad371e2
tree89049778a0b6126fd19dc806fafa192b3ef800fa
parentd2ed273d30c5ffd14f6b5ec7ecc751d960f832fc
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