tsnep_stats
struct tsnep_stats tsnep_stats;
memset(&tsnep_stats, 0, sizeof(tsnep_stats));
tsnep_stats.rx_packets += adapter->rx[i].packets;
tsnep_stats.rx_bytes += adapter->rx[i].bytes;
tsnep_stats.rx_dropped += adapter->rx[i].dropped;
tsnep_stats.rx_multicast += adapter->rx[i].multicast;
tsnep_stats.rx_alloc_failed += adapter->rx[i].alloc_failed;
tsnep_stats.rx_phy_errors =
tsnep_stats.rx_forwarded_phy_errors =
tsnep_stats.rx_invalid_frame_errors =
tsnep_stats.tx_packets += adapter->tx[i].packets;
tsnep_stats.tx_bytes += adapter->tx[i].bytes;
tsnep_stats.tx_dropped += adapter->tx[i].dropped;
memcpy(data, &tsnep_stats, sizeof(tsnep_stats));
#define TSNEP_STATS_COUNT (sizeof(struct tsnep_stats) / sizeof(u64))