Home
last modified time | relevance | path

Searched refs:curr_stats (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dnet_dim.h285 net_dim_decision(struct net_dim_stats *curr_stats, in net_dim_decision() argument
295 stats_res = net_dim_stats_compare(curr_stats, &dim->prev_stats); in net_dim_decision()
308 stats_res = net_dim_stats_compare(curr_stats, &dim->prev_stats); in net_dim_decision()
331 dim->prev_stats = *curr_stats; in net_dim_decision()
354 struct net_dim_stats *curr_stats) in net_dim_calc_stats() argument
365 curr_stats->ppms = DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us); in net_dim_calc_stats()
366 curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us); in net_dim_calc_stats()
367 curr_stats->epms = DIV_ROUND_UP(NET_DIM_NEVENTS * USEC_PER_MSEC, in net_dim_calc_stats()
375 struct net_dim_stats curr_stats; in net_dim() local
390 &curr_stats); in net_dim()
[all …]
/freebsd/contrib/libpcap/
H A Dpcap-dpdk.c187 struct rte_eth_stats curr_stats; member
465 rte_eth_stats_get(pd->portid,&(pd->curr_stats)); in pcap_dpdk_stats()
467 ps->ps_recv = pd->curr_stats.ipackets; in pcap_dpdk_stats()
468 ps->ps_drop = pd->curr_stats.ierrors; in pcap_dpdk_stats()
470 ps->ps_ifdrop = pd->curr_stats.imissed; in pcap_dpdk_stats()
472 uint64_t delta_pkt = pd->curr_stats.ipackets - pd->prev_stats.ipackets; in pcap_dpdk_stats()
476 uint64_t delta_bit = (pd->curr_stats.ibytes-pd->prev_stats.ibytes)*8; in pcap_dpdk_stats()
481 pd->prev_stats = pd->curr_stats; in pcap_dpdk_stats()