Lines Matching refs:rate
182 struct tc_netem_rate rate; in netem_parse_opt() local
191 memset(&rate, 0, sizeof(rate)); in netem_parse_opt()
413 if (get_s32(&rate.packet_overhead, *argv, 0)) { in netem_parse_opt()
420 if (get_u32(&rate.cell_size, *argv, 0)) { in netem_parse_opt()
427 if (get_s32(&rate.cell_overhead, *argv, 0)) { in netem_parse_opt()
517 rate.rate = ~0U; in netem_parse_opt()
519 rate.rate = rate64; in netem_parse_opt()
521 if (addattr_l(n, 1024, TCA_NETEM_RATE, &rate, sizeof(rate)) < 0) in netem_parse_opt()
545 const struct tc_netem_rate *rate = NULL; in netem_print_opt() local
589 if (RTA_PAYLOAD(tb[TCA_NETEM_RATE]) < sizeof(*rate)) in netem_print_opt()
591 rate = RTA_DATA(tb[TCA_NETEM_RATE]); in netem_print_opt()
663 if (rate && rate->rate) { in netem_print_opt()
667 fprintf(f, " rate %s", sprint_rate(rate->rate, b1)); in netem_print_opt()
668 if (rate->packet_overhead) in netem_print_opt()
669 fprintf(f, " packetoverhead %d", rate->packet_overhead); in netem_print_opt()
670 if (rate->cell_size) in netem_print_opt()
671 fprintf(f, " cellsize %u", rate->cell_size); in netem_print_opt()
672 if (rate->cell_overhead) in netem_print_opt()
673 fprintf(f, " celloverhead %d", rate->cell_overhead); in netem_print_opt()