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 2847642C3B for ; Tue, 6 Jun 2023 07:41:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 19CC041144; Tue, 6 Jun 2023 07:41:11 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 3C73C406B7; Tue, 6 Jun 2023 07:41:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686030068; x=1717566068; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=7DjJyNizoay2Qs5qKiLZcugkoV2rtx0BXGpd0ST/UmA=; b=VUj+SEthS2O8TJlzcATS7x4LIhwKtSQC9M/cwba91wb9Dxbr1J3wcD8G j6lg+tNq76ccHKDOPl3/D2v7NVN24B9ZNx2gKOBUnJxWVyAf5U/g7ohhJ LHSoNTjekLjL7rhZ8ILriAO6QGpvw8wULYk+yjBewBaMsAKSJcPeKtxxK ySEPBnJRyfVTrSASMr7c2KqFUZFstca07CkTOveKLQGQ4Mir0+2Szs3Cj GHpMJJI/MvAbUyhS8HK87Qvryl5Rl0IUOC+ItPe8wxw3hHFU8aexwmq3v tkX16F8GqiCjuxPrmXqsEO2Sjhj/tPy01d70Qw4nYy4nB/ekEMMvxwmU1 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="359885312" X-IronPort-AV: E=Sophos;i="6.00,219,1681196400"; d="scan'208";a="359885312" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2023 22:41:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="1039045166" X-IronPort-AV: E=Sophos;i="6.00,219,1681196400"; d="scan'208";a="1039045166" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga005.fm.intel.com with ESMTP; 05 Jun 2023 22:41:06 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 5 Jun 2023 22:41:06 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Mon, 5 Jun 2023 22:41:06 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.171) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Mon, 5 Jun 2023 22:41:06 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R/HI+BZeeVMbv4qCntdiDCbFljhvA7Az5IzgtK62PT2l2a+uToieNqF1zItr7V2yPR7rCiJ1e5FZjhQdgu/XWacmVLVZh+9/5ESt3oBri/W9p7p5syZH/BL6rhxsxAx/nS71+Z3/HXsjPDw8quE5lrgN9fuVJvzlC3kGxNXjZbq4KpuFmVqKg5NqYs/EkQ/7i5JFLy8voUqsMPWTCLpVqUMEp1ZhpLi+wSiMXTje/qJYLlAcf7T1FlZhxgF8ckEXSVEmQqCcNzwgJNEYrqTqjp5vaDorv1QqRjXcNrvniYZg0rV2a35rkt0niOuiG969CI/BEAS/XQYDudDcGlfSFg== 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=7DjJyNizoay2Qs5qKiLZcugkoV2rtx0BXGpd0ST/UmA=; b=Jqlkrg+6sS1U/aJhl5GBe8iTvh+KmGbA8yGvE8FpbEhq9zbOkeX3mMdo8twhzOJBr1PfBc6g7looGtySUIJSWqnxcBACcyLY0iFwCROoGast9u2F17sOeK/0KYs3eS+StbnA54M66djPXdhlTuiUt6o4LAx7HQj/P1xwWw35YOFJwaNYkPMALR7S3HvIZ6AjH5MN9rSlBZzqzGwTJ3MFDYiBS7oqB9pKSYsaPXRvCfrADXdN4WvLPykHl08fAD0eDu0Q0GaO1TvESh6yG6Y5d+nw/slvdrken96eCBKTRN2hQLRH/f3pCtm2KeQzOafhr7RxrIYhpZaQky19k1v2Yw== 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 BN0PR11MB5743.namprd11.prod.outlook.com (2603:10b6:408:165::5) by DM4PR11MB5993.namprd11.prod.outlook.com (2603:10b6:8:5c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Tue, 6 Jun 2023 05:41:02 +0000 Received: from BN0PR11MB5743.namprd11.prod.outlook.com ([fe80::eb8:607e:beec:d044]) by BN0PR11MB5743.namprd11.prod.outlook.com ([fe80::eb8:607e:beec:d044%2]) with mapi id 15.20.6455.030; Tue, 6 Jun 2023 05:41:02 +0000 From: "Jiale, SongX" To: "Deng, KaiwenX" , "dev@dpdk.org" CC: "stable@dpdk.org" , "Yang, Qiming" , "Zhou, YidingX" , "Deng, KaiwenX" , Chas Williams , "Min Hu (Connor)" , "Wu, Jingjing" , "Xing, Beilei" , Mike Pattrick , "Zhang, Qi Z" , "Doherty, Declan" , "Mrzyglod, Daniel T" , Dapeng Yu Subject: RE: [PATCH v3] net/iavf: fix iavf query stats in intr thread Thread-Topic: [PATCH v3] net/iavf: fix iavf query stats in intr thread Thread-Index: AQHZXJQZ+jcmo2h+rkOy9eRb7Ig0Lq99uOGQ Date: Tue, 6 Jun 2023 05:41:02 +0000 Message-ID: References: <20230307025533.1950861-1-kaiwenx.deng@intel.com> <20230322072615.179196-1-kaiwenx.deng@intel.com> In-Reply-To: <20230322072615.179196-1-kaiwenx.deng@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: BN0PR11MB5743:EE_|DM4PR11MB5993:EE_ x-ms-office365-filtering-correlation-id: b85c7017-586b-411b-e4bd-08db66509d06 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PpHsyBJ5dzPoUwLSqvx8swnvVk/CrY0J/bDMDPzYseW4Saz7cr49x0YzgAFyMgeMLzttb0Qbwcv88NhyttUeMaXuwxaxLkQwnX7c0auOTRIlzOPBhzJ6ft9/mWSn1uKA/15fjCngW5SRlIgBM/nUa0KPPzZy9UT0clUcpxh4WO3bNV9wIvZ31zSHcWK/Q5I46asdiqi3l6u3iJBPfJVu3/Vje9emPFyXexVCHkt0NCchFCoUjXg4RejqC3gQ9h/nrs/iasOB6+5xj7koXFJS7LiSl1lZI8YWK4wogwRKrFYI7hBV/fgvaEPEt+Qa2YIm0F1XxyppWMMSmNEF3MIo7sP9axn0k6aFMQi3XtWrcAtBHa7/bt880Pg/N0BizM5vXKxU1dCrCXiFNbeNtPVZ75loJialk+JqtMa7dM43BQiaX/Pu+h4WW0LH7SWUkkfLie9M4LZWFDXAedFDlowdIeRR++wZ1xVOYO/Qo2OWrtoHOu+NT2WMnmtdNc50wTrfrg2mfj2UnPRCfyA77e2QPwpu0Gt2BKbM6Pl5dD+b0HqBKmJvb2xFyPcISWCp9jNRFnjA8HtWFGFOClLuwreWxe/T6QJr3IRQgHZDJX3XIUFBrRmK/oFONnIky71kJ2ka x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN0PR11MB5743.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(136003)(366004)(39860400002)(396003)(376002)(346002)(451199021)(54906003)(110136005)(71200400001)(52536014)(478600001)(8676002)(5660300002)(8936002)(38070700005)(86362001)(33656002)(2906002)(66946007)(66446008)(4326008)(66556008)(64756008)(66476007)(122000001)(316002)(76116006)(55016003)(82960400001)(38100700002)(41300700001)(26005)(107886003)(186003)(7696005)(53546011)(9686003)(6506007)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?tj2nkSFEdAkoNhAB6qndlWNorZ4l7JXxusP9Dl10ZlIF/aphgFCCdgJvsyuh?= =?us-ascii?Q?WTXtNFaKwQHOUj7WGNXNXx1zMrPWyF/0GkU/u4mo7cxHTswAO24ZM5bmFZuC?= =?us-ascii?Q?mB/xsrNWI4GfCu7B9X6I/IDoGnlyD1WiBwfm0v/PwqyfrdXEgE1Xkq5iiiQH?= =?us-ascii?Q?UYaxI+pW2fz7fL+DSKDv5GUNgi10LMq0jOsFSU1nMkck5bd9YTkW3d7XoX3h?= =?us-ascii?Q?BPwojHH2CJLEEHxe54jQOWs1EWUib17Kev7QCtqFlGG50+JnmBfzocpnL8B3?= =?us-ascii?Q?u0mUzFBL36h2628t71aZ61kH+L4UfcQOVuKddYnF3iLQ7L1xthwyfo7RRHFF?= =?us-ascii?Q?LMt0yCtI/evOPvsE+pNglYNh/q2DYSr6Na4pu0VvBYHdfacM+zXM5nVUp4Qw?= =?us-ascii?Q?d4kDq2q4PZNuunuCtJvtNBmEpL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=?us-ascii?Q?bv4j8HWty2uc/pXysWvU4yqBOceW9Rw55Bk+Vf83n3ZbHIZHSiAN7A31Aoot?= =?us-ascii?Q?6xTGfz916B09754YwJb87CKZx63GbrPK81yJNSxmF9ax3ypdQMQwRYQbpRcl?= =?us-ascii?Q?9fZdXjovfxaUea+N/wIGD3WMaAM/ue23Jnn73I4vFKusVc6Yhxn2sKrS0ps3?= =?us-ascii?Q?cl/6/m1nl1j0H5VvhUzcmlkxXalFb083UBbccrZ6BDAAU83n0cAFcJrnERgj?= =?us-ascii?Q?p4bmSzupSvySTizTlcP0HQDsMFWlh0szzuX/yonN?= 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: BN0PR11MB5743.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b85c7017-586b-411b-e4bd-08db66509d06 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jun 2023 05:41:02.0782 (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: 5x82TMA30Sh8Bl8jATa2CSpZ36EvNCbrnrC3grZKD/6uF20EAuat9pBwe/XruYS4KfV+iY1xLpsHjtcX4uV8uQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5993 X-OriginatorOrg: intel.com 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: Kaiwen Deng > Sent: Wednesday, March 22, 2023 3:26 PM > To: dev@dpdk.org > Cc: stable@dpdk.org; Yang, Qiming ; Zhou, YidingX > ; Deng, KaiwenX ; > Chas Williams ; Min Hu (Connor) ; > Wu, Jingjing ; Xing, Beilei ; > Mike Pattrick ; Zhang, Qi Z ; > Doherty, Declan ; Mrzyglod, Daniel T > ; Dapeng Yu > Subject: [PATCH v3] net/iavf: fix iavf query stats in intr thread >=20 > When iavf send query-stats command in eal-intr-thread through virtual > channel, there will be no response received from iavf_dev_virtchnl_handle= r > for this command during block and wait. > Because iavf_dev_virtchnl_handler is also registered in eal-intr-thread. >=20 > When vf device is bonded as BONDING_MODE_TLB mode, the slave device > update callback will registered in alarm and called by eal-intr-thread, i= t would > also raise the above issue. >=20 > This commit add to poll the response for VIRTCHNL_OP_GET_STATS when it > is called by eal-intr-thread to fix this issue. >=20 > Fixes: 91bf37d250aa ("net/iavf: add lock for VF commands") > Fixes: 22b123a36d07 ("net/avf: initialize PMD") > Fixes: 7c76a747e68c ("bond: add mode 5") > Fixes: 435d523112cc ("net/iavf: fix multi-process shared data") > Fixes: cb5c1b91f76f ("net/iavf: add thread for event callbacks") > Cc: stable@dpdk.org >=20 > Signed-off-by: Kaiwen Deng > --- Tested-by: Jiale Song < songx.jiale@intel.com>