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 0743AA0350; Mon, 28 Feb 2022 18:12:27 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9091B4068C; Mon, 28 Feb 2022 18:12:27 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 6116940140 for ; Mon, 28 Feb 2022 18:12:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646068345; x=1677604345; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=snfVghcCY9aM+GBOhJblOPl3Q/oGKYRCfYNBk+TVvps=; b=YcWbkzWrJWBJ4n9WH788AXluppE6VhUw4ujusemaE36AEFFM8qBHCJVi d0L7TT9hjIWFWvzoBgIQBGaKLCV1FbjerYicIeOrkEfePvVF6booZHBrw sXx/N72zrJd+M8Cl3uWLVyfBnycb4wQUuuCCDsQ5FmgVlubCpdusm7kDQ 7Mne+ri1l4qQr991AsHk5MahzngshN78GSOvPajUvLCaulJftYs0Kphtd w30HM5Ih1CjdqzpUxY7s3j1Gw9GCvojThE/r5V+o21n5fr10X6nPm0+2/ CiV/hPXrJgi8pRwbiecML+jIk9yynVzWPjrYXWQNA6zneN8FcELTtHsO+ g==; X-IronPort-AV: E=McAfee;i="6200,9189,10272"; a="339367596" X-IronPort-AV: E=Sophos;i="5.90,142,1643702400"; d="scan'208";a="339367596" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2022 09:09:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,142,1643702400"; d="scan'208";a="708715291" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga005.jf.intel.com with ESMTP; 28 Feb 2022 09:09:54 -0800 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Mon, 28 Feb 2022 09:09:53 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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.2308.21 via Frontend Transport; Mon, 28 Feb 2022 09:09:53 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Mon, 28 Feb 2022 09:09:38 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XD/07SDASnGX6UIRvRj2y6iWl+bhXio26qhTjMkGMR3bP21ksw0QVPDcm+GgbpbJFDje1Q/zcvF2lwEOuBeB/sqf2un/SSDkF0p21Va4DVZfTSgdUCvGfdoRpIFuMoJy5bFWMrn5XOJtksRETn0feFBBeDiFxb3zJ4CDotQJZ4MvKGvZXvYiJxMPr00mIflmVqrTHzwWq9gvjq6JlH7vHyRR+6Otwg2XwjInkhLnZIn/ESXVobpZ5MumpPz2y3hRXrYmFUf+KYzXH29bfxUBTGV3faVUtEtq8QuJuwuUSik5uPDtFWR4p/tSOmrzKRYFdJaF5MUNbRsNr9gjmhZw0g== 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=CcVOprJCfmLgKzLH48WLC4znLKuN015D2w406SWr9l4=; b=XUSlw6LzKV0aWrBDbuC2qSMbj3XUkKG7XNadh5g6HUWQ8NzGYwLfz/MbH+6CV+yTtNv19HOuw3NVq3WTkVLTUrabtrjERy5FnYXZnoA3O7AZLlJc/8dwXIfG/3D/n5WYivULy4VIwspvl+eqvlf8dxgh+SzkV9/ky0ePETpm/AUTz3tCcls8V42xbhFrfDCOuvMG/yYHpAVR7jXL2HRC+IgdZOaDjco7mcwwURv6Hw13oIASi2li0HzjrR1sWFNqhyKyBns9RkLKwfq4pWauzjekewhbVwcqwf6crzrmddXqqTi6RiU5KcL1SIc0tJe5JMoJpKY6qKNOc0V761NkBg== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by BL0PR11MB3459.namprd11.prod.outlook.com (2603:10b6:208:69::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.26; Mon, 28 Feb 2022 17:09:36 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd21:6fbe:8308:2ecf]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd21:6fbe:8308:2ecf%5]) with mapi id 15.20.5017.027; Mon, 28 Feb 2022 17:09:36 +0000 Message-ID: Date: Mon, 28 Feb 2022 17:09:31 +0000 Subject: Re: [PATCH 4/6] net/hns3: fix the time waiting for PF reset completion Content-Language: en-US To: "Min Hu (Connor)" , CC: References: <20220228032146.37407-1-humin29@huawei.com> <20220228032146.37407-5-humin29@huawei.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20220228032146.37407-5-humin29@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0054.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:152::23) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dccbed3b-76f1-4388-0ae6-08d9fadd18cb X-MS-TrafficTypeDiagnostic: BL0PR11MB3459: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: KIe/dGsw6bmiAHe5GQ8nnJluH424HYCYeq9IWxmXlVfeqsoPwbqJ8iajTAxkfeA4h5Gd1juzzYz0PHVxO1Yen9I/mqZDy7V3CQbOFEjSlSljvy+30o4tFQ6XXfzkZXvMs1ep8zEtoa4ZzcLxS2lsW5gbMFWIO77oPNcYAs/nABwYEDeaPXkikajSqEhvfD8nVTYSTEx2+lrbPWstDVC+T1AghN5MFVCxmS6ORcYzpl0nyqbu/z64csv0iyAH9RqcQus1yg6Lx3X2RDp9qbMxfnERhaEaHSjIlMn3N+wQjPIMFVxdgKZ9JGdka8qbZkNLZZCiGsI9yQHXdDOgpUNTcsFJ4WBrjxrPuQlmQ8vhbYcCThpsF11QrqoT5YWmeo5pYp226NXma4kT1ta53uuqKMU01iZCF5uq2MCYHMdH29BvhmPqqjJD/ACbha+wF6k9+/HLqEOm5G/AMxkT+2M9QQDpJyWSqxZA818nJiTw3OjDvlsTLvBmKkpDZzTVS7charlpMofOmMwvT/CQhQFJWvpeeL1LkLUp8ejb7UK2w3StnXUkc/iuVSfDnZg8JHcYS/LhE9npv7hlsFOLwrnbnX7qG/8V0SNl/SU9+j1Cw+KOHOpf/poHBgmfr0Cr+bvR0rDPy2fvP6aXRlHgfFj4129hTR3Pxak3W4Y0VtZh8800bf299gODIC4wS7Ss9zG3PsSkmlcUYlzGIRRIcGfztQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(66946007)(66476007)(66556008)(2906002)(8676002)(86362001)(316002)(31696002)(53546011)(26005)(186003)(2616005)(508600001)(6486002)(4326008)(38100700002)(82960400001)(6666004)(6506007)(6512007)(36756003)(4744005)(31686004)(5660300002)(8936002)(44832011)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q1lXMEo3aWJ1T25tU1RURUVpb3ZxMlI4SnlaUXNuckdZbnFNOHptLy9jWjE5?= =?utf-8?B?aG9vMS9TdURWZ3FyZ1VZYmEwUFBRc3RhTDU1aFgzckNaMjExeFJ1V2VkMXB6?= =?utf-8?B?MVl2SUxyQ3NuNmZUelhPWWFaRytwRUhTVEhrMlhSeXBGdmsrUUs0cXBua2xp?= =?utf-8?B?K1ZQYmdqN1dET2RDMHY3TDNUM0FDOFdhbWhPYVFDS2NWem9SOFdLZkxXc3VU?= =?utf-8?B?TUMxak9CUDhtNGlKRWtMNFptK2RnQVA2UWpQUytsTzFPTm9CYjZiTHZ0RjA5?= =?utf-8?B?aW5memQvQkc1amJCMHBsbmVNeW9iSWh6N1Jya1kvekIxSlV3ZmxESEt5ZnpF?= =?utf-8?B?MEY5MGJkL2hWZmZxd0cxdzNzMHpmNkRjY09vREdFOEtBQkNnVXVlYkRIeHRu?= =?utf-8?B?RlV4UFVuMFNyUTdTdEpueUc5KytvNUVBQVpQTnRUbGZ6ck05TEV3YmZvdHpF?= =?utf-8?B?R1lKR3NFZzVHVWtMUXBReDh5QnJ2Q2kxVXZaSHhMeTNZRU8wMlhvV1JCMnJE?= =?utf-8?B?Y0ZobU52bDZJSjBV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VyT284dUwyME53YTJvZER4ZlE1WmwrRmxCR0ZrNVhzZEF6R1NqaENR?= =?utf-8?B?V0ZNR3VsbzBUQXd4UGVJZzdEUDJjOFdDVFByUVVEalNQRWhPeHZEaXF3QkxS?= =?utf-8?B?RGZFUlZ4L3Q3aEF5Yzc4d2h5R09CVDRzVXdPS1ZmYWdjcXdIOTFpN3MwMlV1?= =?utf-8?B?cFEvMEZxK252dVJUV3haMUQrT3JxdWJjelF6Y2hLeDJOZ1dBamFpT1U0RHlj?= =?utf-8?B?R0xTWDlQb3g1QThFd2hPYXE5OHRmMmptdXZDek5qaWZOM3Z0Q1MydEx1L1la?= =?utf-8?B?QWtGVUx1Y0JzdHRUTUxwMGx3MXF4MzNwN2tQSVE0b0xXZXJDTlhWN2ppS045?= =?utf-8?B?dVYxZU9KL1pZVitBczJiZzVQRGlOZjk4YklPYUowU1VtbExVckExNHZoN2h2?= =?utf-8?B?SWFEWU9qSG1xNi9IbENwZmdLVW1qMHJrSU9IZnBhVXB3d0pIeXR0aXlUMUd0?= =?utf-8?B?QTJjN3gyWXcrOHRGeEh5cmNWY1h5RTUvVkhQNWFqRzBLcFhXQ2l6bGxuQ2tt?= =?utf-8?B?ZDZJMmJEcWlWdExaSm1BMTBKUVlPellLWG11b3RkRnM5K2gwNmxxOHpBZ0xs?= =?utf-8?B?WnJrVFlVQnhLM3RmSFoyaFFXbWl5Q3ppTDR2MjEzUy90L09TQml6UWU1cEJU?= =?utf-8?B?Y05aZXMzODl6OWNCcTUwTEFQMFNWTG0ycHc4cW5TeUtiVXBvVVpObk5OMlhD?= =?utf-8?Q?disRIkes6IUMunetYYDN9ok=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: dccbed3b-76f1-4388-0ae6-08d9fadd18cb X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2022 17:09:36.3425 (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: 7n5T3dZ5O55gc2N7AUIleF9h1eiGajtAXvfSYZvtXx/udw13nphkBkkK7z7V+9fqVaydS2KLgaIj5YZiadLRDA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR11MB3459 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 On 2/28/2022 3:21 AM, Min Hu (Connor) wrote: > @@ -1895,12 +1896,14 @@ hns3vf_wait_hardware_ready(struct hns3_adapter *hns) > return 0; > > wait_data->check_completion = NULL; > - wait_data->interval = 1 * MSEC_PER_SEC * USEC_PER_MSEC; > + wait_data->interval = > + HNS3_WAIT_PF_RESET_READY_TIME * MSEC_PER_SEC * USEC_PER_MSEC; Can you please fix the syntax? I guess all can fit into single line...