Home
last modified time | relevance | path

Searched refs:slave_dev (Results 1 – 21 of 21) sorted by relevance

/Linux-v5.15/drivers/net/
Dnet_failover.c74 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 …]
Deql.c346 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()
436 s->dev = slave_dev; in eql_enslave()
458 struct net_device *slave_dev; in eql_emancipate() local
465 slave_dev = __dev_get_by_name(&init_net, srq.slave_name); in eql_emancipate()
466 if (!slave_dev) in eql_emancipate()
[all …]
Dvrf.c1783 const struct net_device *slave_dev) in vrf_get_slave_size() argument
1790 const struct net_device *slave_dev) in vrf_fill_slave_info() argument
/Linux-v5.15/net/core/
Dfailover.c46 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-v5.15/include/net/
Dfailover.h10 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,
34 int failover_slave_unregister(struct net_device *slave_dev);
Dbonding.h41 #define slave_info(bond_dev, slave_dev, fmt, ...) \ argument
42 netdev_info(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
43 #define slave_warn(bond_dev, slave_dev, fmt, ...) \ argument
44 netdev_warn(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
45 #define slave_dbg(bond_dev, slave_dev, fmt, ...) \ argument
46 netdev_dbg(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
47 #define slave_err(bond_dev, slave_dev, fmt, ...) \ argument
48 netdev_err(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
282 struct net_device *slave_dev) in bond_get_slave_by_dev() argument
284 return netdev_lower_dev_get_private(bond->dev, slave_dev); in bond_get_slave_by_dev()
[all …]
Drtnetlink.h108 struct net_device *slave_dev,
113 const struct net_device *slave_dev);
116 const struct net_device *slave_dev);
/Linux-v5.15/drivers/net/bonding/
Dbond_main.c293 struct net_device *slave_dev) in bond_dev_queue_xmit() argument
295 skb->dev = slave_dev; in bond_dev_queue_xmit()
302 return bond_netpoll_send_skb(bond_get_slave_by_dev(bond, slave_dev), skb); in bond_dev_queue_xmit()
677 struct net_device *slave_dev = slave->dev; in bond_update_speed_duplex() local
684 res = __ethtool_get_link_ksettings(slave_dev, &ecmd); in bond_update_speed_duplex()
735 struct net_device *slave_dev, int reporting) in bond_check_dev_link() argument
737 const struct net_device_ops *slave_ops = slave_dev->netdev_ops; in bond_check_dev_link()
742 if (!reporting && !netif_running(slave_dev)) in bond_check_dev_link()
746 return netif_carrier_ok(slave_dev) ? BMSR_LSTATUS : 0; in bond_check_dev_link()
749 if (slave_dev->ethtool_ops->get_link) in bond_check_dev_link()
[all …]
Dbond_netlink.c19 const struct net_device *slave_dev) in bond_get_slave_size() argument
34 const struct net_device *slave_dev) in bond_fill_slave_info() argument
36 struct slave *slave = bond_slave_get_rtnl(slave_dev); in bond_fill_slave_info()
49 slave_dev->addr_len, slave->perm_hwaddr)) in bond_fill_slave_info()
132 struct net_device *slave_dev, in bond_slave_changelink() argument
149 slave_dev->name, queue_id); in bond_slave_changelink()
181 struct net_device *slave_dev; in bond_changelink() local
185 slave_dev = __dev_get_by_index(dev_net(bond_dev), in bond_changelink()
187 if (!slave_dev) in bond_changelink()
189 active_slave = slave_dev->name; in bond_changelink()
Dbond_options.c844 struct net_device *slave_dev; in bond_option_active_slave_set() local
849 slave_dev = NULL; in bond_option_active_slave_set()
851 slave_dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_active_slave_set()
852 if (!slave_dev) in bond_option_active_slave_set()
856 if (slave_dev) { in bond_option_active_slave_set()
857 if (!netif_is_bond_slave(slave_dev)) { in bond_option_active_slave_set()
858 slave_err(bond->dev, slave_dev, "Device is not bonding slave\n"); in bond_option_active_slave_set()
862 if (bond->dev != netdev_master_upper_dev_get(slave_dev)) { in bond_option_active_slave_set()
863 slave_err(bond->dev, slave_dev, "Device is not our slave\n"); in bond_option_active_slave_set()
870 if (!slave_dev) { in bond_option_active_slave_set()
[all …]
Dbond_sysfs.c478 struct net_device *slave_dev; in bonding_show_active_slave() local
482 slave_dev = bond_option_active_slave_get_rcu(bond); in bonding_show_active_slave()
483 if (slave_dev) in bonding_show_active_slave()
484 count = sprintf(buf, "%s\n", slave_dev->name); in bonding_show_active_slave()
/Linux-v5.15/net/dsa/
Dslave.c1798 static int dsa_slave_phy_connect(struct net_device *slave_dev, int addr, in dsa_slave_phy_connect() argument
1801 struct dsa_port *dp = dsa_slave_to_port(slave_dev); in dsa_slave_phy_connect()
1804 slave_dev->phydev = mdiobus_get_phy(ds->slave_mii_bus, addr); in dsa_slave_phy_connect()
1805 if (!slave_dev->phydev) { in dsa_slave_phy_connect()
1806 netdev_err(slave_dev, "no phy at %d\n", addr); in dsa_slave_phy_connect()
1810 slave_dev->phydev->dev_flags |= flags; in dsa_slave_phy_connect()
1812 return phylink_connect_phy(dp->pl, slave_dev->phydev); in dsa_slave_phy_connect()
1815 static int dsa_slave_phy_setup(struct net_device *slave_dev) in dsa_slave_phy_setup() argument
1817 struct dsa_port *dp = dsa_slave_to_port(slave_dev); in dsa_slave_phy_setup()
1828 dp->pl_config.dev = &slave_dev->dev; in dsa_slave_phy_setup()
[all …]
Ddsa_priv.h317 void dsa_slave_destroy(struct net_device *slave_dev);
318 int dsa_slave_suspend(struct net_device *slave_dev);
319 int dsa_slave_resume(struct net_device *slave_dev);
Ddsa2.c1628 struct net_device *master, *slave_dev; in dsa_switch_shutdown() local
1643 slave_dev = dp->slave; in dsa_switch_shutdown()
1645 netdev_upper_dev_unlink(master, slave_dev); in dsa_switch_shutdown()
1662 unregister_netdevice_queue(slave_dev, &unregister_list); in dsa_switch_shutdown()
/Linux-v5.15/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_config.c427 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 …]
Drmnet_config.h75 struct net_device *slave_dev,
78 struct net_device *slave_dev);
/Linux-v5.15/drivers/net/can/sja1000/
Dkvaser_pci.c43 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-v5.15/net/bridge/
Dbr_device.c376 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-v5.15/net/batman-adv/
Dsoft-interface.c826 struct net_device *slave_dev, in batadv_softif_slave_add() argument
832 hard_iface = batadv_hardif_get_by_netdev(slave_dev); in batadv_softif_slave_add()
851 struct net_device *slave_dev) in batadv_softif_slave_del() argument
856 hard_iface = batadv_hardif_get_by_netdev(slave_dev); in batadv_softif_slave_del()
/Linux-v5.15/drivers/net/ethernet/broadcom/
Dbcmsysport.c2319 struct net_device *slave_dev) in bcm_sysport_map_queues() argument
2321 struct dsa_port *dp = dsa_port_from_netdev(slave_dev); in bcm_sysport_map_queues()
2342 netif_set_real_num_tx_queues(slave_dev, in bcm_sysport_map_queues()
2343 slave_dev->num_tx_queues / 2); in bcm_sysport_map_queues()
2345 num_tx_queues = slave_dev->real_num_tx_queues; in bcm_sysport_map_queues()
2349 netdev_warn(slave_dev, "asymmetric number of per-port queues\n"); in bcm_sysport_map_queues()
2374 struct net_device *slave_dev) in bcm_sysport_unmap_queues() argument
2376 struct dsa_port *dp = dsa_port_from_netdev(slave_dev); in bcm_sysport_unmap_queues()
2384 num_tx_queues = slave_dev->real_num_tx_queues; in bcm_sysport_unmap_queues()
/Linux-v5.15/include/linux/
Dnetdevice.h1475 struct net_device *slave_dev,
1478 struct net_device *slave_dev);