Skip to contentSkip to conversation

net/i40e: determine number of queues per VF during run time

PATCH Superseded Wei Dai 1 participant 1 message Nov 17, 2017 Network drivers

v1 of 10 Superseded Latest is v10 →

lore
Share & tools
lore

Wei Dai

author
#0 lore raw

PATCH 1/1 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 VF is aaaa:bb.cc, with the EAL parameter -w aaaa:bb.cc,i40e-queue-num-per-vf=8 , the number of queues per VF is 8.
If there is no "i40e-queue-num-per-vf" setting in EAL parameters, it is 4 by default as before. And if the value after the "i40e-queue-num-per-vf" is invalid, it is set as 4 forcibly. The valid values include 1, 2, 4, 8, 16 .

---
 config/common_base             |  1 -
 drivers/net/i40e/i40e_ethdev.c | 68 ++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 66 insertions(+), 3 deletions(-)
config/common_base +0 -1
index e74febe..4e20389 100644
@@ -208,7 +208,6 @@ CONFIG_RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC=y
 CONFIG_RTE_LIBRTE_I40E_INC_VECTOR=y
 CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n
 CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF=64
-CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF=4
 CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=4
 # interval up to 8160 us, aligned to 2 (or default value)
 CONFIG_RTE_LIBRTE_I40E_ITR_INTERVAL=-1
drivers/net/i40e/i40e_ethdev.c +66 -2

92 lines not on this page · raw message

Signature · 1 line
2.7.5