Lines Matching defs:stats
552 memset(&rxq->stats, 0, sizeof(rxq->stats));
784 struct t4vf_port_stats stats;
787 struct net_device_stats *ns = &dev->stats;
791 err = t4vf_get_port_stats(adapter, pi->pidx, &stats);
798 ns->tx_bytes = (stats.tx_bcast_bytes + stats.tx_mcast_bytes +
799 stats.tx_ucast_bytes + stats.tx_offload_bytes);
800 ns->tx_packets = (stats.tx_bcast_frames + stats.tx_mcast_frames +
801 stats.tx_ucast_frames + stats.tx_offload_frames);
802 ns->rx_bytes = (stats.rx_bcast_bytes + stats.rx_mcast_bytes +
803 stats.rx_ucast_bytes);
804 ns->rx_packets = (stats.rx_bcast_frames + stats.rx_mcast_frames +
805 stats.rx_ucast_frames);
806 ns->multicast = stats.rx_mcast_frames;
807 ns->tx_errors = stats.tx_drop_frames;
808 ns->rx_errors = stats.rx_err_frames;
1346 * Port stats maintained per queue of the port.
1427 struct queue_port_stats *stats)
1433 memset(stats, 0, sizeof(*stats));
1435 stats->tso += txq->tso;
1436 stats->tx_csum += txq->tx_cso;
1437 stats->rx_csum += rxq->stats.rx_cso;
1438 stats->vlan_ex += rxq->stats.vlan_ex;
1439 stats->vlan_ins += txq->vlan_ins;
1447 struct ethtool_stats *stats,
1770 R("RxPackets:", stats.pkts);
1771 R("RxCSO:", stats.rx_cso);
1772 R("VLANxtract:", stats.vlan_ex);
1773 R("LROmerged:", stats.lro_merged);
1774 R("LROpackets:", stats.lro_pkts);
1775 R("RxDrops:", stats.rx_drops);