From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.ud15.udmedia.de (ud15.udmedia.de [194.117.254.55]) by dpdk.org (Postfix) with ESMTP id 8458E378B for ; Fri, 4 Aug 2017 14:56:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=ng4t.com; h=subject:to :references:from:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; s=k1; bh=EUmtnVg1Yh7pqa XDfqdjxAovNrxtWJ8pitSgvac6pGc=; b=hkc54HB+EnODi0C/HRqBSFGYEpVDyb WEOptWhrmQ2cM8QALVmsGmCJrY8NpGiSHvuC3NFqaeC5ox03Y6TZMSM5IeqYv54p V3U8sSjdMj2ArdiSao0H9fxk60oQ6arPdFYluj35RgIVnVoMdHpxgAVCnOffHuDx vDEveiGIaUYdI= Received: (qmail 22987 invoked from network); 4 Aug 2017 14:56:59 +0200 Received: from unknown (HELO ?IPv6:2a02:8106:1:f900:2e0:4cff:fe68:158b?) (ud15?2p5@2a02:8106:1:f900:2e0:4cff:fe68:158b) by mail.ud15.udmedia.de with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256 encrypted, authenticated); 4 Aug 2017 14:56:59 +0200 To: "users@dpdk.org" References: <6a4e8f84-d52e-53e8-04b1-42bc39f261ed@ng4t.com> From: Dirk-Holger Lenz Message-ID: <3172013e-444f-0d26-64dc-b9671c386a1d@ng4t.com> Date: Fri, 4 Aug 2017 14:56:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: <6a4e8f84-d52e-53e8-04b1-42bc39f261ed@ng4t.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] i40e virtual function doesn't work on virtual machine X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2017 12:56:59 -0000 additional information to the i40e: i40e 0000:82:00.1: fw 5.0.40043 api 1.5 nvm 5.05 0x80002892 1.1568.0 On 08/04/2017 02:47 PM, Dirk-Holger Lenz wrote: > when for a virtual function running on a virtual machine > > rte_eth_dev_start() is called the dpdk returns an error > > and logs the following error messages: > > i40evf_execute_vf_cmd(): No response for 6 > i40evf_configure_vsi_queues(): Failed to execute command of > VIRTCHNL_OP_CONFIG_VSI_QUEUES > i40evf_dev_start(): configure queues failed > > short time before it logged: > > i40evf_execute_vf_cmd(): No response for 28 > i40evf_disable_vlan_strip(): Failed to execute command of > VIRTCHNL_OP_DISABLE_VLAN_STRIPPING > > But this correlates to the log on the host: > > Aug 4 14:09:43 ng40x kernel: [12176.208968] i40e 0000:82:00.1: > Invalid message from VF 0, opcode 28, len 0 > Aug 4 14:09:48 ng40x kernel: [12181.414724] i40e 0000:82:00.1: > Invalid message from VF 1, opcode 28, len 0 > > The host is running Ubuntu linux with kernel 4.8.0-45-lowlatency. > > The primary function of the i40e is driven by the linux kernel driver and > > 16 virtual functions are created. > > The virtual machine is running Ubuntu linux with kernel > 4.8.0-45-lowlatency as well. > > It is used dpdk 17.08rc4. > > > When a similar scenario is used on the host directly using virtual > functions as well, > > the dpdk logs the VIRTCHNL_OP_DISABLE_VLAN_STRIPPING problem but not the > > VIRTCHNL_OP_CONFIG_VSI_QUEUES problem and it works fine. > > > When I hardly make the i40evf_execute_vf_cmd() function return 0 the > virtual > > function starts and is able to transmit and receive packets at high rate. > > Here are the logs which are given in this case: > > i40evf_execute_vf_cmd(): No response for 28 > i40evf_execute_vf_cmd(): No response for 6 > i40evf_execute_vf_cmd(): No response for 7 > i40evf_execute_vf_cmd(): No response for 10 > i40evf_execute_vf_cmd(): No response for 8 > i40evf_execute_vf_cmd(): No response for 8 > i40evf_execute_vf_cmd(): No response for 14 > > note: we are using a regression test scenario which was running every > night. the last > > good run we had Wednesday with dpdk 17.05. Then we switched to > 17.08rc3/rc4. > >