net: make dev->master general
authorJiri Pirko <jpirko@redhat.com>
Sat, 12 Feb 2011 06:48:36 +0000 (06:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Feb 2011 18:42:07 +0000 (10:42 -0800)
dev->master is now tightly connected to bonding driver. This patch makes
this pointer more general and ready to be used by others.

 - netdev_set_master() - bond specifics moved to new function
   netdev_set_bond_master()
 - introduced netif_is_bond_slave() to check if device is a bonding slave

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found