examples/vhost: fix startup check
authorZhiyong Yang <zhiyong.yang@intel.com>
Wed, 10 Jan 2018 06:01:01 +0000 (14:01 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit61e99293f6591f8ac2e0051b80fe7e1ba638ea96
tree6e20589c85d829477af6abd73a91d67dfa7975c5
parentda51d2f6b8b652da8eb9d4b50df4f3f5a24b656f
examples/vhost: fix startup check

For vhost sample, the operation if (dev_info.max_rx_queues >
MAX_QUEUES) in the function port_init causes startup failure
when using X710(i40e driver). X710 requires that MAX_QUEUES
should be defined no less than 320, however it is defined as
128 currently.

Such checking is overkill and Removal don't affect any
functionality (have already validated ixgbe and i40e).

The removal can avoid similar issue when introduing new physical NIC.

Fixes: 8bd6c395a568 ("examples/vhost: increase maximum queue number")
Cc: stable@dpdk.org
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
examples/vhost/main.c