net/iavf: fix queue pairs configuration
authorAlvin Zhang <alvinx.zhang@intel.com>
Wed, 23 Dec 2020 05:29:36 +0000 (13:29 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:06 +0000 (16:03 +0100)
commit403aebc44c04952f98fc7501e26eb77098d74bc8
treec741fac5698285a8cc0a113e29bbb62cabfe6735
parentd2565b347915def3a0f3c68bde6824acf096a0e6
net/iavf: fix queue pairs configuration

Check if there are enough queue pairs currently allocated, and if not,
request PF to allocate them.

Fixes: e436cd43835b ("net/iavf: negotiate large VF and request more queues")
Cc: stable@dpdk.org
Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Tested-by: Zhimin Huang <zhiminx.huang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_ethdev.c