Lines Matching refs:net_stats
1156 struct net_device_stats *net_stats = &netdev->stats; in atl1e_get_stats() local
1158 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1e_get_stats()
1159 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1e_get_stats()
1160 net_stats->multicast = hw_stats->rx_mcast; in atl1e_get_stats()
1161 net_stats->collisions = hw_stats->tx_1_col + in atl1e_get_stats()
1166 net_stats->rx_errors = hw_stats->rx_frag + in atl1e_get_stats()
1174 net_stats->rx_fifo_errors = hw_stats->rx_rxf_ov; in atl1e_get_stats()
1175 net_stats->rx_length_errors = hw_stats->rx_len_err; in atl1e_get_stats()
1176 net_stats->rx_crc_errors = hw_stats->rx_fcs_err; in atl1e_get_stats()
1177 net_stats->rx_frame_errors = hw_stats->rx_align_err; in atl1e_get_stats()
1178 net_stats->rx_dropped = hw_stats->rx_rrd_ov; in atl1e_get_stats()
1180 net_stats->tx_errors = hw_stats->tx_late_col + in atl1e_get_stats()
1185 net_stats->tx_fifo_errors = hw_stats->tx_underrun; in atl1e_get_stats()
1186 net_stats->tx_aborted_errors = hw_stats->tx_abort_col; in atl1e_get_stats()
1187 net_stats->tx_window_errors = hw_stats->tx_late_col; in atl1e_get_stats()
1189 net_stats->rx_packets = hw_stats->rx_ok + net_stats->rx_errors; in atl1e_get_stats()
1190 net_stats->tx_packets = hw_stats->tx_ok + net_stats->tx_errors; in atl1e_get_stats()
1192 return net_stats; in atl1e_get_stats()