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 BD76641E0A for ; Tue, 7 Mar 2023 15:26:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC0AA4113C; Tue, 7 Mar 2023 15:26:47 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2076.outbound.protection.outlook.com [40.107.93.76]) by mails.dpdk.org (Postfix) with ESMTP id 493F34067B; Tue, 7 Mar 2023 15:26:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g6w9WI+vrplMs5XA7ohrhZVo2TRBD4H2L2lNREt1l5Y6x1wpDszzsHdimGDfZ+CyI/dIxci1EHflLxyfDP0a4SHeq4+QMQ3rJD6wm9NjksHS2ecXgXUVmTGSkSYcf73RADbAXu4pom0GAqS4MK1keHu38UjCPcA+axfQUzPPwreOglkdTiTiv0e4DPcf8o6ASamxxNyZE4Q1M6gm6wn7sF/56ntYXT3RYZAgSJ0jZliqsJ1gjB3YZac+vhEcuj7Cbq5Jz97LCYSDY601Zz1U/MT2KWj8miyiPv6bNsvYlJLabZCvL0UPpILxkD8ma4c7uK7hqKk598TascOZb1Hp+w== 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=P8FXektwTUmlAj7knF5IoA/cWEAVnwPU8foxCd/zG6Y=; b=GcjYWzhB1a8355oeIGHj3fHrWFDdtIyZdxTq7ESwq1jEgMimNzmBSttFilvvxOdoO4zsqFHeao6ArluR+aMlYMRJ7Nm3XvG0bLXf4W2xyrnqLvDpX5oRIgQyQB5CsOHGpwbX2nXvAMqz/8bkr/vANRFrQrIuc4ZxKbTh36R5FK/+Tgpu9MefDAGrpjDC32sCGz7RUPkNMy77PqYd+4ueRTfWgongsI2VjvrLaTleEYskn9G/l0w9eSWC+EpE0FXhfd3i7F7fVuqoXbO7dT3qhIW92qu3S0Vz8Q/ORBIxDTcYxFrlKJz/f+GCxf28pK8WX79we1qMm9SIIj5/nayohw== 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=P8FXektwTUmlAj7knF5IoA/cWEAVnwPU8foxCd/zG6Y=; b=FoZuxJs9QAtQCb2zNQtcLspXNDdMvb5nJTOx/Ztq/kLRs13gG/FUSfSzcZ885l189c79L1FBsWaWYZDd9N07TSQeVQMZL++PeOVjBjURpVgYY9Ozc+eESWMIguejmRqtwipKyZDJ114N9VwTouRKqGBaHQ3fwE2RvIE7ACQidlQ= 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 CH0PR12MB8550.namprd12.prod.outlook.com (2603:10b6:610:192::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.28; Tue, 7 Mar 2023 14:26:43 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::dd5a:8a5c:f493:9640]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::dd5a:8a5c:f493:9640%4]) with mapi id 15.20.6156.029; Tue, 7 Mar 2023 14:26:43 +0000 Message-ID: Date: Tue, 7 Mar 2023 14:26:37 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] net/nfp: reset profile config while modify profile Content-Language: en-US To: Chaoyong He , dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Jin Liu , stable@dpdk.org References: <20230228085611.498197-1-chaoyong.he@corigine.com> From: Ferruh Yigit In-Reply-To: <20230228085611.498197-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO2P265CA0516.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:13b::23) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|CH0PR12MB8550:EE_ X-MS-Office365-Filtering-Correlation-Id: e558263e-325e-4d69-4531-08db1f17f944 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uwvoumx7UmNl0D57dkSUabF7BcgDfXkiN/95DvO3oRpPaf4KoBHSbaCIQU+Je7D4n3CZdbzCZwtlT01+ax1qStxoPLy9ORwPH+U/jnkA+fz7YD+t04wLd/8Ky/MUDo/1PXyug3cjyn/pt/XZi6Ftlahr1sYF5q+w7+endy2U09E29NeZvt5/KmX75//xj4S0lfR0IsbZ/v6uJHQBGpudfXvVextZTFDYsHIJvH8nIwoy0fg2RBjPhrG+YUjx2I+Au8vejfryCWqUZS4WtRDfWGRv9/uh4ioQXVu9UXn6H/4I0L/h5TGnQltmKtHQfrOVQsdYlUjlXKnubZzo0zEnZenqlCvLnwZbkVwtJgvEGxcnP9kAbbfT53F9queW0mmZ6U6Dmj8/pvlb3P+Ncow2VXQ1xg4JuwgnK0gAT8nbr41DzGvzqn0UZg3+YSdWraIKpfhzKDbrfbmamSbSkqCcFhsZqG/LdivzzlZcMikzDVYVaspaz+jmDUXc3Tj+3Di79FaOjoILBf8tQl7DvAt+2xfC//7eMVi7JHkTZd4KhnLx7WA3DoBNr87/tmbKEUXp6zq2ZpFKaDhJAk8MJCKp3POsExY9rsnbKInBCTo3pDdZwrTxSmo4riBgHYfiF8WX91mH9yeMlF/KI9QjMsFmV/JjUatoGfwAS1C36aT88jvHfE6B87ijU/RsV09rE/Dvg4y2w12gs12q9WM0PnX8/HZFDllu0ljfVg46qJcCChM= 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)(376002)(346002)(366004)(396003)(39860400002)(451199018)(31696002)(86362001)(38100700002)(36756003)(4326008)(4744005)(2906002)(44832011)(5660300002)(66556008)(8936002)(66946007)(8676002)(66476007)(41300700001)(2616005)(53546011)(186003)(83380400001)(6512007)(66574015)(316002)(478600001)(6506007)(26005)(6486002)(6666004)(31686004)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NzIvT0tXeGNRRElDL0JWWHpLN3ZyeXRtU1p2dVJVUElFVFJMRzlLWlVhMGNt?= =?utf-8?B?dTF4dStCRC92R2lYQVpQTFlxVEY5RVVsa2dRS0FuWm9BTkhZOTYyZFpkbTNq?= =?utf-8?B?SDdHdHk4ZEd5dDFaTGtiWGZWb0U0d0VYVnJwVGc4dzVaMXVPMDFFWUFWVkpF?= =?utf-8?B?ZnlJMnBmMUE0STYrVDdoUzhxdWFlY1F0TGZraVAwUVd6d0JTMkpLYUp6WHFj?= =?utf-8?B?OEI0akhjbk9vQ2J1NXlmNVZlVGdzckdpZlMzYTNKNlA2ZzVseEo5RHFGOHEv?= =?utf-8?B?RVhXVVlPT0hZdXl1c3Vpd0I3aEdiNGdoNGxEVGdxazNVSnRHQ3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uqYMx3OLV381mEwjjd7NW?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e558263e-325e-4d69-4531-08db1f17f944 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2023 14:26:43.2579 (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: ZJo5F68oC+605CQH4+Ms8cvwyhsvThZ1FrFW81/m30DVk5f2SPvmom/IIsDPuj86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB8550 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 On 2/28/2023 8:56 AM, Chaoyong He wrote: > From: Jin Liu > > While changing meter profile from pps rate limit mode to bps, > the profile configuration was not reset, leaving the profile > in pps mode. This lead to incorrect operation. > > Fix this by clearing the profile before configuring it. > > Fixes: 434c66e7e55c ("net/nfp: add meter profile options") > Cc: stable@dpdk.org > > Signed-off-by: Jin Liu > Reviewed-by: Chaoyong He > Reviewed-by: Niklas Söderlund Applied to dpdk-next-net/main, thanks.