net/iavf: support requesting additional queues from PF
authorTing Xu <ting.xu@intel.com>
Thu, 22 Oct 2020 06:48:58 +0000 (14:48 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:24:25 +0000 (23:24 +0100)
commitef807926e148b956756ba5f557f8071ec49ef279
tree78d4e6b4c19ec247c218ec2aa8506998574d022b
parent5e03e316c75369a72dbd3c506af29ac4a3762e5a
net/iavf: support requesting additional queues from PF

Add a new virtchnl function to request additional queues from PF.
Current default queue pairs number when creating a VF is 16. In order to
support up to 256 queue pairs per VF, enable this request queues
function.

When requesting queues succeeds, PF will return an event message. If it
is handled by interrupt first, the request queues command cannot receive
the correct PF response and will wait until timeout. Therefore, disable
interrupt before requesting queues in order to handle the event message
asynchronously.

Signed-off-by: Ting Xu <ting.xu@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/iavf/iavf.h
drivers/net/iavf/iavf_vchnl.c