Lines Matching full:bonding

8  * bonding.c: an Ethernet Bonding driver
14 * Linux Bonding
86 #include <net/bonding.h>
203 "the bonding driver sends learning packets to "
266 static bool bond_time_in_interval(struct bonding *bond, unsigned long last_act,
297 netdev_tx_t bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, in bond_dev_queue_xmit()
312 static bool bond_sk_check(struct bonding *bond) in bond_sk_check()
325 static bool bond_xdp_check(struct bonding *bond) in bond_xdp_check()
355 * and cannot be extended for a teaming solution like bonding, so there is a
364 * @bond_dev: bonding net device that got called
371 struct bonding *bond = netdev_priv(bond_dev); in bond_vlan_rx_add_vid()
398 * @bond_dev: bonding net device that got called
405 struct bonding *bond = netdev_priv(bond_dev); in bond_vlan_rx_kill_vid()
432 struct bonding *bond; in bond_ipsec_dev()
468 struct bonding *bond; in bond_ipsec_add_sa()
516 static void bond_ipsec_add_sa_all(struct bonding *bond) in bond_ipsec_add_sa_all()
564 struct bonding *bond; in bond_ipsec_del_sa()
606 static void bond_ipsec_del_sa_all(struct bonding *bond) in bond_ipsec_del_sa_all()
643 struct bonding *bond; in bond_ipsec_free_sa()
763 int bond_set_carrier(struct bonding *bond) in bond_set_carrier()
857 static int bond_check_dev_link(struct bonding *bond, in bond_check_dev_link()
912 static int bond_set_promiscuity(struct bonding *bond, int inc) in bond_set_promiscuity()
935 static int bond_set_allmulti(struct bonding *bond, int inc) in bond_set_allmulti()
957 /* Retrieve the list of registered multicast addresses for the bonding
963 struct bonding *bond = container_of(work, struct bonding, in bond_resend_igmp_join_requests_delayed()
983 struct bonding *bond = netdev_priv(bond_dev); in bond_hw_addr_flush()
999 static void bond_hw_addr_swap(struct bonding *bond, struct slave *new_active, in bond_hw_addr_swap()
1058 static struct slave *bond_get_old_active(struct bonding *bond, in bond_get_old_active()
1081 static void bond_do_fail_over_mac(struct bonding *bond, in bond_do_fail_over_mac()
1154 * @bond: our bonding struct
1163 static struct slave *bond_choose_primary_or_current(struct bonding *bond) in bond_choose_primary_or_current()
1219 * @bond: our bonding struct
1221 static struct slave *bond_find_best_slave(struct bonding *bond) in bond_find_best_slave()
1245 static bool bond_should_notify_peers(struct bonding *bond) in bond_should_notify_peers()
1264 * @bond: our bonding struct
1277 void bond_change_active_slave(struct bonding *bond, struct slave *new_active) in bond_change_active_slave()
1370 * bonding modes and the retransmission is enabled in bond_change_active_slave()
1382 * @bond: our bonding struct
1391 void bond_select_active_slave(struct bonding *bond) in bond_select_active_slave()
1446 struct bonding *bond = netdev_priv(bond_dev); in bond_poll_controller()
1474 struct bonding *bond = netdev_priv(bond_dev); in bond_netpoll_cleanup()
1485 struct bonding *bond = netdev_priv(dev); in bond_netpoll_setup()
1517 struct bonding *bond = netdev_priv(dev); in bond_fix_features()
1548 static void bond_compute_features(struct bonding *bond) in bond_compute_features()
1642 /* On bonding slaves other than the currently active slave, suppress
1647 struct bonding *bond) in bond_should_deliver_exact_match()
1663 struct bonding *bond; in bond_handle_frame()
1664 int (*recv_probe)(const struct sk_buff *, struct bonding *, in bond_handle_frame()
1693 * At the same time, packets that are passed to the bonding master in bond_handle_frame()
1721 static enum netdev_lag_tx_type bond_lag_tx_type(struct bonding *bond) in bond_lag_tx_type()
1738 static enum netdev_lag_hash bond_lag_hash_type(struct bonding *bond, in bond_lag_hash_type()
1762 static int bond_master_upper_dev_link(struct bonding *bond, struct slave *slave, in bond_master_upper_dev_link()
1782 static void bond_upper_dev_unlink(struct bonding *bond, struct slave *slave) in bond_upper_dev_unlink()
1791 struct bonding *bond = bond_get_bond_by_slave(slave); in slave_kobj_release()
1819 static struct slave *bond_alloc_slave(struct bonding *bond, in bond_alloc_slave()
1847 static void bond_fill_ifbond(struct bonding *bond, struct ifbond *info) in bond_fill_ifbond()
1908 /* The bonding driver uses ether_setup() to convert a master bond device
1924 struct bonding *bond = netdev_priv(bond_dev); in bond_xdp_set_features()
1948 struct bonding *bond = netdev_priv(bond_dev); in bond_enslave()
2009 /* set bonding device ether type by slave - bonding netdevices are in bond_enslave()
2182 …rp_ip_target module parameters not specified, thus bonding will not detect link failures! see bond… in bond_enslave()
2484 struct bonding *bond = netdev_priv(bond_dev); in __bond_release_one()
2668 struct bonding *bond = netdev_priv(bond_dev); in bond_release_and_destroy()
2684 struct bonding *bond = netdev_priv(bond_dev); in bond_info_query()
2691 struct bonding *bond = netdev_priv(bond_dev); in bond_slave_info_query()
2710 static int bond_miimon_inspect(struct bonding *bond) in bond_miimon_inspect()
2816 static void bond_miimon_link_change(struct bonding *bond, in bond_miimon_link_change()
2834 static void bond_miimon_commit(struct bonding *bond) in bond_miimon_commit()
2938 struct bonding *bond = container_of(work, struct bonding, in bond_mii_monitor()
3000 static bool bond_has_this_ip(struct bonding *bond, __be32 ip) in bond_has_this_ip()
3131 static void bond_arp_send_all(struct bonding *bond, struct slave *slave) in bond_arp_send_all()
3185 static void bond_validate_arp(struct bonding *bond, struct slave *slave, __be32 sip, __be32 tip) in bond_validate_arp()
3205 static int bond_arp_rcv(const struct sk_buff *skb, struct bonding *bond, in bond_arp_rcv()
3310 static void bond_ns_send_all(struct bonding *bond, struct slave *slave) in bond_ns_send_all()
3380 static bool bond_has_this_ip6(struct bonding *bond, struct in6_addr *addr) in bond_has_this_ip6()
3398 static void bond_validate_na(struct bonding *bond, struct slave *slave, in bond_validate_na()
3426 static int bond_na_rcv(const struct sk_buff *skb, struct bonding *bond, in bond_na_rcv()
3475 int bond_rcv_validate(const struct sk_buff *skb, struct bonding *bond, in bond_rcv_validate()
3506 static void bond_send_validate(struct bonding *bond, struct slave *slave) in bond_send_validate()
3518 static bool bond_time_in_interval(struct bonding *bond, unsigned long last_act, in bond_time_in_interval()
3534 static void bond_loadbalance_arp_mon(struct bonding *bond) in bond_loadbalance_arp_mon()
3649 static int bond_ab_arp_inspect(struct bonding *bond) in bond_ab_arp_inspect()
3719 static void bond_ab_arp_commit(struct bonding *bond) in bond_ab_arp_commit()
3811 static bool bond_ab_arp_probe(struct bonding *bond) in bond_ab_arp_probe()
3892 static void bond_activebackup_arp_mon(struct bonding *bond) in bond_activebackup_arp_mon()
3950 struct bonding *bond = container_of(work, struct bonding, in bond_arp_monitor()
3962 static int bond_event_changename(struct bonding *bond) in bond_event_changename()
3975 struct bonding *event_bond = netdev_priv(bond_dev); in bond_master_netdev_event()
4002 struct bonding *bond; in bond_slave_netdev_event()
4241 static bool bond_flow_dissect(struct bonding *bond, struct sk_buff *skb, const void *data, in bond_flow_dissect()
4305 static u32 __bond_xmit_hash(struct bonding *bond, struct sk_buff *skb, const void *data, in __bond_xmit_hash()
4333 * @bond: bonding device
4337 * them to generate a hash based on the xmit_policy set in the bonding device
4339 u32 bond_xmit_hash(struct bonding *bond, struct sk_buff *skb) in bond_xmit_hash()
4352 * @bond: bonding device
4357 static u32 bond_xmit_hash_xdp(struct bonding *bond, struct xdp_buff *xdp) in bond_xmit_hash_xdp()
4372 void bond_work_init_all(struct bonding *bond) in bond_work_init_all()
4383 static void bond_work_cancel_all(struct bonding *bond) in bond_work_cancel_all()
4395 struct bonding *bond = netdev_priv(bond_dev); in bond_open()
4455 struct bonding *bond = netdev_priv(bond_dev); in bond_close()
4553 struct bonding *bond = netdev_priv(bond_dev); in bond_get_stats()
4585 struct bonding *bond = netdev_priv(bond_dev); in bond_eth_ioctl()
4622 struct bonding *bond = netdev_priv(bond_dev); in bond_do_ioctl()
4721 struct bonding *bond = netdev_priv(bond_dev); in bond_change_rx_flags()
4734 struct bonding *bond = netdev_priv(bond_dev); in bond_set_rx_mode()
4756 struct bonding *bond = netdev_priv(n->dev); in bond_neigh_init()
4791 /* The bonding ndo_neigh_setup is called at init time beofre any
4812 struct bonding *bond = netdev_priv(bond_dev); in bond_change_mtu()
4865 * bonding devices to test this, however.
4869 struct bonding *bond = netdev_priv(bond_dev); in bond_set_mac_address()
4936 * @bond: bonding device that is transmitting
4942 static struct slave *bond_get_slave_by_id(struct bonding *bond, in bond_get_slave_by_id()
4971 * @bond: bonding device to use
4973 * Based on the value of the bonding device's packets_per_slave parameter
4977 static u32 bond_rr_gen_slave_id(struct bonding *bond) in bond_rr_gen_slave_id()
5002 static struct slave *bond_xmit_roundrobin_slave_get(struct bonding *bond, in bond_xmit_roundrobin_slave_get()
5040 static struct slave *bond_xdp_xmit_roundrobin_slave_get(struct bonding *bond, in bond_xdp_xmit_roundrobin_slave_get()
5084 struct bonding *bond = netdev_priv(bond_dev); in bond_xmit_roundrobin()
5094 static struct slave *bond_xmit_activebackup_slave_get(struct bonding *bond) in bond_xmit_activebackup_slave_get()
5105 struct bonding *bond = netdev_priv(bond_dev); in bond_xmit_activebackup()
5119 void bond_slave_arr_work_rearm(struct bonding *bond, unsigned long delay) in bond_slave_arr_work_rearm()
5127 struct bonding *bond = container_of(work, struct bonding, in bond_slave_arr_handler()
5169 static void bond_set_slave_arr(struct bonding *bond, in bond_set_slave_arr()
5184 static void bond_reset_slave_arr(struct bonding *bond) in bond_reset_slave_arr()
5197 int bond_update_slave_arr(struct bonding *bond, struct slave *skipslave) in bond_update_slave_arr()
5267 static struct slave *bond_xmit_3ad_xor_slave_get(struct bonding *bond, in bond_xmit_3ad_xor_slave_get()
5284 static struct slave *bond_xdp_xmit_3ad_xor_slave_get(struct bonding *bond, in bond_xdp_xmit_3ad_xor_slave_get()
5307 struct bonding *bond = netdev_priv(dev); in bond_3ad_xor_xmit()
5323 struct bonding *bond = netdev_priv(bond_dev); in bond_xmit_broadcast()
5364 static inline int bond_slave_override(struct bonding *bond, in bond_slave_override()
5396 * way down to the bonding driver. in bond_select_queue()
5415 struct bonding *bond = netdev_priv(master_dev); in bond_xmit_get_slave()
5444 WARN_ONCE(true, "Unknown bonding mode"); in bond_xmit_get_slave()
5499 static struct net_device *__bond_sk_get_lower_dev(struct bonding *bond, in __bond_sk_get_lower_dev()
5521 struct bonding *bond = netdev_priv(dev); in bond_sk_get_lower_dev()
5533 static netdev_tx_t bond_tls_device_xmit(struct bonding *bond, struct sk_buff *skb, in bond_tls_device_xmit()
5550 struct bonding *bond = netdev_priv(dev); in __bond_start_xmit()
5577 netdev_err(dev, "Unknown bonding mode %d\n", BOND_MODE(bond)); in __bond_start_xmit()
5585 struct bonding *bond = netdev_priv(dev); in bond_start_xmit()
5607 struct bonding *bond = netdev_priv(bond_dev); in bond_xdp_get_xmit_slave()
5628 netdev_err(bond_dev, "Unknown bonding mode %d for xdp xmit\n", in bond_xdp_get_xmit_slave()
5679 struct bonding *bond = netdev_priv(dev); in bond_xdp_set()
5803 struct bonding *bond = netdev_priv(dev); in bond_hwtstamp_get()
5822 struct bonding *bond = netdev_priv(dev); in bond_hwtstamp_set()
5843 struct bonding *bond = netdev_priv(bond_dev); in bond_ethtool_get_link_ksettings()
5887 struct bonding *bond = netdev_priv(bond_dev); in bond_ethtool_get_ts_info()
5974 struct bonding *bond = netdev_priv(bond_dev); in bond_destructor()
5984 struct bonding *bond = netdev_priv(bond_dev); in bond_setup()
6045 /* Destroy a bonding device.
6050 struct bonding *bond = netdev_priv(bond_dev); in bond_uninit()
6094 pr_err("Error: Invalid bonding mode \"%s\"\n", mode); in bond_check_params()
6190 …pr_warn("Warning: miimon must be specified, otherwise bonding will not detect link failure, speed … in bond_check_params()
6222 …ight experience client disconnections upon reconnection of a link if the bonding module updelay pa… in bond_check_params()
6337 * work as expected, see bonding.txt for details in bond_check_params()
6339 …get module parameters must be specified, otherwise bonding will not detect link failures! see bond… in bond_check_params()
6467 struct bonding *bond = netdev_priv(bond_dev); in bond_init()
6501 /* Create a new bond based on the specified name and bonding parameters.
6509 struct bonding *bond; in bond_create()
6514 bond_dev = alloc_netdev_mq(sizeof(struct bonding), in bond_create()
6552 /* According to commit 69b0216ac255 ("bonding: fix bonding_masters
6571 struct bonding *bond, *tmp_bond; in bond_net_exit_batch_rtnl()
6579 /* According to commit 23fa5c2caae0 ("bonding: destroy proc directory