Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/bonding/
Dbond_options.c23 static int bond_option_active_slave_set(struct bonding *bond,
25 static int bond_option_miimon_set(struct bonding *bond,
27 static int bond_option_updelay_set(struct bonding *bond,
29 static int bond_option_downdelay_set(struct bonding *bond,
31 static int bond_option_use_carrier_set(struct bonding *bond,
33 static int bond_option_arp_interval_set(struct bonding *bond,
35 static int bond_option_arp_ip_target_add(struct bonding *bond, __be32 target);
36 static int bond_option_arp_ip_target_rem(struct bonding *bond, __be32 target);
37 static int bond_option_arp_ip_targets_set(struct bonding *bond,
39 static int bond_option_arp_validate_set(struct bonding *bond,
[all …]
Dbond_alb.c77 static void rlb_purge_src_ip(struct bonding *bond, struct arp_pkt *arp);
78 static void rlb_src_unlink(struct bonding *bond, u32 index);
79 static void rlb_src_link(struct bonding *bond, u32 ip_src_hash,
114 static void __tlb_clear_slave(struct bonding *bond, struct slave *slave, in __tlb_clear_slave() argument
121 tx_hash_table = BOND_ALB_INFO(bond).tx_hashtbl; in __tlb_clear_slave()
136 static void tlb_clear_slave(struct bonding *bond, struct slave *slave, in tlb_clear_slave() argument
139 spin_lock_bh(&bond->mode_lock); in tlb_clear_slave()
140 __tlb_clear_slave(bond, slave, save_load); in tlb_clear_slave()
141 spin_unlock_bh(&bond->mode_lock); in tlb_clear_slave()
145 static int tlb_initialize(struct bonding *bond) in tlb_initialize() argument
[all …]
Dbond_main.c211 static bool bond_time_in_interval(struct bonding *bond, unsigned long last_act,
244 void bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, in bond_dev_queue_xmit() argument
253 if (unlikely(netpoll_tx_running(bond->dev))) in bond_dev_queue_xmit()
254 bond_netpoll_send_skb(bond_get_slave_by_dev(bond, slave_dev), skb); in bond_dev_queue_xmit()
283 struct bonding *bond = netdev_priv(bond_dev); in bond_vlan_rx_add_vid() local
288 bond_for_each_slave(bond, slave, iter) { in bond_vlan_rx_add_vid()
298 bond_for_each_slave(bond, rollback_slave, iter) { in bond_vlan_rx_add_vid()
316 struct bonding *bond = netdev_priv(bond_dev); in bond_vlan_rx_kill_vid() local
320 bond_for_each_slave(bond, slave, iter) in bond_vlan_rx_kill_vid()
323 if (bond_is_lb(bond)) in bond_vlan_rx_kill_vid()
[all …]
Dbond_sysfs.c57 struct bonding *bond; in bonding_show_bonds() local
61 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bonding_show_bonds()
69 res += sprintf(buf + res, "%s ", bond->dev->name); in bonding_show_bonds()
80 struct bonding *bond; in bond_get_by_name() local
82 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bond_get_by_name()
83 if (strncmp(bond->dev->name, ifname, IFNAMSIZ) == 0) in bond_get_by_name()
84 return bond->dev; in bond_get_by_name()
161 struct bonding *bond = to_bond(d); in bonding_sysfs_store_option() local
172 ret = bond_opt_tryset_rtnl(bond, opt->id, buffer_clone); in bonding_sysfs_store_option()
184 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()
62 void bond_debug_register(struct bonding *bond) in bond_debug_register() argument
67 bond->debug_dir = in bond_debug_register()
68 debugfs_create_dir(bond->dev->name, bonding_debug_root); in bond_debug_register()
70 if (!bond->debug_dir) { in bond_debug_register()
71 netdev_warn(bond->dev, "failed to register to debugfs\n"); in bond_debug_register()
[all …]
Dbond_netlink.c59 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in bond_fill_slave_info()
138 struct bonding *bond = netdev_priv(bond_dev); in bond_slave_changelink() local
153 err = __bond_opt_set(bond, BOND_OPT_QUEUE_ID, &newval); in bond_slave_changelink()
165 struct bonding *bond = netdev_priv(bond_dev); in bond_changelink() local
177 err = __bond_opt_set(bond, BOND_OPT_MODE, &newval); in bond_changelink()
194 err = __bond_opt_set(bond, BOND_OPT_ACTIVE_SLAVE, &newval); in bond_changelink()
202 err = __bond_opt_set(bond, BOND_OPT_MIIMON, &newval); in bond_changelink()
210 err = __bond_opt_set(bond, BOND_OPT_UPDELAY, &newval); in bond_changelink()
218 err = __bond_opt_set(bond, BOND_OPT_DOWNDELAY, &newval); in bond_changelink()
226 err = __bond_opt_set(bond, BOND_OPT_USE_CARRIER, &newval); in bond_changelink()
[all …]
Dbond_3ad.c167 struct bonding *bond = __get_bond_by_port(port); in __get_first_agg() local
172 if (bond == NULL) in __get_first_agg()
176 first_slave = bond_first_slave_rcu(bond); in __get_first_agg()
233 struct bonding *bond = __get_bond_by_port(port); in __get_agg_selection_mode() local
235 if (bond == NULL) in __get_agg_selection_mode()
238 return bond->params.ad_select; in __get_agg_selection_mode()
247 struct bonding *bond = __get_bond_by_port(port); in __check_agg_selection_timer() local
249 if (bond == NULL) in __check_agg_selection_timer()
252 return BOND_AD_INFO(bond).agg_select_timer ? 1 : 0; in __check_agg_selection_timer()
345 slave->bond->dev->name, in __get_link_speed()
[all …]
Dbond_sysfs_slave.c72 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_aggregator_id_show()
87 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_actor_oper_port_state_show()
102 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_partner_oper_port_state_show()
/Linux-v4.19/include/net/
Dbonding.h41 #define BOND_MODE(bond) ((bond)->params.mode) argument
44 #define bond_slave_list(bond) (&(bond)->dev->adj_list.lower) argument
46 #define bond_has_slaves(bond) !list_empty(bond_slave_list(bond)) argument
49 #define bond_first_slave(bond) \ argument
50 (bond_has_slaves(bond) ? \
51 netdev_adjacent_get_private(bond_slave_list(bond)->next) : \
53 #define bond_last_slave(bond) \ argument
54 (bond_has_slaves(bond) ? \
55 netdev_adjacent_get_private(bond_slave_list(bond)->prev) : \
59 #define bond_first_slave_rcu(bond) \ argument
[all …]
Dbond_alb.h30 #define BOND_ALB_INFO(bond) ((bond)->alb_info) argument
39 #define BOND_ALB_LP_INTERVAL(bond) (bond->params.lp_interval) /* In seconds, periodic send of argument
46 #define BOND_ALB_LP_TICKS(bond) (BOND_ALB_LP_INTERVAL(bond) \ argument
169 int bond_alb_initialize(struct bonding *bond, int rlb_enabled);
170 void bond_alb_deinitialize(struct bonding *bond);
171 int bond_alb_init_slave(struct bonding *bond, struct slave *slave);
172 void bond_alb_deinit_slave(struct bonding *bond, struct slave *slave);
173 void bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link);
174 void bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave);
179 void bond_alb_clear_vlan(struct bonding *bond, unsigned short vlan_id);
Dbond_3ad.h263 #define BOND_AD_INFO(bond) ((bond)->ad_info) argument
295 void bond_3ad_initialize(struct bonding *bond, u16 tick_resolution);
299 void bond_3ad_initiate_agg_selection(struct bonding *bond, int timeout);
302 int bond_3ad_get_active_agg_info(struct bonding *bond, struct ad_info *ad_info);
303 int __bond_3ad_get_active_agg_info(struct bonding *bond,
305 int bond_3ad_lacpdu_recv(const struct sk_buff *skb, struct bonding *bond,
307 int bond_3ad_set_carrier(struct bonding *bond);
308 void bond_3ad_update_lacp_rate(struct bonding *bond);
309 void bond_3ad_update_ad_actor_settings(struct bonding *bond);
Dbond_options.h102 int (*set)(struct bonding *bond, const struct bond_opt_value *val);
105 int __bond_opt_set(struct bonding *bond, unsigned int option,
107 int __bond_opt_set_notify(struct bonding *bond, unsigned int option,
109 int bond_opt_tryset_rtnl(struct bonding *bond, unsigned int option, char *buf);
134 void bond_option_arp_ip_targets_clear(struct bonding *bond);
/Linux-v4.19/Documentation/devicetree/bindings/media/
Drenesas,drif.txt30 property called "renesas,primary-bond".
34 the zeroth channel is selected as primary-bond. This channels accepts
35 properties common to all the members of the bond.
37 "renesas,bonding" or "renesas,primary-bond" will have no effect. That
63 - It is the only enabled channel of the bond (or)
68 - renesas,primary-bond: empty property indicating the channel acts as primary
108 renesas,primary-bond;
/Linux-v4.19/Documentation/networking/
Dbonding.txt151 configuring a bond, it is recommended "tail -f /var/log/messages" be
224 - A slave is added to or removed from the bond
230 - The bond's administrative state changes to up
430 bond's MAC address in accordance with the selected policy.
437 bonding to set all slaves of an active-backup bond to
444 MAC address of the bond should always be the MAC
447 address of the bond changes during a failover.
472 address of the bond to be selected normally (normally
473 the MAC address of the first slave added to the bond).
476 slave is programmed with the bond's MAC address at
[all …]
Dswitchdev.txt152 bond will see it's upper master change. If that bond is moved into a bridge,
153 the bond's upper master will change. And so on. The driver will track such
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c2992 struct mlx4_en_bond *bond = container_of(work, in mlx4_en_bond_work() local
2996 struct mlx4_dev *dev = bond->priv->mdev->dev; in mlx4_en_bond_work()
2998 if (bond->is_bonded) { in mlx4_en_bond_work()
3002 en_err(bond->priv, "Fail to bond device\n"); in mlx4_en_bond_work()
3005 err = mlx4_port_map_set(dev, &bond->port_map); in mlx4_en_bond_work()
3007 en_err(bond->priv, "Fail to set port map [%d][%d]: %d\n", in mlx4_en_bond_work()
3008 bond->port_map.port1, in mlx4_en_bond_work()
3009 bond->port_map.port2, in mlx4_en_bond_work()
3015 en_err(bond->priv, "Fail to unbond device\n"); in mlx4_en_bond_work()
3017 dev_put(bond->priv->dev); in mlx4_en_bond_work()
[all …]
Dresource_tracker.c5018 static int mlx4_mirror_fs_rules(struct mlx4_dev *dev, bool bond) in mlx4_mirror_fs_rules() argument
5031 if ((bond && fs_rule->mirr_mbox_size) || in mlx4_mirror_fs_rules()
5032 (!bond && !fs_rule->mirr_mbox_size)) in mlx4_mirror_fs_rules()
5037 if (bond) in mlx4_mirror_fs_rules()
/Linux-v4.19/Documentation/driver-api/iio/
Dhw-consumer.rst6 The Industrial I/O HW consumer offers a way to bond these IIO devices without
/Linux-v4.19/Documentation/driver-api/usb/
Dcallbacks.rst71 an interface. A driver's bond to an interface is exclusive.
/Linux-v4.19/drivers/net/ethernet/mscc/
Docelot.c1424 struct net_device *bond) in ocelot_port_lag_join() argument
1433 for_each_netdev_in_bond_rcu(bond, ndev) { in ocelot_port_lag_join()
1465 struct net_device *bond) in ocelot_port_lag_leave() argument
/Linux-v4.19/include/linux/
Dnetdevice.h2522 #define for_each_netdev_in_bond_rcu(bond, slave) \ argument
2524 if (netdev_master_upper_dev_get_rcu(slave) == (bond))
/Linux-v4.19/drivers/net/
DKconfig45 Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet
/Linux-v4.19/Documentation/filesystems/
Dproc.txt1177 It will contain information that is specific to that bond, such as the
1178 current slaves of the bond, the link status of the slaves, and how
/Linux-v4.19/drivers/staging/comedi/
DKconfig48 Enable support for a driver to 'bond' (merge) multiple subdevices