[dpdk-dev] [PATCH v10] net/i40e: determine number of queues per VF during run time

Zhang, Helin helin.zhang at intel.com
Tue Jan 9 15:36:13 CET 2018



> -----Original Message-----
> From: Dai, Wei
> Sent: Tuesday, January 9, 2018 4:56 PM
> To: Zhang, Helin; Yigit, Ferruh; Wu, Jingjing; Xing, Beilei
> Cc: dev at dpdk.org; Dai, Wei
> Subject: [PATCH v10] net/i40e: determine number of queues per VF during run
> time
> 
> Without this patch, the number of queues per i40e  VF is defined as 4 by
> CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF=4 in config/common_base.
> It is fixed value determined in building time and can't be changed during run
> time.
> With this patch, the number of queues per i40e VF can be determinated during
> run time. For example, if the PCI address of an i40e PF is aaaa:bb.cc, with the
> EAL parameter -w aaaa:bb.cc,queue-num-per-vf=8 , the number of queues per
> VF created from this PF is 8.
> If there is no "queue-num-per-vf" setting in EAL parameters, it is 4 by default as
> before. And if the value after the "queue-num-per-vf"
> is invalid, it is set as 4 forcibly. The valid values include 1, 2, 4, 8, 16 .
> 
> Signed-off-by: Wei Dai <wei.dai at intel.com>
> Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
Applied to dpdk-next-net-intel with minor commit log changes. Thanks!

/Helin


More information about the dev mailing list