Lines Matching refs:num_pkts
34 struct timeval *tv2, uint64_t num_pkts);
45 net_perf_measure_time(net_perf_t *npp, struct timeval *start, uint64_t num_pkts) in net_perf_measure_time() argument
49 ip_perf_record_stats(npp, start, &stop, num_pkts); in net_perf_measure_time()
53 ip_perf_record_stats(net_perf_t *npp, struct timeval *tv1, struct timeval *tv2, uint64_t num_pkts) in ip_perf_record_stats() argument
60 OSAddAtomic64(num_pkts, &npp->np_total_pkts); in ip_perf_record_stats()
86 net_perf_histogram(net_perf_t *npp, uint64_t num_pkts) in net_perf_histogram() argument
88 if (num_pkts <= npp->np_hist_bars[0]) { in net_perf_histogram()
89 OSAddAtomic64(num_pkts, &npp->np_hist1); in net_perf_histogram()
90 } else if (npp->np_hist_bars[0] < num_pkts && num_pkts <= npp->np_hist_bars[1]) { in net_perf_histogram()
91 OSAddAtomic64(num_pkts, &npp->np_hist2); in net_perf_histogram()
92 } else if (npp->np_hist_bars[1] < num_pkts && num_pkts <= npp->np_hist_bars[2]) { in net_perf_histogram()
93 OSAddAtomic64(num_pkts, &npp->np_hist3); in net_perf_histogram()
94 } else if (npp->np_hist_bars[2] < num_pkts && num_pkts <= npp->np_hist_bars[3]) { in net_perf_histogram()
95 OSAddAtomic64(num_pkts, &npp->np_hist4); in net_perf_histogram()
96 } else if (npp->np_hist_bars[3] < num_pkts) { in net_perf_histogram()
97 OSAddAtomic64(num_pkts, &npp->np_hist5); in net_perf_histogram()