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 ED00A1B248; Thu, 9 Nov 2017 09:33:44 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Nov 2017 00:33:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,368,1505804400"; d="scan'208";a="5600789" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga002.jf.intel.com with ESMTP; 09 Nov 2017 00:33:43 -0800 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 9 Nov 2017 00:33:42 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 9 Nov 2017 00:33:42 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.159]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Thu, 9 Nov 2017 16:33:39 +0800 From: "Xing, Beilei" To: "Li, Xiaoyun" , "Wu, Jingjing" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH] net/i40e: fix VF cannot forward packets issue Thread-Index: AQHTWSTCGc7/JJk9+UO/cDZ5f4cR3KMLuG3g Date: Thu, 9 Nov 2017 08:33:38 +0000 Message-ID: <94479800C636CB44BD422CB454846E0132068313@SHSMSX101.ccr.corp.intel.com> References: <1510209014-184925-1-git-send-email-xiaoyun.li@intel.com> In-Reply-To: <1510209014-184925-1-git-send-email-xiaoyun.li@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] net/i40e: fix VF cannot forward packets issue 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: Thu, 09 Nov 2017 08:33:45 -0000 > -----Original Message----- > From: Li, Xiaoyun > Sent: Thursday, November 9, 2017 2:30 PM > To: Wu, Jingjing ; Xing, Beilei > Cc: dev@dpdk.org; Li, Xiaoyun ; stable@dpdk.org > Subject: [PATCH] net/i40e: fix VF cannot forward packets issue >=20 > When Rx interrupt is not enabled, there is no need to check if interrupt = allow > others. It will cause VF cannot forwarding packets issue. This patch fixe= s this > issue. >=20 > Fixes: 96a9fd03c25f ("net/i40e: fix Rx queue interrupt mapping in VF") > Cc: stable@dpdk.org >=20 > Signed-off-by: Xiaoyun Li > --- > drivers/net/i40e/i40e_ethdev_vf.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/net/i40e/i40e_ethdev_vf.c > b/drivers/net/i40e/i40e_ethdev_vf.c > index 02d9e57..91b5bb0 100644 > --- a/drivers/net/i40e/i40e_ethdev_vf.c > +++ b/drivers/net/i40e/i40e_ethdev_vf.c > @@ -650,7 +650,8 @@ i40evf_config_irq_map(struct rte_eth_dev *dev) > uint32_t vector_id; > int i, err; >=20 > - if (rte_intr_allow_others(intr_handle)) > + if (dev->data->dev_conf.intr_conf.rxq !=3D 0 && > + rte_intr_allow_others(intr_handle)) > vector_id =3D I40E_RX_VEC_START; > else > vector_id =3D I40E_MISC_VEC_ID; > -- > 2.7.4 Acked-by: Beilei Xing