Home
last modified time | relevance | path

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

123

/kernel/linux/linux-6.6/drivers/net/bonding/
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
637 bond_opt_check_deps(struct bonding *bond, const struct bond_option *opt) bond_opt_check_deps() argument
652 bond_opt_dep_print(struct bonding *bond, const struct bond_option *opt, struct nlattr *bad_attr, struct netlink_ext_ack *extack) bond_opt_dep_print() argument
670 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) bond_opt_error_interpret() argument
746 __bond_opt_set(struct bonding *bond, unsigned int option, struct bond_opt_value *val, struct nlattr *bad_attr, struct netlink_ext_ack *extack) __bond_opt_set() argument
785 __bond_opt_set_notify(struct bonding *bond, unsigned int option, struct bond_opt_value *val) __bond_opt_set_notify() argument
809 bond_opt_tryset_rtnl(struct bonding *bond, unsigned int option, char *buf) bond_opt_tryset_rtnl() argument
838 bond_set_xfrm_features(struct bonding *bond) bond_set_xfrm_features() argument
851 bond_option_mode_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_mode_set() argument
891 bond_option_active_slave_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_active_slave_set() argument
955 bond_option_miimon_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_miimon_set() argument
997 _bond_option_delay_set(struct bonding *bond, const struct bond_opt_value *newval, const char *name, int *target) _bond_option_delay_set() argument
1025 bond_option_updelay_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_updelay_set() argument
1032 bond_option_downdelay_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_downdelay_set() argument
1039 bond_option_peer_notif_delay_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_peer_notif_delay_set() argument
1048 bond_option_use_carrier_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_use_carrier_set() argument
1062 bond_option_arp_interval_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_arp_interval_set() argument
1097 _bond_options_arp_ip_target_set(struct bonding *bond, int slot, __be32 target, unsigned long last_rx) _bond_options_arp_ip_target_set() argument
1112 _bond_option_arp_ip_target_add(struct bonding *bond, __be32 target) _bond_option_arp_ip_target_add() argument
1142 bond_option_arp_ip_target_add(struct bonding *bond, __be32 target) bond_option_arp_ip_target_add() argument
1147 bond_option_arp_ip_target_rem(struct bonding *bond, __be32 target) bond_option_arp_ip_target_rem() argument
1186 bond_option_arp_ip_targets_clear(struct bonding *bond) bond_option_arp_ip_targets_clear() argument
1194 bond_option_arp_ip_targets_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_arp_ip_targets_set() argument
1221 _bond_options_ns_ip6_target_set(struct bonding *bond, int slot, struct in6_addr *target, unsigned long last_rx) _bond_options_ns_ip6_target_set() argument
1236 bond_option_ns_ip6_targets_clear(struct bonding *bond) bond_option_ns_ip6_targets_clear() argument
1245 bond_option_ns_ip6_targets_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_ns_ip6_targets_set() argument
1278 bond_option_ns_ip6_targets_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_ns_ip6_targets_set() argument
1285 bond_option_arp_validate_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_arp_validate_set() argument
1295 bond_option_arp_all_targets_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_arp_all_targets_set() argument
1305 bond_option_missed_max_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_missed_max_set() argument
1315 bond_option_prio_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_prio_set() argument
1336 bond_option_primary_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_primary_set() argument
1384 bond_option_primary_reselect_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_primary_reselect_set() argument
1398 bond_option_fail_over_mac_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_fail_over_mac_set() argument
1408 bond_option_xmit_hash_policy_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_xmit_hash_policy_set() argument
1418 bond_option_resend_igmp_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_resend_igmp_set() argument
1428 bond_option_num_peer_notif_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_num_peer_notif_set() argument
1436 bond_option_all_slaves_active_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_all_slaves_active_set() argument
1457 bond_option_min_links_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_min_links_set() argument
1468 bond_option_lp_interval_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_lp_interval_set() argument
1476 bond_option_pps_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_pps_set() argument
1496 bond_option_lacp_active_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_lacp_active_set() argument
1506 bond_option_lacp_rate_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_lacp_rate_set() argument
1517 bond_option_ad_select_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_ad_select_set() argument
1527 bond_option_queue_id_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_queue_id_set() argument
1588 bond_option_slaves_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_slaves_set() argument
1636 bond_option_tlb_dynamic_lb_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_tlb_dynamic_lb_set() argument
1646 bond_option_ad_actor_sys_prio_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_ad_actor_sys_prio_set() argument
1658 bond_option_ad_actor_system_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_ad_actor_system_set() argument
1686 bond_option_ad_user_port_key_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_ad_user_port_key_set() 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, in bond_dev_queue_xmit() argument
306 if (unlikely(netpoll_tx_running(bond->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()
312 static bool bond_sk_check(struct bonding *bond) in bond_sk_check() argument
314 switch (BOND_MODE(bond)) { in bond_sk_check()
317 if (bond->params.xmit_policy == BOND_XMIT_POLICY_LAYER34) in bond_sk_check()
325 static bool bond_xdp_check(struct bonding *bond) in bond_xdp_check() argument
371 struct bonding *bond = netdev_priv(bond_dev); bond_vlan_rx_add_vid() local
405 struct bonding *bond = netdev_priv(bond_dev); bond_vlan_rx_kill_vid() local
431 struct bonding *bond; bond_ipsec_add_sa() local
475 bond_ipsec_add_sa_all(struct bonding *bond) bond_ipsec_add_sa_all() argument
519 struct bonding *bond; bond_ipsec_del_sa() local
558 bond_ipsec_del_sa_all(struct bonding *bond) bond_ipsec_del_sa_all() argument
601 struct bonding *bond; bond_ipsec_offload_ok() local
647 bond_set_carrier(struct bonding *bond) bond_set_carrier() argument
741 bond_check_dev_link(struct bonding *bond, struct net_device *slave_dev, int reporting) bond_check_dev_link() argument
796 bond_set_promiscuity(struct bonding *bond, int inc) bond_set_promiscuity() argument
819 bond_set_allmulti(struct bonding *bond, int inc) bond_set_allmulti() argument
847 struct bonding *bond = container_of(work, struct bonding, bond_resend_igmp_join_requests_delayed() local
867 struct bonding *bond = netdev_priv(bond_dev); bond_hw_addr_flush() local
883 bond_hw_addr_swap(struct bonding *bond, struct slave *new_active, struct slave *old_active) bond_hw_addr_swap() argument
938 bond_get_old_active(struct bonding *bond, struct slave *new_active) bond_get_old_active() argument
961 bond_do_fail_over_mac(struct bonding *bond, struct slave *new_active, struct slave *old_active) bond_do_fail_over_mac() argument
1043 bond_choose_primary_or_current(struct bonding *bond) bond_choose_primary_or_current() argument
1101 bond_find_best_slave(struct bonding *bond) bond_find_best_slave() argument
1124 bond_should_notify_peers(struct bonding *bond) bond_should_notify_peers() argument
1160 bond_change_active_slave(struct bonding *bond, struct slave *new_active) bond_change_active_slave() argument
1274 bond_select_active_slave(struct bonding *bond) bond_select_active_slave() argument
1329 struct bonding *bond = netdev_priv(bond_dev); bond_poll_controller() local
1357 struct bonding *bond = netdev_priv(bond_dev); bond_netpoll_cleanup() local
1368 struct bonding *bond = netdev_priv(dev); bond_netpoll_setup() local
1400 struct bonding *bond = netdev_priv(dev); bond_fix_features() local
1431 bond_compute_features(struct bonding *bond) bond_compute_features() argument
1528 bond_should_deliver_exact_match(struct sk_buff *skb, struct slave *slave, struct bonding *bond) bond_should_deliver_exact_match() argument
1546 struct bonding *bond; bond_handle_frame() local
1604 bond_lag_tx_type(struct bonding *bond) bond_lag_tx_type() argument
1621 bond_lag_hash_type(struct bonding *bond, enum netdev_lag_tx_type type) bond_lag_hash_type() argument
1645 bond_master_upper_dev_link(struct bonding *bond, struct slave *slave, struct netlink_ext_ack *extack) bond_master_upper_dev_link() argument
1665 bond_upper_dev_unlink(struct bonding *bond, struct slave *slave) bond_upper_dev_unlink() argument
1674 struct bonding *bond = bond_get_bond_by_slave(slave); slave_kobj_release() local
1702 bond_alloc_slave(struct bonding *bond, struct net_device *slave_dev) bond_alloc_slave() argument
1730 bond_fill_ifbond(struct bonding *bond, struct ifbond *info) bond_fill_ifbond() argument
1807 struct bonding *bond = netdev_priv(bond_dev); bond_xdp_set_features() local
1831 struct bonding *bond = netdev_priv(bond_dev); bond_enslave() local
2363 struct bonding *bond = netdev_priv(bond_dev); __bond_release_one() local
2541 struct bonding *bond = netdev_priv(bond_dev); bond_release_and_destroy() local
2557 struct bonding *bond = netdev_priv(bond_dev); bond_info_query() local
2564 struct bonding *bond = netdev_priv(bond_dev); bond_slave_info_query() local
2583 bond_miimon_inspect(struct bonding *bond) bond_miimon_inspect() argument
2687 bond_miimon_link_change(struct bonding *bond, struct slave *slave, char link) bond_miimon_link_change() argument
2705 bond_miimon_commit(struct bonding *bond) bond_miimon_commit() argument
2809 struct bonding *bond = container_of(work, struct bonding, bond_mii_monitor() local
2871 bond_has_this_ip(struct bonding *bond, __be32 ip) bond_has_this_ip() argument
3002 bond_arp_send_all(struct bonding *bond, struct slave *slave) bond_arp_send_all() argument
3056 bond_validate_arp(struct bonding *bond, struct slave *slave, __be32 sip, __be32 tip) bond_validate_arp() argument
3076 bond_arp_rcv(const struct sk_buff *skb, struct bonding *bond, struct slave *slave) bond_arp_rcv() argument
3181 bond_ns_send_all(struct bonding *bond, struct slave *slave) bond_ns_send_all() argument
3251 bond_has_this_ip6(struct bonding *bond, struct in6_addr *addr) bond_has_this_ip6() argument
3269 bond_validate_na(struct bonding *bond, struct slave *slave, struct in6_addr *saddr, struct in6_addr *daddr) bond_validate_na() argument
3297 bond_na_rcv(const struct sk_buff *skb, struct bonding *bond, struct slave *slave) bond_na_rcv() argument
3346 bond_rcv_validate(const struct sk_buff *skb, struct bonding *bond, struct slave *slave) bond_rcv_validate() argument
3377 bond_send_validate(struct bonding *bond, struct slave *slave) bond_send_validate() argument
3389 bond_time_in_interval(struct bonding *bond, unsigned long last_act, int mod) bond_time_in_interval() argument
3405 bond_loadbalance_arp_mon(struct bonding *bond) bond_loadbalance_arp_mon() argument
3520 bond_ab_arp_inspect(struct bonding *bond) bond_ab_arp_inspect() argument
3590 bond_ab_arp_commit(struct bonding *bond) bond_ab_arp_commit() argument
3682 bond_ab_arp_probe(struct bonding *bond) bond_ab_arp_probe() argument
3763 bond_activebackup_arp_mon(struct bonding *bond) bond_activebackup_arp_mon() argument
3821 struct bonding *bond = container_of(work, struct bonding, bond_arp_monitor() local
3833 bond_event_changename(struct bonding *bond) bond_event_changename() argument
3873 struct bonding *bond; bond_slave_netdev_event() local
4112 bond_flow_dissect(struct bonding *bond, struct sk_buff *skb, const void *data, __be16 l2_proto, int nhoff, int hlen, struct flow_keys *fk) bond_flow_dissect() argument
4176 __bond_xmit_hash(struct bonding *bond, struct sk_buff *skb, const void *data, __be16 l2_proto, int mhoff, int nhoff, int hlen) __bond_xmit_hash() argument
4210 bond_xmit_hash(struct bonding *bond, struct sk_buff *skb) bond_xmit_hash() argument
4228 bond_xmit_hash_xdp(struct bonding *bond, struct xdp_buff *xdp) bond_xmit_hash_xdp() argument
4243 bond_work_init_all(struct bonding *bond) bond_work_init_all() argument
4254 bond_work_cancel_all(struct bonding *bond) bond_work_cancel_all() argument
4266 struct bonding *bond = netdev_priv(bond_dev); bond_open() local
4326 struct bonding *bond = netdev_priv(bond_dev); bond_close() local
4424 struct bonding *bond = netdev_priv(bond_dev); bond_get_stats() local
4456 struct bonding *bond = netdev_priv(bond_dev); bond_eth_ioctl() local
4493 struct bonding *bond = netdev_priv(bond_dev); bond_do_ioctl() local
4592 struct bonding *bond = netdev_priv(bond_dev); bond_change_rx_flags() local
4605 struct bonding *bond = netdev_priv(bond_dev); bond_set_rx_mode() local
4627 struct bonding *bond = netdev_priv(n->dev); bond_neigh_init() local
4683 struct bonding *bond = netdev_priv(bond_dev); bond_change_mtu() local
4740 struct bonding *bond = netdev_priv(bond_dev); bond_set_mac_address() local
4813 bond_get_slave_by_id(struct bonding *bond, int slave_id) bond_get_slave_by_id() argument
4848 bond_rr_gen_slave_id(struct bonding *bond) bond_rr_gen_slave_id() argument
4873 bond_xmit_roundrobin_slave_get(struct bonding *bond, struct sk_buff *skb) bond_xmit_roundrobin_slave_get() argument
4911 bond_xdp_xmit_roundrobin_slave_get(struct bonding *bond, struct xdp_buff *xdp) bond_xdp_xmit_roundrobin_slave_get() argument
4955 struct bonding *bond = netdev_priv(bond_dev); bond_xmit_roundrobin() local
4965 bond_xmit_activebackup_slave_get(struct bonding *bond) bond_xmit_activebackup_slave_get() argument
4976 struct bonding *bond = netdev_priv(bond_dev); bond_xmit_activebackup() local
4990 bond_slave_arr_work_rearm(struct bonding *bond, unsigned long delay) bond_slave_arr_work_rearm() argument
4998 struct bonding *bond = container_of(work, struct bonding, bond_slave_arr_handler() local
5040 bond_set_slave_arr(struct bonding *bond, struct bond_up_slave *usable_slaves, struct bond_up_slave *all_slaves) bond_set_slave_arr() argument
5055 bond_reset_slave_arr(struct bonding *bond) bond_reset_slave_arr() argument
5068 bond_update_slave_arr(struct bonding *bond, struct slave *skipslave) bond_update_slave_arr() argument
5138 bond_xmit_3ad_xor_slave_get(struct bonding *bond, struct sk_buff *skb, struct bond_up_slave *slaves) bond_xmit_3ad_xor_slave_get() argument
5155 bond_xdp_xmit_3ad_xor_slave_get(struct bonding *bond, struct xdp_buff *xdp) bond_xdp_xmit_3ad_xor_slave_get() argument
5178 struct bonding *bond = netdev_priv(dev); bond_3ad_xor_xmit() local
5194 struct bonding *bond = netdev_priv(bond_dev); bond_xmit_broadcast() local
5235 bond_slave_override(struct bonding *bond, struct sk_buff *skb) bond_slave_override() argument
5286 struct bonding *bond = netdev_priv(master_dev); bond_xmit_get_slave() local
5370 __bond_sk_get_lower_dev(struct bonding *bond, struct sock *sk) __bond_sk_get_lower_dev() argument
5392 struct bonding *bond = netdev_priv(dev); bond_sk_get_lower_dev() local
5404 bond_tls_device_xmit(struct bonding *bond, struct sk_buff *skb, struct net_device *dev) bond_tls_device_xmit() argument
5421 struct bonding *bond = netdev_priv(dev); __bond_start_xmit() local
5456 struct bonding *bond = netdev_priv(dev); bond_start_xmit() local
5478 struct bonding *bond = netdev_priv(bond_dev); bond_xdp_get_xmit_slave() local
5550 struct bonding *bond = netdev_priv(dev); bond_xdp_set() local
5674 struct bonding *bond = netdev_priv(dev); bond_hwtstamp_get() local
5693 struct bonding *bond = netdev_priv(dev); bond_hwtstamp_set() local
5714 struct bonding *bond = netdev_priv(bond_dev); bond_ethtool_get_link_ksettings() local
5758 struct bonding *bond = netdev_priv(bond_dev); bond_ethtool_get_ts_info() local
5870 struct bonding *bond = netdev_priv(bond_dev); bond_destructor() local
5880 struct bonding *bond = netdev_priv(bond_dev); bond_setup() local
5946 struct bonding *bond = netdev_priv(bond_dev); bond_uninit() local
6358 struct bonding *bond = netdev_priv(bond_dev); bond_init() local
6399 struct bonding *bond; bond_create() local
6456 struct bonding *bond, *tmp_bond; bond_net_exit_batch() 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, in __tlb_clear_slave() argument
100 tx_hash_table = BOND_ALB_INFO(bond).tx_hashtbl; in __tlb_clear_slave()
116 static void tlb_clear_slave(struct bonding *bond, struct slave *slave, in tlb_clear_slave() argument
119 spin_lock_bh(&bond->mode_lock); in tlb_clear_slave()
120 __tlb_clear_slave(bond, slave, save_load); in tlb_clear_slave()
121 spin_unlock_bh(&bond->mode_lock); in tlb_clear_slave()
125 static int tlb_initialize(struct bonding *bond) in tlb_initialize() argument
149 tlb_deinitialize(struct bonding *bond) tlb_deinitialize() argument
167 tlb_get_least_loaded_slave(struct bonding *bond) tlb_get_least_loaded_slave() argument
191 __tlb_choose_channel(struct bonding *bond, u32 hash_index, u32 skb_len) __tlb_choose_channel() argument
227 tlb_choose_channel(struct bonding *bond, u32 hash_index, u32 skb_len) tlb_choose_channel() argument
248 rlb_update_entry_from_arp(struct bonding *bond, struct arp_pkt *arp) rlb_update_entry_from_arp() argument
272 rlb_arp_recv(const struct sk_buff *skb, struct bonding *bond, struct slave *slave) rlb_arp_recv() argument
306 __rlb_next_rx_slave(struct bonding *bond) __rlb_next_rx_slave() argument
339 rlb_next_rx_slave(struct bonding *bond) rlb_next_rx_slave() argument
357 rlb_teach_disabled_mac_on_primary(struct bonding *bond, const u8 addr[]) rlb_teach_disabled_mac_on_primary() argument
381 rlb_clear_slave(struct bonding *bond, struct slave *slave) rlb_clear_slave() argument
460 rlb_update_rx_clients(struct bonding *bond) rlb_update_rx_clients() argument
488 rlb_req_update_slave_clients(struct bonding *bond, struct slave *slave) rlb_req_update_slave_clients() argument
520 rlb_req_update_subnet_clients(struct bonding *bond, __be32 src_ip) rlb_req_update_subnet_clients() argument
553 rlb_choose_channel(struct sk_buff *skb, struct bonding *bond, const struct arp_pkt *arp) rlb_choose_channel() argument
653 rlb_arp_xmit(struct sk_buff *skb, struct bonding *bond) rlb_arp_xmit() argument
712 rlb_rebalance(struct bonding *bond) rlb_rebalance() argument
766 rlb_delete_table_entry_dst(struct bonding *bond, u32 index) rlb_delete_table_entry_dst() argument
781 rlb_src_unlink(struct bonding *bond, u32 index) rlb_src_unlink() argument
804 rlb_delete_table_entry(struct bonding *bond, u32 index) rlb_delete_table_entry() argument
818 rlb_src_link(struct bonding *bond, u32 ip_src_hash, u32 ip_dst_hash) rlb_src_link() argument
834 rlb_purge_src_ip(struct bonding *bond, struct arp_pkt *arp) rlb_purge_src_ip() argument
855 rlb_initialize(struct bonding *bond) rlb_initialize() argument
883 rlb_deinitialize(struct bonding *bond) rlb_deinitialize() argument
896 rlb_clear_vlan(struct bonding *bond, unsigned short vlan_id) rlb_clear_vlan() argument
953 struct bonding *bond; global() member
965 struct bonding *bond = data->bond; alb_upper_dev_walk() local
1001 struct bonding *bond = bond_get_bond_by_slave(slave); alb_send_learning_packets() local
1066 alb_fasten_mac_swap(struct bonding *bond, struct slave *slave1, struct slave *slave2) alb_fasten_mac_swap() argument
1120 alb_change_hw_addr_on_detach(struct bonding *bond, struct slave *slave) alb_change_hw_addr_on_detach() argument
1163 alb_handle_addr_collision_on_attach(struct bonding *bond, struct slave *slave) alb_handle_addr_collision_on_attach() argument
1239 alb_set_mac_address(struct bonding *bond, void *addr) alb_set_mac_address() argument
1285 alb_determine_nd(struct sk_buff *skb, struct bonding *bond) alb_determine_nd() argument
1307 bond_alb_initialize(struct bonding *bond, int rlb_enabled) bond_alb_initialize() argument
1329 bond_alb_deinitialize(struct bonding *bond) bond_alb_deinitialize() argument
1339 bond_do_alb_xmit(struct sk_buff *skb, struct bonding *bond, struct slave *tx_slave) bond_do_alb_xmit() argument
1371 bond_xmit_tlb_slave_get(struct bonding *bond, struct sk_buff *skb) bond_xmit_tlb_slave_get() argument
1412 struct bonding *bond = netdev_priv(bond_dev); bond_tlb_xmit() local
1419 bond_xmit_alb_slave_get(struct bonding *bond, struct sk_buff *skb) bond_xmit_alb_slave_get() argument
1526 struct bonding *bond = netdev_priv(bond_dev); bond_alb_xmit() local
1535 struct bonding *bond = container_of(work, struct bonding, bond_alb_monitor() local
1635 bond_alb_init_slave(struct bonding *bond, struct slave *slave) bond_alb_init_slave() argument
1665 bond_alb_deinit_slave(struct bonding *bond, struct slave *slave) bond_alb_deinit_slave() argument
1679 bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link) bond_alb_handle_link_change() argument
1717 bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave) bond_alb_handle_active_change() argument
1789 struct bonding *bond = netdev_priv(bond_dev); bond_alb_set_mac_address() local
1832 bond_alb_clear_vlan(struct bonding *bond, unsigned short vlan_id) bond_alb_clear_vlan() argument
[all...]
H A Dbond_procfs.c14 struct bonding *bond = pde_data(file_inode(seq->file)); in __acquires() local
24 bond_for_each_slave_rcu(bond, slave, iter) in __acquires()
33 struct bonding *bond = pde_data(file_inode(seq->file)); in bond_info_seq_next() local
40 return bond_first_slave_rcu(bond); in bond_info_seq_next()
42 bond_for_each_slave_rcu(bond, slave, iter) { in bond_info_seq_next()
60 struct bonding *bond = pde_data(file_inode(seq->file)); in bond_info_show_master() local
65 curr = rcu_dereference(bond->curr_active_slave); in bond_info_show_master()
68 bond_mode_name(BOND_MODE(bond))); in bond_info_show_master()
70 if (BOND_MODE(bond) == BOND_MODE_ACTIVEBACKUP && in bond_info_show_master()
71 bond in bond_info_show_master()
193 struct bonding *bond = pde_data(file_inode(seq->file)); bond_info_show_slave() local
283 bond_create_proc_entry(struct bonding *bond) bond_create_proc_entry() argument
299 bond_remove_proc_entry(struct bonding *bond) bond_remove_proc_entry() argument
[all...]
H A 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 += sysfs_emit_at(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()
164 /* Show the slaves in the current bond
168 struct bonding *bond = to_bond(d); bonding_show_slaves() local
201 struct bonding *bond = to_bond(d); bonding_show_mode() local
215 struct bonding *bond = to_bond(d); bonding_show_xmit_hash() local
230 struct bonding *bond = to_bond(d); bonding_show_arp_validate() local
246 struct bonding *bond = to_bond(d); bonding_show_arp_all_targets() local
262 struct bonding *bond = to_bond(d); bonding_show_fail_over_mac() local
278 struct bonding *bond = to_bond(d); bonding_show_arp_interval() local
290 struct bonding *bond = to_bond(d); bonding_show_arp_targets() local
311 struct bonding *bond = to_bond(d); bonding_show_missed_max() local
323 struct bonding *bond = to_bond(d); bonding_show_downdelay() local
334 struct bonding *bond = to_bond(d); bonding_show_updelay() local
346 struct bonding *bond = to_bond(d); bonding_show_peer_notif_delay() local
359 struct bonding *bond = to_bond(d); bonding_show_lacp_active() local
373 struct bonding *bond = to_bond(d); bonding_show_lacp_rate() local
387 struct bonding *bond = to_bond(d); bonding_show_min_links() local
398 struct bonding *bond = to_bond(d); bonding_show_ad_select() local
413 struct bonding *bond = to_bond(d); bonding_show_num_peer_notif() local
427 struct bonding *bond = to_bond(d); bonding_show_miimon() local
439 struct bonding *bond = to_bond(d); bonding_show_primary() local
459 struct bonding *bond = to_bond(d); bonding_show_primary_reselect() local
476 struct bonding *bond = to_bond(d); bonding_show_carrier() local
489 struct bonding *bond = to_bond(d); bonding_show_active_slave() local
509 struct bonding *bond = to_bond(d); bonding_show_mii_status() local
522 struct bonding *bond = to_bond(d); bonding_show_ad_aggregator() local
543 struct bonding *bond = to_bond(d); bonding_show_ad_num_ports() local
564 struct bonding *bond = to_bond(d); bonding_show_ad_actor_key() local
585 struct bonding *bond = to_bond(d); bonding_show_ad_partner_key() local
606 struct bonding *bond = to_bond(d); bonding_show_ad_partner_mac() local
624 struct bonding *bond = to_bond(d); bonding_show_queue_id() local
659 struct bonding *bond = to_bond(d); bonding_show_slaves_active() local
671 struct bonding *bond = to_bond(d); bonding_show_resend_igmp() local
683 struct bonding *bond = to_bond(d); bonding_show_lp_interval() local
694 struct bonding *bond = to_bond(d); bonding_show_tlb_dynamic_lb() local
705 struct bonding *bond = to_bond(d); bonding_show_packets_per_slave() local
717 struct bonding *bond = to_bond(d); bonding_show_ad_actor_sys_prio() local
731 struct bonding *bond = to_bond(d); bonding_show_ad_actor_system() local
746 struct bonding *bond = to_bond(d); bonding_show_ad_user_port_key() local
847 bond_prepare_sysfs_group(struct bonding *bond) bond_prepare_sysfs_group() argument
[all...]
H A 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
52 bond->debug_dir = in bond_debug_register()
53 debugfs_create_dir(bond->dev->name, bonding_debug_root); in bond_debug_register()
55 debugfs_create_file("rlb_hash_table", 0400, bond->debug_dir, in bond_debug_register()
56 bond, in bond_debug_register()
59 bond_debug_unregister(struct bonding *bond) bond_debug_unregister() argument
64 bond_debug_reregister(struct bonding *bond) bond_debug_reregister() argument
95 bond_debug_register(struct bonding *bond) bond_debug_register() argument
99 bond_debug_unregister(struct bonding *bond) bond_debug_unregister() argument
103 bond_debug_reregister(struct bonding *bond) bond_debug_reregister() 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) { in bond_fill_slave_info()
149 struct bonding *bond = netdev_priv(bond_dev); in bond_slave_changelink() local
164 err = __bond_opt_set(bond, BOND_OPT_QUEUE_ID, &newval, in bond_slave_changelink()
174 err = __bond_opt_set(bond, BOND_OPT_PRIO, &newval, in bond_slave_changelink()
187 struct bonding *bond = netdev_priv(bond_dev); in bond_changelink() local
199 err = __bond_opt_set(bond, BOND_OPT_MODE, &newval, in bond_changelink()
217 err = __bond_opt_set(bond, BOND_OPT_ACTIVE_SLAVE, &newval, in bond_changelink()
226 err = __bond_opt_set(bond, BOND_OPT_MIIMON, &newval, in bond_changelink()
235 err = __bond_opt_set(bond, BOND_OPT_UPDELA in bond_changelink()
567 struct bonding *bond = netdev_priv(bond_dev); bond_newlink() local
621 bond_option_active_slave_get_ifindex(struct bonding *bond) bond_option_active_slave_get_ifindex() argument
636 struct bonding *bond = netdev_priv(bond_dev); bond_fill_info() local
847 struct bonding *bond; bond_fill_linkxstats() local
[all...]
H A Dbond_3ad.c137 * __get_first_agg - get the first aggregator in the bond
140 * Return the aggregator of the first slave in @bond, or %NULL if it can't be
146 struct bonding *bond = __get_bond_by_port(port); in __get_first_agg() local
150 /* If there's no bond for this port, or bond has no slaves */ in __get_first_agg()
151 if (bond == NULL) in __get_first_agg()
155 first_slave = bond_first_slave_rcu(bond); in __get_first_agg()
212 struct bonding *bond = __get_bond_by_port(port); in __get_agg_selection_mode() local
214 if (bond == NULL) in __get_agg_selection_mode()
217 return bond in __get_agg_selection_mode()
226 struct bonding *bond = __get_bond_by_port(port); __check_agg_selection_timer() local
388 const struct bonding *bond = bond_get_bond_by_slave(port->slave); __ad_actor_update_port() local
780 struct bonding *bond = aggregator->slave->bond; __get_active_agg() local
1409 struct bonding *bond; ad_port_selection_logic() local
1688 struct bonding *bond = agg->slave->bond; ad_agg_selection_logic() local
2008 bond_3ad_initiate_agg_selection(struct bonding *bond, int timeout) bond_3ad_initiate_agg_selection() argument
2019 bond_3ad_initialize(struct bonding *bond) bond_3ad_initialize() argument
2045 struct bonding *bond = bond_get_bond_by_slave(slave); bond_3ad_bind_slave() local
2099 struct bonding *bond = slave->bond; bond_3ad_unbind_slave() local
2257 bond_3ad_update_ad_actor_settings(struct bonding *bond) bond_3ad_update_ad_actor_settings() argument
2288 bond_agg_timer_advance(struct bonding *bond) bond_agg_timer_advance() argument
2319 struct bonding *bond = container_of(work, struct bonding, bond_3ad_state_machine_handler() local
2409 struct bonding *bond = slave->bond; bond_3ad_rx_indication() local
2607 bond_3ad_set_carrier(struct bonding *bond) bond_3ad_set_carrier() argument
2647 __bond_3ad_get_active_agg_info(struct bonding *bond, struct ad_info *ad_info) __bond_3ad_get_active_agg_info() argument
2675 bond_3ad_get_active_agg_info(struct bonding *bond, struct ad_info *ad_info) bond_3ad_get_active_agg_info() argument
2686 bond_3ad_lacpdu_recv(const struct sk_buff *skb, struct bonding *bond, struct slave *slave) bond_3ad_lacpdu_recv() argument
2718 bond_3ad_update_lacp_rate(struct bonding *bond) bond_3ad_update_lacp_rate() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/bonding/
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
574 bond_opt_check_deps(struct bonding *bond, const struct bond_option *opt) bond_opt_check_deps() argument
589 bond_opt_dep_print(struct bonding *bond, const struct bond_option *opt) bond_opt_dep_print() argument
602 bond_opt_error_interpret(struct bonding *bond, const struct bond_option *opt, int error, const struct bond_opt_value *val) bond_opt_error_interpret() argument
657 __bond_opt_set(struct bonding *bond, unsigned int option, struct bond_opt_value *val) __bond_opt_set() argument
695 __bond_opt_set_notify(struct bonding *bond, unsigned int option, struct bond_opt_value *val) __bond_opt_set_notify() argument
719 bond_opt_tryset_rtnl(struct bonding *bond, unsigned int option, char *buf) bond_opt_tryset_rtnl() argument
761 bond_option_mode_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_mode_set() argument
793 bond_option_active_slave_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_active_slave_set() argument
857 bond_option_miimon_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_miimon_set() argument
899 _bond_option_delay_set(struct bonding *bond, const struct bond_opt_value *newval, const char *name, int *target) _bond_option_delay_set() argument
927 bond_option_updelay_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_updelay_set() argument
934 bond_option_downdelay_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_downdelay_set() argument
941 bond_option_peer_notif_delay_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_peer_notif_delay_set() argument
950 bond_option_use_carrier_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_use_carrier_set() argument
964 bond_option_arp_interval_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_arp_interval_set() argument
999 _bond_options_arp_ip_target_set(struct bonding *bond, int slot, __be32 target, unsigned long last_rx) _bond_options_arp_ip_target_set() argument
1014 _bond_option_arp_ip_target_add(struct bonding *bond, __be32 target) _bond_option_arp_ip_target_add() argument
1044 bond_option_arp_ip_target_add(struct bonding *bond, __be32 target) bond_option_arp_ip_target_add() argument
1049 bond_option_arp_ip_target_rem(struct bonding *bond, __be32 target) bond_option_arp_ip_target_rem() argument
1088 bond_option_arp_ip_targets_clear(struct bonding *bond) bond_option_arp_ip_targets_clear() argument
1096 bond_option_arp_ip_targets_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_arp_ip_targets_set() argument
1122 bond_option_arp_validate_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_arp_validate_set() argument
1132 bond_option_arp_all_targets_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_arp_all_targets_set() argument
1142 bond_option_primary_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_primary_set() argument
1191 bond_option_primary_reselect_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_primary_reselect_set() argument
1205 bond_option_fail_over_mac_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_fail_over_mac_set() argument
1215 bond_option_xmit_hash_policy_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_xmit_hash_policy_set() argument
1225 bond_option_resend_igmp_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_resend_igmp_set() argument
1235 bond_option_num_peer_notif_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_num_peer_notif_set() argument
1243 bond_option_all_slaves_active_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_all_slaves_active_set() argument
1264 bond_option_min_links_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_min_links_set() argument
1275 bond_option_lp_interval_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_lp_interval_set() argument
1283 bond_option_pps_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_pps_set() argument
1303 bond_option_lacp_rate_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_lacp_rate_set() argument
1314 bond_option_ad_select_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_ad_select_set() argument
1324 bond_option_queue_id_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_queue_id_set() argument
1385 bond_option_slaves_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_slaves_set() argument
1433 bond_option_tlb_dynamic_lb_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_tlb_dynamic_lb_set() argument
1443 bond_option_ad_actor_sys_prio_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_ad_actor_sys_prio_set() argument
1455 bond_option_ad_actor_system_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_ad_actor_system_set() argument
1483 bond_option_ad_user_port_key_set(struct bonding *bond, const struct bond_opt_value *newval) bond_option_ad_user_port_key_set() argument
[all...]
H A Dbond_main.c258 static bool bond_time_in_interval(struct bonding *bond, unsigned long last_act,
285 * @bond: bond device that got this skb for tx.
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 in bond_vlan_rx_kill_vid() local
389 struct bonding *bond; bond_ipsec_add_sa() local
433 bond_ipsec_add_sa_all(struct bonding *bond) bond_ipsec_add_sa_all() argument
477 struct bonding *bond; bond_ipsec_del_sa() local
516 bond_ipsec_del_sa_all(struct bonding *bond) bond_ipsec_del_sa_all() argument
558 struct bonding *bond; bond_ipsec_offload_ok() local
606 bond_set_carrier(struct bonding *bond) bond_set_carrier() argument
700 bond_check_dev_link(struct bonding *bond, struct net_device *slave_dev, int reporting) bond_check_dev_link() argument
755 bond_set_promiscuity(struct bonding *bond, int inc) bond_set_promiscuity() argument
778 bond_set_allmulti(struct bonding *bond, int inc) bond_set_allmulti() argument
806 struct bonding *bond = container_of(work, struct bonding, bond_resend_igmp_join_requests_delayed() local
826 struct bonding *bond = netdev_priv(bond_dev); bond_hw_addr_flush() local
842 bond_hw_addr_swap(struct bonding *bond, struct slave *new_active, struct slave *old_active) bond_hw_addr_swap() argument
897 bond_get_old_active(struct bonding *bond, struct slave *new_active) bond_get_old_active() argument
920 bond_do_fail_over_mac(struct bonding *bond, struct slave *new_active, struct slave *old_active) bond_do_fail_over_mac() argument
991 bond_choose_primary_or_current(struct bonding *bond) bond_choose_primary_or_current() argument
1033 bond_find_best_slave(struct bonding *bond) bond_find_best_slave() argument
1056 bond_should_notify_peers(struct bonding *bond) bond_should_notify_peers() argument
1092 bond_change_active_slave(struct bonding *bond, struct slave *new_active) bond_change_active_slave() argument
1207 bond_select_active_slave(struct bonding *bond) bond_select_active_slave() argument
1262 struct bonding *bond = netdev_priv(bond_dev); bond_poll_controller() local
1290 struct bonding *bond = netdev_priv(bond_dev); bond_netpoll_cleanup() local
1301 struct bonding *bond = netdev_priv(dev); bond_netpoll_setup() local
1333 struct bonding *bond = netdev_priv(dev); bond_fix_features() local
1364 bond_compute_features(struct bonding *bond) bond_compute_features() argument
1462 bond_should_deliver_exact_match(struct sk_buff *skb, struct slave *slave, struct bonding *bond) bond_should_deliver_exact_match() argument
1480 struct bonding *bond; bond_handle_frame() local
1538 bond_lag_tx_type(struct bonding *bond) bond_lag_tx_type() argument
1555 bond_lag_hash_type(struct bonding *bond, enum netdev_lag_tx_type type) bond_lag_hash_type() argument
1577 bond_master_upper_dev_link(struct bonding *bond, struct slave *slave, struct netlink_ext_ack *extack) bond_master_upper_dev_link() argument
1591 bond_upper_dev_unlink(struct bonding *bond, struct slave *slave) bond_upper_dev_unlink() argument
1600 struct bonding *bond = bond_get_bond_by_slave(slave); slave_kobj_release() local
1628 bond_alloc_slave(struct bonding *bond, struct net_device *slave_dev) bond_alloc_slave() argument
1656 bond_fill_ifbond(struct bonding *bond, struct ifbond *info) bond_fill_ifbond() argument
1707 struct bonding *bond = netdev_priv(bond_dev); bond_enslave() local
2201 struct bonding *bond = netdev_priv(bond_dev); __bond_release_one() local
2365 struct bonding *bond = netdev_priv(bond_dev); bond_release_and_destroy() local
2381 struct bonding *bond = netdev_priv(bond_dev); bond_info_query() local
2387 struct bonding *bond = netdev_priv(bond_dev); bond_slave_info_query() local
2406 bond_miimon_inspect(struct bonding *bond) bond_miimon_inspect() argument
2510 bond_miimon_link_change(struct bonding *bond, struct slave *slave, char link) bond_miimon_link_change() argument
2528 bond_miimon_commit(struct bonding *bond) bond_miimon_commit() argument
2627 struct bonding *bond = container_of(work, struct bonding, bond_mii_monitor() local
2689 bond_has_this_ip(struct bonding *bond, __be32 ip) bond_has_this_ip() argument
2805 bond_arp_send_all(struct bonding *bond, struct slave *slave) bond_arp_send_all() argument
2859 bond_validate_arp(struct bonding *bond, struct slave *slave, __be32 sip, __be32 tip) bond_validate_arp() argument
2879 bond_arp_rcv(const struct sk_buff *skb, struct bonding *bond, struct slave *slave) bond_arp_rcv() argument
2977 bond_time_in_interval(struct bonding *bond, unsigned long last_act, int mod) bond_time_in_interval() argument
2993 bond_loadbalance_arp_mon(struct bonding *bond) bond_loadbalance_arp_mon() argument
3108 bond_ab_arp_inspect(struct bonding *bond) bond_ab_arp_inspect() argument
3178 bond_ab_arp_commit(struct bonding *bond) bond_ab_arp_commit() argument
3267 bond_ab_arp_probe(struct bonding *bond) bond_ab_arp_probe() argument
3348 bond_activebackup_arp_mon(struct bonding *bond) bond_activebackup_arp_mon() argument
3406 struct bonding *bond = container_of(work, struct bonding, bond_arp_monitor() local
3418 bond_event_changename(struct bonding *bond) bond_event_changename() argument
3458 struct bonding *bond; bond_slave_netdev_event() local
3650 bond_flow_dissect(struct bonding *bond, struct sk_buff *skb, struct flow_keys *fk) bond_flow_dissect() argument
3702 bond_xmit_hash(struct bonding *bond, struct sk_buff *skb) bond_xmit_hash() argument
3734 bond_work_init_all(struct bonding *bond) bond_work_init_all() argument
3745 bond_work_cancel_all(struct bonding *bond) bond_work_cancel_all() argument
3757 struct bonding *bond = netdev_priv(bond_dev); bond_open() local
3811 struct bonding *bond = netdev_priv(bond_dev); bond_close() local
3909 struct bonding *bond = netdev_priv(bond_dev); bond_get_stats() local
3941 struct bonding *bond = netdev_priv(bond_dev); bond_do_ioctl() local
4046 struct bonding *bond = netdev_priv(bond_dev); bond_change_rx_flags() local
4059 struct bonding *bond = netdev_priv(bond_dev); bond_set_rx_mode() local
4081 struct bonding *bond = netdev_priv(n->dev); bond_neigh_init() local
4137 struct bonding *bond = netdev_priv(bond_dev); bond_change_mtu() local
4194 struct bonding *bond = netdev_priv(bond_dev); bond_set_mac_address() local
4267 bond_get_slave_by_id(struct bonding *bond, int slave_id) bond_get_slave_by_id() argument
4302 bond_rr_gen_slave_id(struct bonding *bond) bond_rr_gen_slave_id() argument
4327 bond_xmit_roundrobin_slave_get(struct bonding *bond, struct sk_buff *skb) bond_xmit_roundrobin_slave_get() argument
4368 struct bonding *bond = netdev_priv(bond_dev); bond_xmit_roundrobin() local
4378 bond_xmit_activebackup_slave_get(struct bonding *bond, struct sk_buff *skb) bond_xmit_activebackup_slave_get() argument
4390 struct bonding *bond = netdev_priv(bond_dev); bond_xmit_activebackup() local
4404 bond_slave_arr_work_rearm(struct bonding *bond, unsigned long delay) bond_slave_arr_work_rearm() argument
4412 struct bonding *bond = container_of(work, struct bonding, bond_slave_arr_handler() local
4454 bond_set_slave_arr(struct bonding *bond, struct bond_up_slave *usable_slaves, struct bond_up_slave *all_slaves) bond_set_slave_arr() argument
4469 bond_reset_slave_arr(struct bonding *bond) bond_reset_slave_arr() argument
4494 bond_update_slave_arr(struct bonding *bond, struct slave *skipslave) bond_update_slave_arr() argument
4563 bond_xmit_3ad_xor_slave_get(struct bonding *bond, struct sk_buff *skb, struct bond_up_slave *slaves) bond_xmit_3ad_xor_slave_get() argument
4587 struct bonding *bond = netdev_priv(dev); bond_3ad_xor_xmit() local
4603 struct bonding *bond = netdev_priv(bond_dev); bond_xmit_broadcast() local
4644 bond_slave_override(struct bonding *bond, struct sk_buff *skb) bond_slave_override() argument
4695 struct bonding *bond = netdev_priv(master_dev); bond_xmit_get_slave() local
4735 struct bonding *bond = netdev_priv(dev); __bond_start_xmit() local
4765 struct bonding *bond = netdev_priv(dev); bond_start_xmit() local
4797 struct bonding *bond = netdev_priv(bond_dev); bond_ethtool_get_link_ksettings() local
4877 struct bonding *bond = netdev_priv(bond_dev); bond_destructor() local
4884 struct bonding *bond = netdev_priv(bond_dev); bond_setup() local
4952 struct bonding *bond = netdev_priv(bond_dev); bond_uninit() local
5372 struct bonding *bond = netdev_priv(bond_dev); bond_init() local
5413 struct bonding *bond; bond_create() local
5471 struct bonding *bond, *tmp_bond; bond_net_exit() 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, 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
148 tlb_deinitialize(struct bonding *bond) tlb_deinitialize() argument
166 tlb_get_least_loaded_slave(struct bonding *bond) tlb_get_least_loaded_slave() argument
190 __tlb_choose_channel(struct bonding *bond, u32 hash_index, u32 skb_len) __tlb_choose_channel() argument
226 tlb_choose_channel(struct bonding *bond, u32 hash_index, u32 skb_len) tlb_choose_channel() argument
247 rlb_update_entry_from_arp(struct bonding *bond, struct arp_pkt *arp) rlb_update_entry_from_arp() argument
271 rlb_arp_recv(const struct sk_buff *skb, struct bonding *bond, struct slave *slave) rlb_arp_recv() argument
305 __rlb_next_rx_slave(struct bonding *bond) __rlb_next_rx_slave() argument
338 rlb_next_rx_slave(struct bonding *bond) rlb_next_rx_slave() argument
356 rlb_teach_disabled_mac_on_primary(struct bonding *bond, u8 addr[]) rlb_teach_disabled_mac_on_primary() argument
379 rlb_clear_slave(struct bonding *bond, struct slave *slave) rlb_clear_slave() argument
458 rlb_update_rx_clients(struct bonding *bond) rlb_update_rx_clients() argument
486 rlb_req_update_slave_clients(struct bonding *bond, struct slave *slave) rlb_req_update_slave_clients() argument
518 rlb_req_update_subnet_clients(struct bonding *bond, __be32 src_ip) rlb_req_update_subnet_clients() argument
551 rlb_choose_channel(struct sk_buff *skb, struct bonding *bond, const struct arp_pkt *arp) rlb_choose_channel() argument
650 rlb_arp_xmit(struct sk_buff *skb, struct bonding *bond) rlb_arp_xmit() argument
699 rlb_rebalance(struct bonding *bond) rlb_rebalance() argument
753 rlb_delete_table_entry_dst(struct bonding *bond, u32 index) rlb_delete_table_entry_dst() argument
768 rlb_src_unlink(struct bonding *bond, u32 index) rlb_src_unlink() argument
791 rlb_delete_table_entry(struct bonding *bond, u32 index) rlb_delete_table_entry() argument
805 rlb_src_link(struct bonding *bond, u32 ip_src_hash, u32 ip_dst_hash) rlb_src_link() argument
821 rlb_purge_src_ip(struct bonding *bond, struct arp_pkt *arp) rlb_purge_src_ip() argument
841 rlb_initialize(struct bonding *bond) rlb_initialize() argument
869 rlb_deinitialize(struct bonding *bond) rlb_deinitialize() argument
882 rlb_clear_vlan(struct bonding *bond, unsigned short vlan_id) rlb_clear_vlan() argument
939 struct bonding *bond; global() member
950 struct bonding *bond = data->bond; alb_upper_dev_walk() local
987 struct bonding *bond = bond_get_bond_by_slave(slave); alb_send_learning_packets() local
1052 alb_fasten_mac_swap(struct bonding *bond, struct slave *slave1, struct slave *slave2) alb_fasten_mac_swap() argument
1106 alb_change_hw_addr_on_detach(struct bonding *bond, struct slave *slave) alb_change_hw_addr_on_detach() argument
1149 alb_handle_addr_collision_on_attach(struct bonding *bond, struct slave *slave) alb_handle_addr_collision_on_attach() argument
1225 alb_set_mac_address(struct bonding *bond, void *addr) alb_set_mac_address() argument
1274 bond_alb_initialize(struct bonding *bond, int rlb_enabled) bond_alb_initialize() argument
1296 bond_alb_deinitialize(struct bonding *bond) bond_alb_deinitialize() argument
1306 bond_do_alb_xmit(struct sk_buff *skb, struct bonding *bond, struct slave *tx_slave) bond_do_alb_xmit() argument
1338 bond_xmit_tlb_slave_get(struct bonding *bond, struct sk_buff *skb) bond_xmit_tlb_slave_get() argument
1378 struct bonding *bond = netdev_priv(bond_dev); bond_tlb_xmit() local
1385 bond_xmit_alb_slave_get(struct bonding *bond, struct sk_buff *skb) bond_xmit_alb_slave_get() argument
1519 struct bonding *bond = netdev_priv(bond_dev); bond_alb_xmit() local
1528 struct bonding *bond = container_of(work, struct bonding, bond_alb_monitor() local
1628 bond_alb_init_slave(struct bonding *bond, struct slave *slave) bond_alb_init_slave() argument
1658 bond_alb_deinit_slave(struct bonding *bond, struct slave *slave) bond_alb_deinit_slave() argument
1672 bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link) bond_alb_handle_link_change() argument
1710 bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave) bond_alb_handle_active_change() argument
1783 struct bonding *bond = netdev_priv(bond_dev); bond_alb_set_mac_address() local
1826 bond_alb_clear_vlan(struct bonding *bond, unsigned short vlan_id) bond_alb_clear_vlan() argument
[all...]
H A Dbond_procfs.c13 struct bonding *bond = PDE_DATA(file_inode(seq->file)); in __acquires() local
23 bond_for_each_slave_rcu(bond, slave, iter) in __acquires()
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 in bond_info_show_master()
172 struct bonding *bond = PDE_DATA(file_inode(seq->file)); bond_info_show_slave() local
262 bond_create_proc_entry(struct bonding *bond) bond_create_proc_entry() argument
278 bond_remove_proc_entry(struct bonding *bond) bond_remove_proc_entry() argument
[all...]
H A 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, in bond_debug_register()
62 bond_debug_unregister(struct bonding *bond) bond_debug_unregister() argument
70 bond_debug_reregister(struct bonding *bond) bond_debug_reregister() argument
105 bond_debug_register(struct bonding *bond) bond_debug_register() argument
109 bond_debug_unregister(struct bonding *bond) bond_debug_unregister() argument
113 bond_debug_reregister(struct bonding *bond) bond_debug_reregister() argument
[all...]
H A 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()
164 /* Show the slaves in the current bond
168 struct bonding *bond = to_bond(d); bonding_show_slaves() local
201 struct bonding *bond = to_bond(d); bonding_show_mode() local
215 struct bonding *bond = to_bond(d); bonding_show_xmit_hash() local
230 struct bonding *bond = to_bond(d); bonding_show_arp_validate() local
246 struct bonding *bond = to_bond(d); bonding_show_arp_all_targets() local
262 struct bonding *bond = to_bond(d); bonding_show_fail_over_mac() local
278 struct bonding *bond = to_bond(d); bonding_show_arp_interval() local
290 struct bonding *bond = to_bond(d); bonding_show_arp_targets() local
311 struct bonding *bond = to_bond(d); bonding_show_downdelay() local
322 struct bonding *bond = to_bond(d); bonding_show_updelay() local
334 struct bonding *bond = to_bond(d); bonding_show_peer_notif_delay() local
347 struct bonding *bond = to_bond(d); bonding_show_lacp() local
361 struct bonding *bond = to_bond(d); bonding_show_min_links() local
372 struct bonding *bond = to_bond(d); bonding_show_ad_select() local
387 struct bonding *bond = to_bond(d); bonding_show_num_peer_notif() local
400 struct bonding *bond = to_bond(d); bonding_show_miimon() local
412 struct bonding *bond = to_bond(d); bonding_show_primary() local
432 struct bonding *bond = to_bond(d); bonding_show_primary_reselect() local
449 struct bonding *bond = to_bond(d); bonding_show_carrier() local
462 struct bonding *bond = to_bond(d); bonding_show_active_slave() local
482 struct bonding *bond = to_bond(d); bonding_show_mii_status() local
495 struct bonding *bond = to_bond(d); bonding_show_ad_aggregator() local
515 struct bonding *bond = to_bond(d); bonding_show_ad_num_ports() local
535 struct bonding *bond = to_bond(d); bonding_show_ad_actor_key() local
555 struct bonding *bond = to_bond(d); bonding_show_ad_partner_key() local
575 struct bonding *bond = to_bond(d); bonding_show_ad_partner_mac() local
592 struct bonding *bond = to_bond(d); bonding_show_queue_id() local
627 struct bonding *bond = to_bond(d); bonding_show_slaves_active() local
639 struct bonding *bond = to_bond(d); bonding_show_resend_igmp() local
651 struct bonding *bond = to_bond(d); bonding_show_lp_interval() local
662 struct bonding *bond = to_bond(d); bonding_show_tlb_dynamic_lb() local
672 struct bonding *bond = to_bond(d); bonding_show_packets_per_slave() local
684 struct bonding *bond = to_bond(d); bonding_show_ad_actor_sys_prio() local
698 struct bonding *bond = to_bond(d); bonding_show_ad_actor_system() local
713 struct bonding *bond = to_bond(d); bonding_show_ad_user_port_key() local
812 bond_prepare_sysfs_group(struct bonding *bond) bond_prepare_sysfs_group() argument
[all...]
H A Dbond_netlink.c3 * drivers/net/bond/bond_netlink.c - Netlink interface for bonding
55 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_DOWNDELA in bond_changelink()
460 struct bonding *bond = netdev_priv(bond_dev); bond_newlink() local
509 bond_option_active_slave_get_ifindex(struct bonding *bond) bond_option_active_slave_get_ifindex() argument
524 struct bonding *bond = netdev_priv(bond_dev); bond_fill_info() local
707 struct bonding *bond; bond_fill_linkxstats() local
[all...]
H A Dbond_3ad.c133 * __get_first_agg - get the first aggregator in the bond
136 * Return the aggregator of the first slave in @bond, or %NULL if it can't be
142 struct bonding *bond = __get_bond_by_port(port); in __get_first_agg() local
146 /* If there's no bond for this port, or bond has no slaves */ in __get_first_agg()
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 in __get_agg_selection_mode()
222 struct bonding *bond = __get_bond_by_port(port); __check_agg_selection_timer() local
369 const struct bonding *bond = bond_get_bond_by_slave(port->slave); __ad_actor_update_port() local
752 struct bonding *bond = aggregator->slave->bond; __get_active_agg() local
1380 struct bonding *bond; ad_port_selection_logic() local
1658 struct bonding *bond = agg->slave->bond; ad_agg_selection_logic() local
1978 bond_3ad_initiate_agg_selection(struct bonding *bond, int timeout) bond_3ad_initiate_agg_selection() argument
1990 bond_3ad_initialize(struct bonding *bond, u16 tick_resolution) bond_3ad_initialize() argument
2021 struct bonding *bond = bond_get_bond_by_slave(slave); bond_3ad_bind_slave() local
2075 struct bonding *bond = slave->bond; bond_3ad_unbind_slave() local
2233 bond_3ad_update_ad_actor_settings(struct bonding *bond) bond_3ad_update_ad_actor_settings() argument
2264 bond_agg_timer_advance(struct bonding *bond) bond_agg_timer_advance() argument
2295 struct bonding *bond = container_of(work, struct bonding, bond_3ad_state_machine_handler() local
2385 struct bonding *bond = slave->bond; bond_3ad_rx_indication() local
2583 bond_3ad_set_carrier(struct bonding *bond) bond_3ad_set_carrier() argument
2623 __bond_3ad_get_active_agg_info(struct bonding *bond, struct ad_info *ad_info) __bond_3ad_get_active_agg_info() argument
2651 bond_3ad_get_active_agg_info(struct bonding *bond, struct ad_info *ad_info) bond_3ad_get_active_agg_info() argument
2662 bond_3ad_lacpdu_recv(const struct sk_buff *skb, struct bonding *bond, struct slave *slave) bond_3ad_lacpdu_recv() argument
2694 bond_3ad_update_lacp_rate(struct bonding *bond) bond_3ad_update_lacp_rate() argument
[all...]
/kernel/linux/linux-5.10/include/net/
H A Dbonding.h50 #define BOND_MODE(bond) ((bond)->params.mode)
53 #define bond_slave_list(bond) (&(bond)->dev->adj_list.lower)
55 #define bond_has_slaves(bond) !list_empty(bond_slave_list(bond))
58 #define bond_first_slave(bond) \
59 (bond_has_slaves(bond) ? \
60 netdev_adjacent_get_private(bond_slave_list(bond)->next) : \
62 #define bond_last_slave(bond) \
157 struct bonding *bond; /* our master */ global() member
281 bond_get_slave_by_dev(struct bonding *bond, struct net_device *slave_dev) bond_get_slave_by_dev() argument
292 bond_should_override_tx_queue(struct bonding *bond) bond_should_override_tx_queue() argument
298 bond_is_lb(const struct bonding *bond) bond_is_lb() argument
304 bond_needs_speed_duplex(const struct bonding *bond) bond_needs_speed_duplex() argument
309 bond_is_nondyn_tlb(const struct bonding *bond) bond_is_nondyn_tlb() argument
314 bond_mode_can_use_xmit_hash(const struct bonding *bond) bond_mode_can_use_xmit_hash() argument
322 bond_mode_uses_xmit_hash(const struct bonding *bond) bond_mode_uses_xmit_hash() argument
341 bond_uses_primary(struct bonding *bond) bond_uses_primary() argument
346 bond_option_active_slave_get_rcu(struct bonding *bond) bond_option_active_slave_get_rcu() argument
395 bond_slave_state_change(struct bonding *bond) bond_slave_state_change() argument
408 bond_slave_state_notify(struct bonding *bond) bond_slave_state_notify() argument
485 slave_do_arp_validate(struct bonding *bond, struct slave *slave) slave_do_arp_validate() argument
491 slave_do_arp_validate_only(struct bonding *bond) slave_do_arp_validate_only() argument
504 slave_oldest_target_arp_rx(struct bonding *bond, struct slave *slave) slave_oldest_target_arp_rx() argument
517 slave_last_rx(struct bonding *bond, struct slave *slave) slave_last_rx() argument
592 bond_slave_link_notify(struct bonding *bond) bond_slave_link_notify() argument
670 bond_create_proc_entry(struct bonding *bond) bond_create_proc_entry() argument
674 bond_remove_proc_entry(struct bonding *bond) bond_remove_proc_entry() argument
687 bond_slave_has_mac(struct bonding *bond, const u8 *mac) bond_slave_has_mac() argument
701 bond_slave_has_mac_rcu(struct bonding *bond, const u8 *mac) bond_slave_has_mac_rcu() 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...]
/kernel/linux/linux-6.6/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) \
158 struct bonding *bond; /* our master */ global() member
285 bond_get_slave_by_dev(struct bonding *bond, struct net_device *slave_dev) bond_get_slave_by_dev() argument
296 bond_should_override_tx_queue(struct bonding *bond) bond_should_override_tx_queue() argument
302 bond_is_lb(const struct bonding *bond) bond_is_lb() argument
308 bond_needs_speed_duplex(const struct bonding *bond) bond_needs_speed_duplex() argument
313 bond_is_nondyn_tlb(const struct bonding *bond) bond_is_nondyn_tlb() argument
318 bond_mode_can_use_xmit_hash(const struct bonding *bond) bond_mode_can_use_xmit_hash() argument
326 bond_mode_uses_xmit_hash(const struct bonding *bond) bond_mode_uses_xmit_hash() argument
345 bond_uses_primary(struct bonding *bond) bond_uses_primary() argument
350 bond_option_active_slave_get_rcu(struct bonding *bond) bond_option_active_slave_get_rcu() argument
399 bond_slave_state_change(struct bonding *bond) bond_slave_state_change() argument
412 bond_slave_state_notify(struct bonding *bond) bond_slave_state_notify() argument
489 slave_do_arp_validate(struct bonding *bond, struct slave *slave) slave_do_arp_validate() argument
495 slave_do_arp_validate_only(struct bonding *bond) slave_do_arp_validate_only() argument
517 slave_oldest_target_arp_rx(struct bonding *bond, struct slave *slave) slave_oldest_target_arp_rx() argument
530 slave_last_rx(struct bonding *bond, struct slave *slave) slave_last_rx() argument
615 bond_slave_link_notify(struct bonding *bond) bond_slave_link_notify() argument
694 bond_create_proc_entry(struct bonding *bond) bond_create_proc_entry() argument
698 bond_remove_proc_entry(struct bonding *bond) bond_remove_proc_entry() argument
711 bond_slave_has_mac(struct bonding *bond, const u8 *mac) bond_slave_has_mac() argument
725 bond_slave_has_mac_rcu(struct bonding *bond, const u8 *mac) bond_slave_has_mac_rcu() 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...]
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_lag.c32 if (!port || !port->bond) in lan966x_lag_set_aggr_pgids()
42 struct net_device *bond; in lan966x_lag_set_aggr_pgids() local
46 if (!port || !port->bond || (visited & BIT(lag))) in lan966x_lag_set_aggr_pgids()
49 bond = port->bond; in lan966x_lag_set_aggr_pgids()
50 bond_mask = lan966x_lag_get_mask(lan966x, bond); in lan966x_lag_set_aggr_pgids()
87 if (port->bond == bond) in lan966x_lag_set_aggr_pgids()
107 bond_mask = lan966x_lag_get_mask(lan966x, port->bond); in lan966x_lag_set_port_ids()
126 struct net_device *bond, in lan966x_lag_port_join()
124 lan966x_lag_port_join(struct lan966x_port *port, struct net_device *brport_dev, struct net_device *bond, struct netlink_ext_ack *extack) lan966x_lag_port_join() argument
166 lan966x_lag_port_leave(struct lan966x_port *port, struct net_device *bond) lan966x_lag_port_leave() argument
349 lan966x_lag_get_mask(struct lan966x *lan966x, struct net_device *bond) lan966x_lag_get_mask() argument
[all...]
/kernel/linux/linux-5.10/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) { in mlx5e_lookup_rep_bond_metadata()
107 list_add(&mdata->list, &rpriv->uplink_priv.bond->metadata_list); in mlx5e_rep_bond_enslave()
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; in mlx5e_rep_esw_bond_netevent() local
286 bond = container_of(nb, struct mlx5e_rep_bond, nb); in mlx5e_rep_esw_bond_netevent()
289 /* Verify VF representor is on the same device of the bond handling the netevent. */ in mlx5e_rep_esw_bond_netevent()
290 if (rpriv->uplink_priv.bond != bond) in mlx5e_rep_esw_bond_netevent()
[all...]
/kernel/linux/linux-6.6/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) { in mlx5e_lookup_rep_bond_metadata()
107 list_add(&mdata->list, &rpriv->uplink_priv.bond->metadata_list); in mlx5e_rep_bond_enslave()
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; in mlx5e_rep_esw_bond_netevent() local
286 bond = container_of(nb, struct mlx5e_rep_bond, nb); in mlx5e_rep_esw_bond_netevent()
289 /* Verify VF representor is on the same device of the bond handling the netevent. */ in mlx5e_rep_esw_bond_netevent()
290 if (rpriv->uplink_priv.bond != bond) in mlx5e_rep_esw_bond_netevent()
[all...]
/kernel/linux/linux-6.6/drivers/iommu/arm/arm-smmu-v3/
H A Darm-smmu-v3-sva.c352 struct arm_smmu_bond *bond; in __arm_smmu_sva_bind() local
361 list_for_each_entry(bond, &master->bonds, list) { in __arm_smmu_sva_bind()
362 if (bond->mm == mm) { in __arm_smmu_sva_bind()
363 refcount_inc(&bond->refs); in __arm_smmu_sva_bind()
364 return &bond->sva; in __arm_smmu_sva_bind()
368 bond = kzalloc(sizeof(*bond), GFP_KERNEL); in __arm_smmu_sva_bind()
369 if (!bond) in __arm_smmu_sva_bind()
372 bond->mm = mm; in __arm_smmu_sva_bind()
373 bond in __arm_smmu_sva_bind()
542 struct arm_smmu_bond *bond = NULL, *t; arm_smmu_sva_remove_dev_pasid() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/bonding/
H A Dbond-break-lacpdu-tx.sh6 # the bond.
29 ip link del veth1-bond >/dev/null 2>&1 || :
30 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...]

Completed in 23 milliseconds

123