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 23BD5A0503; Fri, 20 May 2022 05:15:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8A2034114A; Fri, 20 May 2022 05:15:30 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 9066040156 for ; Fri, 20 May 2022 05:15:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653016528; x=1684552528; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=QnPMDTHpNJ99d2eJB0awvikEZDNj+UQVnxm7Jf14hG0=; b=UztlmiFBSIT9oajytULt+bpwnDVNXcCXPnks+6c6mFTDxMKev+/UsfJG NT2RcvtdfYwqU3SZDRHJz4RZAR1oAjRaOQnG317j7SE4elnPFbKr7/5Dd OAQfy+ze0Cr3O8TzQJnbf37MwTJxv4al/rhX7MWNinId+SvjwUyAgl/qQ IbR/H9hKwFhcd1XonEW/uwZ470YPD2yYMrWxyH2gP9DYZjY2zuxF4n8UZ as+AOVRgTZcPBKW5rYDYDV7PuKLGdQXD63PNozRgpeIcD0qZ7EEA6WypY 5XUOgxWjTCmpKguCx1HVg2wKfpZsQrUCl0hBx+8X+VhmC4vIzOqSKOW5N Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10352"; a="254518613" X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="254518613" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2022 20:15:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="662053254" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by FMSMGA003.fm.intel.com with ESMTP; 19 May 2022 20:15:27 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 19 May 2022 20:15:26 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Thu, 19 May 2022 20:15:26 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.170) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Thu, 19 May 2022 20:15:26 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kR5aMoYywwze4PWZK+kZzmUroZlFqUKe6kqC1hZ6NGWVicDaYVEp/B1DDEmUcX1vZ0WywklydBLSST/m2z5ws1Iu5cnE+BW7NRJtCqzlpD8ROceAodDRhGN0bUpNkqM5jyRxEfsaMiWzoHVtH1Yr45hEWxfZzD2CLC6xUpKGCLrTk7rYFmRmSLDe6bSbOe2pT9tO/Uk2xuyQ7sGTvr2+9S4jZlajxS31xE1rNymwbPKK/8Nn1N8IIjS5s4AKVb1R9QKBbluGM4+DK7EtQRuoDk34SZuSEjNvwuNbNKcJFxrm+VIC40V3t6A9RmMS+er++06LB85RGoJFCrVQRDfENw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QnPMDTHpNJ99d2eJB0awvikEZDNj+UQVnxm7Jf14hG0=; b=F+kD2lh0h7QfHftq+9MnUkk6ULyxMJiCzMOtmq2ghUYgdODFEfuQTb9b45AKrblyPQx3OzU+pgEMFMRmaexj1l6O0+J+NoqYzulusJO+hgzR6VqcaWNb0cRYj9MyU9m+C3odykKC1jPXNW/SAltVf87zeSrz0lBlpTS+/KCwAA8N4TRhFuHZ+NF7pAsOY4dSJOyoUfUdsU9du4MItqqcEsGNSpnwwP2j7z8omlropLBDWBeef2P4gZNYBjPzbhbtCMWskm/rArWFyGZ/HXX/cOmdlCYFqYFmdpkDkyRSB7e3uAzleiVxxhVi25nBdyI3kiPm6fssR44f8+SuWnXufw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) by MW5PR11MB5882.namprd11.prod.outlook.com (2603:10b6:303:19e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.17; Fri, 20 May 2022 03:15:23 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::b4f6:f68:2e31:ddf7]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::b4f6:f68:2e31:ddf7%7]) with mapi id 15.20.5273.014; Fri, 20 May 2022 03:15:23 +0000 From: "Zhang, Qi Z" To: "Zhang, Ke1X" , "Li, Xiaoyun" , "Wu, Jingjing" , "Xing, Beilei" , "dev@dpdk.org" CC: "Zhang, Ke1X" , "stable@dpdk.org" Subject: RE: [PATCH v2] net/iavf: fix Rx queue interrupt setting Thread-Topic: [PATCH v2] net/iavf: fix Rx queue interrupt setting Thread-Index: AQHYa/bTgMTOJNMmzUW43xUQmFXVNK0nF4Yg Date: Fri, 20 May 2022 03:15:23 +0000 Message-ID: References: <20220425083628.81133-1-ke1x.zhang@intel.com> <20220520030023.260041-1-ke1x.zhang@intel.com> In-Reply-To: <20220520030023.260041-1-ke1x.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.401.20 dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9f657410-9ea0-406f-8ccc-08da3a0efab6 x-ms-traffictypediagnostic: MW5PR11MB5882:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MpoFDzzrkAm7RqKcHfcLLCEpvshRi9vUtCdPXc17IZO6gvxkOA+Khj3qkZ/45KghoJPS9Yb1Sr2nxhrtUC3Cy3xoaRcgbwrlMuz+egD+4yp2jM4Xp/qwyyu0dz0FjPLX0pmhAzCzoZorD/zNAeOK/+gzOL7Lq1bOuM6SbdPsnXiNbDrdQ4VOsDLn/klxHakdjQ5qBor+IyCyVq0gLKPNd7U0T/CpcRjooEgwe+eeRQKTGV2ivjaOGuCX3ruXNX+jJrYmXID6e3reUg3RiqYFCNw8sZaNXxBr0TUEKTEIus42wrqZItS/3JTmHi0D0Cm+B/g7yhz67YosEeeNw6r2hyaGFBwEEYPiDFm3lZIEeFg+OtNvJu8iYPwWS7LZJS6ETF5cx5YVm2Dp+dwuhxrlujZxRw0ePMg6tsi17r1qa+bIlPspJjxRheEPrTSonA/KLudG1KQwmQ4PhjflOqKQstVqZ7VTRfn9CVUW5I9Z32faUsTHaYyKUMADijoqayNAJW2Iw77E3j7gZNqfOMeRMjSCY6e05mdD9OI2qLFIL3+dHjjaBf5qOSg4osBeebkpITG9NzSRF7yxbR17l+EHfMpGja1no+A8W05o2Tapc+fDyii6lkQdNl2LNIIgwOrPhHi+c7oo2cUWDvku6UZDIsKzWjVbYIxnCtZpX2a0AOvZwmEaQoDNfanVTuhTbSzDCBgkR34i7u+bWKnUuG5kzg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5994.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(66446008)(66476007)(450100002)(76116006)(66556008)(64756008)(8676002)(55016003)(8936002)(316002)(33656002)(66946007)(52536014)(4326008)(7696005)(54906003)(110136005)(5660300002)(2906002)(6506007)(508600001)(71200400001)(38100700002)(38070700005)(82960400001)(53546011)(83380400001)(9686003)(26005)(86362001)(122000001)(186003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jbQv7ZjN1MjsZskcYHhu+OpkuLTkgYHMoRMoe3/qPKqO4uoon3GBjKvur8E4?= =?us-ascii?Q?Re+9hPHRxqlPUHEuGs/Y9S+vNkV+dgoWGJbL9UwD/YiNvHMHzZbPg6ZX4yob?= =?us-ascii?Q?8fSpqvJTYta4XBNM2v589YRz4sx+KYbLbQfeQYTqQFI+6Kgrpw5vLz+2I8D5?= =?us-ascii?Q?CLQNsLxddiTGmfGLZklSGghNwKPtA8jL/eYRamm2iyBifaqbNVVXYL1qCdvr?= =?us-ascii?Q?480qsD16teh7qjBidukm+J3dj2UjztCbCQH7rZRH7dlpioDHrBE7grWDkOIg?= =?us-ascii?Q?g6JBKLAgsHBThExhz+eNCXcQWEg10jyokQPvW3+kkzKr4TupsaT8kheMVTKk?= =?us-ascii?Q?RgMWg3EjATN4eSphwYR14rhwIVCHKEdPfm6u/ViLjNaTPz7QPY+QoGIvwZOG?= =?us-ascii?Q?542Go4LEZjnihwaQISJLVBRlcN9EPRzqU0gSIdsqHaXO8kuqaOZhlFFoxZuF?= =?us-ascii?Q?P80SHPY0P0ZsL+dvWY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?Q?iYUG76sss1uYmAejR5qUyR2oRZ0s3/SyNkBHOT2yx/R8d6E55ilSOi3yXvuw?= =?us-ascii?Q?xxPVO1X3VlDjwL43Ohi/uCL4obXPAtFbSOSxP0rJKE+5h8DaGZZDO5592xV2?= =?us-ascii?Q?RepN1axdAvefKkAWqA94HRCQa/aVU6HXb+020Kz37lRadu2Re4L7s0M2YlLL?= =?us-ascii?Q?Px2VbRi9HMEDO1WbLpo0BFUpGFcoBVhy6sP6S8AV8tXRGoYySVeHk+PO4s8N?= =?us-ascii?Q?kGshF4YodkmHkpXGZlMt8m9hK959GPIHDNvNm4EnSUaYerK0KUsv2mmiFaiM?= =?us-ascii?Q?ziCSG42lARuRqepccHNfN9oU9CpJlzDHCXac9ZlaegksCGr+oJzp2q0zER/4?= =?us-ascii?Q?VMN1o06cGg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5994.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f657410-9ea0-406f-8ccc-08da3a0efab6 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 May 2022 03:15:23.6098 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: m9Q85OasY7yAmRKvJ88lcyWgGXoq0y37nLUM5nuZrBRwnCWFAMdEBkdDJrPKehne6fnL+NB7YpCfgwX1rjO6gw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR11MB5882 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Ke Zhang > Sent: Friday, May 20, 2022 11:00 AM > To: Li, Xiaoyun ; Wu, Jingjing ; > Xing, Beilei ; dev@dpdk.org > Cc: Zhang, Ke1X ; stable@dpdk.org > Subject: [PATCH v2] net/iavf: fix Rx queue interrupt setting >=20 > For Rx-Queue Interrupt Setting, when vf rx interrupt disable(INTENA=3D0),= there > are two ways to write back descriptor to host memory: >=20 > 1)Set WB_ON_ITR bit 0 to Interrupt Dynamic Control Register: > Completed descriptors are posted to host memory according to the internal > descriptor cache policy (in other words when a full cache line is availab= le for > write-back). >=20 > A internal descriptor size is 16 bytes or 32 bytes, a cache line size is = 64 bytes or > 128 bytes from datasheet : > PCIe Global Config 2 - GLPCI_CNF2 (0x000BE004; RO) so the full cache line > could contains 4 packets, it means Network card will send 4 packets to ho= st > when a full cache line is available. >=20 > 2)Set WB_ON_ITR bit 1 to Interrupt Dynamic Control Register: > Completed descriptors also trigger the ITR. Following ITR expiration, all > leftover completed descriptors are posted to host memory. >=20 > Network card will send packet to host even if only one descriptor is comp= leted. >=20 > Changing 1) to 2) to make sure VF send the packet to host even if there i= s only > one rx packet is ready in hardware. >=20 > Fixes: d6bde6b5eae9 ("net/avf: enable Rx interrupt") > Cc: stable@dpdk.org >=20 > Signed-off-by: Ke Zhang Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi