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 24A6441DF5; Mon, 6 Mar 2023 10:10:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1014740A8A; Mon, 6 Mar 2023 10:10:33 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2074.outbound.protection.outlook.com [40.107.101.74]) by mails.dpdk.org (Postfix) with ESMTP id AB6214067B for ; Mon, 6 Mar 2023 10:10:31 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ijmuqo/PMHHT+QVwjkZyGQ9J9M8PJq9bkW1pHAaGTcLJ0sC+6Q9pZrjJm+FUFf/RJGb7Ke4uslRwUmlD/cclu9WtyRjHsJZcn4XskWbRswQpKCQwxUExiiTSydh9iialkpdn37IFX2t3h2GFLki3cYrDP/c7nMycEgfDSf5ExBZaXw9sg2C/BaQNvB8rrCANgFq/IY1k162cBaJM1LlAJxpnrDx1owxbbhY8NBHWCGkDuOxAFrUApfW8ezu3N7QR0jqmn9cn8t0PbWLQ03YAMyyoflXi8H99hQmTX+uIB2mu3jt9CaSd7le0P3n2Yeeikud0yZ+LlSirR47xFnVB5Q== 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=AR4ek4FhtnigkQpVgyQ00NC8UtsMFJFQW1NK5rdC6EA=; b=HcXEpAjjK1JCaUnGXTZiw/81WZM6BRiUIO7C4H7knkjCsrF5HdrcfqOmEvurwql/dlm0CF7STRoBtUvTkHy33D0IwXK6kJsEsHKWHPjr4tvCGCdTcCUn9hsR3osF6/NI7CE70qqvC1OdKrDbGdzRnhAhqUYrqrANbGkrzugn8u705JJlRwqTlxUBCFYfef3DkBPTuYOX+0GboI4HXBBKroEeYqtQq2hqGJrzEKNgGR9kFBEBX9c9mbCyfKNIG7ac14np1s3zmOQyEO52EMS+682Yp3QicgQst49VoGWmTUGOCfzm5NaknnbZFV3FQDw75hR9fnCTgmbu7Zw8adH5/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AR4ek4FhtnigkQpVgyQ00NC8UtsMFJFQW1NK5rdC6EA=; b=rRErjBYb1IIYPJF7eIcyN1yWSWAgH4CU6eZ6wgKzsLkkVyEmgxe6iNvy0ps89gjnjBn/S3YyU853Vqq1ivS9MCBPUVSyQA+3Jhr4i3n0QXdR9k++A+mMVrFGCLGFF7bC7/kRZyr2YvhYcSIwmojubbrzOkZi0giLd6SFqohPK0A= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by PH7PR12MB5952.namprd12.prod.outlook.com (2603:10b6:510:1db::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.28; Mon, 6 Mar 2023 09:10:29 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::dd5a:8a5c:f493:9640]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::dd5a:8a5c:f493:9640%5]) with mapi id 15.20.6156.028; Mon, 6 Mar 2023 09:10:29 +0000 Message-ID: Date: Mon, 6 Mar 2023 09:10:22 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US To: fengchengwen , Konstantin Ananyev , "thomas@monjalon.net" , Andrew Rybchenko , Kalesh AP , Ajit Khaparde Cc: "dev@dpdk.org" References: <20230301030610.49468-1-fengchengwen@huawei.com> <20230301030610.49468-2-fengchengwen@huawei.com> <0f387ca1eee34a7f92745de7b59a71a1@huawei.com> From: Ferruh Yigit Subject: Re: [PATCH 1/5] ethdev: fix race-condition of proactive error handling mode In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0681.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:351::15) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|PH7PR12MB5952:EE_ X-MS-Office365-Filtering-Correlation-Id: 8e77566e-41b8-4dda-2774-08db1e22a124 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eMe8CSaoy4vgZlPg6boYK1KSs1Airx33u+fcWoKUf+qNvSwr9Z+GBDnVoLzaHhhCl1vy1rIF/grw9bQVdWvZERosG8vb/Ox5RWRdMEW+lLoPyhIcSl97ywBz8ewXTWLQdRN6HfGQbX28nOPJzFY2sUhHhshKTK+p3QRmHbYh8Lm39KfT/lrkex/slsM0mhwSTinqOg/sMcTkbiMiYiH3LSUNwzL55WdLLENfPsT2AWYJPcjjewAG6ij/hZVY7XjBpEnsBOYWSyHnCk6DcBoetef45P4KlzHT93ZkjDBVJqBQABkR1iuA+0QGColDHcXryzWMzO4KRtDnPG7byla05349KmBJptwKl3MCGnFxCTSDhSafIBYYkPEhgnLzoGlh5VvBGNZr7nuXSkfGeUJyob8gLIC/MIDMaCAMHRKHIx65a5aSEypPYUPOXRGY9FSzaNoBmoTsDGsVg2KuyrA8hlbgvA/+mIqyQLC/vHsLGrRbHgIQBdaHwguWEr6UAVyliMN7qL2mlochxgdE64HngCLTulQR94zSgZnEfonIU9Qlc+C09a3S3azVZ3hwB6v2LME/BU17oofkguslOif/1OkXAS5u4QdGIQ+zuiNBCrnVXqXKsSrD9ERRxwgpveuJiHB4zgunrERzuHceP4qCr2IQ3N39OMvNZbd1aMdEe9QJyf8XP9PBcFSEDMq3itX/00fEjgOvGl89WI0Nx1/gd/rgKuZcqYOLMqmU8IU+tFI= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(136003)(366004)(39860400002)(396003)(376002)(346002)(451199018)(186003)(38100700002)(8936002)(66556008)(66476007)(8676002)(41300700001)(4326008)(66946007)(44832011)(2906002)(4744005)(5660300002)(478600001)(6666004)(2616005)(53546011)(6512007)(26005)(6506007)(6486002)(966005)(316002)(110136005)(36756003)(86362001)(83380400001)(31696002)(31686004)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QzVtY3NKTWNybCtaZHFmcnp6aWsydkx2dXMwajNWUVNCTzB4YWtPNnJLN0Y4?= =?utf-8?B?SCszaGZLMlEvbmRjUmZEL3pKN05MMmVscjFpbVBkdXYyUTI3RVozSU5FNUpW?= =?utf-8?B?SXhNUW5iR3hveS9hQ1pLRTB5MjJpb1NJSWg0SnJ1dkptQ1FVdkF6NStJRWor?= =?utf-8?B?VXpyd0lOY1Axem5ua0l1QXpBODZ0K0oybGhPeXBEbUZQa3ovTStON1ZtRUht?= =?utf-8?B?UXN0VmZ1WmZ2R3JneUpINDN6bkFDazNlK3J1L29uRDVvbDhIdzgxNWlLT2M5?= =?utf-8?B?dVBHNnlyZm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5N2hzTFcweWx5aGJsUzQzcXAr?= =?utf-8?Q?+ERDjWKRlIIigoKXVlUSVplWD?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e77566e-41b8-4dda-2774-08db1e22a124 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2023 09:10:28.8007 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OpnjZls5amzXPWw5QpTYK0UwBS3sVLJs1bGVCtvBtc2WdPqkDfe5l0/gFGvhEgDP X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5952 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 3/6/2023 1:41 AM, fengchengwen wrote: >> What if application is not interested in recovery modes at all and not >> registered any callback for the recover> > There's probably race-condition which may lead to crash, because DPDK worker > threads runs busyloop and located on isolated core, and also PMDs add delay time, > the actual probability of occurence is very very low, at least for HNS3 pmd it > has not run out for at least four years. > I understand the problem and why application needs to involve, but the question is what will happen if application is not aware of this and not handled this event, or ported from different NIC etc. Do you want to make handling this event mandatory for each DPDK application? Btw, what about my suggestion [1] to use different version of burst ops update function in PMDs to prevent crash? [1] https://inbox.dpdk.org/dev/20230220060839.1267349-1-ashok.k.kaladi@intel.com/T/#m876b5c5312391557c952198561e6823473bce151