Home
last modified time | relevance | path

Searched refs:bond (Results 1 – 20 of 20) sorted by relevance

/drivers/net/bonding/
Dbond_options.c19 static int bond_option_active_slave_set(struct bonding *bond,
21 static int bond_option_miimon_set(struct bonding *bond,
23 static int bond_option_updelay_set(struct bonding *bond,
25 static int bond_option_downdelay_set(struct bonding *bond,
27 static int bond_option_peer_notif_delay_set(struct bonding *bond,
29 static int bond_option_use_carrier_set(struct bonding *bond,
31 static int bond_option_arp_interval_set(struct bonding *bond,
33 static int bond_option_arp_ip_target_add(struct bonding *bond, __be32 target);
34 static int bond_option_arp_ip_target_rem(struct bonding *bond, __be32 target);
35 static int bond_option_arp_ip_targets_set(struct bonding *bond,
[all …]
Dbond_alb.c56 static void rlb_purge_src_ip(struct bonding *bond, struct arp_pkt *arp);
57 static void rlb_src_unlink(struct bonding *bond, u32 index);
58 static void rlb_src_link(struct bonding *bond, u32 ip_src_hash,
93 static void __tlb_clear_slave(struct bonding *bond, struct slave *slave, in __tlb_clear_slave() argument
100 tx_hash_table = BOND_ALB_INFO(bond).tx_hashtbl; in __tlb_clear_slave()
115 static void tlb_clear_slave(struct bonding *bond, struct slave *slave, in tlb_clear_slave() argument
118 spin_lock_bh(&bond->mode_lock); in tlb_clear_slave()
119 __tlb_clear_slave(bond, slave, save_load); in tlb_clear_slave()
120 spin_unlock_bh(&bond->mode_lock); in tlb_clear_slave()
124 static int tlb_initialize(struct bonding *bond) in tlb_initialize() argument
[all …]
Dbond_main.c258 static bool bond_time_in_interval(struct bonding *bond, unsigned long last_act,
289 netdev_tx_t bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, in bond_dev_queue_xmit() argument
298 if (unlikely(netpoll_tx_running(bond->dev))) in bond_dev_queue_xmit()
299 return bond_netpoll_send_skb(bond_get_slave_by_dev(bond, slave_dev), skb); in bond_dev_queue_xmit()
331 struct bonding *bond = netdev_priv(bond_dev); in bond_vlan_rx_add_vid() local
336 bond_for_each_slave(bond, slave, iter) { in bond_vlan_rx_add_vid()
346 bond_for_each_slave(bond, rollback_slave, iter) { in bond_vlan_rx_add_vid()
365 struct bonding *bond = netdev_priv(bond_dev); in bond_vlan_rx_kill_vid() local
369 bond_for_each_slave(bond, slave, iter) in bond_vlan_rx_kill_vid()
372 if (bond_is_lb(bond)) in bond_vlan_rx_kill_vid()
[all …]
Dbond_sysfs.c41 struct bonding *bond; in bonding_show_bonds() local
45 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bonding_show_bonds()
53 res += sprintf(buf + res, "%s ", bond->dev->name); in bonding_show_bonds()
64 struct bonding *bond; in bond_get_by_name() local
66 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bond_get_by_name()
67 if (strncmp(bond->dev->name, ifname, IFNAMSIZ) == 0) in bond_get_by_name()
68 return bond->dev; in bond_get_by_name()
145 struct bonding *bond = to_bond(d); in bonding_sysfs_store_option() local
156 ret = bond_opt_tryset_rtnl(bond, opt->id, buffer_clone); in bonding_sysfs_store_option()
168 struct bonding *bond = to_bond(d); in bonding_show_slaves() local
[all …]
Dbond_procfs.c13 struct bonding *bond = PDE_DATA(file_inode(seq->file)); in bond_info_seq_start() local
23 bond_for_each_slave_rcu(bond, slave, iter) in bond_info_seq_start()
32 struct bonding *bond = PDE_DATA(file_inode(seq->file)); in bond_info_seq_next() local
39 return bond_first_slave_rcu(bond); in bond_info_seq_next()
41 bond_for_each_slave_rcu(bond, slave, iter) { in bond_info_seq_next()
59 struct bonding *bond = PDE_DATA(file_inode(seq->file)); in bond_info_show_master() local
64 curr = rcu_dereference(bond->curr_active_slave); in bond_info_show_master()
67 bond_mode_name(BOND_MODE(bond))); in bond_info_show_master()
69 if (BOND_MODE(bond) == BOND_MODE_ACTIVEBACKUP && in bond_info_show_master()
70 bond->params.fail_over_mac) { in bond_info_show_master()
[all …]
Dbond_debugfs.c20 struct bonding *bond = m->private; in bond_debug_rlb_hash_show() local
21 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond)); in bond_debug_rlb_hash_show()
25 if (BOND_MODE(bond) != BOND_MODE_ALB) in bond_debug_rlb_hash_show()
31 spin_lock_bh(&bond->mode_lock); in bond_debug_rlb_hash_show()
44 spin_unlock_bh(&bond->mode_lock); in bond_debug_rlb_hash_show()
50 void bond_debug_register(struct bonding *bond) in bond_debug_register() argument
55 bond->debug_dir = in bond_debug_register()
56 debugfs_create_dir(bond->dev->name, bonding_debug_root); in bond_debug_register()
58 debugfs_create_file("rlb_hash_table", 0400, bond->debug_dir, in bond_debug_register()
59 bond, &bond_debug_rlb_hash_fops); in bond_debug_register()
[all …]
Dbond_netlink.c55 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in bond_fill_slave_info()
135 struct bonding *bond = netdev_priv(bond_dev); in bond_slave_changelink() local
150 err = __bond_opt_set(bond, BOND_OPT_QUEUE_ID, &newval); in bond_slave_changelink()
162 struct bonding *bond = netdev_priv(bond_dev); in bond_changelink() local
174 err = __bond_opt_set(bond, BOND_OPT_MODE, &newval); in bond_changelink()
191 err = __bond_opt_set(bond, BOND_OPT_ACTIVE_SLAVE, &newval); in bond_changelink()
199 err = __bond_opt_set(bond, BOND_OPT_MIIMON, &newval); in bond_changelink()
207 err = __bond_opt_set(bond, BOND_OPT_UPDELAY, &newval); in bond_changelink()
215 err = __bond_opt_set(bond, BOND_OPT_DOWNDELAY, &newval); in bond_changelink()
223 err = __bond_opt_set(bond, BOND_OPT_PEER_NOTIF_DELAY, &newval); in bond_changelink()
[all …]
Dbond_3ad.c142 struct bonding *bond = __get_bond_by_port(port); in __get_first_agg() local
147 if (bond == NULL) in __get_first_agg()
151 first_slave = bond_first_slave_rcu(bond); in __get_first_agg()
208 struct bonding *bond = __get_bond_by_port(port); in __get_agg_selection_mode() local
210 if (bond == NULL) in __get_agg_selection_mode()
213 return bond->params.ad_select; in __get_agg_selection_mode()
222 struct bonding *bond = __get_bond_by_port(port); in __check_agg_selection_timer() local
224 if (bond == NULL) in __check_agg_selection_timer()
227 return atomic_read(&BOND_AD_INFO(bond).agg_select_timer) ? 1 : 0; in __check_agg_selection_timer()
320 slave->bond->dev->name, in __get_link_speed()
[all …]
Dbond_sysfs_slave.c70 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_aggregator_id_show()
85 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_actor_oper_port_state_show()
100 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_partner_oper_port_state_show()
/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dbond.c42 list_for_each_entry(cur, &uplink_priv->bond->metadata_list, list) { in mlx5e_lookup_rep_bond_metadata()
107 list_add(&mdata->list, &rpriv->uplink_priv.bond->metadata_list); in mlx5e_rep_bond_enslave()
280 struct mlx5e_rep_bond *bond; in mlx5e_rep_esw_bond_netevent() local
286 bond = container_of(nb, struct mlx5e_rep_bond, nb); in mlx5e_rep_esw_bond_netevent()
290 if (rpriv->uplink_priv.bond != bond) in mlx5e_rep_esw_bond_netevent()
318 uplink_priv->bond = kvzalloc(sizeof(*uplink_priv->bond), GFP_KERNEL); in mlx5e_rep_bond_init()
319 if (!uplink_priv->bond) { in mlx5e_rep_bond_init()
324 INIT_LIST_HEAD(&uplink_priv->bond->metadata_list); in mlx5e_rep_bond_init()
325 uplink_priv->bond->nb.notifier_call = mlx5e_rep_esw_bond_netevent; in mlx5e_rep_bond_init()
327 &uplink_priv->bond->nb, in mlx5e_rep_bond_init()
[all …]
/drivers/net/ethernet/mscc/
Docelot.h98 struct net_device *bond);
100 struct net_device *bond);
Docelot.c1277 struct net_device *bond) in ocelot_port_lag_join() argument
1284 for_each_netdev_in_bond_rcu(bond, ndev) { in ocelot_port_lag_join()
1317 struct net_device *bond) in ocelot_port_lag_leave() argument
/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c2901 struct mlx4_en_bond *bond = container_of(work, in mlx4_en_bond_work() local
2905 struct mlx4_dev *dev = bond->priv->mdev->dev; in mlx4_en_bond_work()
2907 if (bond->is_bonded) { in mlx4_en_bond_work()
2911 en_err(bond->priv, "Fail to bond device\n"); in mlx4_en_bond_work()
2914 err = mlx4_port_map_set(dev, &bond->port_map); in mlx4_en_bond_work()
2916 en_err(bond->priv, "Fail to set port map [%d][%d]: %d\n", in mlx4_en_bond_work()
2917 bond->port_map.port1, in mlx4_en_bond_work()
2918 bond->port_map.port2, in mlx4_en_bond_work()
2924 en_err(bond->priv, "Fail to unbond device\n"); in mlx4_en_bond_work()
2926 dev_put(bond->priv->dev); in mlx4_en_bond_work()
[all …]
Dresource_tracker.c5025 static int mlx4_mirror_fs_rules(struct mlx4_dev *dev, bool bond) in mlx4_mirror_fs_rules() argument
5038 if ((bond && fs_rule->mirr_mbox_size) || in mlx4_mirror_fs_rules()
5039 (!bond && !fs_rule->mirr_mbox_size)) in mlx4_mirror_fs_rules()
5044 if (bond) in mlx4_mirror_fs_rules()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.h92 struct mlx5e_rep_bond *bond; member
DMakefile38 en_rep.o en/rep/bond.o en/mod_hdr.o
/drivers/gpu/drm/i915/gt/
Dintel_lrc.c5757 struct ve_bond *bond; in virtual_bond_execute() local
5761 bond = virtual_find_bond(ve, to_request(signal)->engine); in virtual_bond_execute()
5762 if (bond) in virtual_bond_execute()
5763 allowed &= bond->sibling_mask; in virtual_bond_execute()
5949 struct ve_bond *bond; in intel_virtual_engine_attach_bond() local
5959 bond = virtual_find_bond(ve, master); in intel_virtual_engine_attach_bond()
5960 if (bond) { in intel_virtual_engine_attach_bond()
5961 bond->sibling_mask |= sibling->mask; in intel_virtual_engine_attach_bond()
5965 bond = krealloc(ve->bonds, in intel_virtual_engine_attach_bond()
5966 sizeof(*bond) * (ve->num_bonds + 1), in intel_virtual_engine_attach_bond()
[all …]
/drivers/gpu/drm/i915/gem/
Di915_gem_context.c1736 struct intel_engine_cs *bond; in set_engines__bond() local
1741 bond = intel_engine_lookup_user(i915, in set_engines__bond()
1744 if (!bond) { in set_engines__bond()
1758 bond); in set_engines__bond()
/drivers/net/
DKconfig46 Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet
/drivers/staging/comedi/
DKconfig49 Enable support for a driver to 'bond' (merge) multiple subdevices