failover_dev 463 drivers/net/net_failover.c struct net_device *failover_dev) failover_dev 469 drivers/net/net_failover.c nfo_info = netdev_priv(failover_dev); failover_dev 472 drivers/net/net_failover.c slave_is_standby = slave_dev->dev.parent == failover_dev->dev.parent; failover_dev 474 drivers/net/net_failover.c netdev_err(failover_dev, "%s attempting to register as slave dev when %s already present\n", failover_dev 488 drivers/net/net_failover.c if (failover_dev->features & NETIF_F_VLAN_CHALLENGED && failover_dev 489 drivers/net/net_failover.c vlan_uses_dev(failover_dev)) { failover_dev 490 drivers/net/net_failover.c netdev_err(failover_dev, "Device %s is VLAN challenged and failover device has VLAN set up\n", failover_dev 491 drivers/net/net_failover.c failover_dev->name); failover_dev 499 drivers/net/net_failover.c struct net_device *failover_dev) failover_dev 509 drivers/net/net_failover.c err = dev_set_mtu(slave_dev, failover_dev->mtu); failover_dev 511 drivers/net/net_failover.c netdev_err(failover_dev, "unable to change mtu of %s to %u register failed\n", failover_dev 512 drivers/net/net_failover.c slave_dev->name, failover_dev->mtu); failover_dev 518 drivers/net/net_failover.c if (netif_running(failover_dev)) { failover_dev 521 drivers/net/net_failover.c netdev_err(failover_dev, "Opening slave %s failed err:%d\n", failover_dev 527 drivers/net/net_failover.c netif_addr_lock_bh(failover_dev); failover_dev 528 drivers/net/net_failover.c dev_uc_sync_multiple(slave_dev, failover_dev); failover_dev 529 drivers/net/net_failover.c dev_mc_sync_multiple(slave_dev, failover_dev); failover_dev 530 drivers/net/net_failover.c netif_addr_unlock_bh(failover_dev); failover_dev 532 drivers/net/net_failover.c err = vlan_vids_add_by_dev(slave_dev, failover_dev); failover_dev 534 drivers/net/net_failover.c netdev_err(failover_dev, "Failed to add vlan ids to device %s err:%d\n", failover_dev 539 drivers/net/net_failover.c nfo_info = netdev_priv(failover_dev); failover_dev 542 drivers/net/net_failover.c slave_is_standby = slave_dev->dev.parent == failover_dev->dev.parent; failover_dev 552 drivers/net/net_failover.c failover_dev->min_mtu = slave_dev->min_mtu; failover_dev 553 drivers/net/net_failover.c failover_dev->max_mtu = slave_dev->max_mtu; failover_dev 557 drivers/net/net_failover.c net_failover_compute_features(failover_dev); failover_dev 561 drivers/net/net_failover.c netdev_info(failover_dev, "failover %s slave:%s registered\n", failover_dev 567 drivers/net/net_failover.c dev_uc_unsync(slave_dev, failover_dev); failover_dev 568 drivers/net/net_failover.c dev_mc_unsync(slave_dev, failover_dev); failover_dev 578 drivers/net/net_failover.c struct net_device *failover_dev) failover_dev 583 drivers/net/net_failover.c nfo_info = netdev_priv(failover_dev); failover_dev 594 drivers/net/net_failover.c struct net_device *failover_dev) failover_dev 600 drivers/net/net_failover.c nfo_info = netdev_priv(failover_dev); failover_dev 607 drivers/net/net_failover.c vlan_vids_del_by_dev(slave_dev, failover_dev); failover_dev 608 drivers/net/net_failover.c dev_uc_unsync(slave_dev, failover_dev); failover_dev 609 drivers/net/net_failover.c dev_mc_unsync(slave_dev, failover_dev); failover_dev 612 drivers/net/net_failover.c nfo_info = netdev_priv(failover_dev); failover_dev 613 drivers/net/net_failover.c dev_get_stats(failover_dev, &nfo_info->failover_stats); failover_dev 615 drivers/net/net_failover.c slave_is_standby = slave_dev->dev.parent == failover_dev->dev.parent; failover_dev 621 drivers/net/net_failover.c failover_dev->min_mtu = standby_dev->min_mtu; failover_dev 622 drivers/net/net_failover.c failover_dev->max_mtu = standby_dev->max_mtu; failover_dev 628 drivers/net/net_failover.c net_failover_compute_features(failover_dev); failover_dev 630 drivers/net/net_failover.c netdev_info(failover_dev, "failover %s slave:%s unregistered\n", failover_dev 637 drivers/net/net_failover.c struct net_device *failover_dev) failover_dev 642 drivers/net/net_failover.c nfo_info = netdev_priv(failover_dev); failover_dev 652 drivers/net/net_failover.c netif_carrier_on(failover_dev); failover_dev 653 drivers/net/net_failover.c netif_tx_wake_all_queues(failover_dev); failover_dev 655 drivers/net/net_failover.c dev_get_stats(failover_dev, &nfo_info->failover_stats); failover_dev 656 drivers/net/net_failover.c netif_carrier_off(failover_dev); failover_dev 657 drivers/net/net_failover.c netif_tx_stop_all_queues(failover_dev); failover_dev 666 drivers/net/net_failover.c struct net_device *failover_dev) failover_dev 671 drivers/net/net_failover.c nfo_info = netdev_priv(failover_dev); failover_dev 713 drivers/net/net_failover.c struct net_device *failover_dev; failover_dev 720 drivers/net/net_failover.c failover_dev = alloc_etherdev_mq(sizeof(struct net_failover_info), 16); failover_dev 721 drivers/net/net_failover.c if (!failover_dev) { failover_dev 726 drivers/net/net_failover.c dev_net_set(failover_dev, dev_net(standby_dev)); failover_dev 727 drivers/net/net_failover.c SET_NETDEV_DEV(failover_dev, dev); failover_dev 729 drivers/net/net_failover.c failover_dev->netdev_ops = &failover_dev_ops; failover_dev 730 drivers/net/net_failover.c failover_dev->ethtool_ops = &failover_ethtool_ops; failover_dev 733 drivers/net/net_failover.c failover_dev->priv_flags |= IFF_UNICAST_FLT | IFF_NO_QUEUE; failover_dev 734 drivers/net/net_failover.c failover_dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | failover_dev 738 drivers/net/net_failover.c failover_dev->features |= NETIF_F_LLTX; failover_dev 741 drivers/net/net_failover.c failover_dev->features |= NETIF_F_NETNS_LOCAL; failover_dev 743 drivers/net/net_failover.c failover_dev->hw_features = FAILOVER_VLAN_FEATURES | failover_dev 748 drivers/net/net_failover.c failover_dev->hw_features |= NETIF_F_GSO_ENCAP_ALL; failover_dev 749 drivers/net/net_failover.c failover_dev->features |= failover_dev->hw_features; failover_dev 751 drivers/net/net_failover.c memcpy(failover_dev->dev_addr, standby_dev->dev_addr, failover_dev 752 drivers/net/net_failover.c failover_dev->addr_len); failover_dev 754 drivers/net/net_failover.c failover_dev->min_mtu = standby_dev->min_mtu; failover_dev 755 drivers/net/net_failover.c failover_dev->max_mtu = standby_dev->max_mtu; failover_dev 757 drivers/net/net_failover.c err = register_netdev(failover_dev); failover_dev 763 drivers/net/net_failover.c netif_carrier_off(failover_dev); failover_dev 765 drivers/net/net_failover.c failover = failover_register(failover_dev, &net_failover_ops); failover_dev 774 drivers/net/net_failover.c unregister_netdev(failover_dev); failover_dev 776 drivers/net/net_failover.c free_netdev(failover_dev); failover_dev 796 drivers/net/net_failover.c struct net_device *failover_dev; failover_dev 802 drivers/net/net_failover.c failover_dev = rcu_dereference(failover->failover_dev); failover_dev 803 drivers/net/net_failover.c nfo_info = netdev_priv(failover_dev); failover_dev 805 drivers/net/net_failover.c netif_device_detach(failover_dev); failover_dev 819 drivers/net/net_failover.c unregister_netdevice(failover_dev); failover_dev 823 drivers/net/net_failover.c free_netdev(failover_dev); failover_dev 11 include/net/failover.h struct net_device *failover_dev); failover_dev 13 include/net/failover.h struct net_device *failover_dev); failover_dev 15 include/net/failover.h struct net_device *failover_dev); failover_dev 17 include/net/failover.h struct net_device *failover_dev); failover_dev 19 include/net/failover.h struct net_device *failover_dev); failover_dev 21 include/net/failover.h struct net_device *failover_dev); failover_dev 27 include/net/failover.h struct net_device __rcu *failover_dev; failover_dev 22 net/core/failover.c struct net_device *failover_dev; failover_dev 27 net/core/failover.c failover_dev = rtnl_dereference(failover->failover_dev); failover_dev 28 net/core/failover.c if (ether_addr_equal(failover_dev->perm_addr, mac)) { failover_dev 31 net/core/failover.c return failover_dev; failover_dev 49 net/core/failover.c struct net_device *failover_dev; failover_dev 58 net/core/failover.c failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); failover_dev 59 net/core/failover.c if (!failover_dev) failover_dev 63 net/core/failover.c fops->slave_pre_register(slave_dev, failover_dev)) failover_dev 67 net/core/failover.c failover_dev); failover_dev 75 net/core/failover.c err = netdev_master_upper_dev_link(slave_dev, failover_dev, NULL, failover_dev 79 net/core/failover.c failover_dev->name, err); failover_dev 86 net/core/failover.c !fops->slave_register(slave_dev, failover_dev)) failover_dev 89 net/core/failover.c netdev_upper_dev_unlink(slave_dev, failover_dev); failover_dev 106 net/core/failover.c struct net_device *failover_dev; failover_dev 114 net/core/failover.c failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); failover_dev 115 net/core/failover.c if (!failover_dev) failover_dev 119 net/core/failover.c fops->slave_pre_unregister(slave_dev, failover_dev)) failover_dev 123 net/core/failover.c netdev_upper_dev_unlink(slave_dev, failover_dev); failover_dev 127 net/core/failover.c !fops->slave_unregister(slave_dev, failover_dev)) failover_dev 137 net/core/failover.c struct net_device *failover_dev; failover_dev 145 net/core/failover.c failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); failover_dev 146 net/core/failover.c if (!failover_dev) failover_dev 149 net/core/failover.c if (!netif_running(failover_dev)) failover_dev 153 net/core/failover.c !fops->slave_link_change(slave_dev, failover_dev)) failover_dev 162 net/core/failover.c struct net_device *failover_dev; failover_dev 170 net/core/failover.c failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); failover_dev 171 net/core/failover.c if (!failover_dev) failover_dev 174 net/core/failover.c if (!netif_running(failover_dev)) failover_dev 178 net/core/failover.c !fops->slave_name_change(slave_dev, failover_dev)) failover_dev 215 net/core/failover.c failover_existing_slave_register(struct net_device *failover_dev) failover_dev 217 net/core/failover.c struct net *net = dev_net(failover_dev); failover_dev 224 net/core/failover.c if (ether_addr_equal(failover_dev->perm_addr, dev->perm_addr)) failover_dev 257 net/core/failover.c rcu_assign_pointer(failover->failover_dev, dev); failover_dev 280 net/core/failover.c struct net_device *failover_dev; failover_dev 282 net/core/failover.c failover_dev = rcu_dereference(failover->failover_dev); failover_dev 284 net/core/failover.c netdev_info(failover_dev, "failover master:%s unregistered\n", failover_dev 285 net/core/failover.c failover_dev->name); failover_dev 287 net/core/failover.c failover_dev->priv_flags &= ~IFF_FAILOVER; failover_dev 288 net/core/failover.c dev_put(failover_dev);