Lines Matching refs:newval
20 const struct bond_opt_value *newval);
22 const struct bond_opt_value *newval);
24 const struct bond_opt_value *newval);
26 const struct bond_opt_value *newval);
28 const struct bond_opt_value *newval);
30 const struct bond_opt_value *newval);
32 const struct bond_opt_value *newval);
36 const struct bond_opt_value *newval);
38 const struct bond_opt_value *newval);
40 const struct bond_opt_value *newval);
42 const struct bond_opt_value *newval);
44 const struct bond_opt_value *newval);
46 const struct bond_opt_value *newval);
48 const struct bond_opt_value *newval);
50 const struct bond_opt_value *newval);
52 const struct bond_opt_value *newval);
54 const struct bond_opt_value *newval);
56 const struct bond_opt_value *newval);
58 const struct bond_opt_value *newval);
60 const struct bond_opt_value *newval);
62 const struct bond_opt_value *newval);
64 const struct bond_opt_value *newval);
66 const struct bond_opt_value *newval);
68 const struct bond_opt_value *newval);
70 const struct bond_opt_value *newval);
72 const struct bond_opt_value *newval);
74 const struct bond_opt_value *newval);
76 const struct bond_opt_value *newval);
78 const struct bond_opt_value *newval);
80 const struct bond_opt_value *newval);
82 const struct bond_opt_value *newval);
84 const struct bond_opt_value *newval);
86 const struct bond_opt_value *newval);
852 const struct bond_opt_value *newval) in bond_option_mode_set() argument
854 if (!bond_mode_uses_arp(newval->value)) { in bond_option_mode_set()
857 newval->string); in bond_option_mode_set()
870 if (newval->value == BOND_MODE_ALB) in bond_option_mode_set()
875 bond->params.mode = newval->value; in bond_option_mode_set()
892 const struct bond_opt_value *newval) in bond_option_active_slave_set() argument
898 sscanf(newval->string, "%15s", ifname); /* IFNAMSIZ */ in bond_option_active_slave_set()
899 if (!strlen(ifname) || newval->string[0] == '\n') { in bond_option_active_slave_set()
956 const struct bond_opt_value *newval) in bond_option_miimon_set() argument
959 newval->value); in bond_option_miimon_set()
960 bond->params.miimon = newval->value; in bond_option_miimon_set()
970 if (newval->value && bond->params.arp_interval) { in bond_option_miimon_set()
982 if (!newval->value) { in bond_option_miimon_set()
998 const struct bond_opt_value *newval, in _bond_option_delay_set() argument
1002 int value = newval->value; in _bond_option_delay_set()
1026 const struct bond_opt_value *newval) in bond_option_updelay_set() argument
1028 return _bond_option_delay_set(bond, newval, "up delay", in bond_option_updelay_set()
1033 const struct bond_opt_value *newval) in bond_option_downdelay_set() argument
1035 return _bond_option_delay_set(bond, newval, "down delay", in bond_option_downdelay_set()
1040 const struct bond_opt_value *newval) in bond_option_peer_notif_delay_set() argument
1042 int ret = _bond_option_delay_set(bond, newval, in bond_option_peer_notif_delay_set()
1049 const struct bond_opt_value *newval) in bond_option_use_carrier_set() argument
1052 newval->value); in bond_option_use_carrier_set()
1053 bond->params.use_carrier = newval->value; in bond_option_use_carrier_set()
1063 const struct bond_opt_value *newval) in bond_option_arp_interval_set() argument
1066 newval->value); in bond_option_arp_interval_set()
1067 bond->params.arp_interval = newval->value; in bond_option_arp_interval_set()
1068 if (newval->value) { in bond_option_arp_interval_set()
1082 if (!newval->value) { in bond_option_arp_interval_set()
1195 const struct bond_opt_value *newval) in bond_option_arp_ip_targets_set() argument
1200 if (newval->string) { in bond_option_arp_ip_targets_set()
1201 if (!in4_pton(newval->string+1, -1, (u8 *)&target, -1, NULL)) { in bond_option_arp_ip_targets_set()
1206 if (newval->string[0] == '+') in bond_option_arp_ip_targets_set()
1208 else if (newval->string[0] == '-') in bond_option_arp_ip_targets_set()
1213 target = newval->value; in bond_option_arp_ip_targets_set()
1246 const struct bond_opt_value *newval) in bond_option_ns_ip6_targets_set() argument
1248 struct in6_addr *target = (struct in6_addr *)newval->extra; in bond_option_ns_ip6_targets_set()
1279 const struct bond_opt_value *newval) in bond_option_ns_ip6_targets_set() argument
1286 const struct bond_opt_value *newval) in bond_option_arp_validate_set() argument
1289 newval->string, newval->value); in bond_option_arp_validate_set()
1290 bond->params.arp_validate = newval->value; in bond_option_arp_validate_set()
1296 const struct bond_opt_value *newval) in bond_option_arp_all_targets_set() argument
1299 newval->string, newval->value); in bond_option_arp_all_targets_set()
1300 bond->params.arp_all_targets = newval->value; in bond_option_arp_all_targets_set()
1306 const struct bond_opt_value *newval) in bond_option_missed_max_set() argument
1309 newval->string, newval->value); in bond_option_missed_max_set()
1310 bond->params.missed_max = newval->value; in bond_option_missed_max_set()
1316 const struct bond_opt_value *newval) in bond_option_prio_set() argument
1320 slave = bond_slave_get_rtnl(newval->slave_dev); in bond_option_prio_set()
1322 netdev_dbg(newval->slave_dev, "%s called on NULL slave\n", __func__); in bond_option_prio_set()
1325 slave->prio = newval->value; in bond_option_prio_set()
1337 const struct bond_opt_value *newval) in bond_option_primary_set() argument
1339 char *p, *primary = newval->string; in bond_option_primary_set()
1385 const struct bond_opt_value *newval) in bond_option_primary_reselect_set() argument
1388 newval->string, newval->value); in bond_option_primary_reselect_set()
1389 bond->params.primary_reselect = newval->value; in bond_option_primary_reselect_set()
1399 const struct bond_opt_value *newval) in bond_option_fail_over_mac_set() argument
1402 newval->string, newval->value); in bond_option_fail_over_mac_set()
1403 bond->params.fail_over_mac = newval->value; in bond_option_fail_over_mac_set()
1409 const struct bond_opt_value *newval) in bond_option_xmit_hash_policy_set() argument
1412 newval->string, newval->value); in bond_option_xmit_hash_policy_set()
1413 bond->params.xmit_policy = newval->value; in bond_option_xmit_hash_policy_set()
1419 const struct bond_opt_value *newval) in bond_option_resend_igmp_set() argument
1422 newval->value); in bond_option_resend_igmp_set()
1423 bond->params.resend_igmp = newval->value; in bond_option_resend_igmp_set()
1429 const struct bond_opt_value *newval) in bond_option_num_peer_notif_set() argument
1431 bond->params.num_peer_notif = newval->value; in bond_option_num_peer_notif_set()
1437 const struct bond_opt_value *newval) in bond_option_all_slaves_active_set() argument
1442 if (newval->value == bond->params.all_slaves_active) in bond_option_all_slaves_active_set()
1444 bond->params.all_slaves_active = newval->value; in bond_option_all_slaves_active_set()
1447 if (newval->value) in bond_option_all_slaves_active_set()
1458 const struct bond_opt_value *newval) in bond_option_min_links_set() argument
1461 newval->value); in bond_option_min_links_set()
1462 bond->params.min_links = newval->value; in bond_option_min_links_set()
1469 const struct bond_opt_value *newval) in bond_option_lp_interval_set() argument
1471 bond->params.lp_interval = newval->value; in bond_option_lp_interval_set()
1477 const struct bond_opt_value *newval) in bond_option_pps_set() argument
1480 newval->value); in bond_option_pps_set()
1481 bond->params.packets_per_slave = newval->value; in bond_option_pps_set()
1482 if (newval->value > 0) { in bond_option_pps_set()
1484 reciprocal_value(newval->value); in bond_option_pps_set()
1497 const struct bond_opt_value *newval) in bond_option_lacp_active_set() argument
1500 newval->string, newval->value); in bond_option_lacp_active_set()
1501 bond->params.lacp_active = newval->value; in bond_option_lacp_active_set()
1507 const struct bond_opt_value *newval) in bond_option_lacp_rate_set() argument
1510 newval->string, newval->value); in bond_option_lacp_rate_set()
1511 bond->params.lacp_fast = newval->value; in bond_option_lacp_rate_set()
1518 const struct bond_opt_value *newval) in bond_option_ad_select_set() argument
1521 newval->string, newval->value); in bond_option_ad_select_set()
1522 bond->params.ad_select = newval->value; in bond_option_ad_select_set()
1528 const struct bond_opt_value *newval) in bond_option_queue_id_set() argument
1538 delim = strchr(newval->string, ':'); in bond_option_queue_id_set()
1550 if (!dev_valid_name(newval->string) || in bond_option_queue_id_set()
1555 sdev = __dev_get_by_name(dev_net(bond->dev), newval->string); in bond_option_queue_id_set()
1589 const struct bond_opt_value *newval) in bond_option_slaves_set() argument
1596 sscanf(newval->string, "%16s", command); /* IFNAMSIZ*/ in bond_option_slaves_set()
1637 const struct bond_opt_value *newval) in bond_option_tlb_dynamic_lb_set() argument
1640 newval->string, newval->value); in bond_option_tlb_dynamic_lb_set()
1641 bond->params.tlb_dynamic_lb = newval->value; in bond_option_tlb_dynamic_lb_set()
1647 const struct bond_opt_value *newval) in bond_option_ad_actor_sys_prio_set() argument
1650 newval->value); in bond_option_ad_actor_sys_prio_set()
1652 bond->params.ad_actor_sys_prio = newval->value; in bond_option_ad_actor_sys_prio_set()
1659 const struct bond_opt_value *newval) in bond_option_ad_actor_system_set() argument
1664 if (newval->string) { in bond_option_ad_actor_system_set()
1665 if (!mac_pton(newval->string, macaddr)) in bond_option_ad_actor_system_set()
1669 mac = (u8 *)&newval->value; in bond_option_ad_actor_system_set()
1687 const struct bond_opt_value *newval) in bond_option_ad_user_port_key_set() argument
1690 newval->value); in bond_option_ad_user_port_key_set()
1692 bond->params.ad_user_port_key = newval->value; in bond_option_ad_user_port_key_set()