Lines Matching refs:slave_dev

46 static int failover_slave_register(struct net_device *slave_dev)  in failover_slave_register()  argument
53 if (slave_dev->type != ARPHRD_ETHER) in failover_slave_register()
58 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); in failover_slave_register()
63 fops->slave_pre_register(slave_dev, failover_dev)) in failover_slave_register()
66 err = netdev_rx_handler_register(slave_dev, fops->slave_handle_frame, in failover_slave_register()
69 netdev_err(slave_dev, "can not register failover rx handler (err = %d)\n", in failover_slave_register()
75 err = netdev_master_upper_dev_link(slave_dev, failover_dev, NULL, in failover_slave_register()
78 netdev_err(slave_dev, "can not set failover device %s (err = %d)\n", in failover_slave_register()
83 slave_dev->priv_flags |= (IFF_FAILOVER_SLAVE | IFF_LIVE_RENAME_OK); in failover_slave_register()
86 !fops->slave_register(slave_dev, failover_dev)) in failover_slave_register()
89 netdev_upper_dev_unlink(slave_dev, failover_dev); in failover_slave_register()
90 slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_LIVE_RENAME_OK); in failover_slave_register()
92 netdev_rx_handler_unregister(slave_dev); in failover_slave_register()
104 int failover_slave_unregister(struct net_device *slave_dev) in failover_slave_unregister() argument
109 if (!netif_is_failover_slave(slave_dev)) in failover_slave_unregister()
114 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); in failover_slave_unregister()
119 fops->slave_pre_unregister(slave_dev, failover_dev)) in failover_slave_unregister()
122 netdev_rx_handler_unregister(slave_dev); in failover_slave_unregister()
123 netdev_upper_dev_unlink(slave_dev, failover_dev); in failover_slave_unregister()
124 slave_dev->priv_flags &= ~(IFF_FAILOVER_SLAVE | IFF_LIVE_RENAME_OK); in failover_slave_unregister()
127 !fops->slave_unregister(slave_dev, failover_dev)) in failover_slave_unregister()
135 static int failover_slave_link_change(struct net_device *slave_dev) in failover_slave_link_change() argument
140 if (!netif_is_failover_slave(slave_dev)) in failover_slave_link_change()
145 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); in failover_slave_link_change()
153 !fops->slave_link_change(slave_dev, failover_dev)) in failover_slave_link_change()
160 static int failover_slave_name_change(struct net_device *slave_dev) in failover_slave_name_change() argument
165 if (!netif_is_failover_slave(slave_dev)) in failover_slave_name_change()
170 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); in failover_slave_name_change()
178 !fops->slave_name_change(slave_dev, failover_dev)) in failover_slave_name_change()