From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 235DEC2D0C0 for ; Tue, 24 Dec 2019 01:40:55 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id A4CD2206D3 for ; Tue, 24 Dec 2019 01:40:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A4CD2206D3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6D2CB1C01; Tue, 24 Dec 2019 02:40:53 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 257131F5 for ; Tue, 24 Dec 2019 02:40:50 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Dec 2019 17:40:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,349,1571727600"; d="scan'208";a="207446421" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 23 Dec 2019 17:40:49 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 23 Dec 2019 17:40:49 -0800 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 23 Dec 2019 17:40:48 -0800 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.72]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.164]) with mapi id 14.03.0439.000; Tue, 24 Dec 2019 09:40:47 +0800 From: "Zhang, Qi Z" To: "Cui, LunyuanX" , "dev@dpdk.org" CC: "Xing, Beilei" , "Yang, Qiming" Thread-Topic: [PATCH] net/i40e: enable multi-queue Rx interrupt for VF Thread-Index: AQHVqYzfFOBRGI8B/keyTwNcDZpEvqfIopmw Date: Tue, 24 Dec 2019 01:40:46 +0000 Message-ID: <039ED4275CED7440929022BC67E7061153DF2724@SHSMSX105.ccr.corp.intel.com> References: <20191203114339.43719-1-lunyuanx.cui@intel.com> In-Reply-To: <20191203114339.43719-1-lunyuanx.cui@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzU4ZDUxYWYtYjFhYy00MGE5LWI0MzQtNTY2N2MxNjkxNGQyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiazloQXZrQ3phK2VrdFBVRTA2NW1vSkJWYlhoczBDOWs5T3ptRWJnSnRST3RJc3JTZ2FDT3UycWhjcmpxYVVueSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action 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: enable multi-queue Rx interrupt for 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Cui, LunyuanX > Sent: Tuesday, December 3, 2019 7:44 PM > To: dev@dpdk.org > Cc: Xing, Beilei ; Zhang, Qi Z ; > Yang, Qiming ; Cui, LunyuanX > > Subject: [PATCH] net/i40e: enable multi-queue Rx interrupt for VF >=20 > Current implementation is that only one Rx queue can support interrupt, > because all queues are mapped in the same vector id in vfio_enable_msix()= . > So VF can not support multi-queue Rx interrupt in the interrupt mode. >=20 > In this patch, if the packet I/O interrupt on datapath is enabled > (rte_intr_dp_is_en(intr_handle) is true), we map different interrupt vect= ors to > each queue and send this map to PF. > After PF sets the map to the register, > all Rx queue interrupts will be received. >=20 > In addition, vector id should less than the maximum vector value. > When queue number is more than vector value, we set up a loop of interrup= t > vectors map. >=20 > Signed-off-by: Lunyuan Cui Acked-by: Qi Zhang