Lines Matching refs:rtstats
557 struct rtnl_link_stats64 rtstats = {}; in nsim_get_queue_stats_rx() local
560 nsim_get_stats64(dev, &rtstats); in nsim_get_queue_stats_rx()
562 stats->packets = rtstats.rx_packets - !!rtstats.rx_packets; in nsim_get_queue_stats_rx()
563 stats->bytes = rtstats.rx_bytes; in nsim_get_queue_stats_rx()
569 struct rtnl_link_stats64 rtstats = {}; in nsim_get_queue_stats_tx() local
572 nsim_get_stats64(dev, &rtstats); in nsim_get_queue_stats_tx()
574 stats->packets = rtstats.tx_packets - !!rtstats.tx_packets; in nsim_get_queue_stats_tx()
575 stats->bytes = rtstats.tx_bytes; in nsim_get_queue_stats_tx()
582 struct rtnl_link_stats64 rtstats = {}; in nsim_get_base_stats() local
584 nsim_get_stats64(dev, &rtstats); in nsim_get_base_stats()
586 rx->packets = !!rtstats.rx_packets; in nsim_get_base_stats()
588 tx->packets = !!rtstats.tx_packets; in nsim_get_base_stats()