bonding: populate neighbour's private on enslave
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 25 Sep 2013 07:20:10 +0000 (09:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Sep 2013 20:02:04 +0000 (16:02 -0400)
commit1f718f0f4f97145f4072d2d72dcf85069ca7226d
treeff65b10d06840090471bb3a1d029202093438dec
parent402dae9614557296e84543008a8e582c28fb1db3
bonding: populate neighbour's private on enslave

Use the new provided function when attaching the lower slave to populate
its ->private with struct slave *new_slave. Also, move it to the end to
be able to 'find' it only after it was completely initialized, and
deinitialize in the first place on release.

CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c