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 D8B0CA00BE for ; Tue, 3 May 2022 12:01:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF828410FC; Tue, 3 May 2022 12:01:17 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2055.outbound.protection.outlook.com [40.107.92.55]) by mails.dpdk.org (Postfix) with ESMTP id 5D1C940691; Tue, 3 May 2022 12:01:15 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y1J+YWXXXdkbqD4RAX2T+g5swZU/PDyl0jOLwlX6UqnfFFSFGoUaZG4mx/tHU/HI/WFzxCwZCrvyABsRjbsddNipYMr7fdERBJDN200GYGou8K+zp+/LPUURHFADOegGo1gJ8Ckrxov6vqIvwkQ59t3VW40WxqbEtgEyiTgf4Ibsj3fJ4EtAoCWPPaHhUOVkkzrZLGwLroycVSQjUs9MEjOcqM3NZGTzDP0uwrw23UYDuqS/j9DFv/e9QNaqGyh17HwuabSgpyMywIIaBZvDNFLAeGX6p6yiIEofMhOGCji8EYOHUAkcvhsE4KkCFl8leFgmCoceDglHlOjlGXvcJA== 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=dMimpVv7eUP85S4FamQLaT4yKOuBnYb5KLVr42g/ru8=; b=AA59yofqueR2WxfcMsIUd5Bxm0baE4GiTWA6K9OZKg7LCnMWWRZnB3CeMfZPtDCDYgDps1CMQ7XbZEZm00LZl2Q8IoiUHb+gJaoGj5bBQXMav82AtNEtDejtJFFDKqoeWjompzhFS/XfgAUoGiPhIzjpK1O/Vw+3/oBSO6W1D5V0dY/npu6Em3Vq9OX36jE+nXKRb8XzkryO2QAuQNRuzpmuBnNYRw2eQxkSsYefSaebOiSYgizuDO5wBlzrV+aMNvk+C0Rfejq5PCvO4vidNRVeHt9+2pZ8nN3AVIJsCuENmZ5OzshTI5uWZ9KCj4fxlsTBHMXbn78GHzJjWqH8KA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.80.198) smtp.rcpttodomain=linuxonhyperv.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dMimpVv7eUP85S4FamQLaT4yKOuBnYb5KLVr42g/ru8=; b=ArosUEVjVFfxNVt9hzCwaKzdkEb1jvzycg0sFvaPEq57iM4LGSLgWFVakXs8nnW8sVYz4x6Yx8hWkoUiW5GWvmzCicRsnJmQZngBY1i80NPh1sKzjV+HB5kHoNDGqJ7Dk4wnFiHRaFXEtsjtSUKcf1oTRiZlwoPMkklQwLoNMYI= Received: from DM6PR11CA0068.namprd11.prod.outlook.com (2603:10b6:5:14c::45) by SN6PR02MB4238.namprd02.prod.outlook.com (2603:10b6:805:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.12; Tue, 3 May 2022 10:01:12 +0000 Received: from DM3NAM02FT061.eop-nam02.prod.protection.outlook.com (2603:10b6:5:14c:cafe::e3) by DM6PR11CA0068.outlook.office365.com (2603:10b6:5:14c::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15 via Frontend Transport; Tue, 3 May 2022 10:01:12 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.80.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.80.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.80.198; helo=xir-pvapexch01.xlnx.xilinx.com; Received: from xir-pvapexch01.xlnx.xilinx.com (149.199.80.198) by DM3NAM02FT061.mail.protection.outlook.com (10.13.4.230) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5206.12 via Frontend Transport; Tue, 3 May 2022 10:01:12 +0000 Received: from xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) by xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 3 May 2022 11:01:10 +0100 Received: from smtp.xilinx.com (172.21.105.197) by xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Tue, 3 May 2022 11:01:10 +0100 Envelope-to: longli@linuxonhyperv.com, dev@dpdk.org, sthemmin@microsoft.com, longli@microsoft.com, stable@dpdk.org Received: from [10.71.116.52] (port=18559) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1nlpLC-0002N9-BI; Tue, 03 May 2022 11:01:10 +0100 Message-ID: <5a26d4ef-e0f4-cfee-f4c2-b71febdcd381@xilinx.com> Date: Tue, 3 May 2022 11:01:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] net/netvsc: fix issues with hot adding multiple VF PCI devices Content-Language: en-US To: , , Stephen Hemminger CC: Long Li , References: <1648143977-18034-1-git-send-email-longli@linuxonhyperv.com> From: Ferruh Yigit In-Reply-To: <1648143977-18034-1-git-send-email-longli@linuxonhyperv.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f675f719-048a-4288-715b-08da2cebdab8 X-MS-TrafficTypeDiagnostic: SN6PR02MB4238:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qYnf2QsgR8i6QLRDsNhQOzcasYfmMMk0TRzvHXR4ZInxJsNqigIFqZ4LxKHZ4sZCZfFNo6IhgQzHxwIosBBsH588vexTKxXXgveEa4O4D68HCOlSMEfjTyaAWgvakWjZxToVkzkvOl5Cy/2lnxWz7m6Ahkbj8Z3X1FVAM+5VLaFd3UoIu86FkkReHSLUX4GevE4CGOOucl0YzzMwmLHxTZvxnnFukUrT2ArRxzuG9vgt7JBuu//1t30KRtNUWnnRd6tYjwNE/+xjDDWB3hPxLc+07HNTfEPe5mJbnWBJo1M1nTSd5WwX726TA3gyOJcNvRqjEnNiPpgDfLAF5jQukibSzHeZo2BfMJOKa9XFHWCu6JPANFaxZ6OpZiG3OstgkPIzYfYCgCUd5sj6ytMuwWSt/AEfb7ncYHDmelcOPfGUmSmJO5ostPBrLNlcN4tfAlLbQAYBuSvXyT1Z1M5djE7BnVxTJN+y2+Gwgi0A/1VoxzRmT8DdmwPltA9syIhTQLv95WOnhzDTZyl47VR4wYwQaH63SvaB0S0JWknbWUamn+9owEbc8adOrvFjAf4dLoj9z6TeEXHmnp2KCG3GfCRZaK7wrpHf/t3KEV2lrgm6LqyBV3z0tnkvjLe4PLBbCrney53PZ9UPjEzxBUZdfzFlEeXEyyMPWJ6jlVsrXCILcOI0/4Szew5haKt4FPPJXgNr4pJpoQYEmJlgIC0fPHsuFCEsrDMlOMiUpHgzMnY= X-Forefront-Antispam-Report: CIP:149.199.80.198; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:xir-pvapexch01.xlnx.xilinx.com; PTR:unknown-80-198.xilinx.com; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(36840700001)(46966006)(36860700001)(40460700003)(336012)(426003)(47076005)(36756003)(54906003)(356005)(110136005)(508600001)(4326008)(2616005)(31696002)(70586007)(70206006)(186003)(7636003)(5660300002)(8676002)(44832011)(316002)(4744005)(2906002)(31686004)(26005)(82310400005)(45080400002)(53546011)(9786002)(8936002)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2022 10:01:12.1991 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f675f719-048a-4288-715b-08da2cebdab8 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.80.198]; Helo=[xir-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT061.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR02MB4238 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 3/24/2022 5:46 PM, longli@linuxonhyperv.com wrote: > From: Long Li > > This patch fixes two issues with hot removing/adding a VF PCI device: > 1. The original device argument is lost when it's hot added > 2. If there are multiple VFs hot adding at the same time, some of the VFs may > not get added successfully because only one single VF status is stored in the > netvsc. > > Fix these by storing the original device arguments and maintain a list of hot > add contexts to deal with multiple VF devices. > > Fixes: a2a23a794b ("net/netvsc: support VF device hot add/remove") > Cc: stable@dpdk.org > > Signed-off-by: Long Li Applied to dpdk-next-net/main, thanks.