Lines Matching refs:rate
179 struct tc_netem_rate rate; in netem_parse_opt() local
187 memset(&rate, 0, sizeof(rate)); in netem_parse_opt()
389 if (get_rate(&rate.rate, *argv)) { in netem_parse_opt()
395 if (get_s32(&rate.packet_overhead, *argv, 0)) { in netem_parse_opt()
402 if (get_u32(&rate.cell_size, *argv, 0)) { in netem_parse_opt()
409 if (get_s32(&rate.cell_overhead, *argv, 0)) { in netem_parse_opt()
482 addattr_l(n, 1024, TCA_NETEM_RATE, &rate, sizeof(rate)) < 0) in netem_parse_opt()
504 const struct tc_netem_rate *rate = NULL; in netem_print_opt() local
547 if (RTA_PAYLOAD(tb[TCA_NETEM_RATE]) < sizeof(*rate)) in netem_print_opt()
549 rate = RTA_DATA(tb[TCA_NETEM_RATE]); in netem_print_opt()
610 if (rate && rate->rate) { in netem_print_opt()
611 fprintf(f, " rate %s", sprint_rate(rate->rate, b1)); in netem_print_opt()
612 if (rate->packet_overhead) in netem_print_opt()
613 fprintf(f, " packetoverhead %d", rate->packet_overhead); in netem_print_opt()
614 if (rate->cell_size) in netem_print_opt()
615 fprintf(f, " cellsize %u", rate->cell_size); in netem_print_opt()
616 if (rate->cell_overhead) in netem_print_opt()
617 fprintf(f, " celloverhead %d", rate->cell_overhead); in netem_print_opt()