Lines Matching defs:stats

157 			packets = ring_stats->stats.pkts & INT_MAX;
1192 /* Update the stats for active netdevs so the network stack
6755 * ice_fetch_u64_stats_per_ring - get packets and bytes stats per ring
6757 * @stats: stats that pkts and bytes count will be taken from
6758 * @pkts: packets stats counter
6759 * @bytes: bytes stats counter
6761 * This function fetches stats from the ring considering the atomic operations
6766 struct ice_q_stats stats, u64 *pkts, u64 *bytes)
6772 *pkts = stats.pkts;
6773 *bytes = stats.bytes;
6778 * ice_update_vsi_tx_ring_stats - Update VSI Tx ring stats counters
6780 * @vsi_stats: the stats struct to be updated
6799 ring->ring_stats->stats, &pkts,
6810 * ice_update_vsi_ring_stats - Update VSI stats counters
6825 /* reset non-netdev (extended) stats */
6845 ring_stats->stats, &pkts,
6884 * ice_update_vsi_stats - Update VSI stats counters
6897 /* get stats as recorded by Tx/Rx rings */
6900 /* get VSI stats as recorded by the hardware */
6908 /* update some more netdev stats if this is main VSI */
6910 cur_ns->rx_crc_errors = pf->stats.crc_errors;
6911 cur_ns->rx_errors = pf->stats.crc_errors +
6912 pf->stats.illegal_bytes +
6913 pf->stats.rx_undersize +
6915 pf->stats.rx_jabber +
6916 pf->stats.rx_fragments +
6917 pf->stats.rx_oversize;
6919 cur_ns->rx_missed_errors = pf->stats.eth.rx_discards;
6924 * ice_update_pf_stats - Update PF port stats counters
6925 * @pf: PF whose stats needs to be updated
6936 cur_ps = &pf->stats;
7077 * @stats: main device statistics structure
7080 void ice_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats)
7091 /* netdev packet/byte stats come from ring counter. These are obtained
7098 stats->tx_packets = vsi_stats->tx_packets;
7099 stats->tx_bytes = vsi_stats->tx_bytes;
7100 stats->rx_packets = vsi_stats->rx_packets;
7101 stats->rx_bytes = vsi_stats->rx_bytes;
7103 /* The rest of the stats can be read from the hardware but instead we
7107 stats->multicast = vsi_stats->multicast;
7108 stats->tx_errors = vsi_stats->tx_errors;
7109 stats->tx_dropped = vsi_stats->tx_dropped;
7110 stats->rx_errors = vsi_stats->rx_errors;
7111 stats->rx_dropped = vsi_stats->rx_dropped;
7112 stats->rx_crc_errors = vsi_stats->rx_crc_errors;
7113 stats->rx_length_errors = vsi_stats->rx_length_errors;