Searched refs:prev_pkts_tx (Results 1 – 2 of 2) sorted by relevance
890 static uint64_t prev_pkts_tx[2]; in ntb_calculate_throughput() local899 diff_pkts_tx = (ntb_port_stats[port].tx > prev_pkts_tx[port]) ? in ntb_calculate_throughput()900 (ntb_port_stats[port].tx - prev_pkts_tx[port]) : 0; in ntb_calculate_throughput()902 prev_pkts_tx[port] = ntb_port_stats[port].tx; in ntb_calculate_throughput()
177 static uint64_t prev_pkts_tx[RTE_MAX_ETHPORTS]; in nic_stats_display() local254 diff_pkts_tx = (stats.opackets > prev_pkts_tx[port_id]) ? in nic_stats_display()255 (stats.opackets - prev_pkts_tx[port_id]) : 0; in nic_stats_display()257 prev_pkts_tx[port_id] = stats.opackets; in nic_stats_display()