xenvif_stats
struct xenvif_stats stats;
} xenvif_stats[] = {
offsetof(struct xenvif_stats, rx_gso_checksum_fixup)
offsetof(struct xenvif_stats, tx_zerocopy_sent),
offsetof(struct xenvif_stats, tx_zerocopy_success),
offsetof(struct xenvif_stats, tx_zerocopy_fail)
offsetof(struct xenvif_stats, tx_frag_overflow)
return ARRAY_SIZE(xenvif_stats);
for (i = 0; i < ARRAY_SIZE(xenvif_stats); i++) {
accum += *(unsigned long *)(vif_stats + xenvif_stats[i].offset);
for (i = 0; i < ARRAY_SIZE(xenvif_stats); i++)
xenvif_stats[i].name, ETH_GSTRING_LEN);