examples/vhost: fix calculation of mbuf count
authorYong Wang <wang.yong19@zte.com.cn>
Thu, 12 Jan 2017 03:52:17 +0000 (22:52 -0500)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 17 Jan 2017 08:20:18 +0000 (09:20 +0100)
commit12ee45a3620b30a99d21cbf5a25d787f088f0de9
treec280de5914a0cd72b7f26895df669d8e00ef7fc5
parent1ce3c7fe149f9eb2660d017c98ca1a94f0e35018
examples/vhost: fix calculation of mbuf count

When calculating 'nr_mbufs_per_core', 'MAX_PKT_BURST' was mutiplied
twice. Fix it by removing one of them.

Fixes: bdb19b771e6f ("examples/vhost: fix mbuf allocation failure")
Cc: stable@dpdk.org
Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
examples/vhost/main.c