examples/vhost: fix statistics
authorJianfeng Tan <jianfeng.tan@intel.com>
Wed, 2 Dec 2015 23:20:26 +0000 (07:20 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Dec 2015 02:21:13 +0000 (03:21 +0100)
commit4c7bcd79be8702dc71844a3aaf0666174e7d3c14
tree68fdb9cabd820c02540e222d87760868654ff816
parente4363e814961c006be82d2b4e59e9509c2463edf
examples/vhost: fix statistics

This issue was discovered under the case of software vm2vm
fowarding. When pkts are received from virtio device 0 and
tx_route to virtio device 1, tx of device 0 is not updated.

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Tested-by: Qian Xu <qian.q.xu@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
examples/vhost/main.c