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 BCD79A0A02; Thu, 20 Oct 2022 07:40:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B361E42C78; Thu, 20 Oct 2022 07:40:19 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 27B5E42C31 for ; Thu, 20 Oct 2022 07:40:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666244418; x=1697780418; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=ppC0n4NZx1aNYJGAVM9OsztP5WtlAQPoSjHrCWeVmS0=; b=kItiLbIRSjHipk1qFfzuBDallN4I/USfjopmwgeptbpmxvVFkwfYBRe6 VxOWmLAdAicRkvgvKPK/021kzQhAEvEVM2vcc5PbOnOHBSUhZV+3YFU1V JupgnbhkYfeufLhIDCCbvQqI+wiEt0Ug9Np4+RKOdmIHhI/GIhhPMV3vq Aqeib/SX8f4FJlBfiFQe4ajd5eN3TfLDFo9A7XtkvC3v9C833CY/WnbGi aTEn4AH1r5HUyMF72E/rI7ITvsS57jXnQOY9J0dHYgINuxZ8iU/NNL2yc E8ufxzrXnRN/y+8frwTpvdHaHhjCwo05A4DKUZZsv9Nvfkn5719UDhZpH Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="287007355" X-IronPort-AV: E=Sophos;i="5.95,198,1661842800"; d="scan'208";a="287007355" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 22:40:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="580700782" X-IronPort-AV: E=Sophos;i="5.95,198,1661842800"; d="scan'208";a="580700782" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga003.jf.intel.com with ESMTP; 19 Oct 2022 22:40:17 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 19 Oct 2022 22:40:17 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 19 Oct 2022 22:40:16 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 19 Oct 2022 22:40:16 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.45) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 19 Oct 2022 22:40:13 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W3iRqdUejbf5vRlGXuaWGSULoyUz2CtKCFba4V/+Slw+yQqTTKS7HgF0Sv1izwgB0SzhXzn+tJ0DtlKPkpsIyLH3HDnyVEU9piyBr0nZ8Hp/iH/j47wCSNzNV5sWeFLyjiz4n5QLC9GKT0p1StS4UXFgImDzWEPDLdT1TTfzTbGBe2mbbHzxNb5GzO0QZK30ZRbKGDKOa/dFVthX9ix5Lm1fbg74/TnRkc992PQLfHrNy3hH49zbL/bmZd4lg083hkg0/lTmosJ68fc+Ko44EXofUeD/jhwfqdOMnF7XU4t6EU+54qm/wvXVAAuLUouuodGuftXZj6VbJlaciAW/tQ== 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=ppC0n4NZx1aNYJGAVM9OsztP5WtlAQPoSjHrCWeVmS0=; b=PEIWiyYNvDBoNI/NWwtIrYm1zXJRv0L7se7+sYOponLlGQpfE9MyqyoFst3csbW3prXxVogQ7r7FqKFwP9rTbw2YYI//ypaJwrNm+8H/FiAJNGU+YUHwwpYpiYV3fI+dnrhVlBpfW4AbJww7c9HLB6h7W/z+z1Ev67URvc1fhcNC9dvvFUjsBLuo3qaG6RZWGT4a860pkb7l8KkW7IRq/hDSI4uGFbQ8koQXBQjSKqDEX5zhPV2fZduAU7e3d+DaJHud4ZzyCoywXQaxtuY0tTcWOhg44oriy3zVkiGao6nIViGeT0RJQCCNbgnIDncMorVVacrU7QhBwGF4QiOa4g== 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 PH8PR11MB6780.namprd11.prod.outlook.com (2603:10b6:510:1cb::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.30; Thu, 20 Oct 2022 05:40:09 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::6fc4:1ff0:a5db:6546]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::6fc4:1ff0:a5db:6546%3]) with mapi id 15.20.5723.033; Thu, 20 Oct 2022 05:40:09 +0000 From: "Zhang, Qi Z" To: "Zhou, YidingX" , "dev@dpdk.org" CC: "Zhou, YidingX" , "stable@dpdk.org" Subject: RE: [PATCH v5] net/iavf: add thread for event callbacks Thread-Topic: [PATCH v5] net/iavf: add thread for event callbacks Thread-Index: AQHY5EB4DlGHYqWMqUysuXZTUEqfsK4WxCkA Date: Thu, 20 Oct 2022 05:40:08 +0000 Message-ID: References: <20220919060654.1092715-1-yidingx.zhou@intel.com> <20221020050022.102064-1-yidingx.zhou@intel.com> In-Reply-To: <20221020050022.102064-1-yidingx.zhou@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.500.17 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-traffictypediagnostic: DM4PR11MB5994:EE_|PH8PR11MB6780:EE_ x-ms-office365-filtering-correlation-id: 53ac3bce-920c-4c3e-6fd1-08dab25d8cce x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Wf2GH2H+yixWiNILG4xYYnjdwroUwqxiW9E3VRLCguv4NcmBrzsnZ+V/4zaYQv+Q88qzXjg3LVfkf5ywyNQWplnnxxn1dvetbyIHg+cI5W/cvLIwGZKCC5ElanQ2T9Lb96vWtSf9S9JPPG77sVA1aGpGa+ssQ0XmCXnpGEMahF1rgqDwy/7hU5nPBa3c7kY7db/wFa4eFY8A7Sw3PlBUKO4CSOBeQ+Pt9AubOoAJYLE9xYSZYdfnOlPd6YoKhG+/ppNx7dzFS41tUUVFrz/hH76oIn5RsVs5lAX3JwSE1jKcGrAEuSn7L1VL7nx5QFLFQbb699PtUsAdAJ/jnmIOEbIpAOyzrb/qJ5xe1UJdrwE1giBk6RAF3eE0HlXezmPioh2Wm8Ntz+Jrmrlm7YhywLSGrOYmLZ1vemhPgeTEYEATLaZobNtkPmOzKzS69XN8xpbdgqnL03Ci5GSK4QPvndgzjNGfDQZqve7pxhcYwd5uMej5KK5am3s4evZUvJSNougpJUknk5VbLB53jFU3FHpUeQuoZQBNzxGz87qx275PHn4qASJGruv7a/fawzvdN77hqQ4UEMkPc68Z5ruuSC+dve67rXVLynQIi7fJ6ENt3Akx/ZGLBjglhNWct52xc8OuqV3w27fYJFqMB3Kwtzms7QDRJSfhiXPrkhsajaBV2E6LruBQOeb8LT94xLgHcI4v5by0HNapufEZHNTyjobRJ8bHizbw9K7R/80DloaNTwBWSsBUUppQgIbt8YZsOATtxT6uKXRbdmDBNTESCg== 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:(13230022)(376002)(366004)(346002)(39860400002)(396003)(136003)(451199015)(54906003)(66446008)(7696005)(110136005)(66476007)(83380400001)(450100002)(64756008)(76116006)(53546011)(8676002)(66556008)(6506007)(41300700001)(316002)(26005)(66946007)(8936002)(5660300002)(55016003)(86362001)(9686003)(52536014)(2906002)(82960400001)(71200400001)(38100700002)(186003)(478600001)(33656002)(4326008)(38070700005)(122000001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?g0otDgHGs1PMYmBWJQ4258I4Cml+AX7cCsZXBhuHJn08K5xRpzWzajUIayPb?= =?us-ascii?Q?8rRMemvf367P1PW8xcwC0yILQzJgzDRCodEWwNQCsC5WT+Mu/Bb9SFt18GVi?= =?us-ascii?Q?rGMCglB/HJA7CIC2eSNTHKuaPcRkR09/i+naM7dE6AtwaG7/iYc1ggeC7LBg?= =?us-ascii?Q?O1BehZiSiAIzJPa1agXODsAXNwUNE2jGCwC5y18OF9A3KUnzxMRD2h2icnaC?= =?us-ascii?Q?c/HmvXIDQhzHOYMPmcta57PUnnNuD1WIXfW3Eys9EIiGHA9IhjjGe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aeiH3dJZbZ6XKTKB2FTumm3b9Tn8Xww?= =?us-ascii?Q?a3RWcBSzTXhgyMAFpLNkGrgPw0wHR8zd1VhSteHYLKtPEmEYAigGDuNIq9PG?= =?us-ascii?Q?EQo+zVY1RgEjbZsXJu8J1epQ8RWxhyyXGvCxWOyl1+rmj+JQfVyjF4hiCd2B?= =?us-ascii?Q?vy3Uf6o79fi/lVA1YooWyLgPYcOYAfzW27u3xWgVfDFJkKp5BnV2NB9T/u18?= =?us-ascii?Q?LVvwkQYN6rvyvKFxdhrD2c3NPhl2vTMKSsAmmM/uYebe2fLcdSH9VEr2ybCq?= =?us-ascii?Q?B65LbfwZnNNRJNHlR1AQNEpY6BtMg9Yd4EmKLYWWtYNX6qC8+RDmxxJ6Kkgv?= =?us-ascii?Q?pJErMXn+/m6jJLgiWM1dqNi40kJwMwRZ9JAJMNViXDd2Cb3KVJhQE20b2qLo?= =?us-ascii?Q?mwak2fd44toqxUioXDe3xe7esfCgh/W/D5pp9dJK?= 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: 53ac3bce-920c-4c3e-6fd1-08dab25d8cce X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Oct 2022 05:40:08.9763 (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: LkWlQ7mC3jgZCR2fIRJjSFwNU9jWnp/miqhJl4SWYJcataRW9/r/pfr2S7PPs0WQQcFCJ2KEMi+r59BYbOAtPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR11MB6780 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: Yiding Zhou > Sent: Thursday, October 20, 2022 1:00 PM > To: dev@dpdk.org > Cc: Zhou, YidingX ; stable@dpdk.org > Subject: [PATCH v5] net/iavf: add thread for event callbacks >=20 > All callbacks registered for ethdev events are called in eal-intr-thread,= and > some of them execute virtchnl commands. Because interrupts are disabled i= n > the intr thread, there will be no response received for these commands. > So all callbacks should be called in a new context. >=20 > When the device is bonded, the bond pmd registers callback for LSC event = to > execute virtchnl commands to reinitialize the device, it would also raise= the > above issue. >=20 > This commit add a new thread to call all event callbacks. >=20 > Fixes: 48de41ca11f0 ("net/avf: enable link status update") > Fixes: 84108425054a ("net/iavf: support asynchronous virtual channel > message") > Cc: stable@dpdk.org >=20 > Signed-off-by: Yiding Zhou Acked-by: Qi Zhang Applied to dpdk-next-net-intel after fix some typo Thanks Qi