[V2 RFC net-next PATCH 1/2] virtio_net: convert the statistics into array

2012-06-06 Thread Jason Wang
Currently, we store the statistics in the independent fields of virtnet_stats, this is not scalable when we want to add more counters. As suggested by Michael, this patch convert it to an array and use the enum as the index to access them. Signed-off-by: Jason Wang jasow...@redhat.com ---

Re: [V2 RFC net-next PATCH 1/2] virtio_net: convert the statistics into array

2012-06-06 Thread Eric Dumazet
On Wed, 2012-06-06 at 15:52 +0800, Jason Wang wrote: Currently, we store the statistics in the independent fields of virtnet_stats, this is not scalable when we want to add more counters. As suggested by Michael, this patch convert it to an array and use the enum as the index to access