Lines Matching refs:rtstats
518 struct rtnl_link_stats64 rtstats = {}; in nsim_get_queue_stats_rx() local
521 nsim_get_stats64(dev, &rtstats); in nsim_get_queue_stats_rx()
523 stats->packets = rtstats.rx_packets - !!rtstats.rx_packets; in nsim_get_queue_stats_rx()
524 stats->bytes = rtstats.rx_bytes; in nsim_get_queue_stats_rx()
530 struct rtnl_link_stats64 rtstats = {}; in nsim_get_queue_stats_tx() local
533 nsim_get_stats64(dev, &rtstats); in nsim_get_queue_stats_tx()
535 stats->packets = rtstats.tx_packets - !!rtstats.tx_packets; in nsim_get_queue_stats_tx()
536 stats->bytes = rtstats.tx_bytes; in nsim_get_queue_stats_tx()
543 struct rtnl_link_stats64 rtstats = {}; in nsim_get_base_stats() local
545 nsim_get_stats64(dev, &rtstats); in nsim_get_base_stats()
547 rx->packets = !!rtstats.rx_packets; in nsim_get_base_stats()
549 tx->packets = !!rtstats.tx_packets; in nsim_get_base_stats()