net/iavf: negotiate large VF and request more queues
authorTing Xu <ting.xu@intel.com>
Thu, 22 Oct 2020 06:48:59 +0000 (14:48 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:24:25 +0000 (23:24 +0100)
commite436cd43835b8cfa3fbad8f2aeaf224c3f54dca9
tree96ff889857c75628db71c08e0b0a73198266bf7e
parentef807926e148b956756ba5f557f8071ec49ef279
net/iavf: negotiate large VF and request more queues

Negotiate large VF capability with PF during VF initialization. If large
VF is supported and the number of queues larger than 16 is required, VF
requests additional queues from PF. Mark the state that large VF is
supported.

If the allocated queues number is larger than 16, the max RSS queue
region cannot be 16 anymore. Add the function to query max RSS queue
region from PF, use it in the RSS initialization and future filters
configuration.

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_ethdev.c
drivers/net/iavf/iavf_vchnl.c