From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) by dpdk.org (Postfix) with ESMTP id 10212A2F for ; Tue, 14 Feb 2017 11:07:21 +0100 (CET) Received: by mail-wr0-f172.google.com with SMTP id c4so8433635wrd.2 for ; Tue, 14 Feb 2017 02:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=alxuBySoJAtTa0Mnazm01958TnIluTb6ha4jSHdGmOk=; b=sJP3gUIU1w+pHFYmLAZnEe5qbOww0SzNBbyceIPNKK4tNeOIQLThTK02K2ml2T1PTl jb6jIePBftymSx/h+d7X872/TLjgPIsi1H/C7BD35gZz80y15+nQ1BVZM+TQEyyaLfa+ dxN1ASZkaaDNHYaZqqnA5wF6SO2nPX2C6tJ8Bt04wfhJ0VQZzCaor6VnEPudzHzTJjvg 9w8txUoS0F2UlG6ipn7n6L9NYpDmtxrFUqxfHjD3p9x9HeHuT8xHfzKyjNVp673KDqIQ Kgw5Gf19cxMGnDENUh+2ji7pVDbSOg9Lvtc8GFjkfYdHPYwGEIhYOBr6ORYjCRQoKTgn 9Nag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=alxuBySoJAtTa0Mnazm01958TnIluTb6ha4jSHdGmOk=; b=VQ+ZQyRbczUqeSgJYyhfQUJRIor5Gvhm5GgeyinwvTiIfm6D6qIss5pGNpJ+14QiOj 6IbByNByoP+wFWiyhPCZRwLwDltBivYiOSPdduBAjO0nJg34fJOr0zBw8MM3wtQ0bseI 66RfzoX8+c+I/eF1mThc5MgAnRyUkdpsDNA+rjax4aTiMN7ATb19W8bxMFdyO0sD/LBj J7MaPurJ92xa+blXOpOZFoxTXREED7C5AZpl165je+YnyuwwN5YcDk7hvvQXSLM2blJV D0u/p0ncRCNR6W1D4ol0TBRIMq0LtyvfXAoVujCSaZcLqOT2y0jXLoqf5acBQ376HfiQ 5Kqg== X-Gm-Message-State: AMke39leKC5/2BJFx/ABeglztBE7epioYFcsrmdycYa+kUwzPkkZMKdvV81QpR7SvTDogyiT X-Received: by 10.223.133.220 with SMTP id 28mr26475193wru.97.1487066840812; Tue, 14 Feb 2017 02:07:20 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id l67sm619251wmf.1.2017.02.14.02.07.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 02:07:20 -0800 (PST) From: Thomas Monjalon To: Helin Zhang , Jingjing Wu Cc: John Mcnamara , dev@dpdk.org Date: Tue, 14 Feb 2017 11:07:19 +0100 Message-ID: <32336171.7h5g7kEJXa@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: [dpdk-dev] i40e queues per VF X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2017 10:07:21 -0000 Hi, When reading the documentation, it is not easy to understand the capability of i40evf for the number of queues. First, please could you explain why we need a build-time config option? In the doc, there is neither justification nor tuning guidelines: http://dpdk.org/doc/guides/nics/i40e.html#config-file-options " CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF (default 64) Number of queues reserved for PF. CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF (default 4) Number of queues reserved for each SR-IOV VF. " I feel these are hard limits and should be some constants in the code, not some build configuration options. The other doc to look at is: http://dpdk.org/doc/guides/nics/intel_vf.html#intel-fortville-10-40-gigabit-ethernet-controller-vf-infrastructure " Each VF can have a maximum of 16 queue pairs. " Do we agree that a queue pair is 1 Rx queue / 1 Tx queue? Note: the concept of queue pairs in Intel VF should be explained somewhere. Below, a different limitation is given: " The available queue number(at most 4) per VF depends on the total number of pool, which is determined by the max number of VF at PF initialization stage and the number of queue specified in config " So what is the real maximum of queue pairs? 4 or 16? The datasheet talks about 16 queues. Is it 8 pairs? Is there something to configure the number of queues when creating VF with the kernel driver?