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 C1302A0C47; Thu, 7 Oct 2021 12:20:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 58609411BA; Thu, 7 Oct 2021 12:20:59 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 3A8B5411B9; Thu, 7 Oct 2021 12:20:57 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10129"; a="226114350" X-IronPort-AV: E=Sophos;i="5.85,354,1624345200"; d="scan'208";a="226114350" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2021 03:20:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,354,1624345200"; d="scan'208";a="545678714" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by fmsmga004.fm.intel.com with ESMTP; 07 Oct 2021 03:20:56 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 7 Oct 2021 03:20:55 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx612.amr.corp.intel.com (10.22.229.25) 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, 7 Oct 2021 03:20:55 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.176) 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.2242.12; Thu, 7 Oct 2021 03:20:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b9ZJzca+lXLPchnfa1tgGC/ryStGxijtjBWQ2Ec42ncELEYdE7dS8+w6pUwiIQlV7RkS7ukeeayDLJGvzNVIwn1qqY0gZOBaiGJKh1L+TDYL6HayUhzfgozbJKL9S28mVY06BawaSdBYwM8TvdgTaA3LnbCBbW5Tl3SLlKpvk9ufHWfiojlDGeiwMGNpwZXUkEIztHXXwKIUiEbpQiC20q67Ghk/1YiU+OBNQG7KIUwd8FgzHeL4hIe9BQV/q9oXIXpy9rpy1bICxJmHsH2Wph/RhYTTUMjf1kOSPdon5q/KQu55T32/MRN1QZ33QDPpwWjqI/ba1eFIZWPRb4DFzQ== 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=C1xE4WhZ/KWezeqUwGXLw3oAEoWvCq5nRc5obwIm+/w=; b=QVUs1RUU5wPCyaKII5enQc4mjC+/kbdzp2kX2Esnc03oVBAtxz7QuoTcxGO2GSZk2B8xCiiS9J2+7a7AA4iJqGGPq8gP9Tmu6J43kFhoTEqMNQkmqvavA1Xa92dLuI0vr+n5hkCiEuF2vDU+KjUghzyzDGMec9iZFSnBEHmxN5GKjtOqlQQ9TidZWYqhREhd8zvyzx5xznXGz9DDiXQt8PxH0gViGmbMV/FuNocnQJo7GgTEAW+hUrxJph2zUuJwgHdbLAvYTRmGORHpjgs+NUPNpkM/xRT06/byrb+75DFo2fu43/y0NPv4dqZ7q2/OjzOHUqgHbPGpNwXuY1Fi/w== 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=C1xE4WhZ/KWezeqUwGXLw3oAEoWvCq5nRc5obwIm+/w=; b=Z8RTFUPEi6tgUVjsI2giTBl2yD4fHntyYIbbqaMyVI9bK/I2NzMpBcxJq/JcBBrPjKDFm4jp4hKKJu8WcBkK5kFA8WTfgXx4IpgnMZAINjwRj2qEIWY5O48w+6PN2rpw+HrGYgmlhFqScHYAjQF2GPA7is5rxzoLbS6bAxv0Zys= Authentication-Results: corigine.com; dkim=none (message not signed) header.d=none;corigine.com; dmarc=none action=none header.from=intel.com; Received: from SJ0PR11MB5005.namprd11.prod.outlook.com (2603:10b6:a03:2d3::21) by BYAPR11MB3304.namprd11.prod.outlook.com (2603:10b6:a03:7a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.22; Thu, 7 Oct 2021 10:20:54 +0000 Received: from SJ0PR11MB5005.namprd11.prod.outlook.com ([fe80::cd8e:780f:5a1c:298a]) by SJ0PR11MB5005.namprd11.prod.outlook.com ([fe80::cd8e:780f:5a1c:298a%8]) with mapi id 15.20.4587.019; Thu, 7 Oct 2021 10:20:54 +0000 Message-ID: <0d0d9df5-00c2-b277-6c59-a45b7a6c87f9@intel.com> Date: Thu, 7 Oct 2021 11:20:48 +0100 Content-Language: en-US To: , CC: , Simon Horman References: <20211006064455.18114-1-heinrich.kuhn@corigine.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20211006064455.18114-1-heinrich.kuhn@corigine.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DU2P250CA0016.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::21) To SJ0PR11MB5005.namprd11.prod.outlook.com (2603:10b6:a03:2d3::21) MIME-Version: 1.0 Received: from [192.168.0.206] (37.228.236.146) by DU2P250CA0016.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.21 via Frontend Transport; Thu, 7 Oct 2021 10:20:52 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: af7467e5-d43f-41fe-5f8b-08d9897c24ec X-MS-TrafficTypeDiagnostic: BYAPR11MB3304: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P+dRCMWf1KpK2f0e4FfI5hipV4Yx+dyQRsUvRYFzPI88RqRvQW+VMK1MDp93wGI55sqIdSecEMw2xTa4nBH5I+UqDQmmanSHEMw58hxx6340lfGTWTBuBpSf50WpOCWq3CymgxEic+nIf5Th6sj45cgyC1hs8VRxowu94O3EzXQPkis/pBo2kGvFcdQg9+Dk66gqdrIvVgMc4v556dGdQ33yCuUCwC+saGvpR9ew1mLKMLrtSDUQ0UtNGUGc5YDMBYZzk34O0aoqDoLfbeX1omN127EZfIbpzl1bd3vXQsx2KkF7vWQ3Cz0iMp+wkBVjqiSRh9YV+BvFPH/qydOMe8ROVd5j7zclVfqzM50ZXYA6cDhD78Xv5UpiLk0TEdLazlDwG2LyXtl9fpnFeMdfLLpViZtf+yqeJCYJxG3cnbSE0IppJkWjDwRGyY0PaNpFNEN9GND7HCNb0Ksll89+rvVXeSfXuUY4Mni84VTRKiYwPzVwCSrI5QuVl3OAFrtjsYK12Us0cXn9ovnw57BptQhOvxPKbJb/SyECmbn9DVEFn6Wmn9trGPEuX7VIU5O9POeXm/L4GfwLdYjDwaFyAIR5iY1qRNoQhEGwlU9EEAB/2nQeDTryJ8YnlkuZjBrJtBkrui6w6erUJyFe97N/PRSPs02tK/pRewEDGR1eL5AZTFgGgQDb2DaDeGnuQjkBVdwInhdcI30QOmxZTK1QYg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR11MB5005.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(956004)(2616005)(31696002)(36756003)(31686004)(8676002)(4326008)(66556008)(316002)(66946007)(66476007)(83380400001)(44832011)(5660300002)(6666004)(2906002)(508600001)(16576012)(86362001)(8936002)(53546011)(4744005)(186003)(6486002)(38100700002)(26005)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UjdzSkp2aHVVM05CajRtNjlYQW0xL28zWFBqRkRkc1h3RldlenpKd2RTSGhC?= =?utf-8?B?WnNQb1VVYlZWYW1LSEFsck1BOUR4NnVTc0NqRTFHalV1UzBPOVc5aHpEUTAy?= =?utf-8?B?QUxWUFp3a1RMVCs1V1ZTaXhoV3dSbzRGR285ZmRDSy9FbkpJZnI4VnA2Y3JP?= =?utf-8?B?VHhaQUY2aU41ekdNOURYVVNPcDkydjE4K1BWT0o5REx4cDN2S09VMENLMGxm?= =?utf-8?B?UXNQU2sralhEM2xiWVB1MlR2NGR6OTBIdThoN3hCNHFBc2gzMWRGbGVqSlRs?= =?utf-8?B?ZTUwVGJvMDQwSWt0WkxJbllObFc5emNtTEFmTFNWcm4yMytRaUVvM3hLRWI2?= =?utf-8?B?cWs0NUF0UU9ENXg5RGs5TXZiVTdob0hQL3NoaUZhZnpRV2R1S3pnbDhDOWlh?= =?utf-8?B?OWszeXMzYXhuTDRzT3dFSlJpN0srN2p4Z1FOelRURlcxbjJJWmNtSDhyekho?= =?utf-8?B?TUcwaTQvRTdyeWdzSjVVT2l3Q2tETzVicCtwU2dyWEVoQXR4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lnbzlYd0FNWVpYTTFJb2oxbU1USDN0?= =?utf-8?B?eUpTdTZjeE44Ui94eU1xMGhGQWNVZ2xzNDUvRUVzQ3lJVEhzTjNqdTJhalVD?= =?utf-8?B?Q3h4QXlGWk5HZ2hwa1lwdkZTM29ZM0grUEo2TTArZGkwOVdELzF5cHlHRG5Q?= =?utf-8?B?aDFQc3VDcjJscDdVdm1UZHYwS1YwNXJLelJoamUwT3lWRFlDc0lJYW9UQTFh?= =?utf-8?B?dXNqWlNnak1VYVlqSlZNeHh3cUR3N2hWdDBrVTRRcDA1RzAySXhxTXJ5aGpS?= =?utf-8?B?U1krRTF0ei9oeGU2dk1rbjBHaG0rdzAvT2FJWTFGRGI4NzNNeTRlWXpKZW05?= =?utf-8?Q?Tdwf8iatsOriOmx/w3sAAt5X6u+uon4jTi44WQq?= X-MS-Exchange-CrossTenant-Network-Message-Id: af7467e5-d43f-41fe-5f8b-08d9897c24ec X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB5005.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2021 10:20:54.1182 (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: Rzw+KCp2nYKucFp9SGwyuIPfOxfNlrESENVDvj7uMWiOp+sDp/+FX7/lMU2Z9gSPLlnDyPrh+ayNQfRQgVlLKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3304 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] net/nfp: cancel delayed LSC work in port close logic 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/6/2021 7:44 AM, heinrich.kuhn@corigine.com wrote: > From: Heinrich Kuhn > > The link state change interrupt handler of the NFP PMD will delay the > actual LSC work for a short period to ensure the link is stable. If the > link of the port changes state and the port is closed immediately after > the link event then a segmentation fault will occur. This happens > because the delayed LSC work eventually triggers and this logic will try > to access private port data that had been released when the port was > closed. > > Fixes: 6c53f87b3497 ("nfp: add link status interrupt") > Cc: stable@dpdk.org > > Signed-off-by: Heinrich Kuhn > Signed-off-by: Simon Horman Applied to dpdk-next-net/main, thanks.