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 9C1A52C55 for ; Fri, 4 Aug 2017 14:47:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=ng4t.com; h=to:from :subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=k1; bh=2ll82TB38NDevMtO2Rd+3uqZY9e q3+Ev761+6sXB8DI=; b=m81QgIgIHz8EJls4QJgB4eHcxJVd9zc/wrQ10ic9lln zH6MNMizuV+WbH7nM1RuxZOeqeM7ZVezJFpqHKLmnR45M+J7ykU1jqniT0JZM8xf B7wsleLORAgV8WrcyUw45nXJe1yW92R7MjhOPXhjubXP+vNdKq4u6C42SjPqo7Zk = Received: (qmail 21829 invoked from network); 4 Aug 2017 14:47:17 +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:47:17 +0200 To: "users@dpdk.org" From: Dirk-Holger Lenz Message-ID: <6a4e8f84-d52e-53e8-04b1-42bc39f261ed@ng4t.com> Date: Fri, 4 Aug 2017 14:47:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [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:47:17 -0000 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.