Lines Matching refs:net_stats
1175 struct net_device_stats *net_stats = &netdev->stats; in atl1e_get_stats() local
1177 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1e_get_stats()
1178 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1e_get_stats()
1179 net_stats->multicast = hw_stats->rx_mcast; in atl1e_get_stats()
1180 net_stats->collisions = hw_stats->tx_1_col + in atl1e_get_stats()
1185 net_stats->rx_errors = hw_stats->rx_frag + in atl1e_get_stats()
1193 net_stats->rx_fifo_errors = hw_stats->rx_rxf_ov; in atl1e_get_stats()
1194 net_stats->rx_length_errors = hw_stats->rx_len_err; in atl1e_get_stats()
1195 net_stats->rx_crc_errors = hw_stats->rx_fcs_err; in atl1e_get_stats()
1196 net_stats->rx_frame_errors = hw_stats->rx_align_err; in atl1e_get_stats()
1197 net_stats->rx_dropped = hw_stats->rx_rrd_ov; in atl1e_get_stats()
1199 net_stats->tx_errors = hw_stats->tx_late_col + in atl1e_get_stats()
1204 net_stats->tx_fifo_errors = hw_stats->tx_underrun; in atl1e_get_stats()
1205 net_stats->tx_aborted_errors = hw_stats->tx_abort_col; in atl1e_get_stats()
1206 net_stats->tx_window_errors = hw_stats->tx_late_col; in atl1e_get_stats()
1208 net_stats->rx_packets = hw_stats->rx_ok + net_stats->rx_errors; in atl1e_get_stats()
1209 net_stats->tx_packets = hw_stats->tx_ok + net_stats->tx_errors; in atl1e_get_stats()
1211 return net_stats; in atl1e_get_stats()