examples/vhost: support new VMDQ API for i40e
authorHuawei Xie <huawei.xie@intel.com>
Wed, 12 Nov 2014 22:34:06 +0000 (06:34 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sat, 6 Dec 2014 10:08:35 +0000 (11:08 +0100)
commit84b02d16c53981e9163a3f1600651a533770553a
tree9ef249ec0b257f4f665da2d05decc96db9fe4da8
parentbc8e0f501cf4c3bee3de8ee26a98e72e517cfe32
examples/vhost: support new VMDQ API for i40e

In Niantic, if VMDQ mode is set, all queues are allocated to VMDQ in DPDK.
In I40E, only configured part of continous queues are allocated to VMDQ.
The rte_eth_dev_info structure is extended to provide VMDQ queue base,
queue number, and VMDQ pool base information.
This patch support the new VMDQ API in vhost example.

FIXME in PMD:
 * added mac address will be flushed at rte_eth_dev_start.
 * we don't support selectively setting up queues well.

Test report: http://dpdk.org/ml/archives/dev/2014-December/009427.html

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
Tested-by: Jingguo Fu <jingguox.fu@intel.com>
examples/vhost/main.c