31 Oct, 2009

5 commits

  • This implements a basic set of rtnl link ops and takes advantage of
    the fact that rtnl_link_unregister kills all of the surviving
    devices to all us to kill bond_free_all. A module alias
    is added so ip link add can pull in the bonding module.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: David S. Miller

    Eric W. Biederman
     
  • Manually inline the code from bond_deinit to bond_uninit. bond_uninit
    is the only caller and it is short.

    Move the call of bond_release_all from the netdev notifier into
    bond_uninit. The call site is effectively the same and performing
    the call explicitly allows all the paths for destroying a
    bonding device to behave the same way.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: David S. Miller

    Eric W. Biederman
     
  • Stop calling dev_get_by_name to see if the bond device already
    exists. register_netdevice already does that.

    Stop calling bond_deinit if register_netdevice fails as bond_uninit
    is guaranteed to be called if bond_init succeeds.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: David S. Miller

    Eric W. Biederman
     
  • This patch delegates the work of creating the sysfs groups
    to the netdev layer and ultimately to the device layer. This
    closes races between uevents.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: David S. Miller

    Eric W. Biederman
     
  • This isn't beautifully abstracted, but it is simple,
    simplifies uses and so far is only needed for the bonding driver.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: David S. Miller

    Eric W. Biederman
     

30 Oct, 2009

16 commits


29 Oct, 2009

19 commits