vhost: calculate mbuf size
authorHuawei Xie <huawei.xie@intel.com>
Wed, 8 Oct 2014 18:54:42 +0000 (02:54 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 13 Oct 2014 17:16:53 +0000 (19:16 +0200)
commitfa325fa4130c42065f7d6457234113f1dc889b4e
treea7586718389e70d51cdcd00fec120e01ada73f51
parent20f16ce646c1a44a33e8988e7096e3a338ea8089
vhost: calculate mbuf size

As a lib, we have no idea the app defined mbuf size.
This patch will calculate mbuf size dynamically.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
lib/librte_vhost/vhost_rxtx.c