Home
last modified time | relevance | path

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

12

/linux/drivers/net/bonding/
H A Dbond_options.c3 * drivers/net/bond/bond_options.c - bonding options
20 static int bond_option_active_slave_set(struct bonding *bond,
22 static int bond_option_miimon_set(struct bonding *bond,
24 static int bond_option_updelay_set(struct bonding *bond,
26 static int bond_option_downdelay_set(struct bonding *bond,
28 static int bond_option_peer_notif_delay_set(struct bonding *bond,
30 static int bond_option_use_carrier_set(struct bonding *bond,
32 static int bond_option_arp_interval_set(struct bonding *bond,
34 static int bond_option_arp_ip_target_add(struct bonding *bond, __be32 target);
35 static int bond_option_arp_ip_target_rem(struct bonding *bond, __be3
670 bond_opt_check_deps(struct bonding * bond,const struct bond_option * opt) bond_opt_check_deps() argument
685 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
703 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
779 __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
818 __bond_opt_set_notify(struct bonding * bond,unsigned int option,struct bond_opt_value * val) __bond_opt_set_notify() argument
842 bond_opt_tryset_rtnl(struct bonding * bond,unsigned int option,char * buf) bond_opt_tryset_rtnl() argument
871 bond_set_xfrm_features(struct bonding * bond) bond_set_xfrm_features() argument
884 bond_option_mode_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_mode_set() argument
934 bond_option_active_slave_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_active_slave_set() argument
998 bond_option_miimon_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_miimon_set() argument
1040 _bond_option_delay_set(struct bonding * bond,const struct bond_opt_value * newval,const char * name,int * target) _bond_option_delay_set() argument
1068 bond_option_updelay_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_updelay_set() argument
1075 bond_option_downdelay_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_downdelay_set() argument
1082 bond_option_peer_notif_delay_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_peer_notif_delay_set() argument
1091 bond_option_use_carrier_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_use_carrier_set() argument
1105 bond_option_arp_interval_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_arp_interval_set() argument
1140 _bond_options_arp_ip_target_set(struct bonding * bond,int slot,__be32 target,unsigned long last_rx) _bond_options_arp_ip_target_set() argument
1155 _bond_option_arp_ip_target_add(struct bonding * bond,__be32 target) _bond_option_arp_ip_target_add() argument
1185 bond_option_arp_ip_target_add(struct bonding * bond,__be32 target) bond_option_arp_ip_target_add() argument
1190 bond_option_arp_ip_target_rem(struct bonding * bond,__be32 target) bond_option_arp_ip_target_rem() argument
1229 bond_option_arp_ip_targets_clear(struct bonding * bond) bond_option_arp_ip_targets_clear() argument
1237 bond_option_arp_ip_targets_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_arp_ip_targets_set() argument
1264 slave_can_set_ns_maddr(const struct bonding * bond,struct slave * slave) slave_can_set_ns_maddr() argument
1288 slave_set_ns_maddrs(struct bonding * bond,struct slave * slave,bool add) slave_set_ns_maddrs() argument
1312 bond_slave_ns_maddrs_add(struct bonding * bond,struct slave * slave) bond_slave_ns_maddrs_add() argument
1319 bond_slave_ns_maddrs_del(struct bonding * bond,struct slave * slave) bond_slave_ns_maddrs_del() argument
1343 slave_set_ns_maddr(struct bonding * bond,struct slave * slave,struct in6_addr * target,struct in6_addr * slot) slave_set_ns_maddr() argument
1365 _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
1382 bond_option_ns_ip6_targets_clear(struct bonding * bond) bond_option_ns_ip6_targets_clear() argument
1391 bond_option_ns_ip6_targets_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_ns_ip6_targets_set() argument
1424 bond_option_ns_ip6_targets_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_ns_ip6_targets_set() argument
1430 slave_set_ns_maddrs(struct bonding * bond,struct slave * slave,bool add) slave_set_ns_maddrs() argument
1432 bond_slave_ns_maddrs_add(struct bonding * bond,struct slave * slave) bond_slave_ns_maddrs_add() argument
1434 bond_slave_ns_maddrs_del(struct bonding * bond,struct slave * slave) bond_slave_ns_maddrs_del() argument
1437 bond_option_arp_validate_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_arp_validate_set() argument
1456 bond_option_arp_all_targets_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_arp_all_targets_set() argument
1466 bond_option_missed_max_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_missed_max_set() argument
1476 bond_option_prio_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_prio_set() argument
1497 bond_option_primary_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_primary_set() argument
1545 bond_option_primary_reselect_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_primary_reselect_set() argument
1559 bond_option_fail_over_mac_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_fail_over_mac_set() argument
1569 bond_option_xmit_hash_policy_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_xmit_hash_policy_set() argument
1579 bond_option_resend_igmp_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_resend_igmp_set() argument
1589 bond_option_num_peer_notif_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_num_peer_notif_set() argument
1597 bond_option_all_slaves_active_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_all_slaves_active_set() argument
1618 bond_option_min_links_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_min_links_set() argument
1629 bond_option_lp_interval_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_lp_interval_set() argument
1637 bond_option_pps_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_pps_set() argument
1657 bond_option_lacp_active_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_lacp_active_set() argument
1667 bond_option_lacp_rate_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_lacp_rate_set() argument
1678 bond_option_ad_select_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_ad_select_set() argument
1688 bond_option_queue_id_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_queue_id_set() argument
1749 bond_option_slaves_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_slaves_set() argument
1797 bond_option_tlb_dynamic_lb_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_tlb_dynamic_lb_set() argument
1807 bond_option_ad_actor_sys_prio_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_ad_actor_sys_prio_set() argument
1819 bond_option_ad_actor_system_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_ad_actor_system_set() argument
1847 bond_option_ad_user_port_key_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_ad_user_port_key_set() argument
1857 bond_option_coupled_control_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_coupled_control_set() argument
1867 bond_option_broadcast_neigh_set(struct bonding * bond,const struct bond_opt_value * newval) bond_option_broadcast_neigh_set() argument
[all...]
H A Dbond_main.c269 static bool bond_time_in_interval(struct bonding *bond, unsigned long last_act,
296 * @bond: bond device that got this skb for tx.
300 netdev_tx_t bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, in bond_dev_queue_xmit() argument
309 if (unlikely(netpoll_tx_running(bond->dev))) in bond_dev_queue_xmit()
310 return bond_netpoll_send_skb(bond_get_slave_by_dev(bond, slave_dev), skb); in bond_dev_queue_xmit()
315 static bool bond_sk_check(struct bonding *bond) in bond_sk_check() argument
317 switch (BOND_MODE(bond)) { in bond_sk_check()
320 if (bond->params.xmit_policy == BOND_XMIT_POLICY_LAYER34) in bond_sk_check()
328 bool bond_xdp_check(struct bonding *bond, in argument
374 struct bonding *bond = netdev_priv(bond_dev); bond_vlan_rx_add_vid() local
408 struct bonding *bond = netdev_priv(bond_dev); bond_vlan_rx_kill_vid() local
435 struct bonding *bond; bond_ipsec_dev() local
469 struct bonding *bond; bond_ipsec_add_sa() local
517 bond_ipsec_add_sa_all(struct bonding * bond) bond_ipsec_add_sa_all() argument
594 bond_ipsec_del_sa_all(struct bonding * bond) bond_ipsec_del_sa_all() argument
640 struct bonding *bond; bond_ipsec_free_sa() local
754 bond_set_carrier(struct bonding * bond) bond_set_carrier() argument
848 bond_check_dev_link(struct bonding * bond,struct net_device * slave_dev,int reporting) bond_check_dev_link() argument
907 bond_set_promiscuity(struct bonding * bond,int inc) bond_set_promiscuity() argument
930 bond_set_allmulti(struct bonding * bond,int inc) bond_set_allmulti() argument
958 struct bonding *bond = container_of(work, struct bonding, bond_resend_igmp_join_requests_delayed() local
978 struct bonding *bond = netdev_priv(bond_dev); bond_hw_addr_flush() local
994 bond_hw_addr_swap(struct bonding * bond,struct slave * new_active,struct slave * old_active) bond_hw_addr_swap() argument
1053 bond_get_old_active(struct bonding * bond,struct slave * new_active) bond_get_old_active() argument
1076 bond_do_fail_over_mac(struct bonding * bond,struct slave * new_active,struct slave * old_active) bond_do_fail_over_mac() argument
1156 bond_choose_primary_or_current(struct bonding * bond) bond_choose_primary_or_current() argument
1214 bond_find_best_slave(struct bonding * bond) bond_find_best_slave() argument
1238 bond_should_notify_peers(struct bonding * bond) bond_should_notify_peers() argument
1285 bond_change_active_slave(struct bonding * bond,struct slave * new_active) bond_change_active_slave() argument
1399 bond_select_active_slave(struct bonding * bond) bond_select_active_slave() argument
1454 struct bonding *bond = netdev_priv(bond_dev); bond_poll_controller() local
1482 struct bonding *bond = netdev_priv(bond_dev); bond_netpoll_cleanup() local
1493 struct bonding *bond = netdev_priv(dev); bond_netpoll_setup() local
1525 struct bonding *bond = netdev_priv(dev); bond_fix_features() local
1558 bond_compute_features(struct bonding * bond) bond_compute_features() argument
1664 bond_should_deliver_exact_match(struct sk_buff * skb,struct slave * slave,struct bonding * bond) bond_should_deliver_exact_match() argument
1680 struct bonding *bond; bond_handle_frame() local
1738 bond_lag_tx_type(struct bonding * bond) bond_lag_tx_type() argument
1755 bond_lag_hash_type(struct bonding * bond,enum netdev_lag_tx_type type) bond_lag_hash_type() argument
1779 bond_master_upper_dev_link(struct bonding * bond,struct slave * slave,struct netlink_ext_ack * extack) bond_master_upper_dev_link() argument
1799 bond_upper_dev_unlink(struct bonding * bond,struct slave * slave) bond_upper_dev_unlink() argument
1808 struct bonding *bond = bond_get_bond_by_slave(slave); slave_kobj_release() local
1836 bond_alloc_slave(struct bonding * bond,struct net_device * slave_dev) bond_alloc_slave() argument
1864 bond_fill_ifbond(struct bonding * bond,struct ifbond * info) bond_fill_ifbond() argument
1941 struct bonding *bond = netdev_priv(bond_dev); bond_xdp_set_features() local
1965 struct bonding *bond = netdev_priv(bond_dev); bond_enslave() local
2512 struct bonding *bond = netdev_priv(bond_dev); __bond_release_one() local
2699 struct bonding *bond = netdev_priv(bond_dev); bond_release_and_destroy() local
2715 struct bonding *bond = netdev_priv(bond_dev); bond_info_query() local
2722 struct bonding *bond = netdev_priv(bond_dev); bond_slave_info_query() local
2741 bond_miimon_inspect(struct bonding * bond) bond_miimon_inspect() argument
2847 bond_miimon_link_change(struct bonding * bond,struct slave * slave,char link) bond_miimon_link_change() argument
2865 bond_miimon_commit(struct bonding * bond) bond_miimon_commit() argument
2969 struct bonding *bond = container_of(work, struct bonding, bond_mii_monitor() local
3031 bond_has_this_ip(struct bonding * bond,__be32 ip) bond_has_this_ip() argument
3162 bond_arp_send_all(struct bonding * bond,struct slave * slave) bond_arp_send_all() argument
3216 bond_validate_arp(struct bonding * bond,struct slave * slave,__be32 sip,__be32 tip) bond_validate_arp() argument
3236 bond_arp_rcv(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_arp_rcv() argument
3341 bond_ns_send_all(struct bonding * bond,struct slave * slave) bond_ns_send_all() argument
3411 bond_has_this_ip6(struct bonding * bond,struct in6_addr * addr) bond_has_this_ip6() argument
3429 bond_validate_na(struct bonding * bond,struct slave * slave,struct in6_addr * saddr,struct in6_addr * daddr) bond_validate_na() argument
3457 bond_na_rcv(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_na_rcv() argument
3506 bond_rcv_validate(const struct sk_buff * skb,struct bonding * bond,struct slave * slave) bond_rcv_validate() argument
3537 bond_send_validate(struct bonding * bond,struct slave * slave) bond_send_validate() argument
3549 bond_time_in_interval(struct bonding * bond,unsigned long last_act,int mod) bond_time_in_interval() argument
3565 bond_loadbalance_arp_mon(struct bonding * bond) bond_loadbalance_arp_mon() argument
3680 bond_ab_arp_inspect(struct bonding * bond) bond_ab_arp_inspect() argument
3750 bond_ab_arp_commit(struct bonding * bond) bond_ab_arp_commit() argument
3842 bond_ab_arp_probe(struct bonding * bond) bond_ab_arp_probe() argument
3923 bond_activebackup_arp_mon(struct bonding * bond) bond_activebackup_arp_mon() argument
3981 struct bonding *bond = container_of(work, struct bonding, bond_arp_monitor() local
3993 bond_event_changename(struct bonding * bond) bond_event_changename() argument
4033 struct bonding *bond; bond_slave_netdev_event() local
4272 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
4336 __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
4370 bond_xmit_hash(struct bonding * bond,struct sk_buff * skb) bond_xmit_hash() argument
4388 bond_xmit_hash_xdp(struct bonding * bond,struct xdp_buff * xdp) bond_xmit_hash_xdp() argument
4403 bond_work_init_all(struct bonding * bond) bond_work_init_all() argument
4414 bond_work_cancel_all(struct bonding * bond) bond_work_cancel_all() argument
4426 struct bonding *bond = netdev_priv(bond_dev); bond_open() local
4489 struct bonding *bond = netdev_priv(bond_dev); bond_close() local
4591 struct bonding *bond = netdev_priv(bond_dev); bond_get_stats() local
4623 struct bonding *bond = netdev_priv(bond_dev); bond_eth_ioctl() local
4660 struct bonding *bond = netdev_priv(bond_dev); bond_do_ioctl() local
4759 struct bonding *bond = netdev_priv(bond_dev); bond_change_rx_flags() local
4772 struct bonding *bond = netdev_priv(bond_dev); bond_set_rx_mode() local
4794 struct bonding *bond = netdev_priv(n->dev); bond_neigh_init() local
4850 struct bonding *bond = netdev_priv(bond_dev); bond_change_mtu() local
4907 struct bonding *bond = netdev_priv(bond_dev); bond_set_mac_address() local
4979 bond_get_slave_by_id(struct bonding * bond,int slave_id) bond_get_slave_by_id() argument
5014 bond_rr_gen_slave_id(struct bonding * bond) bond_rr_gen_slave_id() argument
5039 bond_xmit_roundrobin_slave_get(struct bonding * bond,struct sk_buff * skb) bond_xmit_roundrobin_slave_get() argument
5077 bond_xdp_xmit_roundrobin_slave_get(struct bonding * bond,struct xdp_buff * xdp) bond_xdp_xmit_roundrobin_slave_get() argument
5121 struct bonding *bond = netdev_priv(bond_dev); bond_xmit_roundrobin() local
5131 bond_xmit_activebackup_slave_get(struct bonding * bond) bond_xmit_activebackup_slave_get() argument
5142 struct bonding *bond = netdev_priv(bond_dev); bond_xmit_activebackup() local
5156 bond_slave_arr_work_rearm(struct bonding * bond,unsigned long delay) bond_slave_arr_work_rearm() argument
5164 struct bonding *bond = container_of(work, struct bonding, bond_slave_arr_handler() local
5206 bond_set_slave_arr(struct bonding * bond,struct bond_up_slave * usable_slaves,struct bond_up_slave * all_slaves) bond_set_slave_arr() argument
5221 bond_reset_slave_arr(struct bonding * bond) bond_reset_slave_arr() argument
5234 bond_update_slave_arr(struct bonding * bond,struct slave * skipslave) bond_update_slave_arr() argument
5304 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
5321 bond_xdp_xmit_3ad_xor_slave_get(struct bonding * bond,struct xdp_buff * xdp) bond_xdp_xmit_3ad_xor_slave_get() argument
5340 struct bonding *bond = netdev_priv(dev); bond_should_broadcast_neighbor() local
5375 struct bonding *bond = netdev_priv(dev); bond_3ad_xor_xmit() local
5394 struct bonding *bond = netdev_priv(bond_dev); bond_xmit_broadcast() local
5442 bond_slave_override(struct bonding * bond,struct sk_buff * skb) bond_slave_override() argument
5493 struct bonding *bond = netdev_priv(master_dev); bond_xmit_get_slave() local
5577 __bond_sk_get_lower_dev(struct bonding * bond,struct sock * sk) __bond_sk_get_lower_dev() argument
5599 struct bonding *bond = netdev_priv(dev); bond_sk_get_lower_dev() local
5611 bond_tls_device_xmit(struct bonding * bond,struct sk_buff * skb,struct net_device * dev) bond_tls_device_xmit() argument
5628 struct bonding *bond = netdev_priv(dev); __bond_start_xmit() local
5666 struct bonding *bond = netdev_priv(dev); bond_start_xmit() local
5688 struct bonding *bond = netdev_priv(bond_dev); bond_xdp_get_xmit_slave() local
5760 struct bonding *bond = netdev_priv(dev); bond_xdp_set() local
5887 struct bonding *bond = netdev_priv(dev); bond_hwtstamp_get() local
5906 struct bonding *bond = netdev_priv(dev); bond_hwtstamp_set() local
5927 struct bonding *bond = netdev_priv(bond_dev); bond_ethtool_get_link_ksettings() local
5971 struct bonding *bond = netdev_priv(bond_dev); bond_ethtool_get_ts_info() local
6058 struct bonding *bond = netdev_priv(bond_dev); bond_destructor() local
6068 struct bonding *bond = netdev_priv(bond_dev); bond_setup() local
6135 struct bonding *bond = netdev_priv(bond_dev); bond_uninit() local
6553 struct bonding *bond = netdev_priv(bond_dev); bond_init() local
6595 struct bonding *bond; bond_create() local
6653 struct bonding *bond, *tmp_bond; bond_net_exit_rtnl() local
[all...]
H A Dbond_sysfs.c40 struct bonding *bond; in bonding_show_bonds() local
45 list_for_each_entry_rcu(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
200 struct bonding *bond = to_bond(d); bonding_show_mode() local
214 struct bonding *bond = to_bond(d); bonding_show_xmit_hash() local
229 struct bonding *bond = to_bond(d); bonding_show_arp_validate() local
245 struct bonding *bond = to_bond(d); bonding_show_arp_all_targets() local
261 struct bonding *bond = to_bond(d); bonding_show_fail_over_mac() local
277 struct bonding *bond = to_bond(d); bonding_show_arp_interval() local
289 struct bonding *bond = to_bond(d); bonding_show_arp_targets() local
310 struct bonding *bond = to_bond(d); bonding_show_missed_max() local
322 struct bonding *bond = to_bond(d); bonding_show_downdelay() local
333 struct bonding *bond = to_bond(d); bonding_show_updelay() local
345 struct bonding *bond = to_bond(d); bonding_show_peer_notif_delay() local
358 struct bonding *bond = to_bond(d); bonding_show_lacp_active() local
372 struct bonding *bond = to_bond(d); bonding_show_lacp_rate() local
386 struct bonding *bond = to_bond(d); bonding_show_min_links() local
397 struct bonding *bond = to_bond(d); bonding_show_ad_select() local
412 struct bonding *bond = to_bond(d); bonding_show_num_peer_notif() local
426 struct bonding *bond = to_bond(d); bonding_show_miimon() local
438 struct bonding *bond = to_bond(d); bonding_show_primary() local
458 struct bonding *bond = to_bond(d); bonding_show_primary_reselect() local
475 struct bonding *bond = to_bond(d); bonding_show_carrier() local
488 struct bonding *bond = to_bond(d); bonding_show_active_slave() local
508 struct bonding *bond = to_bond(d); bonding_show_mii_status() local
521 struct bonding *bond = to_bond(d); bonding_show_ad_aggregator() local
542 struct bonding *bond = to_bond(d); bonding_show_ad_num_ports() local
563 struct bonding *bond = to_bond(d); bonding_show_ad_actor_key() local
584 struct bonding *bond = to_bond(d); bonding_show_ad_partner_key() local
605 struct bonding *bond = to_bond(d); bonding_show_ad_partner_mac() local
623 struct bonding *bond = to_bond(d); bonding_show_queue_id() local
658 struct bonding *bond = to_bond(d); bonding_show_slaves_active() local
670 struct bonding *bond = to_bond(d); bonding_show_resend_igmp() local
682 struct bonding *bond = to_bond(d); bonding_show_lp_interval() local
693 struct bonding *bond = to_bond(d); bonding_show_tlb_dynamic_lb() local
704 struct bonding *bond = to_bond(d); bonding_show_packets_per_slave() local
716 struct bonding *bond = to_bond(d); bonding_show_ad_actor_sys_prio() local
730 struct bonding *bond = to_bond(d); bonding_show_ad_actor_system() local
745 struct bonding *bond = to_bond(d); bonding_show_ad_user_port_key() local
846 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
90 bond_debug_register(struct bonding * bond) bond_debug_register() argument
94 bond_debug_unregister(struct bonding * bond) bond_debug_unregister() argument
98 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
61 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in bond_fill_slave_info()
152 struct bonding *bond = netdev_priv(bond_dev); in bond_slave_changelink() local
167 err = __bond_opt_set(bond, BOND_OPT_QUEUE_ID, &newval, in bond_slave_changelink()
177 err = __bond_opt_set(bond, BOND_OPT_PRIO, &newval, in bond_slave_changelink()
190 struct bonding *bond = netdev_priv(bond_dev); in bond_changelink() local
202 err = __bond_opt_set(bond, BOND_OPT_MODE, &newval, in bond_changelink()
220 err = __bond_opt_set(bond, BOND_OPT_ACTIVE_SLAVE, &newval, in bond_changelink()
229 err = __bond_opt_set(bond, BOND_OPT_MIIMON, &newval, in bond_changelink()
238 err = __bond_opt_set(bond, BOND_OPT_UPDELA in bond_changelink()
592 struct bonding *bond = netdev_priv(bond_dev); bond_newlink() local
648 bond_option_active_slave_get_ifindex(struct bonding * bond) bond_option_active_slave_get_ifindex() argument
663 struct bonding *bond = netdev_priv(bond_dev); bond_fill_info() local
882 struct bonding *bond; bond_fill_linkxstats() local
[all...]
/linux/include/net/
H A Dbonding.h51 #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
69 bond_first_slave_rcu(bond) global() argument
72 bond_is_first_slave(bond,pos) global() argument
73 bond_is_last_slave(bond,pos) global() argument
83 bond_for_each_slave(bond,pos,iter) global() argument
87 bond_for_each_slave_rcu(bond,pos,iter) global() argument
162 struct bonding *bond; /* our master */ global() member
290 bond_get_slave_by_dev(struct bonding * bond,struct net_device * slave_dev) bond_get_slave_by_dev() argument
301 bond_should_override_tx_queue(struct bonding * bond) bond_should_override_tx_queue() argument
307 bond_is_lb(const struct bonding * bond) bond_is_lb() argument
313 bond_needs_speed_duplex(const struct bonding * bond) bond_needs_speed_duplex() argument
318 bond_is_nondyn_tlb(const struct bonding * bond) bond_is_nondyn_tlb() argument
323 bond_mode_can_use_xmit_hash(const struct bonding * bond) bond_mode_can_use_xmit_hash() argument
331 bond_mode_uses_xmit_hash(const struct bonding * bond) bond_mode_uses_xmit_hash() argument
350 bond_uses_primary(struct bonding * bond) bond_uses_primary() argument
355 bond_option_active_slave_get_rcu(struct bonding * bond) bond_option_active_slave_get_rcu() argument
404 bond_slave_state_change(struct bonding * bond) bond_slave_state_change() argument
417 bond_slave_state_notify(struct bonding * bond) bond_slave_state_notify() argument
494 slave_do_arp_validate(struct bonding * bond,struct slave * slave) slave_do_arp_validate() argument
500 slave_do_arp_validate_only(struct bonding * bond) slave_do_arp_validate_only() argument
522 slave_oldest_target_arp_rx(struct bonding * bond,struct slave * slave) slave_oldest_target_arp_rx() argument
535 slave_last_rx(struct bonding * bond,struct slave * slave) slave_last_rx() argument
641 bond_slave_link_notify(struct bonding * bond) bond_slave_link_notify() argument
721 bond_create_proc_entry(struct bonding * bond) bond_create_proc_entry() argument
725 bond_remove_proc_entry(struct bonding * bond) bond_remove_proc_entry() argument
738 bond_slave_has_mac(struct bonding * bond,const u8 * mac) bond_slave_has_mac() argument
752 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) 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
153 int bond_alb_initialize(struct bonding *bond, int rlb_enabled);
154 void bond_alb_deinitialize(struct bonding *bond);
155 int bond_alb_init_slave(struct bonding *bond, struct slave *slave);
156 void bond_alb_deinit_slave(struct bonding *bond, struc
[all...]
H A Dbond_options.h3 * drivers/net/bond/bond_options.h - bonding options
23 * BOND_OPTFLAG_NOSLAVES - check if the bond device is empty before setting
24 * BOND_OPTFLAG_IFDOWN - check if the bond device is down before setting
120 int (*set)(struct bonding *bond, const struct bond_opt_value *val);
123 int __bond_opt_set(struct bonding *bond, unsigned int option,
126 int __bond_opt_set_notify(struct bonding *bond, unsigned int option,
128 int bond_opt_tryset_rtnl(struct bonding *bond, unsigned int option, char *buf);
161 void bond_option_arp_ip_targets_clear(struct bonding *bond);
163 void bond_option_ns_ip6_targets_clear(struct bonding *bond);
165 void bond_slave_ns_maddrs_add(struct bonding *bond, struc
[all...]
H A Dbond_3ad.h193 struct slave *slave; /* pointer to the bond slave that this aggregator belongs to */
244 struct slave *slave; /* pointer to the bond slave that this port belongs to */
262 #define BOND_AD_INFO(bond) ((bond)->ad_info) argument
296 void bond_3ad_initialize(struct bonding *bond);
300 void bond_3ad_initiate_agg_selection(struct bonding *bond, int timeout);
303 int bond_3ad_get_active_agg_info(struct bonding *bond, struct ad_info *ad_info);
304 int __bond_3ad_get_active_agg_info(struct bonding *bond,
306 int bond_3ad_lacpdu_recv(const struct sk_buff *skb, struct bonding *bond,
308 int bond_3ad_set_carrier(struct bonding *bond);
[all...]
/linux/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() 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...]
H A Dlan966x_mac.c217 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 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...]
/linux/tools/testing/selftests/drivers/net/bonding/
H A Dbond-break-lacpdu-tx.sh6 # the bond.
32 ip link del veth1-bond >/dev/null 2>&1 || :
33 ip link del veth2-bond >/dev/null 2>&1 || :
43 # create the bond
44 ip link add fbond type bond mode 4 miimon 200 xmit_hash_policy 1 \
47 # set bond address
51 # set again bond sysfs parameters
52 ip link set fbond type bond ad_actor_sys_prio 65535
55 ip link add name veth1-bond type veth peer name veth1-end
56 ip link add name veth2-bond typ
[all...]
H A DMakefile5 bond-arp-interval-causes-panic.sh \
6 bond-break-lacpdu-tx.sh \
7 bond-lladdr-target.sh \
12 bond-eth-type-change.sh \
H A Dbond-eth-type-change.sh4 # Test bond device ether type changing
21 check_err $? "MASTER flag is missing from the bond device"
24 check_err $? "SLAVE flag is missing from the bond device"
27 # test enslaved bond dev type change from ARPHRD_ETHER and back
40 ip link add name "$devbond0" type bond
43 ip link set dev "$devbond0" type bond mode active-backup
44 check_err $? "could not change bond mode to active-backup"
46 ip link add name "$devbond1" type bond
47 ip link add name "$devbond2" type bond
50 # change bond typ
[all...]
H A Dbond-arp-interval-causes-panic.sh31 ip netns exec client ip link add dev bond0 down type bond mode 1 \
40 ip netns exec client ip link set dev bond0 type bond mode 0 \
H A Dlag_lib.sh21 ip link add "$name" up type bond mode "$mode"
147 ip netns exec ${CLIENT} ip link add bond0 type bond $@
164 # force the links of the bond down
175 log_test "$1 ($2) bond recovery"
/linux/drivers/net/ethernet/mscc/
H A Docelot.c1721 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
2310 struct net_device *bond = ocelot->ports[lag]->bond; ocelot_set_aggr_pgids() local
2370 struct net_device *bond; ocelot_setup_logical_port_ids() local
2464 ocelot_migrate_lag_fdbs(struct ocelot * ocelot,struct net_device * bond,int lag) ocelot_migrate_lag_fdbs() argument
2494 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
2519 ocelot_port_lag_leave(struct ocelot * ocelot,int port,struct net_device * bond) ocelot_port_lag_leave() argument
2557 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
2593 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...]
H A Docelot_net.c1415 struct net_device *bond, in ocelot_netdevice_lag_join() argument
1426 err = ocelot_port_lag_join(ocelot, port, bond, info, extack); in ocelot_netdevice_lag_join()
1431 bridge_dev = netdev_master_upper_dev_get(bond); in ocelot_netdevice_lag_join()
1435 err = ocelot_netdevice_bridge_join(dev, bond, bridge_dev, extack); in ocelot_netdevice_lag_join()
1442 ocelot_port_lag_leave(ocelot, port, bond); in ocelot_netdevice_lag_join()
1447 struct net_device *bond) in ocelot_netdevice_pre_lag_leave() argument
1451 bridge_dev = netdev_master_upper_dev_get(bond); in ocelot_netdevice_pre_lag_leave()
1455 ocelot_netdevice_pre_bridge_leave(dev, bond); in ocelot_netdevice_pre_lag_leave()
1459 struct net_device *bond) in ocelot_netdevice_lag_leave() argument
1467 ocelot_port_lag_leave(ocelot, port, bond); in ocelot_netdevice_lag_leave()
[all...]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_bonding.c7 * and verifies that XDP_TX program loaded on a bond device
149 SYS(fail, "ip link add bond1 type bond mode %s xmit_hash_policy %s", in bonding_setup()
152 SYS(fail, "ip -netns ns_dst link add bond2 type bond mode %s xmit_hash_policy %s", in bonding_setup()
329 * to neither the ingress bond device (bond2) or its slave (veth2_1).
379 /* Test that XDP programs cannot be attached to both the bond master and slaves simultaneously */
384 int veth, bond, err; in test_xdp_bonding_attach() local
388 if (!ASSERT_OK(system("ip link add bond type bond"), "add bond")) in test_xdp_bonding_attach()
394 bond in test_xdp_bonding_attach()
463 int bond, err; test_xdp_bonding_nested() local
[all...]
/linux/tools/testing/selftests/net/
H A Dvlan_hw_filter.sh41 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/drivers/iommu/riscv/
H A Diommu.c836 * The device pointer and IOMMU data remain stable in the bond struct after
838 * completion of the _release_device() call. The release of the bond structure
851 struct riscv_iommu_bond *bond; in riscv_iommu_bond_link() local
854 bond = kzalloc(sizeof(*bond), GFP_KERNEL); in riscv_iommu_bond_link()
855 if (!bond) in riscv_iommu_bond_link()
857 bond->dev = dev; in riscv_iommu_bond_link()
868 list_add_rcu(&bond->list, bonds); in riscv_iommu_bond_link()
881 struct riscv_iommu_bond *bond, *found = NULL; in riscv_iommu_bond_unlink() local
889 list_for_each_entry(bond, in riscv_iommu_bond_unlink()
926 struct riscv_iommu_bond *bond; riscv_iommu_iotlb_inval() local
[all...]
/linux/Documentation/networking/
H A Dbonding.rst156 configuring a bond, it is recommended "tail -f /var/log/messages" be
201 use the MAC of the bond itself. It is preferred to have the
230 - A slave is added to or removed from the bond
236 - The bond's administrative state changes to up
457 and Distributing states, maintaining the bond in coupled control.
473 bond's MAC address in accordance with the selected policy.
480 bonding to set all slaves of an active-backup bond to
487 MAC address of the bond should always be the MAC
490 address of the bond changes during a failover.
515 address of the bond t
[all...]
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dq_in_q_veto.sh115 ip link add name bond1 type bond mode 802.3ad
186 ip link add name bond1 type bond mode 802.3ad
236 ip link add name bond1 type bond mode 802.3ad
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dmain.c1336 /* bond for multi-function device */
1421 mlx4_err(dev, "Failed to bond device: %d\n", ret); in mlx4_bond()
1425 mlx4_err(dev, "bond for multifunction failed\n"); in mlx4_bond()
1518 struct mlx4_bond *bond = container_of(work, struct mlx4_bond, work); in mlx4_bond_work() local
1521 if (bond->is_bonded) { in mlx4_bond_work()
1522 if (!mlx4_is_bonded(bond->dev)) { in mlx4_bond_work()
1523 err = mlx4_bond(bond->dev); in mlx4_bond_work()
1525 mlx4_err(bond->dev, "Fail to bond device\n"); in mlx4_bond_work()
1528 err = mlx4_port_map_set(bond in mlx4_bond_work()
1547 struct mlx4_bond *bond; mlx4_queue_bond_work() local
[all...]

12