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 55B97A0C4E; Thu, 21 Oct 2021 15:08:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E6F87411FE; Thu, 21 Oct 2021 15:08:44 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 42F554118E for ; Thu, 21 Oct 2021 15:08:42 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10143"; a="227796987" X-IronPort-AV: E=Sophos;i="5.87,169,1631602800"; d="scan'208";a="227796987" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2021 06:06:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,169,1631602800"; d="scan'208";a="568308300" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by FMSMGA003.fm.intel.com with ESMTP; 21 Oct 2021 06:06:58 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 21 Oct 2021 06:06:57 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 21 Oct 2021 06:06:57 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Thu, 21 Oct 2021 06:06:57 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.46) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Thu, 21 Oct 2021 06:06:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jPeNKj/A00Ft5dfuHEAdQYrGZRQAQ/9qRwExyLCwcSdzUOXTqhSt4tAsLl22ETVkdhB6qZ4JiWmpwD37xquTYPwfhxJCB80oPUyObO/jejqxelQetYc6nmotFlFBuqQDxbmvZEx4VO3wiIBagD1kTRqf9zjllWW8/3mkG4Wu8OcTfceqU967o7i/c1nh9my/vWtRRqAjnyvKj0wZLAoKuaNruyFzTIL2G9XbpsoO4A1yh2CqPQ3r7DSw8qN/CymQq5LfN+jfUAgoCzUYm+2YvbUmlcn0w23daQr6ZZMfSzIKP7WmkhJ7RxpJ9xqBD4Kjl1v8n/hjdTczAEAqyR4/7Q== 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=kk9dj8lT6xWWiLddtcvFwc4v+JYxBOAjhIhcSpJI/V8=; b=LdDb4xCiwNGTyFIo+UYcKS+BzUaLRSO5L3w0VqGe/7KaprdEtwFD5EkgP6xL2H+kIRDongFYhIlB/w6p9m3ui8xyQZ/wWQRQ6mI+GEmj1nIX/Zwpuy9yvsYmU0TvV8It9kL28FPyWDlQxcSw+J1Hoqy14f9BZqTA+JaeyYlgEoUZCbIAZhNi76rOuIUX6ljpHYIMN8Os1USu/t187ZaJaBJyC1Tm9GREVtxUEykhWa0nYoAjfXx8NkHGzZeCX5LSYq5ol7QGE5YREh30bMrsu5JTQ7ZO9WqFw6utUeolH6xgOp/20zM1RRzeAfl4nYQMMUR2BknPbNxFsRS7O1zqeQ== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kk9dj8lT6xWWiLddtcvFwc4v+JYxBOAjhIhcSpJI/V8=; b=q3pIoS1yI5x8H4ZLv0vwR46G+UZaflUZEhpGxatfWkjrYrvIKBd3mxNxayDp9HPSxwR7CVL8WitLjTCPLtNW4zePjZhvIBmYyWBrNUeC0uOXhCeY4NfYuT9Q/xgPHoVHL3lvxpNCkYKoAaoIdNnbs80LwupGHv+em2uFN8Z5ISk= Authentication-Results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB5029.namprd11.prod.outlook.com (2603:10b6:510:30::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Thu, 21 Oct 2021 13:06:56 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c%6]) with mapi id 15.20.4628.018; Thu, 21 Oct 2021 13:06:56 +0000 Message-ID: Date: Thu, 21 Oct 2021 14:06:50 +0100 Content-Language: en-US To: "Min Hu (Connor)" , CC: References: <1630295328-44604-1-git-send-email-humin29@huawei.com> <20211021022229.9680-1-humin29@huawei.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20211021022229.9680-1-humin29@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB9PR01CA0007.eurprd01.prod.exchangelabs.com (2603:10a6:10:1d8::12) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 Received: from [192.168.0.206] (37.228.236.146) by DB9PR01CA0007.eurprd01.prod.exchangelabs.com (2603:10a6:10:1d8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18 via Frontend Transport; Thu, 21 Oct 2021 13:06:55 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cc320720-befa-4b24-eaad-08d99493a8cb X-MS-TrafficTypeDiagnostic: PH0PR11MB5029: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FMSNVa02SDc4qoxMkEDCVIiyGqzZxqWTDierTmNb7juJS89lVDQX9HeQSFk9dG/pBwHZIGMraepdBcKIoUC246UdwoWH8cLoNdexROCtp3Jir0GkaG2S6AEe27v0wzD3TFa3Smmz/Y6+7EcUB22VGkEIfVQsDyQoeHaf2+tiJjo5yHk9rCPbNe7oXzh+ajG2dFuAGQcYJhXuMUcFzgHbDCY4D9myGX++iEOHZV43kNWK+SFJ711sKAD15kZBYWo4WQu5sMKSrUerMJ6xCK/Mr00/xMuizCbIA1MBoxlkNRRUtbk8vEVh7gy/LOsy9xLW5my0EAqMxsvBmRKXoADuRU/CCs3fmNbbmn7CsVEwK5FLSLA2Pz36LE8lN5L1EMRjjonHBpZieCsgNwFziCayj12tSZRyu1v0iixQtXpieW2djqPNzsA90oxTXX3zpW3CqLxKuPygwIa66KmKqdLz7bGMoFzSV5OURwikY/Lh+S3kniZUkRfueTRB72EU2kJQ+koP+qKDdJCZycTAEnp0e1FC+UDLgG27WRjLHmpAHw9Hi+jROwI64Zsyh2EgXS+Yzuo4aQyTUMUShuP0FJQ534epsip7iPvSq+crmyYpYFk0JJM1LdhB8tbBnrZ2+BMktPm7iUPNdDh+RwAzX6H0Gg== 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:(366004)(66946007)(66476007)(66556008)(4326008)(26005)(86362001)(31696002)(38100700002)(82960400001)(5660300002)(6486002)(44832011)(53546011)(956004)(6666004)(83380400001)(186003)(36756003)(16576012)(31686004)(8676002)(2616005)(316002)(8936002)(508600001)(2906002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?N2F0VDVhOHN1WktJTkpSQXpEVzVDdkx1N21TUCsramhnMUtOVlRpaHNBQ2Nt?= =?utf-8?B?Z0c3ZHRzZmowaGwxcHltUldKUzlVNkp0NFY3NTYrdFdYTzVZem1qWldkMjRR?= =?utf-8?B?VVk2M3FLL2tBNHVJcHFKYjFySnZ4Tlo2eVpCMU9JOHNmV2JFZEJQN0REeUNX?= =?utf-8?B?a2I0NmJ6V0daK1NMNUFvbGFGSWd3SWxXVEVVMDRsdDBwVHB2U29KSWdxbGZX?= =?utf-8?B?clFaQXA3dTJpM0RBcE1DelByWjdWcGh3LzRMeW9BOUZ5b1FNL2x0VkRzTkRq?= =?utf-8?B?UXFsanpBYzJjQ2gwYjhVUzlydXArOU9GQWhVRlVXQTRTYm5Ud0pCR0RZSXBq?= =?utf-8?B?M0J6UW1KTmRyZmtIalR3UGZENlZFRmFTY1JkWUthOW8xN2J3b2RmcERDY2xh?= =?utf-8?B?TEYyNXpyVzFvdktPNmxRQXBHdlFYcmVPNXhIeW1nRHNmWTB5VE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VWFjSmFQbTBEb2pWR1o2Q21TNE9HWHZFUEF0?= =?utf-8?B?UVdEejNZMTBiRDJKaEQxa0YramFNcm9hZFhsazZWNURSRThmZXBTYmVtVmYz?= =?utf-8?B?WThweFJ3ckErNWFncnBCZnRDc1BGYndxcFFOSFpmZktIY0RwWWRWTS9YYVFC?= =?utf-8?B?UVZDOENIY3NtWkVhV25EQjJtTnFaOER6aFBZWEl3cUtXVDFCYU1VL255a0dB?= =?utf-8?B?L1dNc21ISjNDUGNETGR4VkVaeC93WStTZXFtMk9JUDRJWUVHTnNIenJzTGgy?= =?utf-8?B?YWQ0UW5GWDNKU1RNQm1mVWVZZGlWK3Z3RDd6N3NhdVE4OFVRNFdwVjB3Z3Rj?= =?utf-8?B?VVRieHh2TlJJZlZpbmp6cTZndW9VcDJLckx2a3hJN0V2OFArd1lYcVh4cnBI?= =?utf-8?B?eHlPbUQ5K0tqcUVZMTYwbzBBKytVYlVMaXU3SWR4L1RwcnpzVmNVajVvUFZK?= =?utf-8?B?T1FWLzVKU0RuZjhRKzh2d3FvWjhHTHlLNmdtZE5YWWhqVEd6QTNiMGJaeits?= =?utf-8?B?MWFOc21pcW42dWxCbWprZmUyejIvSzNPSEpCNGJlKzZQWFJGbjYyVVVqY1pl?= =?utf-8?Q?FluSFUeobQ5sR1RmGwKs326YwCz5yTXT?= X-MS-Exchange-CrossTenant-Network-Message-Id: cc320720-befa-4b24-eaad-08d99493a8cb X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2021 13:06:56.4995 (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: ferruh.yigit@intel.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5029 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2] net/hns3: add runtime config to set MBX limit time 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 Sender: "dev" On 10/21/2021 3:22 AM, Min Hu (Connor) wrote: > From: Chengchang Tang > > Current, the max waiting time for MBX response is 500ms, but in > some scenarios, it is not enough. Since it depends on the response > of the kernel mode driver, and its response time is related to the > scheduling of the system. In this special scenario, most of the > cores are isolated, and only a few cores are used for system > scheduling. When a large number of services are started, the > scheduling of the system will be very busy, and the reply of the > mbx message will time out, which will cause our PMD initialization > to fail. > > This patch add a runtime config to set the max wait time. For the > above scenes, users can adjust the waiting time to a suitable value > by themselves. > > Fixes: 463e748964f5 ("net/hns3: support mailbox") > Cc:stable@dpdk.org > > Signed-off-by: Chengchang Tang > Signed-off-by: Min Hu (Connor) > --- > v2: > * add some comment for HNS3_MBX_DEF_TIME_LIMIT_MS. > * remove some check for mbx_time_limit. > --- > drivers/net/hns3/hns3_ethdev.c | 32 ++++++++++++++++++++++++++++++- > drivers/net/hns3/hns3_ethdev.h | 3 +++ > drivers/net/hns3/hns3_ethdev_vf.c | 3 ++- > drivers/net/hns3/hns3_mbx.c | 8 +++++--- > drivers/net/hns3/hns3_mbx.h | 1 + > 5 files changed, 42 insertions(+), 5 deletions(-) New devarg need to be documented in the 'doc/guides/nics/hns3.rst', in "Runtime Config Options" section.