Lines Matching full:bond

3  * drivers/net/bond/bond_netlink.c - Netlink interface for bonding
61 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in bond_fill_slave_info()
151 struct bonding *bond = netdev_priv(bond_dev); in bond_slave_changelink() local
166 err = __bond_opt_set(bond, BOND_OPT_QUEUE_ID, &newval, in bond_slave_changelink()
176 err = __bond_opt_set(bond, BOND_OPT_PRIO, &newval, in bond_slave_changelink()
189 struct bonding *bond = netdev_priv(bond_dev); in bond_changelink() local
201 err = __bond_opt_set(bond, BOND_OPT_MODE, &newval, in bond_changelink()
219 err = __bond_opt_set(bond, BOND_OPT_ACTIVE_SLAVE, &newval, in bond_changelink()
228 err = __bond_opt_set(bond, BOND_OPT_MIIMON, &newval, in bond_changelink()
237 err = __bond_opt_set(bond, BOND_OPT_UPDELAY, &newval, in bond_changelink()
246 err = __bond_opt_set(bond, BOND_OPT_DOWNDELAY, &newval, in bond_changelink()
255 err = __bond_opt_set(bond, BOND_OPT_PEER_NOTIF_DELAY, &newval, in bond_changelink()
264 err = __bond_opt_set(bond, BOND_OPT_USE_CARRIER, &newval, in bond_changelink()
279 err = __bond_opt_set(bond, BOND_OPT_ARP_INTERVAL, &newval, in bond_changelink()
288 bond_option_arp_ip_targets_clear(bond); in bond_changelink()
298 err = __bond_opt_set(bond, BOND_OPT_ARP_TARGETS, in bond_changelink()
306 if (i == 0 && bond->params.arp_interval) in bond_changelink()
307 netdev_warn(bond->dev, "Removing last arp target with arp_interval on\n"); in bond_changelink()
316 bond_option_ns_ip6_targets_clear(bond); in bond_changelink()
328 err = __bond_opt_set(bond, BOND_OPT_NS_TARGETS, in bond_changelink()
336 if (i == 0 && bond->params.arp_interval) in bond_changelink()
337 netdev_warn(bond->dev, "Removing last ns target with arp_interval on\n"); in bond_changelink()
352 err = __bond_opt_set(bond, BOND_OPT_ARP_VALIDATE, &newval, in bond_changelink()
362 err = __bond_opt_set(bond, BOND_OPT_ARP_ALL_TARGETS, &newval, in bond_changelink()
377 err = __bond_opt_set(bond, BOND_OPT_PRIMARY, &newval, in bond_changelink()
387 err = __bond_opt_set(bond, BOND_OPT_PRIMARY_RESELECT, &newval, in bond_changelink()
397 err = __bond_opt_set(bond, BOND_OPT_FAIL_OVER_MAC, &newval, in bond_changelink()
407 err = __bond_opt_set(bond, BOND_OPT_XMIT_HASH, &newval, in bond_changelink()
417 err = __bond_opt_set(bond, BOND_OPT_RESEND_IGMP, &newval, in bond_changelink()
427 err = __bond_opt_set(bond, BOND_OPT_NUM_PEER_NOTIF, &newval, in bond_changelink()
437 err = __bond_opt_set(bond, BOND_OPT_ALL_SLAVES_ACTIVE, &newval, in bond_changelink()
447 err = __bond_opt_set(bond, BOND_OPT_MINLINKS, &newval, in bond_changelink()
457 err = __bond_opt_set(bond, BOND_OPT_LP_INTERVAL, &newval, in bond_changelink()
467 err = __bond_opt_set(bond, BOND_OPT_PACKETS_PER_SLAVE, &newval, in bond_changelink()
477 err = __bond_opt_set(bond, BOND_OPT_LACP_ACTIVE, &newval, in bond_changelink()
488 err = __bond_opt_set(bond, BOND_OPT_LACP_RATE, &newval, in bond_changelink()
498 err = __bond_opt_set(bond, BOND_OPT_AD_SELECT, &newval, in bond_changelink()
508 err = __bond_opt_set(bond, BOND_OPT_AD_ACTOR_SYS_PRIO, &newval, in bond_changelink()
518 err = __bond_opt_set(bond, BOND_OPT_AD_USER_PORT_KEY, &newval, in bond_changelink()
529 err = __bond_opt_set(bond, BOND_OPT_AD_ACTOR_SYSTEM, &newval, in bond_changelink()
538 err = __bond_opt_set(bond, BOND_OPT_TLB_DYNAMIC_LB, &newval, in bond_changelink()
548 err = __bond_opt_set(bond, BOND_OPT_MISSED_MAX, &newval, in bond_changelink()
558 err = __bond_opt_set(bond, BOND_OPT_COUPLED_CONTROL, &newval, in bond_changelink()
579 struct bonding *bond = netdev_priv(bond_dev); in bond_newlink() local
582 bond_work_init_all(bond); in bond_newlink()
634 static int bond_option_active_slave_get_ifindex(struct bonding *bond) in bond_option_active_slave_get_ifindex() argument
640 slave = bond_option_active_slave_get_rcu(bond); in bond_option_active_slave_get_ifindex()
649 struct bonding *bond = netdev_priv(bond_dev); in bond_fill_info() local
655 if (nla_put_u8(skb, IFLA_BOND_MODE, BOND_MODE(bond))) in bond_fill_info()
658 ifindex = bond_option_active_slave_get_ifindex(bond); in bond_fill_info()
662 if (nla_put_u32(skb, IFLA_BOND_MIIMON, bond->params.miimon)) in bond_fill_info()
666 bond->params.updelay * bond->params.miimon)) in bond_fill_info()
670 bond->params.downdelay * bond->params.miimon)) in bond_fill_info()
674 bond->params.peer_notif_delay * bond->params.miimon)) in bond_fill_info()
677 if (nla_put_u8(skb, IFLA_BOND_USE_CARRIER, bond->params.use_carrier)) in bond_fill_info()
680 if (nla_put_u32(skb, IFLA_BOND_ARP_INTERVAL, bond->params.arp_interval)) in bond_fill_info()
689 if (bond->params.arp_targets[i]) { in bond_fill_info()
690 if (nla_put_be32(skb, i, bond->params.arp_targets[i])) in bond_fill_info()
701 if (nla_put_u32(skb, IFLA_BOND_ARP_VALIDATE, bond->params.arp_validate)) in bond_fill_info()
705 bond->params.arp_all_targets)) in bond_fill_info()
715 if (!ipv6_addr_any(&bond->params.ns_targets[i])) { in bond_fill_info()
716 if (nla_put_in6_addr(skb, i, &bond->params.ns_targets[i])) in bond_fill_info()
728 primary = rtnl_dereference(bond->primary_slave); in bond_fill_info()
734 bond->params.primary_reselect)) in bond_fill_info()
738 bond->params.fail_over_mac)) in bond_fill_info()
742 bond->params.xmit_policy)) in bond_fill_info()
746 bond->params.resend_igmp)) in bond_fill_info()
750 bond->params.num_peer_notif)) in bond_fill_info()
754 bond->params.all_slaves_active)) in bond_fill_info()
758 bond->params.min_links)) in bond_fill_info()
762 bond->params.lp_interval)) in bond_fill_info()
765 packets_per_slave = bond->params.packets_per_slave; in bond_fill_info()
771 bond->params.lacp_active)) in bond_fill_info()
775 bond->params.lacp_fast)) in bond_fill_info()
779 bond->params.ad_select)) in bond_fill_info()
783 bond->params.tlb_dynamic_lb)) in bond_fill_info()
787 bond->params.missed_max)) in bond_fill_info()
791 bond->params.coupled_control)) in bond_fill_info()
794 if (BOND_MODE(bond) == BOND_MODE_8023AD) { in bond_fill_info()
799 bond->params.ad_actor_sys_prio)) in bond_fill_info()
803 bond->params.ad_user_port_key)) in bond_fill_info()
807 ETH_ALEN, &bond->params.ad_actor_system)) in bond_fill_info()
810 if (!bond_3ad_get_active_agg_info(bond, &info)) { in bond_fill_info()
864 struct bonding *bond; in bond_fill_linkxstats() local
868 bond = netdev_priv(dev); in bond_fill_linkxstats()
874 bond = slave->bond; in bond_fill_linkxstats()
883 if (BOND_MODE(bond) == BOND_MODE_8023AD) { in bond_fill_linkxstats()
889 stats = &BOND_AD_INFO(bond).stats; in bond_fill_linkxstats()
910 .kind = "bond",
942 MODULE_ALIAS_RTNL_LINK("bond");