/drivers/net/bonding/ |
H A D | bond_debugfs.c | 21 struct bonding *bond = m->private; local 22 struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond)); 26 if (bond->params.mode != BOND_MODE_ALB) 32 spin_lock_bh(&(BOND_ALB_INFO(bond).rx_hashtbl_lock)); 44 spin_unlock_bh(&(BOND_ALB_INFO(bond).rx_hashtbl_lock)); 62 void bond_debug_register(struct bonding *bond) argument 67 bond->debug_dir = 68 debugfs_create_dir(bond->dev->name, bonding_debug_root); 70 if (!bond->debug_dir) { 72 bond 80 bond_debug_unregister(struct bonding *bond) argument 88 bond_debug_reregister(struct bonding *bond) argument 126 bond_debug_register(struct bonding *bond) argument 130 bond_debug_unregister(struct bonding *bond) argument 134 bond_debug_reregister(struct bonding *bond) argument [all...] |
H A D | bond_alb.c | 102 static inline void _lock_tx_hashtbl_bh(struct bonding *bond) argument 104 spin_lock_bh(&(BOND_ALB_INFO(bond).tx_hashtbl_lock)); 107 static inline void _unlock_tx_hashtbl_bh(struct bonding *bond) argument 109 spin_unlock_bh(&(BOND_ALB_INFO(bond).tx_hashtbl_lock)); 112 static inline void _lock_tx_hashtbl(struct bonding *bond) argument 114 spin_lock(&(BOND_ALB_INFO(bond).tx_hashtbl_lock)); 117 static inline void _unlock_tx_hashtbl(struct bonding *bond) argument 119 spin_unlock(&(BOND_ALB_INFO(bond).tx_hashtbl_lock)); 142 /* Caller must hold bond lock for read, BH disabled */ 143 static void __tlb_clear_slave(struct bonding *bond, struc argument 166 tlb_clear_slave(struct bonding *bond, struct slave *slave, int save_load) argument 175 tlb_initialize(struct bonding *bond) argument 200 tlb_deinitialize(struct bonding *bond) argument 219 tlb_get_least_loaded_slave(struct bonding *bond) argument 243 __tlb_choose_channel(struct bonding *bond, u32 hash_index, u32 skb_len) argument 282 tlb_choose_channel(struct bonding *bond, u32 hash_index, u32 skb_len) argument 298 _lock_rx_hashtbl_bh(struct bonding *bond) argument 303 _unlock_rx_hashtbl_bh(struct bonding *bond) argument 308 _lock_rx_hashtbl(struct bonding *bond) argument 313 _unlock_rx_hashtbl(struct bonding *bond) argument 321 rlb_update_entry_from_arp(struct bonding *bond, struct arp_pkt *arp) argument 345 rlb_arp_recv(struct sk_buff *skb, struct bonding *bond, struct slave *slave) argument 377 rlb_next_rx_slave(struct bonding *bond) argument 413 rlb_teach_disabled_mac_on_primary(struct bonding *bond, u8 addr[]) argument 435 rlb_clear_slave(struct bonding *bond, struct slave *slave) argument 524 rlb_update_rx_clients(struct bonding *bond) argument 552 rlb_req_update_slave_clients(struct bonding *bond, struct slave *slave) argument 583 rlb_req_update_subnet_clients(struct bonding *bond, __be32 src_ip) argument 617 rlb_choose_channel(struct sk_buff *skb, struct bonding *bond) argument 702 rlb_arp_xmit(struct sk_buff *skb, struct bonding *bond) argument 742 rlb_rebalance(struct bonding *bond) argument 779 rlb_initialize(struct bonding *bond) argument 808 rlb_deinitialize(struct bonding *bond) argument 821 rlb_clear_vlan(struct bonding *bond, unsigned short vlan_id) argument 858 struct bonding *bond = bond_get_bond_by_slave(slave); local 940 alb_swap_mac_addr(struct bonding *bond, struct slave *slave1, struct slave *slave2) argument 955 alb_fasten_mac_swap(struct bonding *bond, struct slave *slave1, struct slave *slave2) argument 1009 alb_change_hw_addr_on_detach(struct bonding *bond, struct slave *slave) argument 1064 alb_handle_addr_collision_on_attach(struct bonding *bond, struct slave *slave) argument 1158 alb_set_mac_address(struct bonding *bond, void *addr) argument 1202 bond_alb_initialize(struct bonding *bond, int rlb_enabled) argument 1226 bond_alb_deinitialize(struct bonding *bond) argument 1239 struct bonding *bond = netdev_priv(bond_dev); local 1370 struct bonding *bond = container_of(work, struct bonding, local 1482 bond_alb_init_slave(struct bonding *bond, struct slave *slave) argument 1522 bond_alb_deinit_slave(struct bonding *bond, struct slave *slave) argument 1537 bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link) argument 1658 struct bonding *bond = netdev_priv(bond_dev); variable in typeref:struct:bonding 1711 bond_alb_clear_vlan(struct bonding *bond, unsigned short vlan_id) argument [all...] |
H A D | bond_main.c | 276 * bond_add_vlan - add a new vlan id on bond 277 * @bond: bond that got the notification 282 static int bond_add_vlan(struct bonding *bond, unsigned short vlan_id) argument 286 pr_debug("bond: %s, vlan id %d\n", 287 (bond ? bond->dev->name : "None"), vlan_id); 296 write_lock_bh(&bond->lock); 298 list_add_tail(&vlan->vlan_list, &bond->vlan_list); 300 write_unlock_bh(&bond 314 bond_del_vlan(struct bonding *bond, unsigned short vlan_id) argument 360 bond_next_vlan(struct bonding *bond, struct vlan_entry *curr) argument 392 bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, struct net_device *slave_dev) argument 433 struct bonding *bond = netdev_priv(bond_dev); local 468 struct bonding *bond = netdev_priv(bond_dev); local 485 bond_add_vlans_on_slave(struct bonding *bond, struct net_device *slave_dev) argument 499 bond_del_vlans_from_slave(struct bonding *bond, struct net_device *slave_dev) argument 520 bond_set_carrier(struct bonding *bond) argument 603 bond_check_dev_link(struct bonding *bond, struct net_device *slave_dev, int reporting) argument 667 bond_set_promiscuity(struct bonding *bond, int inc) argument 691 bond_set_allmulti(struct bonding *bond, int inc) argument 716 bond_mc_add(struct bonding *bond, void *addr) argument 735 bond_mc_del(struct bonding *bond, void *addr) argument 767 bond_resend_igmp_join_requests(struct bonding *bond) argument 807 struct bonding *bond = container_of(work, struct bonding, local 818 struct bonding *bond = netdev_priv(bond_dev); local 839 bond_mc_swap(struct bonding *bond, struct slave *new_active, struct slave *old_active) argument 956 bond_should_change_active(struct bonding *bond) argument 982 bond_find_best_slave(struct bonding *bond) argument 1023 bond_should_notify_peers(struct bonding *bond) argument 1054 bond_change_active_slave(struct bonding *bond, struct slave *new_active) argument 1156 bond_select_active_slave(struct bonding *bond) argument 1185 bond_attach_slave(struct bonding *bond, struct slave *new_slave) argument 1211 bond_detach_slave(struct bonding *bond, struct slave *slave) argument 1279 __bond_netpoll_cleanup(struct bonding *bond) argument 1290 struct bonding *bond = netdev_priv(bond_dev); local 1299 struct bonding *bond = netdev_priv(dev); local 1315 bond_netpoll_info(struct bonding *bond) argument 1349 struct bonding *bond = netdev_priv(dev); local 1380 bond_compute_features(struct bonding *bond) argument 1413 struct bonding *bond = netdev_priv(bond_dev); local 1429 bond_should_deliver_exact_match(struct sk_buff *skb, struct slave *slave, struct bonding *bond) argument 1447 struct bonding *bond; local 1502 struct bonding *bond = netdev_priv(bond_dev); local 1925 struct bonding *bond = netdev_priv(bond_dev); local 2106 struct bonding *bond = netdev_priv(bond_dev); local 2124 struct bonding *bond = netdev_priv(bond_dev); local 2247 struct bonding *bond = netdev_priv(bond_dev); local 2294 struct bonding *bond = netdev_priv(bond_dev); local 2308 struct bonding *bond = netdev_priv(bond_dev); local 2333 bond_miimon_inspect(struct bonding *bond) argument 2433 bond_miimon_commit(struct bonding *bond) argument 2535 struct bonding *bond = container_of(work, struct bonding, local 2587 bond_has_this_ip(struct bonding *bond, __be32 ip) argument 2636 bond_arp_send_all(struct bonding *bond, struct slave *slave) argument 2715 bond_validate_arp(struct bonding *bond, struct slave *slave, __be32 sip, __be32 tip) argument 2732 bond_arp_rcv(struct sk_buff *skb, struct bonding *bond, struct slave *slave) argument 2797 struct bonding *bond = container_of(work, struct bonding, local 2918 bond_ab_arp_inspect(struct bonding *bond, int delta_in_ticks) argument 3001 bond_ab_arp_commit(struct bonding *bond, int delta_in_ticks) argument 3078 bond_ab_arp_probe(struct bonding *bond) argument 3144 struct bonding *bond = container_of(work, struct bonding, local 3203 bond_event_changename(struct bonding *bond) argument 3232 struct bonding *bond = netdev_priv(bond_dev); local 3392 struct bonding *bond = netdev_priv(bond_dev); local 3458 struct bonding *bond = netdev_priv(bond_dev); local 3503 struct bonding *bond = netdev_priv(bond_dev); local 3579 struct bonding *bond = netdev_priv(bond_dev); local 3675 struct bonding *bond = netdev_priv(bond_dev); local 3688 struct bonding *bond = netdev_priv(bond_dev); local 3720 struct bonding *bond = netdev_priv(n->dev); local 3772 struct bonding *bond = netdev_priv(bond_dev); local 3846 struct bonding *bond = netdev_priv(bond_dev); local 3932 struct bonding *bond = netdev_priv(bond_dev); local 3994 struct bonding *bond = netdev_priv(bond_dev); local 4019 struct bonding *bond = netdev_priv(bond_dev); local 4057 struct bonding *bond = netdev_priv(bond_dev); local 4106 bond_set_xmit_hash_policy(struct bonding *bond) argument 4125 bond_slave_override(struct bonding *bond, struct sk_buff *skb) argument 4178 struct bonding *bond = netdev_priv(dev); local 4211 struct bonding *bond = netdev_priv(dev); local 4236 bond_set_mode_ops(struct bonding *bond, int mode) argument 4306 struct bonding *bond = netdev_priv(bond_dev); local 4314 struct bonding *bond = netdev_priv(bond_dev); local 4367 bond_work_cancel_all(struct bonding *bond) argument 4393 struct bonding *bond = netdev_priv(bond_dev); local 4787 struct bonding *bond = netdev_priv(bond_dev); local [all...] |
H A D | bond_procfs.c | 10 __acquires(&bond->lock) 12 struct bonding *bond = seq->private; local 17 /* make sure the bond won't be taken away */ 19 read_lock(&bond->lock); 24 bond_for_each_slave(bond, slave, i) { 34 struct bonding *bond = seq->private; local 39 return bond->first_slave; 43 return (slave == bond->first_slave) ? NULL : slave; 47 __releases(&bond->lock) 50 struct bonding *bond local 58 struct bonding *bond = seq->private; local 156 struct bonding *bond = seq->private; local 232 bond_create_proc_entry(struct bonding *bond) argument 249 bond_remove_proc_entry(struct bonding *bond) argument [all...] |
H A D | bond_sysfs.c | 60 struct bonding *bond; local 64 list_for_each_entry(bond, &bn->dev_list, bond_list) { 72 res += sprintf(buf + res, "%s ", bond->dev->name); 83 struct bonding *bond; local 85 list_for_each_entry(bond, &bn->dev_list, bond_list) { 86 if (strncmp(bond->dev->name, ifname, IFNAMSIZ) == 0) 87 return bond->dev; 202 * Show the slaves in the current bond. 209 struct bonding *bond = to_bond(d); local 211 read_lock(&bond 242 struct bonding *bond = to_bond(d); local 300 struct bonding *bond = to_bond(d); local 312 struct bonding *bond = to_bond(d); local 363 struct bonding *bond = to_bond(d); local 375 struct bonding *bond = to_bond(d); local 411 struct bonding *bond = to_bond(d); local 423 struct bonding *bond = to_bond(d); local 456 struct bonding *bond = to_bond(d); local 468 struct bonding *bond = to_bond(d); local 504 struct bonding *bond = to_bond(d); local 514 struct bonding *bond = to_bond(d); local 583 struct bonding *bond = to_bond(d); local 601 struct bonding *bond = to_bond(d); local 683 struct bonding *bond = to_bond(d); local 693 struct bonding *bond = to_bond(d); local 737 struct bonding *bond = to_bond(d); local 748 struct bonding *bond = to_bond(d); local 796 struct bonding *bond = to_bond(d); local 808 struct bonding *bond = to_bond(d); local 847 struct bonding *bond = to_bond(d); local 856 struct bonding *bond = to_bond(d); local 879 struct bonding *bond = to_bond(d); local 892 struct bonding *bond = to_bond(d); local 926 struct bonding *bond = to_bond(d); local 934 struct bonding *bond = to_bond(d); local 953 struct bonding *bond = to_bond(d); local 963 struct bonding *bond = to_bond(d); local 1034 struct bonding *bond = to_bond(d); local 1048 struct bonding *bond = to_bond(d); local 1105 struct bonding *bond = to_bond(d); local 1117 struct bonding *bond = to_bond(d); local 1158 struct bonding *bond = to_bond(d); local 1168 struct bonding *bond = to_bond(d); local 1200 struct bonding *bond = to_bond(d); local 1220 struct bonding *bond = to_bond(d); local 1308 struct bonding *bond = to_bond(d); local 1327 struct bonding *bond = to_bond(d); local 1349 struct bonding *bond = to_bond(d); local 1371 struct bonding *bond = to_bond(d); local 1393 struct bonding *bond = to_bond(d); local 1415 struct bonding *bond = to_bond(d); local 1436 struct bonding *bond = to_bond(d); local 1469 struct bonding *bond = to_bond(d); local 1549 struct bonding *bond = to_bond(d); local 1559 struct bonding *bond = to_bond(d); local 1602 struct bonding *bond = to_bond(d); local 1612 struct bonding *bond = to_bond(d); local 1723 bond_prepare_sysfs_group(struct bonding *bond) argument [all...] |
H A D | bond_alb.h | 31 #define BOND_ALB_INFO(bond) ((bond)->alb_info) 156 int bond_alb_initialize(struct bonding *bond, int rlb_enabled); 157 void bond_alb_deinitialize(struct bonding *bond); 158 int bond_alb_init_slave(struct bonding *bond, struct slave *slave); 159 void bond_alb_deinit_slave(struct bonding *bond, struct slave *slave); 160 void bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link); 161 void bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave); 165 void bond_alb_clear_vlan(struct bonding *bond, unsigned short vlan_id);
|
H A D | bonding.h | 75 * @bond: the bond holding this list. 80 * Caller must hold bond->lock 82 #define bond_for_each_slave_from(bond, pos, cnt, start) \ 84 cnt < (bond)->slave_cnt; \ 89 * @bond: the bond holding this list. 95 * Caller must hold bond->lock 97 #define bond_for_each_slave_from_to(bond, pos, cnt, start, stop) \ 99 ((cnt < (bond) 177 struct bonding *bond; /* our master */ member in struct:slave 252 bond_vlan_used(struct bonding *bond) argument 265 bond_get_slave_by_dev(struct bonding *bond, struct net_device *slave_dev) argument 289 bond_is_lb(const struct bonding *bond) argument 329 slave_do_arp_validate(struct bonding *bond, struct slave *slave) argument 335 slave_last_rx(struct bonding *bond, struct slave *slave) argument 362 struct bonding *bond = netdev_priv(slave->dev->master); local 436 bond_create_proc_entry(struct bonding *bond) argument 440 bond_remove_proc_entry(struct bonding *bond) argument [all...] |
H A D | bond_3ad.c | 139 * __get_first_port - get the first port in the bond 140 * @bond: the bond we're looking at 142 * Return the port of the first slave in @bond, or %NULL if it can't be found. 144 static inline struct port *__get_first_port(struct bonding *bond) argument 146 if (bond->slave_cnt == 0) 149 return &(SLAVE_AD_INFO(bond->first_slave).port); 153 * __get_next_port - get the next port in the bond 157 * bond, or %NULL if it can't be found. 161 struct bonding *bond local 180 struct bonding *bond = __get_bond_by_port(port); local 199 struct bonding *bond = bond_get_bond_by_slave(slave); local 260 struct bonding *bond = __get_bond_by_port(port); local 275 struct bonding *bond = __get_bond_by_port(port); local 1611 struct bonding *bond; local 1852 bond_3ad_initiate_agg_selection(struct bonding *bond, int timeout) argument 1866 bond_3ad_initialize(struct bonding *bond, u16 tick_resolution) argument 1895 struct bonding *bond = bond_get_bond_by_slave(slave); local 2106 struct bonding *bond = container_of(work, struct bonding, local 2337 bond_3ad_set_carrier(struct bonding *bond) argument 2371 bond_3ad_get_active_agg_info(struct bonding *bond, struct ad_info *ad_info) argument 2398 struct bonding *bond = netdev_priv(dev); local 2463 bond_3ad_lacpdu_recv(struct sk_buff *skb, struct bonding *bond, struct slave *slave) argument 2487 bond_3ad_update_lacp_rate(struct bonding *bond) argument [all...] |
H A D | bond_3ad.h | 190 struct slave *slave; // pointer to the bond slave that this aggregator belongs to 232 struct slave *slave; // pointer to the bond slave that this port belongs to 250 #define BOND_AD_INFO(bond) ((bond)->ad_info) 267 void bond_3ad_initialize(struct bonding *bond, u16 tick_resolution); 271 void bond_3ad_initiate_agg_selection(struct bonding *bond, int timeout); 275 int bond_3ad_get_active_agg_info(struct bonding *bond, struct ad_info *ad_info); 277 int bond_3ad_lacpdu_recv(struct sk_buff *skb, struct bonding *bond, 279 int bond_3ad_set_carrier(struct bonding *bond); 280 void bond_3ad_update_lacp_rate(struct bonding *bond); [all...] |