[dpdk-dev] [PATCH v2 04/11] virtio: add xstats() implementation

2015-10-01 Thread Van Haaren, Harry
> From: Stephen Hemminger [mailto:stephen at networkplumber.org] > > +/* [rt]x_qX_ is prepended to the name string here */ static const > > +struct rte_virtio_xstats_name_off rte_virtio_q_stat_strings[] = { > > + {"packets", offsetof(struct virtqueue, packets)}, > > + {"bytes", offsetof(struct

[dpdk-dev] [PATCH v2 04/11] virtio: add xstats() implementation

2015-09-30 Thread Stephen Hemminger
On Wed, 30 Sep 2015 10:40:15 +0100 Harry van Haaren wrote: > +/* [rt]x_qX_ is prepended to the name string here */ > +static const struct rte_virtio_xstats_name_off rte_virtio_q_stat_strings[] = > { > + {"packets", offsetof(struct virtqueue, packets)}, > + {"bytes", offsetof(struct virtq

[dpdk-dev] [PATCH v2 04/11] virtio: add xstats() implementation

2015-09-30 Thread Harry van Haaren
Add xstats() functions and statistic strings to virtio PMD. Signed-off-by: Harry van Haaren --- drivers/net/virtio/virtio_ethdev.c | 82 +- 1 file changed, 80 insertions(+), 2 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/