Message ID | 20240626-stage-vdpa-vq-precreate-v2-14-560c491078df@nvidia.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2050.outbound.protection.outlook.com [40.107.220.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 486B5186E45; Wed, 26 Jun 2024 10:28:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.50 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719397684; cv=fail; b=l6ts2TNxkQg74bNYmf3JpiWLDtnkNOiwGk3ZbXuHlFTY31AgUyKi90g790Dc3t1k/K/3LV1gd+wJIlaOJ6p6ztKgI4QEn8IVixk/Gs54MRCar48yTuMdN7fp3n25VrEe4NvRfi/JFDK9zjBeO2tS0xQus31s2P+qyhq97TaDwus= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719397684; c=relaxed/simple; bh=judr+EMnZNwE7tn3YiN5Hzy0MkYgxyp3CLgpUI7Xzpg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=J+F/hpOzonf3ceVhWkepyHtV1NgP16+oBuRqOlhFMj2zZTOIJrdJrtSFj3UbP41hRoed6VFubjUak0NxkpHO/UHdTofX7oCITmMb+Wv1QB6w3H9R0vvGbOXMJGFxAvE783Rk1xVYUy64kpzAYsd/wF7UTHSKnHFbCzBY7opvh5k= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=m2Ry6ljb; arc=fail smtp.client-ip=40.107.220.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="m2Ry6ljb" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nKu8TiGUexMYhGBNnbDN8wlnCbJLaIiIHWyUA+6JylGbZtx0KGcYeRQRbbFWu0azKxahtf5WDu/I6dDVMcb9VS4+VhV1lqJnU8aypq2Y+5k51flUkkieb/qSUZfn/REJVoSFdM2TynWgN+dr959czI4jtV6Ca6NqKCpDdxjwpCRf/gZCrEUYpCNGsv+SffdN/IKfgVAVqNTYoU30r5sFi8y6/i8ZH8hgHTbzosZuRx+B9OBeapEwbgET5PckiGAqqCzlIOgcRF3+VfQWjJ+sEb6BekzNp548FZtvI4mHDHxvqvPDpjwD7rSprj6tGfDVDHPCJ/5oVclJQ5Nmd8LLqg== 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=FE21AnfVwosUgk/yfrNlF81mb7z/76UVneqpNI/TsC4=; b=Rkr7v96rKRXHkeP9NsLB91sBmI3c4MjVFuTIuLksKAJ7ZPfQIll8xg50yGhlwZDhZ4b4ZG1Brak/DmD/8lnEByxNUoJvmNkH7DcxWNtl8XTkmRs165TNRdAAEhGb537voFBaZXZrkaURvQlsasBDSDo9YqYIY4HJ0ChruZe5edWilcreAMWtgSmZdLiGmdPYyoo9Y0J1yLA/XsA8NCB33LwBKU+R+uRbyWk5dYBzao4Co05UteCoyINGurkaKrUceQj8nAR48NqiK2GFuMQ5XxIOMBXH84akqrYKKTfNunwjkHlad/Ju1P6iF72WG/bIm4y9QiyL1DLoZrb3EmjvAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FE21AnfVwosUgk/yfrNlF81mb7z/76UVneqpNI/TsC4=; b=m2Ry6ljbOSft8ORfFDBY+4TKJMZ7HwpzTZWRIghZ7zfhUeFWSltUJuTF1+y45mXmu2AxFgwNY+AtOtlxk+pweyBJYfthDEx6XVnFLzxfhH1g5dOwQO/C/IyQh5lbrJGIo5iZbw53lLX8GIkpUdgQ1xPc2FnHiY309Ii7Rzxit/afUMTm5uVbaZqTNlQEVwD/88BkpEFEAWKAM8681ITAY2aHxdWqH7DqR/xYRxQJt9ZZLNSVRgg0oblLDUh82ntbHs3DthW5bb9HempSW6yE/aQkX9kyRycyRaQGw+8MEiId57y1estGao7H/LjBSXMR5E3X7itbVfvaS9SDRU19SA== Received: from BYAPR11CA0105.namprd11.prod.outlook.com (2603:10b6:a03:f4::46) by LV3PR12MB9142.namprd12.prod.outlook.com (2603:10b6:408:198::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.34; Wed, 26 Jun 2024 10:28:00 +0000 Received: from MWH0EPF000971E2.namprd02.prod.outlook.com (2603:10b6:a03:f4:cafe::cb) by BYAPR11CA0105.outlook.office365.com (2603:10b6:a03:f4::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.22 via Frontend Transport; Wed, 26 Jun 2024 10:28:00 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by MWH0EPF000971E2.mail.protection.outlook.com (10.167.243.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Wed, 26 Jun 2024 10:28:00 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 26 Jun 2024 03:27:44 -0700 Received: from rnnvmail205.nvidia.com (10.129.68.10) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 26 Jun 2024 03:27:43 -0700 Received: from dev-l-177.mtl.labs.mlnx (10.127.8.11) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Wed, 26 Jun 2024 03:27:40 -0700 From: Dragos Tatulea <dtatulea@nvidia.com> Date: Wed, 26 Jun 2024 13:26:50 +0300 Subject: [PATCH vhost v2 14/24] vdpa/mlx5: Set mkey modified flags on all VQs Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: <netdev.vger.kernel.org> List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-ID: <20240626-stage-vdpa-vq-precreate-v2-14-560c491078df@nvidia.com> References: <20240626-stage-vdpa-vq-precreate-v2-0-560c491078df@nvidia.com> In-Reply-To: <20240626-stage-vdpa-vq-precreate-v2-0-560c491078df@nvidia.com> To: "Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Xuan Zhuo <xuanzhuo@linux.alibaba.com>, =?utf-8?q?Eugenio_P=C3=A9rez?= <eperezma@redhat.com>, Saeed Mahameed <saeedm@nvidia.com>, Leon Romanovsky <leon@kernel.org>, Tariq Toukan <tariqt@nvidia.com>, Si-Wei Liu <si-wei.liu@oracle.com> CC: <virtualization@lists.linux.dev>, <linux-kernel@vger.kernel.org>, <linux-rdma@vger.kernel.org>, <netdev@vger.kernel.org>, Cosmin Ratiu <cratiu@nvidia.com>, Dragos Tatulea <dtatulea@nvidia.com> X-Mailer: b4 0.13.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000971E2:EE_|LV3PR12MB9142:EE_ X-MS-Office365-Filtering-Correlation-Id: 64858163-fd1c-4b16-2ef7-08dc95caa748 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230038|36860700011|376012|7416012|82310400024|1800799022; X-Microsoft-Antispam-Message-Info: =?utf-8?q?VFlTnRDVzv4sn0sn2WLESucB7zc2y29?= =?utf-8?q?+j7dt1nyNEs/CUPz0p783QPEOPtvMewoIOwAL42mfwDGLejFsD/b8sEzsLrj9aPy/?= =?utf-8?q?glRO7B5Icl4lugFSXJBMwEKXmfUiC7YoFsRFhyk6Enq5AUmSI3b/kw0d/nV5oMm4P?= =?utf-8?q?dwmIOB8LPW1/cPc7Hh0OwiQydJQcIlz/BSX6XfpbLqSIw3CUNF1y6XNTW6vEjexBt?= =?utf-8?q?CQJJQdI3PAioo7ri5/TY49lZU8++CJCqYT61h7KUNXsJ9pNUhfBTpRpEP2HxrLcqP?= =?utf-8?q?gvizN8vje661WazNthfnvq9DAoOhdNENB31yPIGsA4Bx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oJvg5Klmen3uUNGd6CuPNV9?= =?utf-8?q?l/suDFsnGZESFszDkgQpML0ltNPMVpO7cjQR5VDSlQVvPCkDxXUDGLPllMJaLxbGz?= =?utf-8?q?g9DPJsUyvmmMRUUFr4M1zVZ17pBanfXN9Hs49yDOsywxkEVSOwoziCApL/QK1/bau?= =?utf-8?q?cZK/mJst2R6MjP3GZfPRxE/sG/xDDKJmaP3ZC55j78ZzP65Zb95IDCA369WDIdS9B?= =?utf-8?q?nN2ewBpfmsm?= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230038)(36860700011)(376012)(7416012)(82310400024)(1800799022);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2024 10:28:00.1444 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 64858163-fd1c-4b16-2ef7-08dc95caa748 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: MWH0EPF000971E2.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR12MB9142 |
Series |
vdpa/mlx5: Pre-create HW VQs to reduce LM downtime
|
expand
|
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa/mlx5/net/mlx5_vnet.c index 7f1551aa1f78..a8ac542f30f7 100644 --- a/drivers/vdpa/mlx5/net/mlx5_vnet.c +++ b/drivers/vdpa/mlx5/net/mlx5_vnet.c @@ -2868,7 +2868,7 @@ static int mlx5_vdpa_change_map(struct mlx5_vdpa_dev *mvdev, mlx5_vdpa_update_mr(mvdev, new_mr, asid); - for (int i = 0; i < ndev->cur_num_vqs; i++) + for (int i = 0; i < mvdev->max_vqs; i++) ndev->vqs[i].modified_fields |= MLX5_VIRTQ_MODIFY_MASK_VIRTIO_Q_MKEY | MLX5_VIRTQ_MODIFY_MASK_DESC_GROUP_MKEY;