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

12

/linux-master/drivers/net/bonding/
H A Dbond_debugfs.c20 struct bonding *bond = m->private; local
21 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
25 if (BOND_MODE(bond) != BOND_MODE_ALB)
31 spin_lock_bh(&bond->mode_lock);
44 spin_unlock_bh(&bond->mode_lock);
50 void bond_debug_register(struct bonding *bond) argument
52 bond->debug_dir =
53 debugfs_create_dir(bond->dev->name, bonding_debug_root);
55 debugfs_create_file("rlb_hash_table", 0400, bond->debug_dir,
56 bond,
59 bond_debug_unregister(struct bonding *bond) argument
64 bond_debug_reregister(struct bonding *bond) argument
95 bond_debug_register(struct bonding *bond) argument
99 bond_debug_unregister(struct bonding *bond) argument
103 bond_debug_reregister(struct bonding *bond) argument
[all...]
H A Dbond_options.c3 * drivers/net/bond/bond_options.c - bonding options
19 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, __be3
653 bond_opt_check_deps(struct bonding *bond, const struct bond_option *opt) argument
668 bond_opt_dep_print(struct bonding *bond, const struct bond_option *opt, struct nlattr *bad_attr, struct netlink_ext_ack *extack) argument
686 bond_opt_error_interpret(struct bonding *bond, const struct bond_option *opt, int error, const struct bond_opt_value *val, struct nlattr *bad_attr, struct netlink_ext_ack *extack) argument
762 __bond_opt_set(struct bonding *bond, unsigned int option, struct bond_opt_value *val, struct nlattr *bad_attr, struct netlink_ext_ack *extack) argument
801 __bond_opt_set_notify(struct bonding *bond, unsigned int option, struct bond_opt_value *val) argument
825 bond_opt_tryset_rtnl(struct bonding *bond, unsigned int option, char *buf) argument
854 bond_set_xfrm_features(struct bonding *bond) argument
867 bond_option_mode_set(struct bonding *bond, const struct bond_opt_value *newval) argument
907 bond_option_active_slave_set(struct bonding *bond, const struct bond_opt_value *newval) argument
971 bond_option_miimon_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1013 _bond_option_delay_set(struct bonding *bond, const struct bond_opt_value *newval, const char *name, int *target) argument
1041 bond_option_updelay_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1048 bond_option_downdelay_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1055 bond_option_peer_notif_delay_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1064 bond_option_use_carrier_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1078 bond_option_arp_interval_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1113 _bond_options_arp_ip_target_set(struct bonding *bond, int slot, __be32 target, unsigned long last_rx) argument
1128 _bond_option_arp_ip_target_add(struct bonding *bond, __be32 target) argument
1158 bond_option_arp_ip_target_add(struct bonding *bond, __be32 target) argument
1163 bond_option_arp_ip_target_rem(struct bonding *bond, __be32 target) argument
1202 bond_option_arp_ip_targets_clear(struct bonding *bond) argument
1210 bond_option_arp_ip_targets_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1237 _bond_options_ns_ip6_target_set(struct bonding *bond, int slot, struct in6_addr *target, unsigned long last_rx) argument
1252 bond_option_ns_ip6_targets_clear(struct bonding *bond) argument
1261 bond_option_ns_ip6_targets_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1294 bond_option_ns_ip6_targets_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1301 bond_option_arp_validate_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1311 bond_option_arp_all_targets_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1321 bond_option_missed_max_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1331 bond_option_prio_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1352 bond_option_primary_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1400 bond_option_primary_reselect_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1414 bond_option_fail_over_mac_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1424 bond_option_xmit_hash_policy_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1434 bond_option_resend_igmp_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1444 bond_option_num_peer_notif_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1452 bond_option_all_slaves_active_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1473 bond_option_min_links_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1484 bond_option_lp_interval_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1492 bond_option_pps_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1512 bond_option_lacp_active_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1522 bond_option_lacp_rate_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1533 bond_option_ad_select_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1543 bond_option_queue_id_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1604 bond_option_slaves_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1652 bond_option_tlb_dynamic_lb_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1662 bond_option_ad_actor_sys_prio_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1674 bond_option_ad_actor_system_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1702 bond_option_ad_user_port_key_set(struct bonding *bond, const struct bond_opt_value *newval) argument
1712 bond_option_coupled_control_set(struct bonding *bond, const struct bond_opt_value *newval) argument
[all...]
H A Dbond_procfs.c14 struct bonding *bond = pde_data(file_inode(seq->file)); local
24 bond_for_each_slave_rcu(bond, slave, iter)
33 struct bonding *bond = pde_data(file_inode(seq->file)); local
40 return bond_first_slave_rcu(bond);
42 bond_for_each_slave_rcu(bond, slave, iter) {
60 struct bonding *bond = pde_data(file_inode(seq->file)); local
65 curr = rcu_dereference(bond->curr_active_slave);
68 bond_mode_name(BOND_MODE(bond)));
70 if (BOND_MODE(bond) == BOND_MODE_ACTIVEBACKUP &&
71 bond
193 struct bonding *bond = pde_data(file_inode(seq->file)); local
283 bond_create_proc_entry(struct bonding *bond) argument
299 bond_remove_proc_entry(struct bonding *bond) argument
[all...]
H A Dbond_main.c266 static bool bond_time_in_interval(struct bonding *bond, unsigned long last_act,
293 * @bond: bond device that got this skb for tx.
297 netdev_tx_t bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, argument
306 if (unlikely(netpoll_tx_running(bond->dev)))
307 return bond_netpoll_send_skb(bond_get_slave_by_dev(bond, slave_dev), skb);
312 static bool bond_sk_check(struct bonding *bond) argument
314 switch (BOND_MODE(bond)) {
317 if (bond->params.xmit_policy == BOND_XMIT_POLICY_LAYER34)
325 static bool bond_xdp_check(struct bonding *bond) argument
371 struct bonding *bond = netdev_priv(bond_dev); local
405 struct bonding *bond = netdev_priv(bond_dev); local
431 struct bonding *bond; local
475 bond_ipsec_add_sa_all(struct bonding *bond) argument
519 struct bonding *bond; local
558 bond_ipsec_del_sa_all(struct bonding *bond) argument
601 struct bonding *bond; local
647 bond_set_carrier(struct bonding *bond) argument
741 bond_check_dev_link(struct bonding *bond, struct net_device *slave_dev, int reporting) argument
796 bond_set_promiscuity(struct bonding *bond, int inc) argument
819 bond_set_allmulti(struct bonding *bond, int inc) argument
847 struct bonding *bond = container_of(work, struct bonding, local
867 struct bonding *bond = netdev_priv(bond_dev); local
883 bond_hw_addr_swap(struct bonding *bond, struct slave *new_active, struct slave *old_active) argument
938 bond_get_old_active(struct bonding *bond, struct slave *new_active) argument
961 bond_do_fail_over_mac(struct bonding *bond, struct slave *new_active, struct slave *old_active) argument
1043 bond_choose_primary_or_current(struct bonding *bond) argument
1101 bond_find_best_slave(struct bonding *bond) argument
1124 bond_should_notify_peers(struct bonding *bond) argument
1160 bond_change_active_slave(struct bonding *bond, struct slave *new_active) argument
1274 bond_select_active_slave(struct bonding *bond) argument
1329 struct bonding *bond = netdev_priv(bond_dev); local
1357 struct bonding *bond = netdev_priv(bond_dev); local
1368 struct bonding *bond = netdev_priv(dev); local
1400 struct bonding *bond = netdev_priv(dev); local
1431 bond_compute_features(struct bonding *bond) argument
1528 bond_should_deliver_exact_match(struct sk_buff *skb, struct slave *slave, struct bonding *bond) argument
1546 struct bonding *bond; local
1604 bond_lag_tx_type(struct bonding *bond) argument
1621 bond_lag_hash_type(struct bonding *bond, enum netdev_lag_tx_type type) argument
1645 bond_master_upper_dev_link(struct bonding *bond, struct slave *slave, struct netlink_ext_ack *extack) argument
1665 bond_upper_dev_unlink(struct bonding *bond, struct slave *slave) argument
1674 struct bonding *bond = bond_get_bond_by_slave(slave); local
1702 bond_alloc_slave(struct bonding *bond, struct net_device *slave_dev) argument
1730 bond_fill_ifbond(struct bonding *bond, struct ifbond *info) argument
1807 struct bonding *bond = netdev_priv(bond_dev); local
1831 struct bonding *bond = netdev_priv(bond_dev); local
2363 struct bonding *bond = netdev_priv(bond_dev); local
2541 struct bonding *bond = netdev_priv(bond_dev); local
2557 struct bonding *bond = netdev_priv(bond_dev); local
2564 struct bonding *bond = netdev_priv(bond_dev); local
2583 bond_miimon_inspect(struct bonding *bond) argument
2689 bond_miimon_link_change(struct bonding *bond, struct slave *slave, char link) argument
2707 bond_miimon_commit(struct bonding *bond) argument
2811 struct bonding *bond = container_of(work, struct bonding, local
2873 bond_has_this_ip(struct bonding *bond, __be32 ip) argument
3004 bond_arp_send_all(struct bonding *bond, struct slave *slave) argument
3058 bond_validate_arp(struct bonding *bond, struct slave *slave, __be32 sip, __be32 tip) argument
3078 bond_arp_rcv(const struct sk_buff *skb, struct bonding *bond, struct slave *slave) argument
3183 bond_ns_send_all(struct bonding *bond, struct slave *slave) argument
3253 bond_has_this_ip6(struct bonding *bond, struct in6_addr *addr) argument
3271 bond_validate_na(struct bonding *bond, struct slave *slave, struct in6_addr *saddr, struct in6_addr *daddr) argument
3299 bond_na_rcv(const struct sk_buff *skb, struct bonding *bond, struct slave *slave) argument
3348 bond_rcv_validate(const struct sk_buff *skb, struct bonding *bond, struct slave *slave) argument
3379 bond_send_validate(struct bonding *bond, struct slave *slave) argument
3391 bond_time_in_interval(struct bonding *bond, unsigned long last_act, int mod) argument
3407 bond_loadbalance_arp_mon(struct bonding *bond) argument
3522 bond_ab_arp_inspect(struct bonding *bond) argument
3592 bond_ab_arp_commit(struct bonding *bond) argument
3684 bond_ab_arp_probe(struct bonding *bond) argument
3765 bond_activebackup_arp_mon(struct bonding *bond) argument
3823 struct bonding *bond = container_of(work, struct bonding, local
3835 bond_event_changename(struct bonding *bond) argument
3875 struct bonding *bond; local
4114 bond_flow_dissect(struct bonding *bond, struct sk_buff *skb, const void *data, __be16 l2_proto, int nhoff, int hlen, struct flow_keys *fk) argument
4178 __bond_xmit_hash(struct bonding *bond, struct sk_buff *skb, const void *data, __be16 l2_proto, int mhoff, int nhoff, int hlen) argument
4212 bond_xmit_hash(struct bonding *bond, struct sk_buff *skb) argument
4230 bond_xmit_hash_xdp(struct bonding *bond, struct xdp_buff *xdp) argument
4245 bond_work_init_all(struct bonding *bond) argument
4256 bond_work_cancel_all(struct bonding *bond) argument
4268 struct bonding *bond = netdev_priv(bond_dev); local
4328 struct bonding *bond = netdev_priv(bond_dev); local
4426 struct bonding *bond = netdev_priv(bond_dev); local
4458 struct bonding *bond = netdev_priv(bond_dev); local
4495 struct bonding *bond = netdev_priv(bond_dev); local
4594 struct bonding *bond = netdev_priv(bond_dev); local
4607 struct bonding *bond = netdev_priv(bond_dev); local
4629 struct bonding *bond = netdev_priv(n->dev); local
4685 struct bonding *bond = netdev_priv(bond_dev); local
4742 struct bonding *bond = netdev_priv(bond_dev); local
4815 bond_get_slave_by_id(struct bonding *bond, int slave_id) argument
4850 bond_rr_gen_slave_id(struct bonding *bond) argument
4875 bond_xmit_roundrobin_slave_get(struct bonding *bond, struct sk_buff *skb) argument
4913 bond_xdp_xmit_roundrobin_slave_get(struct bonding *bond, struct xdp_buff *xdp) argument
4957 struct bonding *bond = netdev_priv(bond_dev); local
4967 bond_xmit_activebackup_slave_get(struct bonding *bond) argument
4978 struct bonding *bond = netdev_priv(bond_dev); local
4992 bond_slave_arr_work_rearm(struct bonding *bond, unsigned long delay) argument
5000 struct bonding *bond = container_of(work, struct bonding, local
5042 bond_set_slave_arr(struct bonding *bond, struct bond_up_slave *usable_slaves, struct bond_up_slave *all_slaves) argument
5057 bond_reset_slave_arr(struct bonding *bond) argument
5070 bond_update_slave_arr(struct bonding *bond, struct slave *skipslave) argument
5140 bond_xmit_3ad_xor_slave_get(struct bonding *bond, struct sk_buff *skb, struct bond_up_slave *slaves) argument
5157 bond_xdp_xmit_3ad_xor_slave_get(struct bonding *bond, struct xdp_buff *xdp) argument
5180 struct bonding *bond = netdev_priv(dev); local
5196 struct bonding *bond = netdev_priv(bond_dev); local
5237 bond_slave_override(struct bonding *bond, struct sk_buff *skb) argument
5288 struct bonding *bond = netdev_priv(master_dev); local
5372 __bond_sk_get_lower_dev(struct bonding *bond, struct sock *sk) argument
5394 struct bonding *bond = netdev_priv(dev); local
5406 bond_tls_device_xmit(struct bonding *bond, struct sk_buff *skb, struct net_device *dev) argument
5423 struct bonding *bond = netdev_priv(dev); local
5458 struct bonding *bond = netdev_priv(dev); local
5480 struct bonding *bond = netdev_priv(bond_dev); local
5552 struct bonding *bond = netdev_priv(dev); local
5676 struct bonding *bond = netdev_priv(dev); local
5695 struct bonding *bond = netdev_priv(dev); local
5716 struct bonding *bond = netdev_priv(bond_dev); local
5760 struct bonding *bond = netdev_priv(bond_dev); local
5847 struct bonding *bond = netdev_priv(bond_dev); local
5857 struct bonding *bond = netdev_priv(bond_dev); local
5923 struct bonding *bond = netdev_priv(bond_dev); local
6336 struct bonding *bond = netdev_priv(bond_dev); local
6377 struct bonding *bond; local
6439 struct bonding *bond, *tmp_bond; local
[all...]
H A 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, argument
100 tx_hash_table = BOND_ALB_INFO(bond).tx_hashtbl;
116 static void tlb_clear_slave(struct bonding *bond, struct slave *slave, argument
119 spin_lock_bh(&bond->mode_lock);
120 __tlb_clear_slave(bond, slave, save_load);
121 spin_unlock_bh(&bond->mode_lock);
125 static int tlb_initialize(struct bonding *bond) argument
149 tlb_deinitialize(struct bonding *bond) argument
167 tlb_get_least_loaded_slave(struct bonding *bond) argument
191 __tlb_choose_channel(struct bonding *bond, u32 hash_index, u32 skb_len) argument
227 tlb_choose_channel(struct bonding *bond, u32 hash_index, u32 skb_len) argument
248 rlb_update_entry_from_arp(struct bonding *bond, struct arp_pkt *arp) argument
272 rlb_arp_recv(const struct sk_buff *skb, struct bonding *bond, struct slave *slave) argument
306 __rlb_next_rx_slave(struct bonding *bond) argument
339 rlb_next_rx_slave(struct bonding *bond) argument
357 rlb_teach_disabled_mac_on_primary(struct bonding *bond, const u8 addr[]) argument
381 rlb_clear_slave(struct bonding *bond, struct slave *slave) argument
460 rlb_update_rx_clients(struct bonding *bond) argument
488 rlb_req_update_slave_clients(struct bonding *bond, struct slave *slave) argument
520 rlb_req_update_subnet_clients(struct bonding *bond, __be32 src_ip) argument
553 rlb_choose_channel(struct sk_buff *skb, struct bonding *bond, const struct arp_pkt *arp) argument
653 rlb_arp_xmit(struct sk_buff *skb, struct bonding *bond) argument
712 rlb_rebalance(struct bonding *bond) argument
766 rlb_delete_table_entry_dst(struct bonding *bond, u32 index) argument
781 rlb_src_unlink(struct bonding *bond, u32 index) argument
804 rlb_delete_table_entry(struct bonding *bond, u32 index) argument
818 rlb_src_link(struct bonding *bond, u32 ip_src_hash, u32 ip_dst_hash) argument
834 rlb_purge_src_ip(struct bonding *bond, struct arp_pkt *arp) argument
855 rlb_initialize(struct bonding *bond) argument
883 rlb_deinitialize(struct bonding *bond) argument
896 rlb_clear_vlan(struct bonding *bond, unsigned short vlan_id) argument
953 struct bonding *bond; member in struct:alb_walk_data
965 struct bonding *bond = data->bond; local
1001 struct bonding *bond = bond_get_bond_by_slave(slave); local
1066 alb_fasten_mac_swap(struct bonding *bond, struct slave *slave1, struct slave *slave2) argument
1120 alb_change_hw_addr_on_detach(struct bonding *bond, struct slave *slave) argument
1163 alb_handle_addr_collision_on_attach(struct bonding *bond, struct slave *slave) argument
1239 alb_set_mac_address(struct bonding *bond, void *addr) argument
1285 alb_determine_nd(struct sk_buff *skb, struct bonding *bond) argument
1307 bond_alb_initialize(struct bonding *bond, int rlb_enabled) argument
1329 bond_alb_deinitialize(struct bonding *bond) argument
1339 bond_do_alb_xmit(struct sk_buff *skb, struct bonding *bond, struct slave *tx_slave) argument
1371 bond_xmit_tlb_slave_get(struct bonding *bond, struct sk_buff *skb) argument
1412 struct bonding *bond = netdev_priv(bond_dev); local
1419 bond_xmit_alb_slave_get(struct bonding *bond, struct sk_buff *skb) argument
1526 struct bonding *bond = netdev_priv(bond_dev); local
1535 struct bonding *bond = container_of(work, struct bonding, local
1635 bond_alb_init_slave(struct bonding *bond, struct slave *slave) argument
1665 bond_alb_deinit_slave(struct bonding *bond, struct slave *slave) argument
1679 bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link) argument
1717 bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave) argument
1789 struct bonding *bond = netdev_priv(bond_dev); local
1832 bond_alb_clear_vlan(struct bonding *bond, unsigned short vlan_id) argument
[all...]
H A Dbond_sysfs.c41 struct bonding *bond; local
45 list_for_each_entry(bond, &bn->dev_list, bond_list) {
53 res += sysfs_emit_at(buf, res, "%s ", bond->dev->name);
64 struct bonding *bond; local
66 list_for_each_entry(bond, &bn->dev_list, bond_list) {
67 if (strncmp(bond->dev->name, ifname, IFNAMSIZ) == 0)
68 return bond->dev;
145 struct bonding *bond = to_bond(d); local
156 ret = bond_opt_tryset_rtnl(bond, opt->id, buffer_clone);
164 /* Show the slaves in the current bond
168 struct bonding *bond = to_bond(d); local
201 struct bonding *bond = to_bond(d); local
215 struct bonding *bond = to_bond(d); local
230 struct bonding *bond = to_bond(d); local
246 struct bonding *bond = to_bond(d); local
262 struct bonding *bond = to_bond(d); local
278 struct bonding *bond = to_bond(d); local
290 struct bonding *bond = to_bond(d); local
311 struct bonding *bond = to_bond(d); local
323 struct bonding *bond = to_bond(d); local
334 struct bonding *bond = to_bond(d); local
346 struct bonding *bond = to_bond(d); local
359 struct bonding *bond = to_bond(d); local
373 struct bonding *bond = to_bond(d); local
387 struct bonding *bond = to_bond(d); local
398 struct bonding *bond = to_bond(d); local
413 struct bonding *bond = to_bond(d); local
427 struct bonding *bond = to_bond(d); local
439 struct bonding *bond = to_bond(d); local
459 struct bonding *bond = to_bond(d); local
476 struct bonding *bond = to_bond(d); local
489 struct bonding *bond = to_bond(d); local
509 struct bonding *bond = to_bond(d); local
522 struct bonding *bond = to_bond(d); local
543 struct bonding *bond = to_bond(d); local
564 struct bonding *bond = to_bond(d); local
585 struct bonding *bond = to_bond(d); local
606 struct bonding *bond = to_bond(d); local
624 struct bonding *bond = to_bond(d); local
659 struct bonding *bond = to_bond(d); local
671 struct bonding *bond = to_bond(d); local
683 struct bonding *bond = to_bond(d); local
694 struct bonding *bond = to_bond(d); local
705 struct bonding *bond = to_bond(d); local
717 struct bonding *bond = to_bond(d); local
731 struct bonding *bond = to_bond(d); local
746 struct bonding *bond = to_bond(d); local
847 bond_prepare_sysfs_group(struct bonding *bond) argument
[all...]
H A Dbond_netlink.c3 * drivers/net/bond/bond_netlink.c - Netlink interface for bonding
60 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) {
150 struct bonding *bond = netdev_priv(bond_dev); local
165 err = __bond_opt_set(bond, BOND_OPT_QUEUE_ID, &newval,
175 err = __bond_opt_set(bond, BOND_OPT_PRIO, &newval,
188 struct bonding *bond = netdev_priv(bond_dev); local
200 err = __bond_opt_set(bond, BOND_OPT_MODE, &newval,
218 err = __bond_opt_set(bond, BOND_OPT_ACTIVE_SLAVE, &newval,
227 err = __bond_opt_set(bond, BOND_OPT_MIIMON, &newval,
236 err = __bond_opt_set(bond, BOND_OPT_UPDELA
578 struct bonding *bond = netdev_priv(bond_dev); local
633 bond_option_active_slave_get_ifindex(struct bonding *bond) argument
648 struct bonding *bond = netdev_priv(bond_dev); local
863 struct bonding *bond; local
[all...]
H A Dbond_3ad.c136 * __get_first_agg - get the first aggregator in the bond
139 * Return the aggregator of the first slave in @bond, or %NULL if it can't be
145 struct bonding *bond = __get_bond_by_port(port); local
149 /* If there's no bond for this port, or bond has no slaves */
150 if (bond == NULL)
154 first_slave = bond_first_slave_rcu(bond);
259 struct bonding *bond = __get_bond_by_port(port); local
261 if (bond == NULL)
264 return bond
273 struct bonding *bond = __get_bond_by_port(port); local
435 const struct bonding *bond = bond_get_bond_by_slave(port->slave); local
827 struct bonding *bond = aggregator->slave->bond; local
992 struct bonding *bond = __get_bond_by_port(port); local
1509 struct bonding *bond; local
1788 struct bonding *bond = agg->slave->bond; local
2143 bond_3ad_initiate_agg_selection(struct bonding *bond, int timeout) argument
2154 bond_3ad_initialize(struct bonding *bond) argument
2180 struct bonding *bond = bond_get_bond_by_slave(slave); local
2234 struct bonding *bond = slave->bond; local
2392 bond_3ad_update_ad_actor_settings(struct bonding *bond) argument
2423 bond_agg_timer_advance(struct bonding *bond) argument
2454 struct bonding *bond = container_of(work, struct bonding, local
2544 struct bonding *bond = slave->bond; local
2742 bond_3ad_set_carrier(struct bonding *bond) argument
2782 __bond_3ad_get_active_agg_info(struct bonding *bond, struct ad_info *ad_info) argument
2810 bond_3ad_get_active_agg_info(struct bonding *bond, struct ad_info *ad_info) argument
2821 bond_3ad_lacpdu_recv(const struct sk_buff *skb, struct bonding *bond, struct slave *slave) argument
2853 bond_3ad_update_lacp_rate(struct bonding *bond) argument
[all...]
H A Dbond_sysfs_slave.c2 /* Sysfs attributes of bond slaves
64 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) {
79 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) {
94 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) {
/linux-master/include/net/
H A Dbonding.h51 #define BOND_MODE(bond) ((bond)->params.mode)
54 #define bond_slave_list(bond) (&(bond)->dev->adj_list.lower)
56 #define bond_has_slaves(bond) !list_empty(bond_slave_list(bond))
59 #define bond_first_slave(bond) \
60 (bond_has_slaves(bond) ? \
61 netdev_adjacent_get_private(bond_slave_list(bond)->next) : \
63 #define bond_last_slave(bond) \
159 struct bonding *bond; /* our master */ member in struct:slave
287 bond_get_slave_by_dev(struct bonding *bond, struct net_device *slave_dev) argument
298 bond_should_override_tx_queue(struct bonding *bond) argument
304 bond_is_lb(const struct bonding *bond) argument
310 bond_needs_speed_duplex(const struct bonding *bond) argument
315 bond_is_nondyn_tlb(const struct bonding *bond) argument
320 bond_mode_can_use_xmit_hash(const struct bonding *bond) argument
328 bond_mode_uses_xmit_hash(const struct bonding *bond) argument
347 bond_uses_primary(struct bonding *bond) argument
352 bond_option_active_slave_get_rcu(struct bonding *bond) argument
401 bond_slave_state_change(struct bonding *bond) argument
414 bond_slave_state_notify(struct bonding *bond) argument
491 slave_do_arp_validate(struct bonding *bond, struct slave *slave) argument
497 slave_do_arp_validate_only(struct bonding *bond) argument
519 slave_oldest_target_arp_rx(struct bonding *bond, struct slave *slave) argument
532 slave_last_rx(struct bonding *bond, struct slave *slave) argument
638 bond_slave_link_notify(struct bonding *bond) argument
717 bond_create_proc_entry(struct bonding *bond) argument
721 bond_remove_proc_entry(struct bonding *bond) argument
734 bond_slave_has_mac(struct bonding *bond, const u8 *mac) argument
748 bond_slave_has_mac_rcu(struct bonding *bond, const u8 *mac) argument
[all...]
H A Dbond_alb.h14 #define BOND_ALB_INFO(bond) ((bond)->alb_info)
23 #define BOND_ALB_LP_INTERVAL(bond) (bond->params.lp_interval) /* In seconds, periodic send of
30 #define BOND_ALB_LP_TICKS(bond) (BOND_ALB_LP_INTERVAL(bond) \
153 int bond_alb_initialize(struct bonding *bond, int rlb_enabled);
154 void bond_alb_deinitialize(struct bonding *bond);
155 int bond_alb_init_slave(struct bonding *bond, struct slave *slave);
156 void bond_alb_deinit_slave(struct bonding *bond, struc
[all...]
H A Dbond_options.h3 * drivers/net/bond/bond_options.h - bonding options
23 * BOND_OPTFLAG_NOSLAVES - check if the bond device is empty before setting
24 * BOND_OPTFLAG_IFDOWN - check if the bond device is down before setting
119 int (*set)(struct bonding *bond, const struct bond_opt_value *val);
122 int __bond_opt_set(struct bonding *bond, unsigned int option,
125 int __bond_opt_set_notify(struct bonding *bond, unsigned int option,
127 int bond_opt_tryset_rtnl(struct bonding *bond, unsigned int option, char *buf);
160 void bond_option_arp_ip_targets_clear(struct bonding *bond);
162 void bond_option_ns_ip6_targets_clear(struct bonding *bond);
H A Dbond_3ad.h193 struct slave *slave; /* pointer to the bond slave that this aggregator belongs to */
241 struct slave *slave; /* pointer to the bond slave that this port belongs to */
259 #define BOND_AD_INFO(bond) ((bond)->ad_info)
293 void bond_3ad_initialize(struct bonding *bond);
297 void bond_3ad_initiate_agg_selection(struct bonding *bond, int timeout);
300 int bond_3ad_get_active_agg_info(struct bonding *bond, struct ad_info *ad_info);
301 int __bond_3ad_get_active_agg_info(struct bonding *bond,
303 int bond_3ad_lacpdu_recv(const struct sk_buff *skb, struct bonding *bond,
305 int bond_3ad_set_carrier(struct bonding *bond);
[all...]
/linux-master/tools/testing/selftests/drivers/net/bonding/
H A DMakefile5 bond-arp-interval-causes-panic.sh \
6 bond-break-lacpdu-tx.sh \
7 bond-lladdr-target.sh \
12 bond-eth-type-change.sh \
H A Dbond-break-lacpdu-tx.sh6 # the bond.
32 ip link del veth1-bond >/dev/null 2>&1 || :
33 ip link del veth2-bond >/dev/null 2>&1 || :
43 # create the bond
44 ip link add fbond type bond mode 4 miimon 200 xmit_hash_policy 1 \
47 # set bond address
51 # set again bond sysfs parameters
52 ip link set fbond type bond ad_actor_sys_prio 65535
55 ip link add name veth1-bond type veth peer name veth1-end
56 ip link add name veth2-bond typ
[all...]
H A Dbond-eth-type-change.sh4 # Test bond device ether type changing
21 check_err $? "MASTER flag is missing from the bond device"
24 check_err $? "SLAVE flag is missing from the bond device"
27 # test enslaved bond dev type change from ARPHRD_ETHER and back
40 ip link add name "$devbond0" type bond
43 ip link set dev "$devbond0" type bond mode active-backup
44 check_err $? "could not change bond mode to active-backup"
46 ip link add name "$devbond1" type bond
47 ip link add name "$devbond2" type bond
50 # change bond typ
[all...]
H A Dbond-arp-interval-causes-panic.sh31 ip netns exec client ip link add dev bond0 down type bond mode 1 \
40 ip netns exec client ip link set dev bond0 type bond mode 0 \
H A Ddev_addr_lists.sh4 # Test bond device handling of addr lists (dev->uc, mc)
40 # bond driver control paths vary between modes that have a primary slave
58 # Initial state of bond device, up | down
63 ip link add bond1 "$init_state" type bond mode 802.3ad
84 log_test "bonding LACPDU multicast address to slave (from bond $init_state)"
88 # of the bond when enslaving a device. Test both cases.
H A Dbond-lladdr-target.sh5 # Verify bond interface could up when set IPv6 link local address target.
58 ip -n $host link add bond0 type bond mode 1 ns_ip6_target ${sw_lladdr} \
60 # add a lladdr for bond to make sure there is a route to target
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_lag.c32 if (!port || !port->bond)
42 struct net_device *bond; local
46 if (!port || !port->bond || (visited & BIT(lag)))
49 bond = port->bond;
50 bond_mask = lan966x_lag_get_mask(lan966x, bond);
87 if (port->bond == bond)
107 bond_mask = lan966x_lag_get_mask(lan966x, port->bond);
126 struct net_device *bond,
124 lan966x_lag_port_join(struct lan966x_port *port, struct net_device *brport_dev, struct net_device *bond, struct netlink_ext_ack *extack) argument
166 lan966x_lag_port_leave(struct lan966x_port *port, struct net_device *bond) argument
349 lan966x_lag_get_mask(struct lan966x *lan966x, struct net_device *bond) argument
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dbond.c27 /* private of uplink holding rep bond metadata list */
42 list_for_each_entry(cur, &uplink_priv->bond->metadata_list, list) {
107 list_add(&mdata->list, &rpriv->uplink_priv.bond->metadata_list);
271 * also change the traditional behavior of lower dev under bond device.
273 * of bond device are not supported.
280 struct mlx5e_rep_bond *bond; local
286 bond = container_of(nb, struct mlx5e_rep_bond, nb);
289 /* Verify VF representor is on the same device of the bond handling the netevent. */
290 if (rpriv->uplink_priv.bond != bond)
[all...]
/linux-master/drivers/iommu/arm/arm-smmu-v3/
H A Darm-smmu-v3-sva.c363 struct arm_smmu_bond *bond; local
377 bond = kzalloc(sizeof(*bond), GFP_KERNEL);
378 if (!bond)
381 bond->mm = mm;
383 bond->smmu_mn = arm_smmu_mmu_notifier_get(smmu_domain, mm);
384 if (IS_ERR(bond->smmu_mn)) {
385 ret = PTR_ERR(bond->smmu_mn);
389 ret = arm_smmu_write_ctx_desc(master, pasid, bond->smmu_mn->cd);
393 list_add(&bond
544 struct arm_smmu_bond *bond = NULL, *t; local
[all...]
/linux-master/drivers/net/ethernet/mscc/
H A Docelot.c1474 static u32 ocelot_get_bond_mask(struct ocelot *ocelot, struct net_device *bond) argument
1487 if (ocelot_port->bond == bond)
1497 int ocelot_bond_get_id(struct ocelot *ocelot, struct net_device *bond) argument
1499 int bond_mask = ocelot_get_bond_mask(ocelot, bond);
1534 if (cpu->bond)
1535 mask &= ~ocelot_get_bond_mask(ocelot, cpu->bond);
1551 if (cpu_port->bond)
1552 return ocelot_get_bond_mask(ocelot, cpu_port->bond);
1617 struct net_device *bond local
2063 struct net_device *bond = ocelot->ports[lag]->bond; local
2123 struct net_device *bond; local
2216 ocelot_migrate_lag_fdbs(struct ocelot *ocelot, struct net_device *bond, int lag) argument
2246 ocelot_port_lag_join(struct ocelot *ocelot, int port, struct net_device *bond, struct netdev_lag_upper_info *info, struct netlink_ext_ack *extack) argument
2271 ocelot_port_lag_leave(struct ocelot *ocelot, int port, struct net_device *bond) argument
2310 ocelot_lag_fdb_add(struct ocelot *ocelot, struct net_device *bond, const unsigned char *addr, u16 vid, const struct net_device *bridge) argument
2346 ocelot_lag_fdb_del(struct ocelot *ocelot, struct net_device *bond, const unsigned char *addr, u16 vid, const struct net_device *bridge) argument
[all...]
/linux-master/tools/testing/selftests/net/
H A Dvlan_hw_filter.sh20 ip netns exec ${NETNS} ip link add bond0 type bond mode 0
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_bonding.c7 * and verifies that XDP_TX program loaded on a bond device
149 SYS(fail, "ip link add bond1 type bond mode %s xmit_hash_policy %s",
152 SYS(fail, "ip -netns ns_dst link add bond2 type bond mode %s xmit_hash_policy %s",
329 * to neither the ingress bond device (bond2) or its slave (veth2_1).
379 /* Test that XDP programs cannot be attached to both the bond master and slaves simultaneously */
384 int veth, bond, err; local
388 if (!ASSERT_OK(system("ip link add bond type bond"), "add bond"))
394 bond
463 int bond, err; local
[all...]

Completed in 427 milliseconds

12