[Intel-wired-lan] [next PATCH S77-V3 09/10] i40e: Enable VF to negotiate number of allocated queues

Bowers, AndrewX andrewx.bowers at intel.com
Fri Jul 21 20:48:42 UTC 2017


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Friday, July 14, 2017 6:27 AM
> To: Michael, Alice <alice.michael at intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S77-V3 09/10] i40e: Enable VF to
> negotiate number of allocated queues
> 
> From: Alan Brady <alan.brady at intel.com>
> 
> Currently the PF allocates a default number of queues for each VF and
> cannot be changed.  This patch enables the VF to request a different number
> of queues allocated to it.  This patch also adds a new virtchnl op and capability
> flag to facilitate this negotiation.
> 
> After the PF receives a request message, it will set a requested number of
> queues for that VF.  Then when the VF resets, its VSI will get a new number
> of queues allocated to it.
> 
> This is a best effort request and since we only allocate a guaranteed default
> number, if the VF tries to ask for more than the guaranteed number, there
> may not be enough in HW to accommodate it unless other queues for other
> VFs are freed. It should also be noted decreasing the number queues
> allocated to a VF to below the default will NOT enable the allocation of more
> than 32 VFs per PF and will not free queues guaranteed to each VF by
> default.
> 
> Signed-off-by: Alan Brady <alan.brady at intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e.h             |  1 +
>  drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 75
> ++++++++++++++++++++++
> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h |  1 +
>  include/linux/avf/virtchnl.h                       | 20 ++++++
>  4 files changed, 97 insertions(+)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list