Home
last modified time | relevance | path

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

/linux-6.6.21/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()
184 struct net_device *slave_dev; in net_failover_get_stats() local
191 slave_dev = rcu_dereference(nfo_info->primary_dev); in net_failover_get_stats()
192 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()
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 …]
Dvrf.c1792 const struct net_device *slave_dev) in vrf_get_slave_size() argument
1799 const struct net_device *slave_dev) in vrf_fill_slave_info() argument
/linux-6.6.21/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_NO_ADDRCONF); in failover_slave_register()
86 !fops->slave_register(slave_dev, failover_dev)) in failover_slave_register()
[all …]
/linux-6.6.21/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,
35 int failover_slave_unregister(struct net_device *slave_dev);
Dbonding.h42 #define slave_info(bond_dev, slave_dev, fmt, ...) \ argument
43 netdev_info(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
44 #define slave_warn(bond_dev, slave_dev, fmt, ...) \ argument
45 netdev_warn(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
46 #define slave_dbg(bond_dev, slave_dev, fmt, ...) \ argument
47 netdev_dbg(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
48 #define slave_err(bond_dev, slave_dev, fmt, ...) \ argument
49 netdev_err(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
286 struct net_device *slave_dev) in bond_get_slave_by_dev() argument
288 return netdev_lower_dev_get_private(bond->dev, slave_dev); in bond_get_slave_by_dev()
[all …]
Dbond_options.h97 struct net_device *slave_dev; member
156 #define bond_opt_slave_initval(optval, slave_dev, value) \ argument
157 __bond_opt_init(optval, NULL, value, slave_dev, sizeof(struct net_device *))
Drtnetlink.h122 struct net_device *slave_dev,
127 const struct net_device *slave_dev);
130 const struct net_device *slave_dev);
/linux-6.6.21/drivers/net/bonding/
Dbond_main.c298 struct net_device *slave_dev) in bond_dev_queue_xmit() argument
300 skb->dev = slave_dev; in bond_dev_queue_xmit()
307 return bond_netpoll_send_skb(bond_get_slave_by_dev(bond, slave_dev), skb); in bond_dev_queue_xmit()
684 struct net_device *slave_dev = slave->dev; in bond_update_speed_duplex() local
691 res = __ethtool_get_link_ksettings(slave_dev, &ecmd); in bond_update_speed_duplex()
742 struct net_device *slave_dev, int reporting) in bond_check_dev_link() argument
744 const struct net_device_ops *slave_ops = slave_dev->netdev_ops; in bond_check_dev_link()
749 if (!reporting && !netif_running(slave_dev)) in bond_check_dev_link()
753 return netif_carrier_ok(slave_dev) ? BMSR_LSTATUS : 0; in bond_check_dev_link()
756 if (slave_dev->ethtool_ops->get_link) in bond_check_dev_link()
[all …]
Dbond_netlink.c20 const struct net_device *slave_dev) in bond_get_slave_size() argument
36 const struct net_device *slave_dev) in bond_fill_slave_info() argument
38 struct slave *slave = bond_slave_get_rtnl(slave_dev); in bond_fill_slave_info()
51 slave_dev->addr_len, slave->perm_hwaddr)) in bond_fill_slave_info()
145 struct net_device *slave_dev, in bond_slave_changelink() argument
162 slave_dev->name, queue_id); in bond_slave_changelink()
173 bond_opt_slave_initval(&newval, &slave_dev, prio); in bond_slave_changelink()
206 struct net_device *slave_dev; in bond_changelink() local
210 slave_dev = __dev_get_by_index(dev_net(bond_dev), in bond_changelink()
212 if (!slave_dev) in bond_changelink()
[all …]
Dbond_options.c895 struct net_device *slave_dev; in bond_option_active_slave_set() local
900 slave_dev = NULL; in bond_option_active_slave_set()
902 slave_dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_active_slave_set()
903 if (!slave_dev) in bond_option_active_slave_set()
907 if (slave_dev) { in bond_option_active_slave_set()
908 if (!netif_is_bond_slave(slave_dev)) { in bond_option_active_slave_set()
909 slave_err(bond->dev, slave_dev, "Device is not bonding slave\n"); in bond_option_active_slave_set()
913 if (bond->dev != netdev_master_upper_dev_get(slave_dev)) { in bond_option_active_slave_set()
914 slave_err(bond->dev, slave_dev, "Device is not our slave\n"); in bond_option_active_slave_set()
921 if (!slave_dev) { in bond_option_active_slave_set()
[all …]
Dbond_sysfs.c490 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 = sysfs_emit(buf, "%s\n", slave_dev->name); in bonding_show_active_slave()
/linux-6.6.21/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_config.c432 struct net_device *slave_dev, in rmnet_add_bridge() argument
455 if (rmnet_is_real_dev_registered(slave_dev)) { in rmnet_add_bridge()
462 err = rmnet_register_real_device(slave_dev, extack); in rmnet_add_bridge()
466 err = netdev_master_upper_dev_link(slave_dev, rmnet_dev, NULL, NULL, in rmnet_add_bridge()
469 rmnet_unregister_real_device(slave_dev); in rmnet_add_bridge()
473 slave_port = rmnet_get_port_rtnl(slave_dev); in rmnet_add_bridge()
479 port->bridge_ep = slave_dev; in rmnet_add_bridge()
481 netdev_dbg(slave_dev, "registered with rmnet as slave\n"); in rmnet_add_bridge()
486 struct net_device *slave_dev) in rmnet_del_bridge() argument
488 struct rmnet_port *port = rmnet_get_port_rtnl(slave_dev); in rmnet_del_bridge()
[all …]
Drmnet_config.h95 struct net_device *slave_dev,
98 struct net_device *slave_dev);
/linux-6.6.21/net/dsa/
Dslave.c2474 static int dsa_slave_phy_connect(struct net_device *slave_dev, int addr, in dsa_slave_phy_connect() argument
2477 struct dsa_port *dp = dsa_slave_to_port(slave_dev); in dsa_slave_phy_connect()
2480 slave_dev->phydev = mdiobus_get_phy(ds->slave_mii_bus, addr); in dsa_slave_phy_connect()
2481 if (!slave_dev->phydev) { in dsa_slave_phy_connect()
2482 netdev_err(slave_dev, "no phy at %d\n", addr); in dsa_slave_phy_connect()
2486 slave_dev->phydev->dev_flags |= flags; in dsa_slave_phy_connect()
2488 return phylink_connect_phy(dp->pl, slave_dev->phydev); in dsa_slave_phy_connect()
2491 static int dsa_slave_phy_setup(struct net_device *slave_dev) in dsa_slave_phy_setup() argument
2493 struct dsa_port *dp = dsa_slave_to_port(slave_dev); in dsa_slave_phy_setup()
2499 dp->pl_config.dev = &slave_dev->dev; in dsa_slave_phy_setup()
[all …]
Dslave.h40 void dsa_slave_destroy(struct net_device *slave_dev);
41 int dsa_slave_suspend(struct net_device *slave_dev);
42 int dsa_slave_resume(struct net_device *slave_dev);
Ddsa.c1576 struct net_device *master, *slave_dev; in dsa_switch_shutdown() local
1588 slave_dev = dp->slave; in dsa_switch_shutdown()
1590 netdev_upper_dev_unlink(master, slave_dev); in dsa_switch_shutdown()
/linux-6.6.21/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-6.6.21/net/bridge/
Dbr_device.c377 static int br_add_slave(struct net_device *dev, struct net_device *slave_dev, in br_add_slave() argument
383 return br_add_if(br, slave_dev, extack); in br_add_slave()
386 static int br_del_slave(struct net_device *dev, struct net_device *slave_dev) in br_del_slave() argument
390 return br_del_if(br, slave_dev); in br_del_slave()
/linux-6.6.21/net/batman-adv/
Dsoft-interface.c830 struct net_device *slave_dev, in batadv_softif_slave_add() argument
836 hard_iface = batadv_hardif_get_by_netdev(slave_dev); in batadv_softif_slave_add()
855 struct net_device *slave_dev) in batadv_softif_slave_del() argument
860 hard_iface = batadv_hardif_get_by_netdev(slave_dev); in batadv_softif_slave_del()
/linux-6.6.21/drivers/net/ethernet/broadcom/
Dbcmsysport.c2332 struct net_device *slave_dev) in bcm_sysport_map_queues() argument
2334 struct dsa_port *dp = dsa_port_from_netdev(slave_dev); in bcm_sysport_map_queues()
2355 netif_set_real_num_tx_queues(slave_dev, in bcm_sysport_map_queues()
2356 slave_dev->num_tx_queues / 2); in bcm_sysport_map_queues()
2358 num_tx_queues = slave_dev->real_num_tx_queues; in bcm_sysport_map_queues()
2362 netdev_warn(slave_dev, "asymmetric number of per-port queues\n"); in bcm_sysport_map_queues()
2387 struct net_device *slave_dev) in bcm_sysport_unmap_queues() argument
2389 struct dsa_port *dp = dsa_port_from_netdev(slave_dev); in bcm_sysport_unmap_queues()
2397 num_tx_queues = slave_dev->real_num_tx_queues; in bcm_sysport_unmap_queues()
/linux-6.6.21/include/linux/
Dnetdevice.h1537 struct net_device *slave_dev,
1540 struct net_device *slave_dev);
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads.c2812 struct mlx5_core_dev *slave_dev) in esw_unset_master_egress_rule() argument
2819 esw_acl_egress_ofld_bounce_rule_destroy(vport, MLX5_CAP_GEN(slave_dev, vhca_id)); in esw_unset_master_egress_rule()