/linux-5.19.10/drivers/net/ |
D | net_failover.c | 74 struct net_device *slave_dev; in net_failover_close() local 78 slave_dev = rtnl_dereference(nfo_info->primary_dev); in net_failover_close() 79 if (slave_dev) in net_failover_close() 80 dev_close(slave_dev); in net_failover_close() 82 slave_dev = rtnl_dereference(nfo_info->standby_dev); in net_failover_close() 83 if (slave_dev) in net_failover_close() 84 dev_close(slave_dev); in net_failover_close() 188 struct net_device *slave_dev; in net_failover_get_stats() local 195 slave_dev = rcu_dereference(nfo_info->primary_dev); in net_failover_get_stats() 196 if (slave_dev) { in net_failover_get_stats() [all …]
|
D | eql.c | 346 struct net_device *slave_dev = slave->dev; in eql_slave_xmit() local 348 skb->dev = slave_dev; in eql_slave_xmit() 415 struct net_device *slave_dev; in eql_enslave() local 421 slave_dev = __dev_get_by_name(&init_net, srq.slave_name); in eql_enslave() 422 if (!slave_dev) in eql_enslave() 427 if (!eql_is_master(slave_dev) && !eql_is_slave(slave_dev)) { in eql_enslave() 435 s->dev = slave_dev; in eql_enslave() 457 struct net_device *slave_dev; in eql_emancipate() local 464 slave_dev = __dev_get_by_name(&init_net, srq.slave_name); in eql_emancipate() 465 if (!slave_dev) in eql_emancipate() [all …]
|
D | vrf.c | 1812 const struct net_device *slave_dev) in vrf_get_slave_size() argument 1819 const struct net_device *slave_dev) in vrf_fill_slave_info() argument
|
/linux-5.19.10/net/core/ |
D | failover.c | 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() [all …]
|
/linux-5.19.10/include/net/ |
D | failover.h | 10 int (*slave_pre_register)(struct net_device *slave_dev, 12 int (*slave_register)(struct net_device *slave_dev, 14 int (*slave_pre_unregister)(struct net_device *slave_dev, 16 int (*slave_unregister)(struct net_device *slave_dev, 18 int (*slave_link_change)(struct net_device *slave_dev, 20 int (*slave_name_change)(struct net_device *slave_dev, 35 int failover_slave_unregister(struct net_device *slave_dev);
|
D | bonding.h | 44 #define slave_info(bond_dev, slave_dev, fmt, ...) \ argument 45 netdev_info(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 46 #define slave_warn(bond_dev, slave_dev, fmt, ...) \ argument 47 netdev_warn(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 48 #define slave_dbg(bond_dev, slave_dev, fmt, ...) \ argument 49 netdev_dbg(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 50 #define slave_err(bond_dev, slave_dev, fmt, ...) \ argument 51 netdev_err(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__) 290 struct net_device *slave_dev) in bond_get_slave_by_dev() argument 292 return netdev_lower_dev_get_private(bond->dev, slave_dev); in bond_get_slave_by_dev() [all …]
|
D | rtnetlink.h | 122 struct net_device *slave_dev, 127 const struct net_device *slave_dev); 130 const struct net_device *slave_dev);
|
/linux-5.19.10/drivers/net/bonding/ |
D | bond_main.c | 296 struct net_device *slave_dev) in bond_dev_queue_xmit() argument 298 skb->dev = slave_dev; in bond_dev_queue_xmit() 305 return bond_netpoll_send_skb(bond_get_slave_by_dev(bond, slave_dev), skb); in bond_dev_queue_xmit() 680 struct net_device *slave_dev = slave->dev; in bond_update_speed_duplex() local 687 res = __ethtool_get_link_ksettings(slave_dev, &ecmd); in bond_update_speed_duplex() 738 struct net_device *slave_dev, int reporting) in bond_check_dev_link() argument 740 const struct net_device_ops *slave_ops = slave_dev->netdev_ops; in bond_check_dev_link() 745 if (!reporting && !netif_running(slave_dev)) in bond_check_dev_link() 749 return netif_carrier_ok(slave_dev) ? BMSR_LSTATUS : 0; in bond_check_dev_link() 752 if (slave_dev->ethtool_ops->get_link) in bond_check_dev_link() [all …]
|
D | bond_netlink.c | 20 const struct net_device *slave_dev) in bond_get_slave_size() argument 35 const struct net_device *slave_dev) in bond_fill_slave_info() argument 37 struct slave *slave = bond_slave_get_rtnl(slave_dev); in bond_fill_slave_info() 50 slave_dev->addr_len, slave->perm_hwaddr)) in bond_fill_slave_info() 135 struct net_device *slave_dev, in bond_slave_changelink() argument 152 slave_dev->name, queue_id); in bond_slave_changelink() 184 struct net_device *slave_dev; in bond_changelink() local 188 slave_dev = __dev_get_by_index(dev_net(bond_dev), in bond_changelink() 190 if (!slave_dev) in bond_changelink() 192 active_slave = slave_dev->name; in bond_changelink()
|
D | bond_options.c | 871 struct net_device *slave_dev; in bond_option_active_slave_set() local 876 slave_dev = NULL; in bond_option_active_slave_set() 878 slave_dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_active_slave_set() 879 if (!slave_dev) in bond_option_active_slave_set() 883 if (slave_dev) { in bond_option_active_slave_set() 884 if (!netif_is_bond_slave(slave_dev)) { in bond_option_active_slave_set() 885 slave_err(bond->dev, slave_dev, "Device is not bonding slave\n"); in bond_option_active_slave_set() 889 if (bond->dev != netdev_master_upper_dev_get(slave_dev)) { in bond_option_active_slave_set() 890 slave_err(bond->dev, slave_dev, "Device is not our slave\n"); in bond_option_active_slave_set() 897 if (!slave_dev) { in bond_option_active_slave_set() [all …]
|
D | bond_sysfs.c | 490 struct net_device *slave_dev; in bonding_show_active_slave() local 494 slave_dev = bond_option_active_slave_get_rcu(bond); in bonding_show_active_slave() 495 if (slave_dev) in bonding_show_active_slave() 496 count = sprintf(buf, "%s\n", slave_dev->name); in bonding_show_active_slave()
|
/linux-5.19.10/net/dsa/ |
D | slave.c | 2187 static int dsa_slave_phy_connect(struct net_device *slave_dev, int addr, in dsa_slave_phy_connect() argument 2190 struct dsa_port *dp = dsa_slave_to_port(slave_dev); in dsa_slave_phy_connect() 2193 slave_dev->phydev = mdiobus_get_phy(ds->slave_mii_bus, addr); in dsa_slave_phy_connect() 2194 if (!slave_dev->phydev) { in dsa_slave_phy_connect() 2195 netdev_err(slave_dev, "no phy at %d\n", addr); in dsa_slave_phy_connect() 2199 slave_dev->phydev->dev_flags |= flags; in dsa_slave_phy_connect() 2201 return phylink_connect_phy(dp->pl, slave_dev->phydev); in dsa_slave_phy_connect() 2204 static int dsa_slave_phy_setup(struct net_device *slave_dev) in dsa_slave_phy_setup() argument 2206 struct dsa_port *dp = dsa_slave_to_port(slave_dev); in dsa_slave_phy_setup() 2212 dp->pl_config.dev = &slave_dev->dev; in dsa_slave_phy_setup() [all …]
|
D | dsa_priv.h | 303 void dsa_slave_destroy(struct net_device *slave_dev); 304 int dsa_slave_suspend(struct net_device *slave_dev); 305 int dsa_slave_resume(struct net_device *slave_dev);
|
D | dsa2.c | 1783 struct net_device *master, *slave_dev; in dsa_switch_shutdown() local 1795 slave_dev = dp->slave; in dsa_switch_shutdown() 1797 netdev_upper_dev_unlink(master, slave_dev); in dsa_switch_shutdown()
|
/linux-5.19.10/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_config.c | 427 struct net_device *slave_dev, in rmnet_add_bridge() argument 450 if (rmnet_is_real_dev_registered(slave_dev)) { in rmnet_add_bridge() 457 err = rmnet_register_real_device(slave_dev, extack); in rmnet_add_bridge() 461 err = netdev_master_upper_dev_link(slave_dev, rmnet_dev, NULL, NULL, in rmnet_add_bridge() 464 rmnet_unregister_real_device(slave_dev); in rmnet_add_bridge() 468 slave_port = rmnet_get_port_rtnl(slave_dev); in rmnet_add_bridge() 474 port->bridge_ep = slave_dev; in rmnet_add_bridge() 476 netdev_dbg(slave_dev, "registered with rmnet as slave\n"); in rmnet_add_bridge() 481 struct net_device *slave_dev) in rmnet_del_bridge() argument 483 struct rmnet_port *port = rmnet_get_port_rtnl(slave_dev); in rmnet_del_bridge() [all …]
|
D | rmnet_config.h | 75 struct net_device *slave_dev, 78 struct net_device *slave_dev);
|
/linux-5.19.10/drivers/net/can/sja1000/ |
D | kvaser_pci.c | 43 struct net_device *slave_dev[MAX_NO_OF_CHANNELS-1]; member 180 if (board->slave_dev[i]) { in kvaser_pci_del_chan() 182 board->slave_dev[i]->name); in kvaser_pci_del_chan() 183 unregister_sja1000dev(board->slave_dev[i]); in kvaser_pci_del_chan() 184 free_sja1000dev(board->slave_dev[i]); in kvaser_pci_del_chan() 236 master_board->slave_dev[channel - 1] = dev; in kvaser_pci_add_chan()
|
/linux-5.19.10/net/bridge/ |
D | br_device.c | 376 static int br_add_slave(struct net_device *dev, struct net_device *slave_dev, in br_add_slave() argument 382 return br_add_if(br, slave_dev, extack); in br_add_slave() 385 static int br_del_slave(struct net_device *dev, struct net_device *slave_dev) in br_del_slave() argument 389 return br_del_if(br, slave_dev); in br_del_slave()
|
/linux-5.19.10/net/batman-adv/ |
D | soft-interface.c | 829 struct net_device *slave_dev, in batadv_softif_slave_add() argument 835 hard_iface = batadv_hardif_get_by_netdev(slave_dev); in batadv_softif_slave_add() 854 struct net_device *slave_dev) in batadv_softif_slave_del() argument 859 hard_iface = batadv_hardif_get_by_netdev(slave_dev); in batadv_softif_slave_del()
|
/linux-5.19.10/drivers/net/ethernet/broadcom/ |
D | bcmsysport.c | 2318 struct net_device *slave_dev) in bcm_sysport_map_queues() argument 2320 struct dsa_port *dp = dsa_port_from_netdev(slave_dev); in bcm_sysport_map_queues() 2341 netif_set_real_num_tx_queues(slave_dev, in bcm_sysport_map_queues() 2342 slave_dev->num_tx_queues / 2); in bcm_sysport_map_queues() 2344 num_tx_queues = slave_dev->real_num_tx_queues; in bcm_sysport_map_queues() 2348 netdev_warn(slave_dev, "asymmetric number of per-port queues\n"); in bcm_sysport_map_queues() 2373 struct net_device *slave_dev) in bcm_sysport_unmap_queues() argument 2375 struct dsa_port *dp = dsa_port_from_netdev(slave_dev); in bcm_sysport_unmap_queues() 2383 num_tx_queues = slave_dev->real_num_tx_queues; in bcm_sysport_unmap_queues()
|
/linux-5.19.10/include/linux/ |
D | netdevice.h | 1508 struct net_device *slave_dev, 1511 struct net_device *slave_dev);
|