]> 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)
commita07e4130d858d67977e67d18cca0fd6269b3198e
treeff65b10d06840090471bb3a1d029202093438dec
parentfa5978cbd37ca112393943d3e569ffe7c50d0772
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