From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 537E61B1F8; Wed, 11 Oct 2017 05:16:29 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Oct 2017 20:16:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,359,1503385200"; d="scan'208";a="1229429599" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 10 Oct 2017 20:16:24 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 10 Oct 2017 20:16:23 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 10 Oct 2017 20:16:23 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Wed, 11 Oct 2017 11:16:21 +0800 From: "Lu, Wenzhuo" To: "Dai, Wei" , "Ananyev, Konstantin" , "Liang, Cunming" , "Ma, Jianwei" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH v2] net/ixgbe: fix VFIO interrupt mapping in VF Thread-Index: AQHTOANGMnSEIXemg0mzc1H7USqW66LeDoTQ Date: Wed, 11 Oct 2017 03:16:20 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B6C244D@shsmsx102.ccr.corp.intel.com> References: <1505902146-50272-1-git-send-email-wei.dai@intel.com> <1506565713-70534-1-git-send-email-wei.dai@intel.com> In-Reply-To: <1506565713-70534-1-git-send-email-wei.dai@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-dev] [PATCH v2] net/ixgbe: fix VFIO interrupt mapping in 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: Wed, 11 Oct 2017 03:16:29 -0000 Hi, > -----Original Message----- > From: Dai, Wei > Sent: Thursday, September 28, 2017 10:29 AM > To: Lu, Wenzhuo ; Ananyev, Konstantin > ; Liang, Cunming > ; Ma, Jianwei > Cc: dev@dpdk.org; Dai, Wei ; stable@dpdk.org > Subject: [PATCH v2] net/ixgbe: fix VFIO interrupt mapping in VF >=20 > When a VF port is bound to VFIO-PIC, only miscellaneous interrupt is > mapped to VFIO vector 0 in eth_ixgbevf_dev_init( ). > In ixgbevf_dev_start(), if previous VFIO interrupt mapping set in > eth_ixgbevf_dev_init( ) is not cleard, it will fail when calling rte_intr= _enable( ) > tries to map Rx queue interrupt to other VFIO vectors. This patch clears = the > VFIO interrupt mappings before setting both miscellaneous and Rx queue > interrupt mappings again to avoid failure. >=20 > Fixes: 77234603fba0 ("net/ixgbe: support VF mailbox interrupt for link > up/down") > Cc: stable@dpdk.org >=20 > Signed-off-by: Wei Dai Acked-by: Wenzhuo Lu