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 9E3E0A0351; Mon, 31 Jan 2022 14:23:28 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2771941181; Mon, 31 Jan 2022 14:23:28 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 0E1BD4117A for ; Mon, 31 Jan 2022 14:23:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643635407; x=1675171407; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=tf44eYqo9SL0/bLEmbTVVyWsd9BQgSA/ZFYDFacBJwc=; b=FiF2r06t5jauNbjrbtlh7aXuRSrbw0zA9x+VO8H4prZczni/v2T++Zro bniIxKJ7mejTFgZm+ZBt5VjplmsvbIwQMPQlWhBPVUGjuACTtbWLI3AWM LJWqdRqw5p+TMOAqKuu0+/bYNBbvkQBbVYqoD6SjKTtd6ToDcCq9jLTWi o9HgULxAFl5v4cFlwED0ecudMfXZscMUyymZZWfXYGxCI1JIyNkhoAQk5 qwjKgBSMjW+sQ01JXojqnfUuo7snKScHDosQhplVaPR7dZWHqJMI7i5qW OxdkR2uhonvhMWjc//tWQjvcG059r+8cGCWvrXrpEmWerYpWCKOxufI7Y Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10243"; a="246291154" X-IronPort-AV: E=Sophos;i="5.88,331,1635231600"; d="scan'208";a="246291154" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2022 05:23:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,331,1635231600"; d="scan'208";a="537177116" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga008.jf.intel.com with ESMTP; 31 Jan 2022 05:23:25 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.20; Mon, 31 Jan 2022 05:23:25 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Mon, 31 Jan 2022 05:23:25 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.172) 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, 31 Jan 2022 05:23:24 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fjJC7w1CevsYlblXaz5ckxtmzdcYduGLn3bbPFhH4kqoQ90IvYg2UqVv0rfyJacYiZzgRfFOSVte2m0YT3cdg2bsvuZB3MArBIza4zaIBfkVwvuv6OJuhbR9zrMyjzJODIJWwaMYp5QFcUGSeoQIg1rOtXzMsS0j9lUv7t1Cg91eXsciQ7kf3j+5Y+jn2t/OKUKBMROooZhEzPBXoXkngpamQ9OJxnE075vwfPV7gUvp3UZhujHNuAivq/JPNmha+NtXGBIT8v3o/8AyT8TaVojAF/Rbg82JB1Y7inLVIvmcNsIuIp8Ycqj76L6uMXoBTWuVIRsDOmFlPJXPen3RAQ== 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=n9YkjFIaHDEkJa62nsFeMQrbzPddDb0wOUVG7bSyZc0=; b=KxyTEjJNiaOgyXxHOuh/b0xSg5RjvC5aXsKQXvuJTLmXzM6heNrixhTen3BrWyZxUbjS3jfkPCOXWXdkNMK/xRaqHKQndi3y+uMslFlKH4NiWui6Fq9617sbgIWREONEtiO7CgL/iCPwq3wlOIB+1dXmKuBx+vAf3VxqUOr7uwgJ1QyzhfOO5Sw8BFYCYLfkde2fZ303HtzcSdXJjfVAN3kEZl4HwVDmese5DTa5EUP0LvZ9eOPrrYysB5ziEX76FApc9bdakM+WJ3HkaQgNFAmzRLVHJCYlr7G4RbgKY3VG7+Url6PpIbeq+ZXXJoqcKMcpIy5rrhI/2rjXXBf/BQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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 MW3PR11MB4601.namprd11.prod.outlook.com (2603:10b6:303:59::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.17; Mon, 31 Jan 2022 13:23:23 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e%7]) with mapi id 15.20.4930.022; Mon, 31 Jan 2022 13:23:23 +0000 Message-ID: Date: Mon, 31 Jan 2022 13:23:17 +0000 Subject: Re: [PATCH 1/6] net/hns3: fix fail to rollback the max packet size in PF Content-Language: en-US To: "Min Hu (Connor)" , CC: References: <20220128020708.62787-1-humin29@huawei.com> <20220128020708.62787-2-humin29@huawei.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20220128020708.62787-2-humin29@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LNXP265CA0057.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5d::21) 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: f411744c-64e1-4016-541d-08d9e4bcdb13 X-MS-TrafficTypeDiagnostic: MW3PR11MB4601:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:826; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +1OgweRSk/mOTm03awHaWf0KmUiD9kshcgfMxmYODaMYhwmLNmFV14A+CrXiPW86FAjEYTAzAyC7BLJD6MqYcleS1RAxvphBQ+hdwxByq/P/nb2F+YimNUwUPsnyhJmXpwXph+EA6046Y3ln2FHOjAIyJZ0cw0F2Q+edRn0sTpSaw3J71n0y89IxNJiOZspEjWwLcbnWJUSVF/x+FqcuBYsQGUnShUE7cSeCCV+wTtJ5+qROktuGmpEPK833vu0NIn8zZPQxvxjG57jtK+ojkN5A5CLIw06gkFQI6QxlpVJrW4sbgcxUVtq5yTyals4YQZfOFKW/eCkIxbDA0oDqoLK1mFpYwntHCYYHxeeM1hPde+55p5LBcm6N/R6ldOAQRXuWN7A2Nosg4glhVc6lMP35tisKq/Ag/VFhfxaFlvctHLE32kPWm/CpSKdyXLSn0zAMD9OOpK3MtWoPBWubvom5+aOBKNjVh1j2Sk7KOZtpz0jB9NO0gt9HPW5BR5RQoDYqjMcdppIbcqGnDBwGXOGsy6qV5Xperprt0V5yspzOlpDZwGQxdTAEDJX2mkUInIMX6ZpXRR7Wnvu1nQRQ5C/9vx1l1sbiaogLbU6rm7SrAZu68T0JrI8ad77VLwVaeQ26Krj161DxD3HATYCb9lGfbu9ylxUNmjo0LLOABtPsZDvi4IdZ57zXgfkNWnI1Z8xoNqo/8bG79wxuU8jWrA== 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)(66476007)(26005)(82960400001)(186003)(86362001)(36756003)(38100700002)(31696002)(8676002)(8936002)(4744005)(66946007)(66556008)(83380400001)(4326008)(6512007)(55236004)(53546011)(6506007)(508600001)(2906002)(5660300002)(31686004)(44832011)(6486002)(6666004)(316002)(2616005)(45980500001)(20210929001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RC9OVmFTVUg1RktweU5aMCt3TTN0QXV4ckxsdmt3emFvMXl0TFlXZ2szZGNU?= =?utf-8?B?TjlEQklrNGRkUHpBclk5YmxxVmdEZGcyT3VpTStURXlWYnB5Vkc5b2EzcVNU?= =?utf-8?B?TG11LzUvbXl2azFwVlFRMlE4Q0xlR1JzNGFsVVBpUTNGL0VGd0s2OGxDRFlK?= =?utf-8?B?eTBPMmdDdjFmeis0MUJIWFFOdEtHRUF5aHpSbmZNSWMzWEhkNWFhcHNBc0RT?= =?utf-8?B?VjA4VlNGdDMvZGJJcXRSN0ZtM1l0OW40NnIrWDNqZFBRUEg2S0FaSlcyWW54?= =?utf-8?B?cHZCeTc0VTZ6aVhTU2Y0UW9jMWt3RURMZ3kyWFlhS0RmRDFYaVpWR2F5ZkJW?= =?utf-8?B?OFVsM2NZbGxBZVpoUGl6ek5SR1BCT1ZmSTVtUk4yNExLY1BzR1dLTWdVUlZP?= =?utf-8?B?ZDBoeTBGS1k4eW90RXhMUjNTK08wdzdRUG5vTHFUQm1NV1R4TkhsVFoybldv?= =?utf-8?B?TkhHcDFhN0I2RWl4MXFHS1ZncFIvQ3pQZE1LYkwrRWxpc3BkaFQ4VDlEcEJs?= =?utf-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01LVFBp?= =?utf-8?B?OEFrUHB5UWdLbERPVURkUWxyR2ljRkF1ZnZsaU41QWdUbnFnc2pLY0pjNjhV?= =?utf-8?B?UXJCUUZmR05KM2RTMEg3NXM1MzJBdXBHZitjTWE3WHd4QVA4K2pyMkQvV25r?= =?utf-8?B?SU5MQnpyd256bitiTjdNK2xMZjZ6V2NQaDRYMDVSK2FYMUhVT2Y1TzRRY3dC?= =?utf-8?B?dWtKOXdMNUdTNWt3RVZLZkNOQjFCUHlieUpDQTVkc3daeVZadldtci82ZEl5?= =?utf-8?B?ZHhHTlJHaTlCOVYzRjZoMFMxaWU0S0NwMUZaU0QxTkNDMkpFQW5UWTVzTDJk?= =?utf-8?B?N2R0c3hGTWNtZllQMTRkckpWemVsTGpIUnY1MVFnemNpSEVWOGs3eGlMVGlx?= =?utf-8?B?Vldvai9TZTJhd2lUY3F2UGx6OSsxR0pEZlZKbEVhRThlVmNoUnphVjByVGRX?= =?utf-8?B?MUJIVlVma3daWFNLUUlqNHpJUER0NCt1U2V3Mkp3OU90N3F6K1U1VFdRc2Ux?= =?utf-8?B?VHBjUzgrSmxNcFpzejM3UGlyRks1bTE3TmpEdDUyc3JQaDVEdlk3R3dkR3l1?= =?utf-8?B?S0RKenlKT0hpSTE5UXIrWk5tczZPb0xHUWV0T2lMWkdsb3pZTXpPS01iUlQ1?= =?utf-8?B?Uzl0WDY5ZnNWV2o5SjM2eWdmdDVZcjFyeGExYzFjRHlxbklqeVR6cDlJZWhU?= =?utf-8?B?ZUd1bzVXZC96QVBKTXhLUDF1blpCZkhFSlY3b0dDc0NPcGNaRm5sK1VjVjZ3?= =?utf-8?Q?G+T6Dk4DT5qxQtlLuy7wB8s=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: f411744c-64e1-4016-541d-08d9e4bcdb13 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2022 13:23:23.3547 (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: nMeT0ti4N2kfKqdk+uMTTO8oiuX5MI2blc/knIRyv7PMj46hVPeh8XXVOHObBGXPMwZ1upSDXvaRlaNoaZawMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4601 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 1/28/2022 2:07 AM, Min Hu (Connor) wrote: > From: Huisong Li > > HNS3 PF driver use the hns->pf.mps to restore the MTU when a reset occurs. > If user fails to configure the MTU, the MPS of PF may not be restored to > the original value, > > Fixes: 25fb790f7868 ("net/hns3: fix HW buffer size on MTU update") > Fixes: 1f5ca0b460cd ("net/hns3: support some device operations") > Fixes: d51867db65c1 ("net/hns3: add initialization") > Cc: stable@dpdk.org > > Signed-off-by: Huisong Li > Signed-off-by: Min Hu (Connor) Series applied to dpdk-next-net/main, thanks.