Lines Matching refs:bond

19 static int bond_option_active_slave_set(struct bonding *bond,
21 static int bond_option_miimon_set(struct bonding *bond,
23 static int bond_option_updelay_set(struct bonding *bond,
25 static int bond_option_downdelay_set(struct bonding *bond,
27 static int bond_option_peer_notif_delay_set(struct bonding *bond,
29 static int bond_option_use_carrier_set(struct bonding *bond,
31 static int bond_option_arp_interval_set(struct bonding *bond,
33 static int bond_option_arp_ip_target_add(struct bonding *bond, __be32 target);
34 static int bond_option_arp_ip_target_rem(struct bonding *bond, __be32 target);
35 static int bond_option_arp_ip_targets_set(struct bonding *bond,
37 static int bond_option_arp_validate_set(struct bonding *bond,
39 static int bond_option_arp_all_targets_set(struct bonding *bond,
41 static int bond_option_primary_set(struct bonding *bond,
43 static int bond_option_primary_reselect_set(struct bonding *bond,
45 static int bond_option_fail_over_mac_set(struct bonding *bond,
47 static int bond_option_xmit_hash_policy_set(struct bonding *bond,
49 static int bond_option_resend_igmp_set(struct bonding *bond,
51 static int bond_option_num_peer_notif_set(struct bonding *bond,
53 static int bond_option_all_slaves_active_set(struct bonding *bond,
55 static int bond_option_min_links_set(struct bonding *bond,
57 static int bond_option_lp_interval_set(struct bonding *bond,
59 static int bond_option_pps_set(struct bonding *bond,
61 static int bond_option_lacp_active_set(struct bonding *bond,
63 static int bond_option_lacp_rate_set(struct bonding *bond,
65 static int bond_option_ad_select_set(struct bonding *bond,
67 static int bond_option_queue_id_set(struct bonding *bond,
69 static int bond_option_mode_set(struct bonding *bond,
71 static int bond_option_slaves_set(struct bonding *bond,
73 static int bond_option_tlb_dynamic_lb_set(struct bonding *bond,
75 static int bond_option_ad_actor_sys_prio_set(struct bonding *bond,
77 static int bond_option_ad_actor_system_set(struct bonding *bond,
79 static int bond_option_ad_user_port_key_set(struct bonding *bond,
592 static int bond_opt_check_deps(struct bonding *bond, in bond_opt_check_deps() argument
595 struct bond_params *params = &bond->params; in bond_opt_check_deps()
599 if ((opt->flags & BOND_OPTFLAG_NOSLAVES) && bond_has_slaves(bond)) in bond_opt_check_deps()
601 if ((opt->flags & BOND_OPTFLAG_IFDOWN) && (bond->dev->flags & IFF_UP)) in bond_opt_check_deps()
607 static void bond_opt_dep_print(struct bonding *bond, in bond_opt_dep_print() argument
613 params = &bond->params; in bond_opt_dep_print()
616 netdev_err(bond->dev, "option %s: mode dependency failed, not supported in mode %s(%llu)\n", in bond_opt_dep_print()
620 static void bond_opt_error_interpret(struct bonding *bond, in bond_opt_error_interpret() argument
635 netdev_err(bond->dev, "option %s: invalid value (%s)\n", in bond_opt_error_interpret()
638 netdev_err(bond->dev, "option %s: invalid value (%llu)\n", in bond_opt_error_interpret()
646 netdev_err(bond->dev, "option %s: allowed values %llu - %llu\n", in bond_opt_error_interpret()
650 bond_opt_dep_print(bond, opt); in bond_opt_error_interpret()
653 netdev_err(bond->dev, "option %s: unable to set because the bond device has slaves\n", in bond_opt_error_interpret()
657 netdev_err(bond->dev, "option %s: unable to set because the bond device is up\n", in bond_opt_error_interpret()
665 netdev_err(bond->dev, "option %s: interface %s does not exist!\n", in bond_opt_error_interpret()
684 int __bond_opt_set(struct bonding *bond, in __bond_opt_set() argument
696 ret = bond_opt_check_deps(bond, opt); in __bond_opt_set()
704 ret = opt->set(bond, retval); in __bond_opt_set()
707 bond_opt_error_interpret(bond, opt, ret, val); in __bond_opt_set()
722 int __bond_opt_set_notify(struct bonding *bond, in __bond_opt_set_notify() argument
729 ret = __bond_opt_set(bond, option, val); in __bond_opt_set_notify()
731 if (!ret && (bond->dev->reg_state == NETREG_REGISTERED)) in __bond_opt_set_notify()
732 call_netdevice_notifiers(NETDEV_CHANGEINFODATA, bond->dev); in __bond_opt_set_notify()
746 int bond_opt_tryset_rtnl(struct bonding *bond, unsigned int option, char *buf) in bond_opt_tryset_rtnl() argument
754 ret = __bond_opt_set_notify(bond, option, &optval); in bond_opt_tryset_rtnl()
775 static bool bond_set_xfrm_features(struct bonding *bond) in bond_set_xfrm_features() argument
780 if (BOND_MODE(bond) == BOND_MODE_ACTIVEBACKUP) in bond_set_xfrm_features()
781 bond->dev->wanted_features |= BOND_XFRM_FEATURES; in bond_set_xfrm_features()
783 bond->dev->wanted_features &= ~BOND_XFRM_FEATURES; in bond_set_xfrm_features()
788 static bool bond_set_tls_features(struct bonding *bond) in bond_set_tls_features() argument
793 if (bond_sk_check(bond)) in bond_set_tls_features()
794 bond->dev->wanted_features |= BOND_TLS_FEATURES; in bond_set_tls_features()
796 bond->dev->wanted_features &= ~BOND_TLS_FEATURES; in bond_set_tls_features()
801 static int bond_option_mode_set(struct bonding *bond, in bond_option_mode_set() argument
805 if (bond->params.arp_interval) { in bond_option_mode_set()
806 netdev_dbg(bond->dev, "%s mode is incompatible with arp monitoring, start mii monitoring\n", in bond_option_mode_set()
809 bond->params.arp_interval = 0; in bond_option_mode_set()
812 if (!bond->params.miimon) { in bond_option_mode_set()
814 bond->params.miimon = BOND_DEFAULT_MIIMON; in bond_option_mode_set()
815 netdev_dbg(bond->dev, "Setting MII monitoring interval to %d\n", in bond_option_mode_set()
816 bond->params.miimon); in bond_option_mode_set()
821 bond->params.tlb_dynamic_lb = 1; in bond_option_mode_set()
824 bond->params.arp_validate = BOND_ARP_VALIDATE_NONE; in bond_option_mode_set()
825 bond->params.mode = newval->value; in bond_option_mode_set()
827 if (bond->dev->reg_state == NETREG_REGISTERED) { in bond_option_mode_set()
830 update |= bond_set_xfrm_features(bond); in bond_option_mode_set()
831 update |= bond_set_tls_features(bond); in bond_option_mode_set()
834 netdev_update_features(bond->dev); in bond_option_mode_set()
840 static int bond_option_active_slave_set(struct bonding *bond, in bond_option_active_slave_set() argument
851 slave_dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_active_slave_set()
858 slave_err(bond->dev, slave_dev, "Device is not bonding slave\n"); in bond_option_active_slave_set()
862 if (bond->dev != netdev_master_upper_dev_get(slave_dev)) { in bond_option_active_slave_set()
863 slave_err(bond->dev, slave_dev, "Device is not our slave\n"); in bond_option_active_slave_set()
871 netdev_dbg(bond->dev, "Clearing current active slave\n"); in bond_option_active_slave_set()
872 RCU_INIT_POINTER(bond->curr_active_slave, NULL); in bond_option_active_slave_set()
873 bond_select_active_slave(bond); in bond_option_active_slave_set()
875 struct slave *old_active = rtnl_dereference(bond->curr_active_slave); in bond_option_active_slave_set()
882 slave_dbg(bond->dev, new_active->dev, "is already the current active slave\n"); in bond_option_active_slave_set()
886 slave_dbg(bond->dev, new_active->dev, "Setting as active slave\n"); in bond_option_active_slave_set()
887 bond_change_active_slave(bond, new_active); in bond_option_active_slave_set()
889 …slave_err(bond->dev, new_active->dev, "Could not set as active slave; either %s is down or the lin… in bond_option_active_slave_set()
904 static int bond_option_miimon_set(struct bonding *bond, in bond_option_miimon_set() argument
907 netdev_dbg(bond->dev, "Setting MII monitoring interval to %llu\n", in bond_option_miimon_set()
909 bond->params.miimon = newval->value; in bond_option_miimon_set()
910 if (bond->params.updelay) in bond_option_miimon_set()
911 …netdev_dbg(bond->dev, "Note: Updating updelay (to %d) since it is a multiple of the miimon value\n… in bond_option_miimon_set()
912 bond->params.updelay * bond->params.miimon); in bond_option_miimon_set()
913 if (bond->params.downdelay) in bond_option_miimon_set()
914 …netdev_dbg(bond->dev, "Note: Updating downdelay (to %d) since it is a multiple of the miimon value… in bond_option_miimon_set()
915 bond->params.downdelay * bond->params.miimon); in bond_option_miimon_set()
916 if (bond->params.peer_notif_delay) in bond_option_miimon_set()
917 …netdev_dbg(bond->dev, "Note: Updating peer_notif_delay (to %d) since it is a multiple of the miimo… in bond_option_miimon_set()
918 bond->params.peer_notif_delay * bond->params.miimon); in bond_option_miimon_set()
919 if (newval->value && bond->params.arp_interval) { in bond_option_miimon_set()
920 …netdev_dbg(bond->dev, "MII monitoring cannot be used with ARP monitoring - disabling ARP monitorin… in bond_option_miimon_set()
921 bond->params.arp_interval = 0; in bond_option_miimon_set()
922 if (bond->params.arp_validate) in bond_option_miimon_set()
923 bond->params.arp_validate = BOND_ARP_VALIDATE_NONE; in bond_option_miimon_set()
925 if (bond->dev->flags & IFF_UP) { in bond_option_miimon_set()
932 cancel_delayed_work_sync(&bond->mii_work); in bond_option_miimon_set()
934 cancel_delayed_work_sync(&bond->arp_work); in bond_option_miimon_set()
935 queue_delayed_work(bond->wq, &bond->mii_work, 0); in bond_option_miimon_set()
946 static int _bond_option_delay_set(struct bonding *bond, in _bond_option_delay_set() argument
953 if (!bond->params.miimon) { in _bond_option_delay_set()
954 netdev_err(bond->dev, "Unable to set %s as MII monitoring is disabled\n", in _bond_option_delay_set()
958 if ((value % bond->params.miimon) != 0) { in _bond_option_delay_set()
959 netdev_warn(bond->dev, in _bond_option_delay_set()
962 value, bond->params.miimon, in _bond_option_delay_set()
963 (value / bond->params.miimon) * in _bond_option_delay_set()
964 bond->params.miimon); in _bond_option_delay_set()
966 *target = value / bond->params.miimon; in _bond_option_delay_set()
967 netdev_dbg(bond->dev, "Setting %s to %d\n", in _bond_option_delay_set()
969 *target * bond->params.miimon); in _bond_option_delay_set()
974 static int bond_option_updelay_set(struct bonding *bond, in bond_option_updelay_set() argument
977 return _bond_option_delay_set(bond, newval, "up delay", in bond_option_updelay_set()
978 &bond->params.updelay); in bond_option_updelay_set()
981 static int bond_option_downdelay_set(struct bonding *bond, in bond_option_downdelay_set() argument
984 return _bond_option_delay_set(bond, newval, "down delay", in bond_option_downdelay_set()
985 &bond->params.downdelay); in bond_option_downdelay_set()
988 static int bond_option_peer_notif_delay_set(struct bonding *bond, in bond_option_peer_notif_delay_set() argument
991 int ret = _bond_option_delay_set(bond, newval, in bond_option_peer_notif_delay_set()
993 &bond->params.peer_notif_delay); in bond_option_peer_notif_delay_set()
997 static int bond_option_use_carrier_set(struct bonding *bond, in bond_option_use_carrier_set() argument
1000 netdev_dbg(bond->dev, "Setting use_carrier to %llu\n", in bond_option_use_carrier_set()
1002 bond->params.use_carrier = newval->value; in bond_option_use_carrier_set()
1011 static int bond_option_arp_interval_set(struct bonding *bond, in bond_option_arp_interval_set() argument
1014 netdev_dbg(bond->dev, "Setting ARP monitoring interval to %llu\n", in bond_option_arp_interval_set()
1016 bond->params.arp_interval = newval->value; in bond_option_arp_interval_set()
1018 if (bond->params.miimon) { in bond_option_arp_interval_set()
1019 …netdev_dbg(bond->dev, "ARP monitoring cannot be used with MII monitoring. Disabling MII monitoring… in bond_option_arp_interval_set()
1020 bond->params.miimon = 0; in bond_option_arp_interval_set()
1022 if (!bond->params.arp_targets[0]) in bond_option_arp_interval_set()
1023 … netdev_dbg(bond->dev, "ARP monitoring has been set up, but no ARP targets have been specified\n"); in bond_option_arp_interval_set()
1025 if (bond->dev->flags & IFF_UP) { in bond_option_arp_interval_set()
1032 if (bond->params.arp_validate) in bond_option_arp_interval_set()
1033 bond->recv_probe = NULL; in bond_option_arp_interval_set()
1034 cancel_delayed_work_sync(&bond->arp_work); in bond_option_arp_interval_set()
1037 bond->recv_probe = bond_arp_rcv; in bond_option_arp_interval_set()
1038 cancel_delayed_work_sync(&bond->mii_work); in bond_option_arp_interval_set()
1039 queue_delayed_work(bond->wq, &bond->arp_work, 0); in bond_option_arp_interval_set()
1046 static void _bond_options_arp_ip_target_set(struct bonding *bond, int slot, in _bond_options_arp_ip_target_set() argument
1050 __be32 *targets = bond->params.arp_targets; in _bond_options_arp_ip_target_set()
1055 bond_for_each_slave(bond, slave, iter) in _bond_options_arp_ip_target_set()
1061 static int _bond_option_arp_ip_target_add(struct bonding *bond, __be32 target) in _bond_option_arp_ip_target_add() argument
1063 __be32 *targets = bond->params.arp_targets; in _bond_option_arp_ip_target_add()
1067 netdev_err(bond->dev, "invalid ARP target %pI4 specified for addition\n", in _bond_option_arp_ip_target_add()
1073 netdev_err(bond->dev, "ARP target %pI4 is already present\n", in _bond_option_arp_ip_target_add()
1080 netdev_err(bond->dev, "ARP target table is full!\n"); in _bond_option_arp_ip_target_add()
1084 netdev_dbg(bond->dev, "Adding ARP target %pI4\n", &target); in _bond_option_arp_ip_target_add()
1086 _bond_options_arp_ip_target_set(bond, ind, target, jiffies); in _bond_option_arp_ip_target_add()
1091 static int bond_option_arp_ip_target_add(struct bonding *bond, __be32 target) in bond_option_arp_ip_target_add() argument
1093 return _bond_option_arp_ip_target_add(bond, target); in bond_option_arp_ip_target_add()
1096 static int bond_option_arp_ip_target_rem(struct bonding *bond, __be32 target) in bond_option_arp_ip_target_rem() argument
1098 __be32 *targets = bond->params.arp_targets; in bond_option_arp_ip_target_rem()
1105 netdev_err(bond->dev, "invalid ARP target %pI4 specified for removal\n", in bond_option_arp_ip_target_rem()
1112 netdev_err(bond->dev, "unable to remove nonexistent ARP target %pI4\n", in bond_option_arp_ip_target_rem()
1117 if (ind == 0 && !targets[1] && bond->params.arp_interval) in bond_option_arp_ip_target_rem()
1118 netdev_warn(bond->dev, "Removing last arp target with arp_interval on\n"); in bond_option_arp_ip_target_rem()
1120 netdev_dbg(bond->dev, "Removing ARP target %pI4\n", &target); in bond_option_arp_ip_target_rem()
1122 bond_for_each_slave(bond, slave, iter) { in bond_option_arp_ip_target_rem()
1135 void bond_option_arp_ip_targets_clear(struct bonding *bond) in bond_option_arp_ip_targets_clear() argument
1140 _bond_options_arp_ip_target_set(bond, i, 0, 0); in bond_option_arp_ip_targets_clear()
1143 static int bond_option_arp_ip_targets_set(struct bonding *bond, in bond_option_arp_ip_targets_set() argument
1151 netdev_err(bond->dev, "invalid ARP target %pI4 specified\n", in bond_option_arp_ip_targets_set()
1156 ret = bond_option_arp_ip_target_add(bond, target); in bond_option_arp_ip_targets_set()
1158 ret = bond_option_arp_ip_target_rem(bond, target); in bond_option_arp_ip_targets_set()
1160 netdev_err(bond->dev, "no command found in arp_ip_targets file - use +<addr> or -<addr>\n"); in bond_option_arp_ip_targets_set()
1163 ret = bond_option_arp_ip_target_add(bond, target); in bond_option_arp_ip_targets_set()
1169 static int bond_option_arp_validate_set(struct bonding *bond, in bond_option_arp_validate_set() argument
1172 netdev_dbg(bond->dev, "Setting arp_validate to %s (%llu)\n", in bond_option_arp_validate_set()
1174 bond->params.arp_validate = newval->value; in bond_option_arp_validate_set()
1179 static int bond_option_arp_all_targets_set(struct bonding *bond, in bond_option_arp_all_targets_set() argument
1182 netdev_dbg(bond->dev, "Setting arp_all_targets to %s (%llu)\n", in bond_option_arp_all_targets_set()
1184 bond->params.arp_all_targets = newval->value; in bond_option_arp_all_targets_set()
1189 static int bond_option_primary_set(struct bonding *bond, in bond_option_primary_set() argument
1203 netdev_dbg(bond->dev, "Setting primary slave to None\n"); in bond_option_primary_set()
1204 RCU_INIT_POINTER(bond->primary_slave, NULL); in bond_option_primary_set()
1205 memset(bond->params.primary, 0, sizeof(bond->params.primary)); in bond_option_primary_set()
1206 bond_select_active_slave(bond); in bond_option_primary_set()
1210 bond_for_each_slave(bond, slave, iter) { in bond_option_primary_set()
1212 slave_dbg(bond->dev, slave->dev, "Setting as primary slave\n"); in bond_option_primary_set()
1213 rcu_assign_pointer(bond->primary_slave, slave); in bond_option_primary_set()
1214 strcpy(bond->params.primary, slave->dev->name); in bond_option_primary_set()
1215 bond->force_primary = true; in bond_option_primary_set()
1216 bond_select_active_slave(bond); in bond_option_primary_set()
1221 if (rtnl_dereference(bond->primary_slave)) { in bond_option_primary_set()
1222 netdev_dbg(bond->dev, "Setting primary slave to None\n"); in bond_option_primary_set()
1223 RCU_INIT_POINTER(bond->primary_slave, NULL); in bond_option_primary_set()
1224 bond_select_active_slave(bond); in bond_option_primary_set()
1226 strscpy_pad(bond->params.primary, primary, IFNAMSIZ); in bond_option_primary_set()
1228 netdev_dbg(bond->dev, "Recording %s as primary, but it has not been enslaved yet\n", in bond_option_primary_set()
1237 static int bond_option_primary_reselect_set(struct bonding *bond, in bond_option_primary_reselect_set() argument
1240 netdev_dbg(bond->dev, "Setting primary_reselect to %s (%llu)\n", in bond_option_primary_reselect_set()
1242 bond->params.primary_reselect = newval->value; in bond_option_primary_reselect_set()
1245 bond_select_active_slave(bond); in bond_option_primary_reselect_set()
1251 static int bond_option_fail_over_mac_set(struct bonding *bond, in bond_option_fail_over_mac_set() argument
1254 netdev_dbg(bond->dev, "Setting fail_over_mac to %s (%llu)\n", in bond_option_fail_over_mac_set()
1256 bond->params.fail_over_mac = newval->value; in bond_option_fail_over_mac_set()
1261 static int bond_option_xmit_hash_policy_set(struct bonding *bond, in bond_option_xmit_hash_policy_set() argument
1264 netdev_dbg(bond->dev, "Setting xmit hash policy to %s (%llu)\n", in bond_option_xmit_hash_policy_set()
1266 bond->params.xmit_policy = newval->value; in bond_option_xmit_hash_policy_set()
1268 if (bond->dev->reg_state == NETREG_REGISTERED) in bond_option_xmit_hash_policy_set()
1269 if (bond_set_tls_features(bond)) in bond_option_xmit_hash_policy_set()
1270 netdev_update_features(bond->dev); in bond_option_xmit_hash_policy_set()
1275 static int bond_option_resend_igmp_set(struct bonding *bond, in bond_option_resend_igmp_set() argument
1278 netdev_dbg(bond->dev, "Setting resend_igmp to %llu\n", in bond_option_resend_igmp_set()
1280 bond->params.resend_igmp = newval->value; in bond_option_resend_igmp_set()
1285 static int bond_option_num_peer_notif_set(struct bonding *bond, in bond_option_num_peer_notif_set() argument
1288 bond->params.num_peer_notif = newval->value; in bond_option_num_peer_notif_set()
1293 static int bond_option_all_slaves_active_set(struct bonding *bond, in bond_option_all_slaves_active_set() argument
1299 if (newval->value == bond->params.all_slaves_active) in bond_option_all_slaves_active_set()
1301 bond->params.all_slaves_active = newval->value; in bond_option_all_slaves_active_set()
1302 bond_for_each_slave(bond, slave, iter) { in bond_option_all_slaves_active_set()
1314 static int bond_option_min_links_set(struct bonding *bond, in bond_option_min_links_set() argument
1317 netdev_dbg(bond->dev, "Setting min links value to %llu\n", in bond_option_min_links_set()
1319 bond->params.min_links = newval->value; in bond_option_min_links_set()
1320 bond_set_carrier(bond); in bond_option_min_links_set()
1325 static int bond_option_lp_interval_set(struct bonding *bond, in bond_option_lp_interval_set() argument
1328 bond->params.lp_interval = newval->value; in bond_option_lp_interval_set()
1333 static int bond_option_pps_set(struct bonding *bond, in bond_option_pps_set() argument
1336 netdev_dbg(bond->dev, "Setting packets per slave to %llu\n", in bond_option_pps_set()
1338 bond->params.packets_per_slave = newval->value; in bond_option_pps_set()
1340 bond->params.reciprocal_packets_per_slave = in bond_option_pps_set()
1346 bond->params.reciprocal_packets_per_slave = in bond_option_pps_set()
1353 static int bond_option_lacp_active_set(struct bonding *bond, in bond_option_lacp_active_set() argument
1356 netdev_dbg(bond->dev, "Setting LACP active to %s (%llu)\n", in bond_option_lacp_active_set()
1358 bond->params.lacp_active = newval->value; in bond_option_lacp_active_set()
1363 static int bond_option_lacp_rate_set(struct bonding *bond, in bond_option_lacp_rate_set() argument
1366 netdev_dbg(bond->dev, "Setting LACP rate to %s (%llu)\n", in bond_option_lacp_rate_set()
1368 bond->params.lacp_fast = newval->value; in bond_option_lacp_rate_set()
1369 bond_3ad_update_lacp_rate(bond); in bond_option_lacp_rate_set()
1374 static int bond_option_ad_select_set(struct bonding *bond, in bond_option_ad_select_set() argument
1377 netdev_dbg(bond->dev, "Setting ad_select to %s (%llu)\n", in bond_option_ad_select_set()
1379 bond->params.ad_select = newval->value; in bond_option_ad_select_set()
1384 static int bond_option_queue_id_set(struct bonding *bond, in bond_option_queue_id_set() argument
1408 qid > bond->dev->real_num_tx_queues) in bond_option_queue_id_set()
1412 sdev = __dev_get_by_name(dev_net(bond->dev), newval->string); in bond_option_queue_id_set()
1418 bond_for_each_slave(bond, slave, iter) { in bond_option_queue_id_set()
1439 netdev_dbg(bond->dev, "invalid input for queue_id set\n"); in bond_option_queue_id_set()
1445 static int bond_option_slaves_set(struct bonding *bond, in bond_option_slaves_set() argument
1460 dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_slaves_set()
1462 netdev_dbg(bond->dev, "interface %s does not exist!\n", in bond_option_slaves_set()
1470 slave_dbg(bond->dev, dev, "Enslaving interface\n"); in bond_option_slaves_set()
1471 ret = bond_enslave(bond->dev, dev, NULL); in bond_option_slaves_set()
1475 slave_dbg(bond->dev, dev, "Releasing interface\n"); in bond_option_slaves_set()
1476 ret = bond_release(bond->dev, dev); in bond_option_slaves_set()
1488 netdev_err(bond->dev, "no command found in slaves file - use +ifname or -ifname\n"); in bond_option_slaves_set()
1493 static int bond_option_tlb_dynamic_lb_set(struct bonding *bond, in bond_option_tlb_dynamic_lb_set() argument
1496 netdev_dbg(bond->dev, "Setting dynamic-lb to %s (%llu)\n", in bond_option_tlb_dynamic_lb_set()
1498 bond->params.tlb_dynamic_lb = newval->value; in bond_option_tlb_dynamic_lb_set()
1503 static int bond_option_ad_actor_sys_prio_set(struct bonding *bond, in bond_option_ad_actor_sys_prio_set() argument
1506 netdev_dbg(bond->dev, "Setting ad_actor_sys_prio to %llu\n", in bond_option_ad_actor_sys_prio_set()
1509 bond->params.ad_actor_sys_prio = newval->value; in bond_option_ad_actor_sys_prio_set()
1510 bond_3ad_update_ad_actor_settings(bond); in bond_option_ad_actor_sys_prio_set()
1515 static int bond_option_ad_actor_system_set(struct bonding *bond, in bond_option_ad_actor_system_set() argument
1532 netdev_dbg(bond->dev, "Setting ad_actor_system to %pM\n", mac); in bond_option_ad_actor_system_set()
1533 ether_addr_copy(bond->params.ad_actor_system, mac); in bond_option_ad_actor_system_set()
1534 bond_3ad_update_ad_actor_settings(bond); in bond_option_ad_actor_system_set()
1539 netdev_err(bond->dev, "Invalid ad_actor_system MAC address.\n"); in bond_option_ad_actor_system_set()
1543 static int bond_option_ad_user_port_key_set(struct bonding *bond, in bond_option_ad_user_port_key_set() argument
1546 netdev_dbg(bond->dev, "Setting ad_user_port_key to %llu\n", in bond_option_ad_user_port_key_set()
1549 bond->params.ad_user_port_key = newval->value; in bond_option_ad_user_port_key_set()