net/i40e: fix multi-queue Rx interrupt for VF
authorLunyuan Cui <lunyuanx.cui@intel.com>
Fri, 17 Jan 2020 08:22:58 +0000 (08:22 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:21 +0000 (09:51 +0100)
commit40163f9e1756fa62562c3f463706fb3f1b264f7b
tree96b1418cacf0196a581b5c22a07cb578a53de8e8
parent89a532ba87ccf64bd53be6f2c384d5747d616612
net/i40e: fix multi-queue Rx interrupt for VF

The interrupt vector which bind to queues should not be larger than
the max available vector. It will cause port start failed. This patch
changed the judgement condition of the limited vector id. It can
effectively avoid vector id out of range.

Fixes: 6a6cf5f88b4a ("net/i40e: enable multi-queue Rx interrupt for VF")

Signed-off-by: Lunyuan Cui <lunyuanx.cui@intel.com>
Reviewed-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c