[dpdk-dev] [PATCH v2] examples/vhost: fix statistics error

2015-12-03 Thread Yuanhan Liu
On Thu, Dec 03, 2015 at 06:01:33AM +0800, Jianfeng Tan wrote: > 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. > > To fix this problem, we check each rx/tx branch

[dpdk-dev] [PATCH v2] examples/vhost: fix statistics error

2015-12-03 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Thursday, December 3, 2015 2:18 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] examples/vhost: fix statistics error > > On Thu, Dec 03,

[dpdk-dev] [PATCH v2] examples/vhost: fix statistics error

2015-12-03 Thread Jianfeng Tan
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. To fix this problem, we check each rx/tx branch to update stats. Besides, the stats are printed at a separated thread,