search for: u_packets

Displaying 2 results from an estimated 2 matches for "u_packets".

2017 Dec 20
4
[PATCH net-next] virtio_net: Add ethtool stats
...int i; + + switch (stringset) { + case ETH_SS_STATS: + for (i = 0; i < VIRTNET_GSTATS_LEN; i++) { + memcpy(p, virtnet_gstrings_stats[i].stat_string, + ETH_GSTRING_LEN); + p += ETH_GSTRING_LEN; + } + for (i = 0; i < vi->curr_queue_pairs; i++) { + sprintf(p, "rx_queue_%u_packets", i); + p += ETH_GSTRING_LEN; + sprintf(p, "rx_queue_%u_bytes", i); + p += ETH_GSTRING_LEN; + } + for (i = 0; i < vi->curr_queue_pairs; i++) { + sprintf(p, "tx_queue_%u_packets", i); + p += ETH_GSTRING_LEN; + sprintf(p, "tx_queue_%u_bytes", i);...
2017 Dec 20
4
[PATCH net-next] virtio_net: Add ethtool stats
...int i; + + switch (stringset) { + case ETH_SS_STATS: + for (i = 0; i < VIRTNET_GSTATS_LEN; i++) { + memcpy(p, virtnet_gstrings_stats[i].stat_string, + ETH_GSTRING_LEN); + p += ETH_GSTRING_LEN; + } + for (i = 0; i < vi->curr_queue_pairs; i++) { + sprintf(p, "rx_queue_%u_packets", i); + p += ETH_GSTRING_LEN; + sprintf(p, "rx_queue_%u_bytes", i); + p += ETH_GSTRING_LEN; + } + for (i = 0; i < vi->curr_queue_pairs; i++) { + sprintf(p, "tx_queue_%u_packets", i); + p += ETH_GSTRING_LEN; + sprintf(p, "tx_queue_%u_bytes", i);...