]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit958db79e30a53cbb89b4fab02cdb9e94a9533731
treeff65b10d06840090471bb3a1d029202093438dec
parent0f46c4cd35f2dd05ac5bd24eeda01f4845a0cb76
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