| /linux/drivers/net/bonding/ |
| H A D | bond_options.c | 21 static int bond_option_active_slave_set(struct bonding *bond, 23 static int bond_option_miimon_set(struct bonding *bond, 25 static int bond_option_updelay_set(struct bonding *bond, 27 static int bond_option_downdelay_set(struct bonding *bond, 29 static int bond_option_peer_notif_delay_set(struct bonding *bond, 31 static int bond_option_use_carrier_set(struct bonding *bond, 33 static int bond_option_arp_interval_set(struct bonding *bond, 35 static int bond_option_arp_ip_target_add(struct bonding *bond, __be32 target); 36 static int bond_option_arp_ip_target_rem(struct bonding *bond, __be32 target); 37 static int bond_option_arp_ip_targets_set(struct bonding *bond, [all …]
|
| H A D | bond_alb.c | 57 static void rlb_purge_src_ip(struct bonding *bond, struct arp_pkt *arp); 58 static void rlb_src_unlink(struct bonding *bond, u32 index); 59 static void rlb_src_link(struct bonding *bond, u32 ip_src_hash, 94 static void __tlb_clear_slave(struct bonding *bond, struct slave *slave, in __tlb_clear_slave() 101 tx_hash_table = BOND_ALB_INFO(bond).tx_hashtbl; in __tlb_clear_slave() 117 static void tlb_clear_slave(struct bonding *bond, struct slave *slave, in tlb_clear_slave() 120 spin_lock_bh(&bond->mode_lock); in tlb_clear_slave() 121 __tlb_clear_slave(bond, slave, save_load); in tlb_clear_slave() 122 spin_unlock_bh(&bond->mode_lock); in tlb_clear_slave() 126 static int tlb_initialize(struct bonding *bond) in tlb_initialize() 93 __tlb_clear_slave(struct bonding * bond,struct slave * slave,int save_load) __tlb_clear_slave() argument 116 tlb_clear_slave(struct bonding * bond,struct slave * slave,int save_load) tlb_clear_slave() argument 125 tlb_initialize(struct bonding * bond) 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 554 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 718 rlb_rebalance(struct bonding * bond) rlb_rebalance() argument 772 rlb_delete_table_entry_dst(struct bonding * bond,u32 index) rlb_delete_table_entry_dst() argument 787 rlb_src_unlink(struct bonding * bond,u32 index) rlb_src_unlink() argument 810 rlb_delete_table_entry(struct bonding * bond,u32 index) rlb_delete_table_entry() argument 824 rlb_src_link(struct bonding * bond,u32 ip_src_hash,u32 ip_dst_hash) rlb_src_link() argument 840 rlb_purge_src_ip(struct bonding * bond,struct arp_pkt * arp) rlb_purge_src_ip() argument 861 rlb_initialize(struct bonding * bond) rlb_initialize() argument 889 rlb_deinitialize(struct bonding * bond) rlb_deinitialize() argument 902 rlb_clear_vlan(struct bonding * bond,unsigned short vlan_id) rlb_clear_vlan() argument 959 struct bonding *bond; global() member 971 struct bonding *bond = data->bond; alb_upper_dev_walk() local 1007 struct bonding *bond = bond_get_bond_by_slave(slave); alb_send_learning_packets() local 1072 alb_fasten_mac_swap(struct bonding * bond,struct slave * slave1,struct slave * slave2) alb_fasten_mac_swap() argument 1126 alb_change_hw_addr_on_detach(struct bonding * bond,struct slave * slave) alb_change_hw_addr_on_detach() argument 1169 alb_handle_addr_collision_on_attach(struct bonding * bond,struct slave * slave) alb_handle_addr_collision_on_attach() argument 1245 alb_set_mac_address(struct bonding * bond,void * addr) alb_set_mac_address() argument 1313 bond_alb_initialize(struct bonding * bond,int rlb_enabled) bond_alb_initialize() argument 1335 bond_alb_deinitialize(struct bonding * bond) bond_alb_deinitialize() argument 1345 bond_do_alb_xmit(struct sk_buff * skb,struct bonding * bond,struct slave * tx_slave) bond_do_alb_xmit() argument 1378 bond_xmit_tlb_slave_get(struct bonding * bond,struct sk_buff * skb) bond_xmit_tlb_slave_get() argument 1418 struct bonding *bond = netdev_priv(bond_dev); bond_tlb_xmit() local 1425 bond_xmit_alb_slave_get(struct bonding * bond,struct sk_buff * skb) bond_xmit_alb_slave_get() argument 1531 struct bonding *bond = netdev_priv(bond_dev); bond_alb_xmit() local 1540 struct bonding *bond = container_of(work, struct bonding, bond_alb_monitor() local 1642 bond_alb_init_slave(struct bonding * bond,struct slave * slave) bond_alb_init_slave() argument 1672 bond_alb_deinit_slave(struct bonding * bond,struct slave * slave) bond_alb_deinit_slave() argument 1686 bond_alb_handle_link_change(struct bonding * bond,struct slave * slave,char link) bond_alb_handle_link_change() argument 1724 bond_alb_handle_active_change(struct bonding * bond,struct slave * new_slave) bond_alb_handle_active_change() argument 1795 struct bonding *bond = netdev_priv(bond_dev); bond_alb_set_mac_address() local 1838 bond_alb_clear_vlan(struct bonding * bond,unsigned short vlan_id) bond_alb_clear_vlan() argument [all...] |
| H A D | bond_main.c | 266 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() 344 bool bond_xdp_check(struct bonding *bond, in argument 376 struct bonding *bond = netdev_priv(bond_dev); bond_vlan_rx_add_vid() local 410 struct bonding *bond = netdev_priv(bond_dev); bond_vlan_rx_kill_vid() local 437 struct bonding *bond; bond_ipsec_dev() local 471 struct bonding *bond; bond_ipsec_add_sa() local 519 bond_ipsec_add_sa_all(struct bonding * bond) bond_ipsec_add_sa_all() argument 596 bond_ipsec_del_sa_all(struct bonding * bond) bond_ipsec_del_sa_all() argument 642 struct bonding *bond; bond_ipsec_free_sa() local 756 bond_set_carrier(struct bonding * bond) bond_set_carrier() argument 845 bond_set_promiscuity(struct bonding * bond,int inc) bond_set_promiscuity() argument 868 bond_set_allmulti(struct bonding * bond,int inc) bond_set_allmulti() argument 896 struct bonding *bond = container_of(work, struct bonding, bond_resend_igmp_join_requests_delayed() local 916 struct bonding *bond = netdev_priv(bond_dev); bond_hw_addr_flush() local 932 bond_hw_addr_swap(struct bonding * bond,struct slave * new_active,struct slave * old_active) bond_hw_addr_swap() argument 991 bond_get_old_active(struct bonding * bond,struct slave * new_active) bond_get_old_active() argument 1014 bond_do_fail_over_mac(struct bonding * bond,struct slave * new_active,struct slave * old_active) bond_do_fail_over_mac() argument 1094 bond_choose_primary_or_current(struct bonding * bond) bond_choose_primary_or_current() argument 1152 bond_find_best_slave(struct bonding * bond) bond_find_best_slave() argument 1176 bond_should_notify_peers(struct bonding * bond) bond_should_notify_peers() argument 1209 bond_peer_notify_work_rearm(struct bonding * bond,unsigned long delay) bond_peer_notify_work_rearm() argument 1215 bond_peer_notify_reset(struct bonding * bond) bond_peer_notify_reset() argument 1224 struct bonding *bond = container_of(work, struct bonding, bond_peer_notify_handler() local 1238 bond_peer_notify_may_events(struct bonding * bond,bool force) bond_peer_notify_may_events() argument 1266 bond_change_active_slave(struct bonding * bond,struct slave * new_active) bond_change_active_slave() argument 1370 bond_select_active_slave(struct bonding * bond) bond_select_active_slave() argument 1425 struct bonding *bond = netdev_priv(bond_dev); bond_poll_controller() local 1453 struct bonding *bond = netdev_priv(bond_dev); bond_netpoll_cleanup() local 1464 struct bonding *bond = netdev_priv(dev); bond_netpoll_setup() local 1496 struct bonding *bond = netdev_priv(dev); bond_fix_features() local 1518 struct bonding *bond = netdev_priv(bond_dev); bond_header_create() local 1539 struct bonding *bond = netdev_priv(dev); bond_header_parse() local 1591 bond_should_deliver_exact_match(struct sk_buff * skb,struct slave * slave,struct bonding * bond) bond_should_deliver_exact_match() argument 1607 struct bonding *bond; bond_handle_frame() local 1665 bond_lag_tx_type(struct bonding * bond) bond_lag_tx_type() argument 1682 bond_lag_hash_type(struct bonding * bond,enum netdev_lag_tx_type type) bond_lag_hash_type() argument 1706 bond_master_upper_dev_link(struct bonding * bond,struct slave * slave,struct netlink_ext_ack * extack) bond_master_upper_dev_link() argument 1726 bond_upper_dev_unlink(struct bonding * bond,struct slave * slave) bond_upper_dev_unlink() argument 1735 struct bonding *bond = bond_get_bond_by_slave(slave); slave_kobj_release() local 1763 bond_alloc_slave(struct bonding * bond,struct net_device * slave_dev) bond_alloc_slave() argument 1790 bond_fill_ifbond(struct bonding * bond,struct ifbond * info) bond_fill_ifbond() argument 1867 struct bonding *bond = netdev_priv(bond_dev); bond_xdp_set_features() local 1891 struct bonding *bond = netdev_priv(bond_dev); bond_enslave() local 2429 struct bonding *bond = netdev_priv(bond_dev); __bond_release_one() local 2615 struct bonding *bond = netdev_priv(bond_dev); bond_release_and_destroy() local 2631 struct bonding *bond = netdev_priv(bond_dev); bond_info_query() local 2638 struct bonding *bond = netdev_priv(bond_dev); bond_slave_info_query() local 2657 bond_miimon_inspect(struct bonding * bond) bond_miimon_inspect() argument 2764 bond_miimon_link_change(struct bonding * bond,struct slave * slave,char link) bond_miimon_link_change() argument 2782 bond_miimon_commit(struct bonding * bond) bond_miimon_commit() argument 2895 struct bonding *bond = container_of(work, struct bonding, bond_mii_monitor() local 2947 bond_has_this_ip(struct bonding * bond,__be32 ip) bond_has_this_ip() argument 3078 bond_arp_send_all(struct bonding * bond,struct slave * slave) bond_arp_send_all() argument 3132 bond_validate_arp(struct bonding * bond,struct slave * slave,__be32 sip,__be32 tip) bond_validate_arp() argument 3152 bond_arp_rcv(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_arp_rcv() argument 3257 bond_ns_send_all(struct bonding * bond,struct slave * slave) bond_ns_send_all() argument 3326 bond_has_this_ip6(struct bonding * bond,struct in6_addr * addr) bond_has_this_ip6() argument 3344 bond_validate_na(struct bonding * bond,struct slave * slave,struct in6_addr * saddr,struct in6_addr * daddr) bond_validate_na() argument 3372 bond_na_rcv(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_na_rcv() argument 3421 bond_rcv_validate(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_rcv_validate() argument 3452 bond_send_validate(struct bonding * bond,struct slave * slave) bond_send_validate() argument 3465 bond_time_in_interval(struct bonding * bond,unsigned long last_act,int mod) bond_time_in_interval() argument 3481 bond_loadbalance_arp_mon(struct bonding * bond) bond_loadbalance_arp_mon() argument 3598 bond_ab_arp_inspect(struct bonding * bond) bond_ab_arp_inspect() argument 3668 bond_ab_arp_commit(struct bonding * bond) bond_ab_arp_commit() argument 3760 bond_ab_arp_probe(struct bonding * bond) bond_ab_arp_probe() argument 3841 bond_activebackup_arp_mon(struct bonding * bond) bond_activebackup_arp_mon() argument 3895 struct bonding *bond = container_of(work, struct bonding, bond_arp_monitor() local 3907 bond_event_changename(struct bonding * bond) bond_event_changename() argument 3947 struct bonding *bond; bond_slave_netdev_event() local 4186 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 4251 __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 4285 bond_xmit_hash(struct bonding * bond,struct sk_buff * skb) bond_xmit_hash() argument 4303 bond_xmit_hash_xdp(struct bonding * bond,struct xdp_buff * xdp) bond_xmit_hash_xdp() argument 4318 bond_work_init_all(struct bonding * bond) bond_work_init_all() argument 4334 bond_work_cancel_all(struct bonding * bond) bond_work_cancel_all() argument 4347 struct bonding *bond = netdev_priv(bond_dev); bond_open() local 4410 struct bonding *bond = netdev_priv(bond_dev); bond_close() local 4516 struct bonding *bond = netdev_priv(bond_dev); bond_get_stats() local 4548 struct bonding *bond = netdev_priv(bond_dev); bond_eth_ioctl() local 4585 struct bonding *bond = netdev_priv(bond_dev); bond_do_ioctl() local 4684 struct bonding *bond = netdev_priv(bond_dev); bond_change_rx_flags() local 4697 struct bonding *bond = netdev_priv(bond_dev); bond_set_rx_mode() local 4719 struct bonding *bond = netdev_priv(n->dev); bond_neigh_init() local 4775 struct bonding *bond = netdev_priv(bond_dev); bond_change_mtu() local 4832 struct bonding *bond = netdev_priv(bond_dev); bond_set_mac_address() local 4898 bond_get_slave_by_id(struct bonding * bond,int slave_id) bond_get_slave_by_id() argument 4933 bond_rr_gen_slave_id(struct bonding * bond) bond_rr_gen_slave_id() argument 4958 bond_xmit_roundrobin_slave_get(struct bonding * bond,struct sk_buff * skb) bond_xmit_roundrobin_slave_get() argument 4996 bond_xdp_xmit_roundrobin_slave_get(struct bonding * bond,struct xdp_buff * xdp) bond_xdp_xmit_roundrobin_slave_get() argument 5040 struct bonding *bond = netdev_priv(bond_dev); bond_xmit_roundrobin() local 5050 bond_xmit_activebackup_slave_get(struct bonding * bond) bond_xmit_activebackup_slave_get() argument 5061 struct bonding *bond = netdev_priv(bond_dev); bond_xmit_activebackup() local 5075 bond_slave_arr_work_rearm(struct bonding * bond,unsigned long delay) bond_slave_arr_work_rearm() argument 5083 struct bonding *bond = container_of(work, struct bonding, bond_slave_arr_handler() local 5125 bond_set_slave_arr(struct bonding * bond,struct bond_up_slave * usable_slaves,struct bond_up_slave * all_slaves) bond_set_slave_arr() argument 5145 bond_reset_slave_arr(struct bonding * bond) bond_reset_slave_arr() argument 5158 bond_update_slave_arr(struct bonding * bond,struct slave * skipslave) bond_update_slave_arr() argument 5228 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 5245 bond_xdp_xmit_3ad_xor_slave_get(struct bonding * bond,struct xdp_buff * xdp) bond_xdp_xmit_3ad_xor_slave_get() argument 5264 struct bonding *bond = netdev_priv(dev); bond_should_broadcast_neighbor() local 5299 struct bonding *bond = netdev_priv(dev); bond_3ad_xor_xmit() local 5318 struct bonding *bond = netdev_priv(bond_dev); bond_xmit_broadcast() local 5366 bond_slave_override(struct bonding * bond,struct sk_buff * skb) bond_slave_override() argument 5417 struct bonding *bond = netdev_priv(master_dev); bond_xmit_get_slave() local 5501 __bond_sk_get_lower_dev(struct bonding * bond,struct sock * sk) __bond_sk_get_lower_dev() argument 5523 struct bonding *bond = netdev_priv(dev); bond_sk_get_lower_dev() local 5535 bond_tls_device_xmit(struct bonding * bond,struct sk_buff * skb,struct net_device * dev) bond_tls_device_xmit() argument 5552 struct bonding *bond = netdev_priv(dev); __bond_start_xmit() local 5590 struct bonding *bond = netdev_priv(dev); bond_start_xmit() local 5612 struct bonding *bond = netdev_priv(bond_dev); bond_xdp_get_xmit_slave() local 5684 struct bonding *bond = netdev_priv(dev); bond_xdp_set() local 5811 struct bonding *bond = netdev_priv(dev); bond_hwtstamp_get() local 5830 struct bonding *bond = netdev_priv(dev); bond_hwtstamp_set() local 5851 struct bonding *bond = netdev_priv(bond_dev); bond_ethtool_get_link_ksettings() local 5897 struct bonding *bond = netdev_priv(bond_dev); bond_ethtool_get_ts_info() local 5984 struct bonding *bond = netdev_priv(bond_dev); bond_destructor() local 5994 struct bonding *bond = netdev_priv(bond_dev); bond_setup() local 6061 struct bonding *bond = netdev_priv(bond_dev); bond_uninit() local 6479 struct bonding *bond = netdev_priv(bond_dev); bond_init() local 6521 struct bonding *bond; bond_create() local 6579 struct bonding *bond, *tmp_bond; bond_net_exit_rtnl() local [all...] |
| H A D | bond_debugfs.c | 20 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() 50 spin_unlock_bh(&bond->mode_lock); in bond_debug_rlb_hash_show() 56 void bond_debug_register(struct bonding *bond) in bond_debug_register() argument 58 bond->debug_dir = in bond_debug_register() 59 debugfs_create_dir(bond->dev->name, bonding_debug_root); in bond_debug_register() 61 debugfs_create_file("rlb_hash_table", 0400, bond->debug_dir, in bond_debug_register() 62 bond, &bond_debug_rlb_hash_fops); in bond_debug_register() [all …]
|
| H A D | bond_netlink.c | 64 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in bond_fill_slave_info() 172 struct bonding *bond = netdev_priv(bond_dev); in bond_slave_changelink() local 187 err = __bond_opt_set(bond, BOND_OPT_QUEUE_ID, &newval, in bond_slave_changelink() 197 err = __bond_opt_set(bond, BOND_OPT_PRIO, &newval, in bond_slave_changelink() 207 err = __bond_opt_set(bond, BOND_OPT_ACTOR_PORT_PRIO, &newval, in bond_slave_changelink() 220 struct bonding *bond = netdev_priv(bond_dev); in bond_changelink() local 232 err = __bond_opt_set(bond, BOND_OPT_MODE, &newval, in bond_changelink() 250 err = __bond_opt_set(bond, BOND_OPT_ACTIVE_SLAVE, &newval, in bond_changelink() 259 err = __bond_opt_set(bond, BOND_OPT_MIIMON, &newval, in bond_changelink() 268 err = __bond_opt_set(bond, BOND_OPT_UPDELAY, &newval, in bond_changelink() [all …]
|
| H A D | bond_3ad.c | 138 * __get_first_agg - get the first aggregator in the bond 141 * Return the aggregator of the first slave in @bond, or %NULL if it can't be 147 struct bonding *bond = __get_bond_by_port(port); in __get_first_agg() local 151 /* If there's no bond for this port, or bond has no slaves */ in __get_first_agg() 152 if (bond == NULL) in __get_first_agg() 156 first_slave = bond_first_slave_rcu(bond); in __get_first_agg() 261 struct bonding *bond = __get_bond_by_port(port); in __get_agg_selection_mode() local 263 if (bond == NULL) in __get_agg_selection_mode() 266 return bond in __get_agg_selection_mode() 275 struct bonding *bond = __get_bond_by_port(port); __check_agg_selection_timer() local 447 const struct bonding *bond = bond_get_bond_by_slave(port->slave); __ad_actor_update_port() local 873 struct bonding *bond = aggregator->slave->bond; __get_active_agg() local 1033 struct bonding *bond = port->slave->bond; ad_cond_set_peer_notif() local 1046 struct bonding *bond = __get_bond_by_port(port); ad_mux_machine() local 1573 struct bonding *bond; ad_port_selection_logic() local 1867 struct bonding *bond = agg->slave->bond; ad_agg_selection_logic() local 2237 bond_3ad_initiate_agg_selection(struct bonding * bond,int timeout) bond_3ad_initiate_agg_selection() argument 2248 bond_3ad_initialize(struct bonding * bond) bond_3ad_initialize() argument 2274 struct bonding *bond = bond_get_bond_by_slave(slave); bond_3ad_bind_slave() local 2331 struct bonding *bond = slave->bond; bond_3ad_unbind_slave() local 2489 bond_3ad_update_ad_actor_settings(struct bonding * bond) bond_3ad_update_ad_actor_settings() argument 2520 bond_agg_timer_advance(struct bonding * bond) bond_agg_timer_advance() argument 2551 struct bonding *bond = container_of(work, struct bonding, bond_3ad_state_machine_handler() local 2641 struct bonding *bond = slave->bond; bond_3ad_rx_indication() local 2839 bond_3ad_set_carrier(struct bonding * bond) bond_3ad_set_carrier() argument 2881 __bond_3ad_get_active_agg_info(const struct bonding * bond,struct ad_info * ad_info) __bond_3ad_get_active_agg_info() argument 2914 bond_3ad_get_active_agg_info(const struct bonding * bond,struct ad_info * ad_info) bond_3ad_get_active_agg_info() argument 2925 bond_3ad_lacpdu_recv(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_3ad_lacpdu_recv() argument 2957 bond_3ad_update_lacp_rate(struct bonding * bond) bond_3ad_update_lacp_rate() argument 2982 bond_3ad_update_lacp_active(struct bonding * bond) bond_3ad_update_lacp_active() argument [all...] |
| H A D | bond_sysfs_slave.c | 64 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_aggregator_id_show() 84 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_actor_oper_port_state_show() 99 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_partner_oper_port_state_show()
|
| /linux/include/net/ |
| H A D | bonding.h | 51 #define BOND_MODE(bond) ((bond)->params.mode) argument 54 #define bond_slave_list(bond) (&(bond)->dev->adj_list.lower) argument 56 #define bond_has_slaves(bond) !list_empty(bond_slave_list(bond)) argument 59 #define bond_first_slave(bond) \ argument 60 (bond_has_slaves(bond) ? \ 61 netdev_adjacent_get_private(bond_slave_list(bond)->next) : \ 63 #define bond_last_slave(bond) \ argument 64 (bond_has_slaves(bond) ? \ 65 netdev_adjacent_get_private(bond_slave_list(bond)->prev) : \ 69 #define bond_first_slave_rcu(bond) \ argument [all …]
|
| H A D | bond_alb.h | 14 #define BOND_ALB_INFO(bond) ((bond)->alb_info) argument 23 #define BOND_ALB_LP_INTERVAL(bond) (bond->params.lp_interval) /* In seconds, periodic send of argument 30 #define BOND_ALB_LP_TICKS(bond) (BOND_ALB_LP_INTERVAL(bond) \ argument 159 int bond_alb_initialize(struct bonding *bond, int rlb_enabled); 160 void bond_alb_deinitialize(struct bonding *bond); 161 int bond_alb_init_slave(struct bonding *bond, struct slave *slave); 162 void bond_alb_deinit_slave(struct bonding *bond, struc [all...] |
| H A D | bond_3ad.h | 188 struct slave *slave; /* pointer to the bond slave that this aggregator belongs to */ 238 struct slave *slave; /* pointer to the bond slave that this port belongs to */ 256 #define BOND_AD_INFO(bond) ((bond)->ad_info) 291 void bond_3ad_initialize(struct bonding *bond); in bond_3ad_churn_desc() 295 void bond_3ad_initiate_agg_selection(struct bonding *bond, int timeout); in bond_3ad_churn_desc() 298 int bond_3ad_get_active_agg_info(const struct bonding *bond, struct ad_info *ad_info); 299 int __bond_3ad_get_active_agg_info(const struct bonding *bond, 301 int bond_3ad_lacpdu_recv(const struct sk_buff *skb, struct bonding *bond, 303 int bond_3ad_set_carrier(struct bonding *bond); 263 BOND_AD_INFO(bond) global() argument [all...] |
| /linux/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_lag.c | 32 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() argument 135 bond_mask = lan966x_lag_get_mask(lan966x, bond); in lan966x_lag_port_join() 139 port->bond = bond; in lan966x_lag_port_join() [all …]
|
| H A D | lan966x_mac.c | 217 mac_entry->lag = port->bond ? true : false; in lan966x_mac_alloc_entry() 306 port->bond ?: port->dev); in lan966x_mac_add_entry() 482 port->bond ?: port->dev); in lan966x_mac_irq_process() 526 mac, vid, port->bond ?: port->dev); in lan966x_mac_irq_process()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
| H A D | bond.c | 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() 280 struct mlx5e_rep_bond *bond; in mlx5e_rep_esw_bond_netevent() local 286 bond = container_of(nb, struct mlx5e_rep_bond, nb); in mlx5e_rep_esw_bond_netevent() 290 if (rpriv->uplink_priv.bond != bond) in mlx5e_rep_esw_bond_netevent() 318 uplink_priv->bond = kvzalloc_obj(*uplink_priv->bond); in mlx5e_rep_bond_init() 319 if (!uplink_priv->bond) { in mlx5e_rep_bond_init() 324 INIT_LIST_HEAD(&uplink_priv->bond->metadata_list); in mlx5e_rep_bond_init() 325 uplink_priv->bond->nb.notifier_call = mlx5e_rep_esw_bond_netevent; in mlx5e_rep_bond_init() 327 &uplink_priv->bond->nb, in mlx5e_rep_bond_init() [all …]
|
| /linux/tools/testing/selftests/drivers/net/bonding/ |
| H A D | bond-break-lacpdu-tx.sh | 32 ip link del veth1-bond >/dev/null 2>&1 || : 33 ip link del veth2-bond >/dev/null 2>&1 || : 44 ip link add fbond type bond mode 4 miimon 200 xmit_hash_policy 1 \ 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 type veth peer name veth2-end 60 ip link set veth1-bond master fbond 61 ip link set veth2-bond master fbond
|
| H A D | Makefile | 5 bond-arp-interval-causes-panic.sh \ 6 bond-break-lacpdu-tx.sh \ 7 bond-eth-type-change.sh \ 8 bond-lladdr-target.sh \
|
| H A D | bond-eth-type-change.sh | 40 ip link add name "$devbond0" type bond 43 ip link set dev "$devbond0" type bond mode active-backup 46 ip link add name "$devbond1" type bond 47 ip link add name "$devbond2" type bond
|
| H A D | netcons_over_bonding.sh | 64 if ! ip -n "${TXNS}" link add "${BOND_TX_MAIN_IF}" type bond mode balance-rr 89 link add "${BOND_RX_MAIN_IF}" type bond mode balance-rr 190 link delete "${BOND_TX_MAIN_IF}" type bond 237 link add "${BOND_TX_MAIN_IF}" type bond mode balance-rr
|
| H A D | bond-arp-interval-causes-panic.sh | 31 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 D | bond_passive_lacp.sh | 48 ip -n "${s_ns}" link add bond0 type bond mode 802.3ad lacp_active on lacp_rate fast 52 ip -n "${c_ns}" link add bond0 type bond mode 802.3ad lacp_active off lacp_rate fast
|
| H A D | bond_vlan_real_dev.sh | 152 ip -n "$NS" link add dl_bond0 type bond mode active-backup 157 ip -n "$NS" link add dl_bond1 type bond mode active-backup
|
| H A D | bond_topo_2d1c.sh | 63 ip -n ${s_ns} link add bond0 type bond mode active-backup miimon 100 93 ip -n ${s_ns} link add bond0 type bond $param
|
| /linux/drivers/net/ethernet/mscc/ |
| H A D | ocelot.c | 1721 static u32 ocelot_get_bond_mask(struct ocelot *ocelot, struct net_device *bond) in ocelot_get_bond_mask() argument 1734 if (ocelot_port->bond == bond) in ocelot_get_bond_mask() 1744 int ocelot_bond_get_id(struct ocelot *ocelot, struct net_device *bond) in ocelot_bond_get_id() argument 1746 int bond_mask = ocelot_get_bond_mask(ocelot, bond); in ocelot_bond_get_id() 1781 if (cpu->bond) in ocelot_dsa_8021q_cpu_assigned_ports() 1782 mask &= ~ocelot_get_bond_mask(ocelot, cpu->bond); in ocelot_dsa_8021q_cpu_assigned_ports() 1798 if (cpu_port->bond) in ocelot_port_assigned_dsa_8021q_cpu_mask() 1799 return ocelot_get_bond_mask(ocelot, cpu_port->bond); in ocelot_port_assigned_dsa_8021q_cpu_mask() 1864 struct net_device *bond in ocelot_apply_bridge_fwd_mask() local 2312 struct net_device *bond; ocelot_set_aggr_pgids() local 2372 struct net_device *bond; ocelot_setup_logical_port_ids() local 2466 ocelot_migrate_lag_fdbs(struct ocelot * ocelot,struct net_device * bond,int lag) ocelot_migrate_lag_fdbs() argument 2496 ocelot_port_lag_join(struct ocelot * ocelot,int port,struct net_device * bond,struct netdev_lag_upper_info * info,struct netlink_ext_ack * extack) ocelot_port_lag_join() argument 2521 ocelot_port_lag_leave(struct ocelot * ocelot,int port,struct net_device * bond) ocelot_port_lag_leave() argument 2559 ocelot_lag_fdb_add(struct ocelot * ocelot,struct net_device * bond,const unsigned char * addr,u16 vid,const struct net_device * bridge) ocelot_lag_fdb_add() argument 2595 ocelot_lag_fdb_del(struct ocelot * ocelot,struct net_device * bond,const unsigned char * addr,u16 vid,const struct net_device * bridge) ocelot_lag_fdb_del() argument [all...] |
| /linux/tools/testing/selftests/net/ |
| H A D | vlan_hw_filter.sh | 41 ip netns exec ${NETNS} ip link add bond0 type bond mode 0 55 ip netns exec ${NETNS} ip link add bond0 type bond mode 0 69 ip netns exec ${NETNS} ip link add bond0 type bond mode 0 84 ip netns exec ${NETNS} ip link add bond0 type bond mode 0 96 ip netns exec ${NETNS} ip link add bond0 up type bond mode 0
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | xdp_bonding.c | 389 int veth, bond, err; in test_xdp_bonding_attach() local 399 bond = if_nametoindex("bond"); in test_xdp_bonding_attach() 400 if (!ASSERT_GE(bond, 0, "if_nametoindex bond")) in test_xdp_bonding_attach() 421 link2 = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, bond); in test_xdp_bonding_attach() 429 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, bond); in test_xdp_bonding_attach() 451 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, bond); in test_xdp_bonding_attach() 468 int bond, err; in test_xdp_bonding_nested() local 473 bond = if_nametoindex("bond"); in test_xdp_bonding_nested() 474 if (!ASSERT_GE(bond, 0, "if_nametoindex bond")) in test_xdp_bonding_nested() 491 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, bond); in test_xdp_bonding_nested()
|
| /linux/drivers/iommu/riscv/ |
| H A D | iommu.c | 867 * The device pointer and IOMMU data remain stable in the bond struct after 869 * completion of the _release_device() call. The release of the bond structure 882 struct riscv_iommu_bond *bond; in riscv_iommu_bond_link() 885 bond = kzalloc_obj(*bond); in riscv_iommu_bond_link() 886 if (!bond) in riscv_iommu_bond_link() 888 bond->dev = dev; in riscv_iommu_bond_link() 899 list_add_rcu(&bond->list, bonds); in riscv_iommu_bond_link() 912 struct riscv_iommu_bond *bond, *found = NULL; in riscv_iommu_bond_unlink() 920 list_for_each_entry(bond, in riscv_iommu_bond_unlink() 881 struct riscv_iommu_bond *bond; riscv_iommu_bond_link() local 911 struct riscv_iommu_bond *bond, *found = NULL; riscv_iommu_bond_unlink() local 1055 struct riscv_iommu_bond *bond; riscv_iommu_iotlb_inval() local [all...] |