• Home
  • Raw
  • Download

Lines Matching refs:new_value

316 	int new_value, ret = count;  in bonding_store_mode()  local
333 new_value = bond_parse_parm(buf, bond_mode_tbl); in bonding_store_mode()
334 if (new_value < 0) { in bonding_store_mode()
340 if ((new_value == BOND_MODE_ALB || in bonding_store_mode()
341 new_value == BOND_MODE_TLB) && in bonding_store_mode()
344 bond->dev->name, bond_mode_tbl[new_value].modename); in bonding_store_mode()
349 bond->params.mode = new_value; in bonding_store_mode()
352 bond->dev->name, bond_mode_tbl[new_value].modename, in bonding_store_mode()
353 new_value); in bonding_store_mode()
379 int new_value, ret = count; in bonding_store_xmit_hash() local
389 new_value = bond_parse_parm(buf, xmit_hashtype_tbl); in bonding_store_xmit_hash()
390 if (new_value < 0) { in bonding_store_xmit_hash()
397 bond->params.xmit_policy = new_value; in bonding_store_xmit_hash()
401 xmit_hashtype_tbl[new_value].modename, new_value); in bonding_store_xmit_hash()
427 int new_value; in bonding_store_arp_validate() local
430 new_value = bond_parse_parm(buf, arp_validate_tbl); in bonding_store_arp_validate()
431 if (new_value < 0) { in bonding_store_arp_validate()
436 if (new_value && (bond->params.mode != BOND_MODE_ACTIVEBACKUP)) { in bonding_store_arp_validate()
442 bond->dev->name, arp_validate_tbl[new_value].modename, in bonding_store_arp_validate()
443 new_value); in bonding_store_arp_validate()
445 bond->params.arp_validate = new_value; in bonding_store_arp_validate()
472 int new_value; in bonding_store_fail_over_mac() local
481 new_value = bond_parse_parm(buf, fail_over_mac_tbl); in bonding_store_fail_over_mac()
482 if (new_value < 0) { in bonding_store_fail_over_mac()
488 bond->params.fail_over_mac = new_value; in bonding_store_fail_over_mac()
490 bond->dev->name, fail_over_mac_tbl[new_value].modename, in bonding_store_fail_over_mac()
491 new_value); in bonding_store_fail_over_mac()
518 int new_value, ret = count; in bonding_store_arp_interval() local
523 if (sscanf(buf, "%d", &new_value) != 1) { in bonding_store_arp_interval()
529 if (new_value < 0) { in bonding_store_arp_interval()
531 bond->dev->name, new_value, INT_MAX); in bonding_store_arp_interval()
543 bond->dev->name, new_value); in bonding_store_arp_interval()
544 bond->params.arp_interval = new_value; in bonding_store_arp_interval()
545 if (new_value) { in bonding_store_arp_interval()
561 if (!new_value) { in bonding_store_arp_interval()
692 int new_value, ret = count; in bonding_store_downdelay() local
702 if (sscanf(buf, "%d", &new_value) != 1) { in bonding_store_downdelay()
707 if (new_value < 0) { in bonding_store_downdelay()
709 bond->dev->name, new_value, 0, INT_MAX); in bonding_store_downdelay()
713 if ((new_value % bond->params.miimon) != 0) { in bonding_store_downdelay()
715 bond->dev->name, new_value, in bonding_store_downdelay()
717 (new_value / bond->params.miimon) * in bonding_store_downdelay()
720 bond->params.downdelay = new_value / bond->params.miimon; in bonding_store_downdelay()
747 int new_value, ret = count; in bonding_store_updelay() local
757 if (sscanf(buf, "%d", &new_value) != 1) { in bonding_store_updelay()
763 if (new_value < 0) { in bonding_store_updelay()
765 bond->dev->name, new_value, 0, INT_MAX); in bonding_store_updelay()
769 if ((new_value % bond->params.miimon) != 0) { in bonding_store_updelay()
771 bond->dev->name, new_value, in bonding_store_updelay()
773 (new_value / bond->params.miimon) * in bonding_store_updelay()
776 bond->params.updelay = new_value / bond->params.miimon; in bonding_store_updelay()
807 int new_value, ret = count; in bonding_store_lacp() local
824 new_value = bond_parse_parm(buf, bond_lacp_tbl); in bonding_store_lacp()
826 if ((new_value == 1) || (new_value == 0)) { in bonding_store_lacp()
827 bond->params.lacp_fast = new_value; in bonding_store_lacp()
830 bond->dev->name, bond_lacp_tbl[new_value].modename, in bonding_store_lacp()
831 new_value); in bonding_store_lacp()
858 unsigned int new_value; in bonding_store_min_links() local
860 ret = kstrtouint(buf, 0, &new_value); in bonding_store_min_links()
868 bond->dev->name, new_value); in bonding_store_min_links()
869 bond->params.min_links = new_value; in bonding_store_min_links()
891 int new_value, ret = count; in bonding_store_ad_select() local
901 new_value = bond_parse_parm(buf, ad_select_tbl); in bonding_store_ad_select()
903 if (new_value != -1) { in bonding_store_ad_select()
904 bond->params.ad_select = new_value; in bonding_store_ad_select()
906 bond->dev->name, ad_select_tbl[new_value].modename, in bonding_store_ad_select()
907 new_value); in bonding_store_ad_select()
962 int new_value, ret = count; in bonding_store_miimon() local
967 if (sscanf(buf, "%d", &new_value) != 1) { in bonding_store_miimon()
973 if (new_value < 0) { in bonding_store_miimon()
975 bond->dev->name, new_value, 0, INT_MAX); in bonding_store_miimon()
980 bond->dev->name, new_value); in bonding_store_miimon()
981 bond->params.miimon = new_value; in bonding_store_miimon()
990 if (new_value && bond->params.arp_interval) { in bonding_store_miimon()
1003 if (!new_value) { in bonding_store_miimon()
1111 int new_value, ret = count; in bonding_store_primary_reselect() local
1117 new_value = bond_parse_parm(buf, pri_reselect_tbl); in bonding_store_primary_reselect()
1118 if (new_value < 0) { in bonding_store_primary_reselect()
1126 bond->params.primary_reselect = new_value; in bonding_store_primary_reselect()
1128 bond->dev->name, pri_reselect_tbl[new_value].modename, in bonding_store_primary_reselect()
1129 new_value); in bonding_store_primary_reselect()
1162 int new_value, ret = count; in bonding_store_carrier() local
1166 if (sscanf(buf, "%d", &new_value) != 1) { in bonding_store_carrier()
1172 if ((new_value == 0) || (new_value == 1)) { in bonding_store_carrier()
1173 bond->params.use_carrier = new_value; in bonding_store_carrier()
1175 bond->dev->name, new_value); in bonding_store_carrier()
1178 bond->dev->name, new_value); in bonding_store_carrier()
1553 int i, new_value, ret = count; in bonding_store_slaves_active() local
1557 if (sscanf(buf, "%d", &new_value) != 1) { in bonding_store_slaves_active()
1564 if (new_value == bond->params.all_slaves_active) in bonding_store_slaves_active()
1567 if ((new_value == 0) || (new_value == 1)) { in bonding_store_slaves_active()
1568 bond->params.all_slaves_active = new_value; in bonding_store_slaves_active()
1571 bond->dev->name, new_value); in bonding_store_slaves_active()
1579 if (new_value) in bonding_store_slaves_active()
1608 int new_value, ret = count; in bonding_store_resend_igmp() local
1611 if (sscanf(buf, "%d", &new_value) != 1) { in bonding_store_resend_igmp()
1618 if (new_value < 0 || new_value > 255) { in bonding_store_resend_igmp()
1620 bond->dev->name, new_value); in bonding_store_resend_igmp()
1626 bond->dev->name, new_value); in bonding_store_resend_igmp()
1627 bond->params.resend_igmp = new_value; in bonding_store_resend_igmp()