From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 878B1A0C45; Wed, 22 Sep 2021 09:26:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2BE944069E; Wed, 22 Sep 2021 09:26:15 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 46E2D40141 for ; Wed, 22 Sep 2021 09:26:12 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10114"; a="203030670" X-IronPort-AV: E=Sophos;i="5.85,313,1624345200"; d="scan'208";a="203030670" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2021 00:26:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,313,1624345200"; d="scan'208";a="613293715" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga001.fm.intel.com with ESMTP; 22 Sep 2021 00:26:03 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 22 Sep 2021 00:26:03 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 22 Sep 2021 15:26:01 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2242.012; Wed, 22 Sep 2021 15:26:01 +0800 From: "Zhang, Qi Z" To: "Zhang, RobinX" , "dev@dpdk.org" CC: "Wu, Jingjing" , "Xing, Beilei" , "Guo, Junfeng" , "Yang, SteveX" Thread-Topic: [PATCH v2] net/iavf: enable interrupt polling Thread-Index: AQHXmY3jZFJl6bL9vU2g7w65h9GZKauv0u2A Date: Wed, 22 Sep 2021 07:26:01 +0000 Message-ID: <3f11e3be89ea441d9f17d14b21a33f38@intel.com> References: <20210723074630.193200-1-robinx.zhang@intel.com> <20210825083435.207234-1-robinx.zhang@intel.com> In-Reply-To: <20210825083435.207234-1-robinx.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.200.16 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] net/iavf: enable interrupt polling X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Zhang, RobinX > Sent: Wednesday, August 25, 2021 4:35 PM > To: dev@dpdk.org > Cc: Wu, Jingjing ; Xing, Beilei ; > Zhang, Qi Z ; Guo, Junfeng ; > Yang, SteveX ; Zhang, RobinX > > Subject: [PATCH v2] net/iavf: enable interrupt polling >=20 > For VF hosted by Intel 700 series NICs, internal rx interrupt and adminq > interrupt share the same source, that cause a lot cpu cycles be wasted on > interrupt handler on rx path. >=20 > The patch disable pci interrupt and remove the interrupt handler, replace= it > with a low frequency(50ms) interrupt polling daemon which is implemtented > by registering an alarm callback periodly. >=20 > The virtual channel capability bit VIRTCHNL_VF_OFFLOAD_WB_ON_ITR can be > used to negotiate if iavf PMD needs to enable background alarm or not, so > ideally this change will not impact the case hosted by Intel 800 series N= ICS. >=20 > This patch implements the same logic with an early i40e commit: > commit 864a800d706d ("net/i40e: remove VF interrupt handler") >=20 > Signed-off-by: Robin Zhang Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi