From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 531622FDD for ; Mon, 17 Jul 2017 09:20:38 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jul 2017 00:20:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,374,1496127600"; d="scan'208";a="112097464" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga002.jf.intel.com with ESMTP; 17 Jul 2017 00:20:36 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 17 Jul 2017 00:20:28 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 17 Jul 2017 00:20:28 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.116]) by shsmsx102.ccr.corp.intel.com ([169.254.2.146]) with mapi id 14.03.0319.002; Mon, 17 Jul 2017 15:20:24 +0800 From: "Wu, Jingjing" To: "Xing, Beilei" CC: "stable@dpdk.org" Thread-Topic: [PATCH] net/i40e: fix no response from kernel PF Thread-Index: AQHS/swTh5Tizt3k0E24pl+9Z8GDvKJXmpeA Date: Mon, 17 Jul 2017 07:20:24 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810DC8D32@SHSMSX103.ccr.corp.intel.com> References: <1500275587-76019-1-git-send-email-beilei.xing@intel.com> In-Reply-To: <1500275587-76019-1-git-send-email-beilei.xing@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-stable] [PATCH] net/i40e: fix no response from kernel PF X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 07:20:39 -0000 > -----Original Message----- > From: Xing, Beilei > Sent: Monday, July 17, 2017 3:13 PM > To: Wu, Jingjing > Cc: stable@dpdk.org > Subject: [PATCH] net/i40e: fix no response from kernel PF net/i40e: fix virtchnl message response timeout >=20 > If using old kernel driver and using kernel PF and DPDK VF mode, VF fails= to > start due to incomplete command. PF driver and VF driver communicated with each other by virtual channel message. When VF sends to message to PF to enable some offload capability, PF should response if it is successful or not. VIRTCHNL_OP_ENABLE_VLAN_STRIPPING is a new added message and the old PF driver doesn't support that. So no response is received by DPDK VF. Then VF is blocked on this message and cannot roll back. > The root cause is that old kernel driver doesn't support vlan stripping, = when > DPDK VF sends VIRTCHNL_OP_ENABLE_VLAN_STRIPPING to kernel PF, PF won't > response to VF. > This patch adds clearing command on VF side if PF won't response to VF, a= voids > blocking the following commands. This patch clears the pending command on VF side when the waiting duration expires to avoid blocking following communication.