Lines Matching refs:nstats
340 struct net_device_stats *nstats;
355 nstats = &ndev->stats;
358 memset (nstats, 0, sizeof (struct net_device_stats));
359 nstats->rx_packets = stats->rx_packets;
360 nstats->tx_packets = stats->tx_packets;
361 nstats->rx_bytes = stats->rx_bytes;
362 nstats->tx_bytes = stats->tx_bytes;
363 nstats->rx_errors = stats->rx_length_errors +
369 nstats->tx_errors = stats->tx_dropped +
372 nstats->rx_dropped = stats->rx_dropped;
373 nstats->tx_dropped = stats->tx_dropped;
375 nstats->rx_length_errors = stats->rx_length_errors;
376 nstats->rx_over_errors = stats->rx_over_errors;
377 nstats->rx_crc_errors = stats->rx_crc_errors;
378 nstats->rx_frame_errors = stats->rx_frame_errors;
379 nstats->rx_fifo_errors = stats->rx_fifo_errors;
380 nstats->rx_missed_errors = stats->rx_missed_errors;
382 nstats->tx_aborted_errors = stats->tx_aborted_errors;
383 nstats->tx_fifo_errors = stats->tx_fifo_errors;
385 return nstats;