net/vhost: move statistics into a structure
authorZhiyong Yang <zhiyong.yang@intel.com>
Thu, 29 Sep 2016 12:35:48 +0000 (20:35 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Thu, 29 Sep 2016 13:08:08 +0000 (15:08 +0200)
commit6ea833e1ce2b2a8642185b00261227f90e6c9503
tree122bd8c26cac8e92b5804463756acf23629622ef
parente22ed042882abefb969f4a70cdd1f268b5a67260
net/vhost: move statistics into a structure

The patch moves all stats counters to a new defined struct vhost_stats
as follows, in order to manage all stats counters in a unified way and
simplify the subsequent function implementation(vhost_dev_xstats_reset).

Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/vhost/rte_eth_vhost.c