net/ixgbe: fix the failure of number of Tx queue check
authorYanglong Wu <yanglong.wu@intel.com>
Wed, 10 Jan 2018 01:51:36 +0000 (09:51 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit12da1deb89806c0a0d974948d11712e4f06c6b93
tree70e8883bfa6232f483df19fb6e8c6e47ed475619
parent2b38f509c33eab1178d5736c06d4c84c20500dbc
net/ixgbe: fix the failure of number of Tx queue check

Tx_q check fails when the SRIOV is active and tx_q > rx_q. It has
to use the maximum HW queue number for calculation, to get the
right number of queue can be used.

Fixes: 27b609cbd1c6 ("ethdev: move the multi-queue mode check to specific drivers")
Cc: stable@dpdk.org
Signed-off-by: Yanglong Wu <yanglong.wu@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c