Lines Matching +full:int +full:- +full:threshold

2  * Copyright (c) 2004-2009 Voltaire Inc.  All rights reserved.
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
60 static int with_grh;
72 "<controlmap> <victimmask> <creditmask> <threshold> <packetsize> "
75 "<valid> <control_type> <threshold> <packet_size> <cong_parm_marking_rate>"},
103 static char *parseint(char *arg, uint32_t *val, int hexonly) in parseint()
119 static char *congestion_key_info(ib_portid_t * dest, char **argv, int argc) in congestion_key_info()
165 * they gotta input non-zero in congestion_key_info()
182 int numdigits = 0; in parse256()
183 int startindex; in parse256()
185 int i; in parse256()
199 /* we need to imagine that this is like a 256-bit int stored in parse256()
203 startindex = 32 - ((numdigits - 1) / 2) - 1; in parse256()
253 static char *switch_congestion_setting(ib_portid_t * dest, char **argv, int argc) in switch_congestion_setting()
260 uint32_t threshold; in switch_congestion_setting() local
281 if ((errstr = parseint(argv[3], &threshold, 0))) in switch_congestion_setting()
315 &threshold); in switch_congestion_setting()
340 static char *switch_port_congestion_setting(ib_portid_t * dest, char **argv, int argc) in switch_port_congestion_setting()
348 uint32_t threshold; in switch_port_congestion_setting() local
368 if ((errstr = parseint(argv[3], &threshold, 0))) in switch_port_congestion_setting()
407 &threshold); in switch_port_congestion_setting()
424 static char *ca_congestion_setting(ib_portid_t * dest, char **argv, int argc) in ca_congestion_setting()
435 int i; in ca_congestion_setting()
498 static char *congestion_control_table(ib_portid_t * dest, char **argv, int argc) in congestion_control_table()
507 int i; in congestion_control_table()
518 if (ccti_limit && (ccti_limit + 1) != (index * 64 + (argc - 2))) in congestion_control_table()
521 for (i = 0; i < (argc - 2); i++) { in congestion_control_table()
530 for (i = 0; i < (argc - 2); i++) { in congestion_control_table()
547 static int process_opt(void *context, int ch, char *optarg) in process_opt()
562 return -1; in process_opt()
567 int main(int argc, char **argv) in main()
570 int mgmt_classes[3] = { IB_SMI_CLASS, IB_SA_CLASS, IB_CC_CLASS }; in main()
575 int n; in main()
591 n = sprintf(usage_args, "[-c key] <op> <lid|guid>\n" in main()
592 "\nWARNING -- You should understand what you are " in main()
596 for (r = match_tbl; r->name; r++) { in main()
597 n += snprintf(usage_args + n, sizeof(usage_args) - n, in main()
598 " %s (%s) <lid|guid>%s%s%s\n", r->name, in main()
599 r->alias ? r->alias : "", in main()
600 r->opt_portnum ? " <portnum>" : "", in main()
601 r->ops_extra ? " " : "", in main()
602 r->ops_extra ? r->ops_extra : ""); in main()
604 exit(-1); in main()
610 argc -= optind; in main()
634 if ((err = fn(&portid, argv + 2, argc - 2))) in main()