net/i40e: fix queue number error in queue region
authorWei Zhao <wei.zhao1@intel.com>
Tue, 24 Oct 2017 08:45:10 +0000 (16:45 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commit70697032d5a61ccf9d101df19c10975704ff7b90
treec2cdfbc9d0f6a6e821aa16d535ea38de79735b75
parent79e4ee566891c8e2e8b3657fa64d5d896190737e
net/i40e: fix queue number error in queue region

when VSI is enabled with smaller number of queues, for example 1 or 6,
it will cause error.

64 is the max number of queues that can be used for RSS, but VSI might
be created with only few queues.

Fixes: 7cbecc2f742 ("net/i40e: support queue region set and flush")

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/i40e/rte_pmd_i40e.c