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 94B5DA0A02 for ; Thu, 20 Oct 2022 07:40:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8EF0D42C78; Thu, 20 Oct 2022 07:40:15 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 8F69242C31 for ; Thu, 20 Oct 2022 07:40:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666244414; x=1697780414; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=CQzm2mA9wEY6+zIYMdUetZHhHCVxSJ3eB5crPRqO2Y0=; b=ZkccMhp0EPMptCzGr9m7ZyirBgrtljips1wLj+TKvgICG3w51WTcFYY9 AMPC8n1g3fEzNpQRAgK6BJY8L6zg06RjebrVN/itZdTpb9qgk2YXNArfz bjUxDc1J1rFpSeGF8OEGGgw4eeiWbVFVN5CGqnlYZKuvqTRaRqPOev+ig jAcr2YUzkI/eXOWK86ofdoe0R75Lu5kzULcxviOx/pjml6jj2SRXD6aoe RZ6o3kMtGFB5tZSt7hoxvV4qPzKRjIsNL9yQR95A+l+Jw5g8nfPXOhdh0 aCGhjcSPoArWC/chAvffTF/qpPs+v7qqz+/Jjvws3GtMmEGULid/JIiNh Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="287007346" X-IronPort-AV: E=Sophos;i="5.95,198,1661842800"; d="scan'208";a="287007346" 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:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="580700754" X-IronPort-AV: E=Sophos;i="5.95,198,1661842800"; d="scan'208";a="580700754" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga003.jf.intel.com with ESMTP; 19 Oct 2022 22:40:13 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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:12 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) 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:12 -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:12 -0700 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/HmvXIDQhzHOYMPmcta57PUnnNuD1WIXfW3Eys9EIiGHA9IhjjGeY26xAYM?= =?us-ascii?Q?b3LVgf5zgiWTM1uSHM/YXDBO4IJyA5f2KxhbFluAT4t/ZAiDkt5NOVViI9/I?= =?us-ascii?Q?yKGggb1oVEn5AbmI/9ysOgJt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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?= arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=je4YrT5KdFzDn7NZFPc4b31QnKxeAP9Ic8omAZLyXLnev2a4g0jtPTkVliMPuyuIWe/C9sjuNnByv+WPs628JdcHQ3JQOTNg6wNOIXcEZkhon1/R3Wy+H18Y3M1B6/RwldqgRsCaBlqhYbTSPR/6GctWh5GTlv7BLSDfgn7I8yBb+gyj08PCNDa2v7PZQ/bmRPMe6AzwLSyX4ymm95hGUGJ5ZM3k8SwkXO7lFRxhtGUOtrzEuUJDUU9j/T9/cRnIt5Ci3kgmeXzUJ+4yPttCrRZCjQLwDKPiB9UqM+OKI+n9g/rn/oEOYHUkd6FUnDb7fyp+MOR37ILyzrgsuU1YoQ== 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=zVic18kcLKG3CpM97jtY/WB4PrUPmjo3oYK2OSan2X4=; b=e709UdRodvZaCqwvHMHz6CxfzJlyoOjajuytwcBUpXqujZO/7ckKqhxBFFiWkbfR/aW1/BoHaUA8a175zBDfmsYX1cSQQNU0jvwFltL2jv4XFHkXZgYwMKhTn5cINOm+EY59n+rMBR3/TK0h3sIRPn+UDZ9/En+66lLnDXFaHDTRtJQVz3PVepHatZ59N3IF3bt4rrIcKyfmOjvDeZy+LYF7szTIjmlrFOKwj7clMWF/NM2k2Og/iJ0ThTDJC2oNhV9/O5qtIKEXuJxV6cejsxVejV+bB1XqqI4nnXtBr4LZ7Gk6Quwk1ucZLojmf3jaoRxLvlY+jIkUjI8Pb/RkqA== 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 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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 > > 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. > > 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. > > This commit add a new thread to call all event callbacks. > > Fixes: 48de41ca11f0 ("net/avf: enable link status update") > Fixes: 84108425054a ("net/iavf: support asynchronous virtual channel > message") > Cc: stable@dpdk.org > > Signed-off-by: Yiding Zhou Acked-by: Qi Zhang Applied to dpdk-next-net-intel after fix some typo Thanks Qi