From patchwork Sun Sep 1 00:54:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Guralnik X-Patchwork-Id: 13786211 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2057.outbound.protection.outlook.com [40.107.236.57]) (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 C7ABC200C7; Sun, 1 Sep 2024 00:55:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.57 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725152134; cv=fail; b=mLy0Qnmra0X/uuAA2epTCeneMm+sqc7p+d/ZCoeIIGBlN7IQL+GWKSyuQRSE8OME628T7JIr/kAf9h51AeeTxr12589Yndg1O+kTvEfQJ1JFaGRWA5k59yINLhrJ4jhtGvPajLxeUmne8/XotUymXsKHLdIGGEijnKtJueKfPUQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725152134; c=relaxed/simple; bh=PYwVrfahoCcediw6aq5UXiUTJO1PuvY1owRQpjR6Qrk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kcYlYYr+oQuXHvJlRJOYaIpgwIhXQLlpcjStWbloy2Uc19UOSfoFQOqGoQs6UL5INZd88VeihJxbF/Z71y6+QdFqkQmW7mbbM7r5QcDUwW6N2fe9fqg82d+yErM9Vgm4u2BhDenSmeDIr0aTAuQk2THeinGcNoyjijngSSRwF68= 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=is2K1aAK; arc=fail smtp.client-ip=40.107.236.57 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="is2K1aAK" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FurrdoFMDN2WyJQGD2NU+ruBTcSIJsRxe9XxnuKcoC2RYBtacHAeLZ5BPfyyl6sisWZywLzyvUaA61BE5s2AizS3x+l79KapsMeyQwR0rEYe/2gFEt4hZU6YV5qmCAB/3JOdciJK4+/RLvsL8GqocfRNTq56d6vkHBhapAttUT19Wyq6ptFGYQrLTHMVxWUunVz2Rai12wXyUtSzufeiAHNPCo47ltRpoIyuprSaEweoMw1drY5Ig2GEmUPI3oSLxQcjhHrm+/p6+A/BD+zlfzp4iYAnuF77nv5+cLK0W9uwjy0R54tL8XX3girag67juC/Vr/pMwPrSWDhCyOfIpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=R4pSR3GelWnmpD6+Wj85C+OLM0Sq0NKSszDdY5ZQrJ0=; b=sU7eQLLFRnotgtsJfN9Q5LU3O0cVIMIk/2T0wti8gFR3hRH0aUOj/QG1ngPyrigu8OQRwTCdNuGZZe/r5CT56l6gfQ0vEBR7Gg4hYi4gy+epy0MI5q9nJtyauMSloChZ/jt4yZxRTDXoGXHG0XUo074MB28/ijVfqW8IHfb68hxwpkfUbG+ID4oqve8JThOu4dL4jyBoxKfOWNk2mRdfz2oCLhijbOjbuFKQlYcv9j33BcNbso+Wi2Zeu+kNOG+zOz3cJ0CmrmPfSHwlVZgyFCuDIqVRv2AP+WsbBHVCyXNl/hLCmfZWwXOTj+AAp4VUEGhLS7No2EaFKmJ1F1bxBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=gmail.com 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=R4pSR3GelWnmpD6+Wj85C+OLM0Sq0NKSszDdY5ZQrJ0=; b=is2K1aAKQKC5Am6VISai5B8rsnVZOdUfW0051mc9HEOvs/am8Jjxt/jdKCKisvkCsbfdSI8SMKk3lwlSvA4b85Hy+p9rxQzkEDaaUBD8Amo+NnYhBPUR1jXkUvr5S02Gx3Rr9eC6Dw2q9Fs8JrdBPfiEZ5YMMloG1a8g5bOYBtFlBqdlsyDkbVPUDn0TUYE3RpkIBriBN6fhLTIX92NePHuD7JuVEAK0EcsHCAvMnsUahe87t+G3p9BwBsI2s5doeqDi4cpQPrhZ2jKY7wq+OoW4w4NTG/JdGw6GAcO1r9M97DblXsnisiCZz9eDPBI0N9H/uJzdmUX5wOHc/7os9Q== Received: from BN8PR07CA0031.namprd07.prod.outlook.com (2603:10b6:408:ac::44) by IA0PR12MB7722.namprd12.prod.outlook.com (2603:10b6:208:432::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.20; Sun, 1 Sep 2024 00:55:29 +0000 Received: from BN3PEPF0000B36F.namprd21.prod.outlook.com (2603:10b6:408:ac:cafe::1c) by BN8PR07CA0031.outlook.office365.com (2603:10b6:408:ac::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.21 via Frontend Transport; Sun, 1 Sep 2024 00:55:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by BN3PEPF0000B36F.mail.protection.outlook.com (10.167.243.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.2 via Frontend Transport; Sun, 1 Sep 2024 00:55:29 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 31 Aug 2024 17:55:25 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 31 Aug 2024 17:55:25 -0700 Received: from vdi.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Sat, 31 Aug 2024 17:55:23 -0700 From: Michael Guralnik To: , CC: , , , Chiara Meiohas , Michael Guralnik Subject: [RFC iproute2-next 1/4] rdma: Update uapi header Date: Sun, 1 Sep 2024 03:54:53 +0300 Message-ID: <20240901005456.25275-2-michaelgur@nvidia.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20240901005456.25275-1-michaelgur@nvidia.com> References: <20240901005456.25275-1-michaelgur@nvidia.com> Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF0000B36F:EE_|IA0PR12MB7722:EE_ X-MS-Office365-Filtering-Correlation-Id: 54050190-e476-4476-278b-08dcca20c62a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: xwlHzfcOGyYz/94fbe9nUZwB6NuNfMiTnctGyjx/8qi9Gc/an+4ww9gjicZ48wNh5RU97sRLuv473m42tAsgVhced56C/U3Wvefaoxu8j7icouUlla/I2gnxXhKgzAu47JxxH/Te2QPs/Oo0RqqI1HWEDeHddRzjcUq1Lb6cmBw+uCoca4slmf5ZPId0NNlnv/F/HR8mQN/C9LxllqhIQUjNHS3hDQiivBdntrMjeL4lp7M0MaIl5o72kUK113jDFuFKkYEP4YeEG8NQSScIpy2L9bmSKsCFhz2arvnnguF/35QW3hFFyp3fO4t7sUffwAQyihTCYta5l+8huTc/aq0yb4YR9ooUxBB5KKHDL++MbIom7EhF3Y0B72wxDllewmWZeAeAHfN6tR+2ULPA2gplbsFAcLmSi1wHv3bm5iWxmDa4//RpUYUagqeasCX1J9KhEMAEU4pwYSR8FMWu1vySy5sMx83Vwm6pWflE9gfiF3/6lrl39MtnlNDUvJ9spzNIhhU2mIV5a2S2bgBF9qICZDFoIpeJ50l6BZRkDIN9OFn/JcJ8yuH45Ou24DUCE2XRsvGHRQhztmy/AwX7de5clSkSEMFqq6Z2GhlaojRmodvmebtOCoOjAe15cTmOPC9O3bA4wHmphEKlNzM/Zo4z4UMcB+GXUKtjooJw7fJWjAjxSRiTCVl/KsDsOJSdAGVU2osaPSLwlEpiU4NID0DnbFFyQ8A+zrpGj508/8yvJQ9IdRJt+FPVcMVHxeaTwal8bLbH2lP1o7w9jyBNHc2MauJhud7PNJSmXvTjttOB0k6fmWuCz+VEadCyyH+YidcvhE4uGcIEt3/LS/CxdXGTPRroxo0bEw/zawx93UCA9y/KcDNmqdJvGx50JXigrfWtemvHzdBZWacWfZjEWZv6ILCNEdGUgzxQzbPvA2+a4hqHfeEIi7AUdIG4hraJuQAtEV5VvPU3y3MJu9f/hRead6grCxwkfC9EM1lOozsf48FGJgNkfD02IdnlvkCWQad1645hKJAWqngLcd0kR1CA0cIOAYDCoSOi4rE/DGgfMUErlh2O8ry7AGn5lxmnFM4EcerwloBUXiRCnyz5iWvYwluAu0lTm1hSw6QbPAofusUR1SGB1VSqozH+DnqBco7UcPJeU/7fNeiPRK9pf7vom/vPLQ6UNwR3VjFGUaIPKTkM9vHS/YaRv1rog17gWobVmkT2Ru64ECymX6WDo9hI4xJ21q+T3j/a30bIVSuNNNilwDteuG763/aCB3vDRbl3Co7PCc2sr5KS2RsKaze3mVyp84JmhfZ61Oph6MJeMlTI88IyjyeAyoVnnb4RF5IZ2kbf8yFv+S7Ei+u8/YUE8f41ng5APcBAiwDjuH39EF2rj4UVm9rewynlAUFFi8XN1A4NBl8RoI7wGQhDLQ== X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2024 00:55:29.0152 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 54050190-e476-4476-278b-08dcca20c62a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN3PEPF0000B36F.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7722 From: Chiara Meiohas Signed-off-by: Chiara Meiohas Signed-off-by: Michael Guralnik --- rdma/include/uapi/rdma/rdma_netlink.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/rdma/include/uapi/rdma/rdma_netlink.h b/rdma/include/uapi/rdma/rdma_netlink.h index a6aadb1e..d9337f1e 100644 --- a/rdma/include/uapi/rdma/rdma_netlink.h +++ b/rdma/include/uapi/rdma/rdma_netlink.h @@ -15,6 +15,7 @@ enum { enum { RDMA_NL_GROUP_IWPM = 2, RDMA_NL_GROUP_LS, + RDMA_NL_GROUP_NOTIFY, RDMA_NL_NUM_GROUPS }; @@ -305,6 +306,8 @@ enum rdma_nldev_command { RDMA_NLDEV_CMD_DELDEV, + RDMA_NLDEV_CMD_MONITOR, + RDMA_NLDEV_NUM_OPS }; @@ -574,6 +577,10 @@ enum rdma_nldev_attr { RDMA_NLDEV_ATTR_NAME_ASSIGN_TYPE, /* u8 */ + RDMA_NLDEV_ATTR_EVENT_TYPE, /* u8 */ + + RDMA_NLDEV_SYS_ATTR_MONITOR_MODE, /* u8 */ + /* * Always the end */ @@ -624,4 +631,14 @@ enum rdma_nl_name_assign_type { RDMA_NAME_ASSIGN_TYPE_USER = 1, /* Provided by user-space */ }; +/* + * Supported monitored event types. + */ +enum rdma_nl_event_type { + RDMA_REGISTER_EVENT, + RDMA_UNREGISTER_EVENT, + RDMA_NETDEV_ATTACH_EVENT, + RDMA_NETDEV_DETACH_EVENT, +}; + #endif /* _RDMA_NETLINK_H */ From patchwork Sun Sep 1 00:54:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Guralnik X-Patchwork-Id: 13786212 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2071.outbound.protection.outlook.com [40.107.244.71]) (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 A02011EA84; Sun, 1 Sep 2024 00:55:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.244.71 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725152138; cv=fail; b=elL0lb0tJjt/21OBZSUC3nbqocUO75CPvOdqdspIHXpNSGH31ocIPi+T1ax7US72MXrE/9Gded1o0O5UIXRyP842k2wB1UTouDLXNou/kp7UAZqSX2gk5sv0YX2GMOngD52BIGgKaPLtIHciMYdvyfQejQ6sB3s3EXVBSqqK2ek= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725152138; c=relaxed/simple; bh=exQUCzCsUh8vUNI77lXsnJOkj/32LqF8lI1fL7jsaDE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=F95MGe4SCY+SQfFFSrqV5J8bNbzN7sgC+TJeqHdaoVDSK6ZP7/yc4AFobJzLWSCVX/yULxqJmhI1WpJQZvwTf9LK0z36q0ASep0sIVI6dA8C3XV9bGxj2tiyzjPtyd6B4ej+W5zIZ2r/kahWH/s8niTQf8Uuxn0IcAD4TXusAs8= 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=dlowhxzg; arc=fail smtp.client-ip=40.107.244.71 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="dlowhxzg" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GJ0CElZyVu7WWmx/5rLefka+a/NWrbABOrEAGRwoy5X4Ql3bFKHG6cN+v2UmcNGIXaJ61Qce5ZXJ72CvnEDeCJ0rm2suCJ3R79IrUFfxT7Y83vW3SYitXikJHh8/+2l0VY0r7gUbQRirjcb14gFSvXlcx+CRV956cO8gf+OeXeN3dTzwFzAHCFLAiBLB4r/mFJz4CvJtPSReY27kDA3cmFOkFc0tOUweVcfQ5XC9jLlEdXJ5fpXZ7fB2i4RpG2dj2/mcqXON3pt3IXc6GXXK38oV8Fr75WgQj40cZ52F7Ey7NTZi97WdUAAt9Kjb7LIvUXE+0tiYQrU0el6CzHOz8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=fhQzdYo2Xa19yX7s3+o6V1Xm4os1GgVPzTsKjUwaFvk=; b=n2xyV6oKQs+Fd1h2zsLMHzMYpT8UPsOM4Xyy4ST79De9V6Zs3xV/wW5SvgEep+9BMzwkf3ihFILtIHYuQ1kb/VD1RodDDfs7UKDbWfcVIPXYIDlYhtU1oYTzdr8wV+gDf46jCfqMnqaX8twrTNRij1Mgwpnl5ld1x/sCd2ihmmXt7fRiZcfqpz1Rd1i+IOHc4GTXmrFsVHWjQwYc6wEKioRfOF41dguFVfvByetUQ1gINr4FcVk5CWZLQnjXbK1kGGRLtXet0clDO864XkgnpjWOCiSCl3iBUGildQFwim4MugxD739S40XpTgpuyYr1f2CPtaj0MReKQUNJ/b+l1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=gmail.com 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=fhQzdYo2Xa19yX7s3+o6V1Xm4os1GgVPzTsKjUwaFvk=; b=dlowhxzgm5I/8RkSceQK2OKzkHtTYbMC2DB3bZC+n97O5pWd/lYiZhVIctp2mk5HmIZPUmnJizRwR5xDzPm09cnMGAz2/d8/y0jo4VZ9WG+LBvuZ7ICtl0cscSiZ/+gOYAaxFdyBS1laU4xE7Mae8W0NcQUhJLh9dXJE+NAWdaXyCki3JHQ04kaI3kzUaZ7FtAUpoy8KscJ1hNivtxhGHBCpm9eXo/aROw4kJYcAIuBN0YP1WO29WmVApyC2AiYTAQef3ObVXqCt+OwjBh9PnjwU/VwT1YV/Eo1cl/GhZT98q6G2Kv1E9pshVe/5PN93m3pGwKl0XpbT/eQzYfDstw== Received: from BN0PR08CA0005.namprd08.prod.outlook.com (2603:10b6:408:142::20) by PH7PR12MB6881.namprd12.prod.outlook.com (2603:10b6:510:1b7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23; Sun, 1 Sep 2024 00:55:34 +0000 Received: from BN2PEPF000044AB.namprd04.prod.outlook.com (2603:10b6:408:142:cafe::63) by BN0PR08CA0005.outlook.office365.com (2603:10b6:408:142::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.21 via Frontend Transport; Sun, 1 Sep 2024 00:55:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by BN2PEPF000044AB.mail.protection.outlook.com (10.167.243.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Sun, 1 Sep 2024 00:55:33 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 31 Aug 2024 17:55:28 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 31 Aug 2024 17:55:27 -0700 Received: from vdi.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Sat, 31 Aug 2024 17:55:25 -0700 From: Michael Guralnik To: , CC: , , , Chiara Meiohas , Michael Guralnik Subject: [RFC iproute2-next 2/4] rdma: Add support for rdma monitor Date: Sun, 1 Sep 2024 03:54:54 +0300 Message-ID: <20240901005456.25275-3-michaelgur@nvidia.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20240901005456.25275-1-michaelgur@nvidia.com> References: <20240901005456.25275-1-michaelgur@nvidia.com> Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000044AB:EE_|PH7PR12MB6881:EE_ X-MS-Office365-Filtering-Correlation-Id: 0511e5d1-ed59-40bc-76c8-08dcca20c8bc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|82310400026|376014; X-Microsoft-Antispam-Message-Info: CBU+Rnhu7OlGEnUleK7+KRNbsk//RMxi9Bi15rE7ivWbqXGSyKUCisxYtJUJ6D7tcHe8IOmf5US26JhD1yvLYFhkSwad0Q91WfQaEYZKuaQ9ek8W2vQYUvBbYPwpZvqMeJYdp/FB+hSLc4hB2g0HrbUWdssR9CA2n/siPBYjLsQ5C/pirTgt8uu8jPgwN7jE/yk4MEUh+0n+lgy5pU2PdGpELgLY4N9NWig36KXC2TctnZPTPZCAAlgO0nE16J7jlhmdkVU0juHYXBjbOYv8TCeouzr4Xwflfgd96/VBdw/GxAThpso4p4w5tUV3/FNFCWF2AmHCws7V8Ki06EBJyQPdK635FmfhN14ZQrExqG49Tw1q9g2/ydhembNgxoC/rddi1mN50B93Yoffe7BpH0T3cBsSnvrMKbqeDX2bKArUvcEJiwVqKezFXn2v139Rycopvw6MmToGPKu+H29bjLoMKZ2viEVx3H4rnisL++zP9oeOOJ5z73bKFtBAB2P64u9y8BXxQQo7vGdzlYbhutPRBmlsCQ9D0SGrzT2sPYhPsEm7PFSwQ4YJXJmYalNyfM3SzQFJUTA3e9IpauA10Y4MiyrjryeSJ0qh6cU8urOG9s9hcl0YBX1CrFJ5oWVoNK2hIJHcv5HXLIqEwwkmyuMKjJUxDXLBK/xKUcWFVI8MVLtdgW5yluwGuATU4u/QSzCBG/HRL7qlcklwK4nr7m3terPJQwoRRDq1F7Aqi1bkkrGxv0dvAXWs/Os56G+M4r0uLaNZlUYXxHLeCvUwZxv51wK5cuo/g/zh8YjkN848D/XmTaNzFKYuqYbUdkjv8gik8tXSWLa/7notXOS1RdZv8pn139WK2Y1TctF1tDGuxwudIAL5ccZX1C2MPcLpcegW0MQFVnBDdkSGwT3d8z/5vs15FMunMnLez+qjKysUjFRrvMZd5vH9BMJf0EGKh1pOy/CPy4Ud3WUQoYGtBK6/y4a/NojEpS3/+EMWoKPF2LJmDEt0rg0Jq6QTn2Ap2DEBnLpzWjlmH+HB6IZp3Je3in0rg6Qm+SB64Q9zBFN0B7PR3B2k09tkrZicXusZlcThO0dXtvfeh+eYX70ORKndUL9fENxZyMmmdxkhYXzXBrRqkqiM5gA+rVfQbgkYV5sX+H+da0IqbrbH5pDwMzhFqX0m4proAl58WkcHEFB4gqPgppXU+JQIOKvi7HL6zKTAV3iJ2Iz1ba+bp6aSUMyR4ypZhiDpizpiE8HUbdi8cmuWtf/K5vit9QmZHs7kNED3ePxv8TB1T7l73TrjcXDiG4bBSvTU4yq6uPFH01oH8AgsNvJP5wLdxtPqfVw2m+SE1EaSUZ+rmsPeVFjsWVYaAncYMEs6CXnwaHTYtEeb7bxFNDLqffaEqi6RSh/GclyEBZxdc348RujDm16g2LNbcfefHLXHr6LItaPeALCizqJvr49Yuocg1sHQCqeL X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230040)(1800799024)(36860700013)(82310400026)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2024 00:55:33.3295 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0511e5d1-ed59-40bc-76c8-08dcca20c8bc X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF000044AB.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6881 From: Chiara Meiohas Introduce a new command for RDMA event monitoring. This patch adds a new attribute "event_type" which describes the event recieved. Add a new NETLINK_RDMA multicast group and processes listening to this multicast group receive RDMA events. The event types supported are IB device registration/unregistration and net device attachment/detachment. Example output of rdma monitor and the commands which trigger the events: $ rdma monitor $ rmmod mlx5_ib [UNREGISTER] dev 3 [UNREGISTER] dev 0 $modprobe mlx5_ib [REGISTER] dev 4 [NETDEV_ATTACH] dev 4 port 1 netdev 4 [REGISTER] dev 5 [NETDEV_ATTACH] dev 5 port 1 netdev 5 $ devlink dev eswitch set pci/0000:08:00.0 mode switchdev [UNREGISTER] dev 4 [REGISTER] dev 6 [NETDEV_ATTACH] dev 6 port 6 netdev 4 $ echo 4 > /sys/class/net/eth2/device/sriov_numvfs [NETDEV_ATTACH] dev 6 port 2 netdev 7 [NETDEV_ATTACH] dev 6 port 3 netdev 8 [NETDEV_ATTACH] dev 6 port 4 netdev 9 [NETDEV_ATTACH] dev 6 port 5 netdev 10 [REGISTER] dev 7 [NETDEV_ATTACH] dev 7 port 1 netdev 11 [REGISTER] dev 8 [NETDEV_ATTACH] dev 8 port 1 netdev 12 [REGISTER] dev 9 [NETDEV_ATTACH] dev 9 port 1 netdev 13 [REGISTER] dev 10 [NETDEV_ATTACH] dev 10 port 1 netdev 14 $ echo 0 > /sys/class/net/eth2/device/sriov_numvfs [UNREGISTER] dev 7 [UNREGISTER] dev 8 [UNREGISTER] dev 9 [UNREGISTER] dev 10 [NETDEV_DETACH] dev 6 port 2 [NETDEV_DETACH] dev 6 port 3 [NETDEV_DETACH] dev 6 port 4 [NETDEV_DETACH] dev 6 port 5 Signed-off-by: Chiara Meiohas Signed-off-by: Michael Guralnik --- include/mnl_utils.h | 1 + lib/mnl_utils.c | 5 ++ man/man8/rdma-monitor.8 | 51 ++++++++++++ man/man8/rdma.8 | 7 +- rdma/Makefile | 3 +- rdma/monitor.c | 167 ++++++++++++++++++++++++++++++++++++++++ rdma/rdma.c | 3 +- rdma/rdma.h | 1 + rdma/utils.c | 1 + 9 files changed, 236 insertions(+), 3 deletions(-) create mode 100644 man/man8/rdma-monitor.8 create mode 100644 rdma/monitor.c diff --git a/include/mnl_utils.h b/include/mnl_utils.h index 76fe1dfe..0ddf2932 100644 --- a/include/mnl_utils.h +++ b/include/mnl_utils.h @@ -24,6 +24,7 @@ int mnlu_gen_socket_sndrcv(struct mnlu_gen_socket *nlg, const struct nlmsghdr *n mnl_cb_t data_cb, void *data); struct mnl_socket *mnlu_socket_open(int bus); +int mnl_add_nl_group(struct mnl_socket *nl, unsigned int group); struct nlmsghdr *mnlu_msg_prepare(void *buf, uint32_t nlmsg_type, uint16_t flags, void *extra_header, size_t extra_header_size); int mnlu_socket_recv_run(struct mnl_socket *nl, unsigned int seq, void *buf, size_t buf_size, diff --git a/lib/mnl_utils.c b/lib/mnl_utils.c index 6c8f527e..5f6671bf 100644 --- a/lib/mnl_utils.c +++ b/lib/mnl_utils.c @@ -35,6 +35,11 @@ err_bind: return NULL; } +int mnl_add_nl_group(struct mnl_socket *nl, unsigned int group) +{ + return mnl_socket_bind(nl, group, MNL_SOCKET_AUTOPID); +} + struct nlmsghdr *mnlu_msg_prepare(void *buf, uint32_t nlmsg_type, uint16_t flags, void *extra_header, size_t extra_header_size) { diff --git a/man/man8/rdma-monitor.8 b/man/man8/rdma-monitor.8 new file mode 100644 index 00000000..d445cba0 --- /dev/null +++ b/man/man8/rdma-monitor.8 @@ -0,0 +1,51 @@ +.TH RDMA\-MONITOR 8 "22 Jul 2024" "iproute2" "Linux" +.SH NAME +rdma-monitor \- RDMA events monitoring +.SH SYNOPSIS +.sp +.ad l +.in +8 +.ti -8 +.B rdma +.RI "[ " OPTIONS " ]" +.B monitor +.RI " { " help " }" +.sp + +.ti -8 +.IR OPTIONS " := { " +\fB\-V\fR[\fIersion\fR] } + +.ti -8 +.B rdma monitor + +.ti -8 +.B rdma monitor help + +.SH "DESCRIPTION" +.SS rdma monitor - utility can monitor RDMA device events on all RDMA devices. +.PP +.B rdma +opens an RDMA Netlink socket, listens on it and dumps the event info. + +The event types supported are RDMA device registration/unregistration +and net device attachment/detachment. + +.SH "EXAMPLES" +.PP +rdma monitor +.RS 4 +Listen for events of all RDMA devices +.RE +.PP + +.SH SEE ALSO +.BR rdma (8), +.BR rdma-link (8), +.BR rdma-resource (8), +.BR rdma-system (8), +.BR rdma-statistic (8), +.br + +.SH AUTHOR +Chiara Meiohas diff --git a/man/man8/rdma.8 b/man/man8/rdma.8 index 5088b9ec..df86284d 100644 --- a/man/man8/rdma.8 +++ b/man/man8/rdma.8 @@ -19,7 +19,7 @@ rdma \- RDMA tool .ti -8 .IR OBJECT " := { " -.BR dev " | " link " | " resource " | " system " | " statistic " }" +.BR dev " | " link " | " resource " | " system " | " statistic " | " monitor " }" .sp .ti -8 @@ -94,6 +94,10 @@ character. .B statistic - RDMA counter statistic related. +.TP +.B monitor +- RDMA events monitor + .PP The names of all objects may be written in full or abbreviated form, for example @@ -133,6 +137,7 @@ Exit status is 0 if command was successful or a positive integer upon failure. .BR rdma-resource (8), .BR rdma-system (8), .BR rdma-statistic (8), +.BR rdma-monitor (8), .br .SH REPORTING BUGS diff --git a/rdma/Makefile b/rdma/Makefile index 37d904a7..ed3c1c1c 100644 --- a/rdma/Makefile +++ b/rdma/Makefile @@ -4,7 +4,8 @@ include ../config.mk CFLAGS += -I./include/uapi/ RDMA_OBJ = rdma.o utils.o dev.o link.o res.o res-pd.o res-mr.o res-cq.o \ - res-cmid.o res-qp.o sys.o stat.o stat-mr.o res-ctx.o res-srq.o + res-cmid.o res-qp.o sys.o stat.o stat-mr.o res-ctx.o res-srq.o \ + monitor.o TARGETS += rdma diff --git a/rdma/monitor.c b/rdma/monitor.c new file mode 100644 index 00000000..d74727a0 --- /dev/null +++ b/rdma/monitor.c @@ -0,0 +1,167 @@ +// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB +/* + * monitor.c RDMA tool + * Authors: Chiara Meiohas + */ + +#include "rdma.h" + +/* Global utils flags */ +extern int json; + +static const char *event_type_to_str(uint8_t etype) +{ + static const char *const event_types_str[] = { "[REGISTER]", + "[UNREGISTER]", + "[NETDEV_ATTACH]", + "[NETDEV_DETACH]" }; + + if (etype < ARRAY_SIZE(event_types_str)) + return event_types_str[etype]; + + return "[UNKNOWN]"; +} + +static int mon_show_rdma_register(struct nlattr **tb) +{ + enum rdma_nl_event_type etype; + uint32_t rdma_idx; + + if (!tb[RDMA_NLDEV_ATTR_DEV_INDEX]) + return MNL_CB_ERROR; + + rdma_idx = mnl_attr_get_u32(tb[RDMA_NLDEV_ATTR_DEV_INDEX]); + etype = mnl_attr_get_u8(tb[RDMA_NLDEV_ATTR_EVENT_TYPE]); + + open_json_object(NULL); + print_string(PRINT_ANY, "event_type", "%s\t", + event_type_to_str(etype)); + print_uint(PRINT_ANY, "rdma_index", "dev %u", rdma_idx); + close_json_object(); + newline(); + fflush(stdout); + + return MNL_CB_OK; +} + +static int mon_show_netdev_association(struct nlattr **tb) +{ + uint32_t rdma_idx, port, net_idx; + enum rdma_nl_event_type etype; + + if (!tb[RDMA_NLDEV_ATTR_DEV_INDEX] || !tb[RDMA_NLDEV_ATTR_PORT_INDEX]) { + return MNL_CB_ERROR; + } + + rdma_idx = mnl_attr_get_u32(tb[RDMA_NLDEV_ATTR_DEV_INDEX]); + port = mnl_attr_get_u32(tb[RDMA_NLDEV_ATTR_PORT_INDEX]); + etype = mnl_attr_get_u8(tb[RDMA_NLDEV_ATTR_EVENT_TYPE]); + + open_json_object(NULL); + print_string(PRINT_ANY, "event_type", "%s\t", event_type_to_str(etype)); + print_uint(PRINT_ANY, "rdma_index", "dev %u", rdma_idx); + print_uint(PRINT_ANY, "port", " port %u", port); + + if (etype == RDMA_NETDEV_ATTACH_EVENT) { + net_idx = mnl_attr_get_u32(tb[RDMA_NLDEV_ATTR_NDEV_INDEX]); + print_uint(PRINT_ANY, "netdev_index", " netdev %u", net_idx); + } + close_json_object(); + newline(); + fflush(stdout); + + return MNL_CB_OK; +} + +static int mon_show_cb(const struct nlmsghdr *nlh, void *data) +{ + struct nlattr *tb[RDMA_NLDEV_ATTR_MAX + 1] = {}; + enum rdma_nl_event_type etype; + + mnl_attr_parse(nlh, 0, rd_attr_cb, tb); + if (!tb[RDMA_NLDEV_ATTR_EVENT_TYPE]) + return MNL_CB_ERROR; + + etype = mnl_attr_get_u8(tb[RDMA_NLDEV_ATTR_EVENT_TYPE]); + + switch (etype) { + case RDMA_REGISTER_EVENT: + case RDMA_UNREGISTER_EVENT: + return mon_show_rdma_register(tb); + case RDMA_NETDEV_ATTACH_EVENT: + case RDMA_NETDEV_DETACH_EVENT: + return mon_show_netdev_association(tb); + default: + return MNL_CB_ERROR; + } + return MNL_CB_OK; +} + +static int mon_show(struct rd* rd) +{ + unsigned int groups = 0; + int one = 1; + char *buf; + int err; + + buf = malloc(MNL_SOCKET_BUFFER_SIZE); + if (!buf) { + printf("Buffer allocation failed\n"); + return -ENOMEM; + } + + rd->nl = mnl_socket_open(NETLINK_RDMA); + if (!rd->nl) { + pr_err("Failed to open NETLINK_RDMA socket. Error: %s\n", + strerror(errno)); + err = -ENODEV; + goto err_free; + } + mnl_socket_setsockopt(rd->nl, NETLINK_CAP_ACK, &one, sizeof(one)); + mnl_socket_setsockopt(rd->nl, NETLINK_EXT_ACK, &one, sizeof(one)); + + groups |= nl_mgrp(RDMA_NL_GROUP_NOTIFY); + + err = mnl_add_nl_group(rd->nl, groups); + if (err < 0) { + pr_err("Failed to add NETLINK_RDMA multicast group. Error: %s\n", + strerror(errno)); + goto err_close; + } + new_json_obj(json); + + err = mnlu_socket_recv_run(rd->nl, 0, buf, MNL_SOCKET_BUFFER_SIZE, + mon_show_cb, rd); + if (err) { + pr_err("Failed to listen to rdma socket\n"); + goto err_free_json; + } + + return 0; + +err_free_json: + delete_json_obj(); +err_close: + mnl_socket_close(rd->nl); +err_free: + free(buf); + return err; +} + +static int mon_help(struct rd *rd) +{ + pr_out("Usage: rdma monitor [ -j ]\n"); + return 0; +} + +int cmd_mon(struct rd *rd) +{ + const struct rd_cmd cmds[] = { + { NULL, mon_show }, + { "help", mon_help }, + { 0 } + }; + + return rd_exec_cmd(rd, cmds, "mon command"); +} + diff --git a/rdma/rdma.c b/rdma/rdma.c index 131c6b2a..253ac58b 100644 --- a/rdma/rdma.c +++ b/rdma/rdma.c @@ -15,7 +15,7 @@ static void help(char *name) { pr_out("Usage: %s [ OPTIONS ] OBJECT { COMMAND | help }\n" " %s [ -f[orce] ] -b[atch] filename\n" - "where OBJECT := { dev | link | resource | system | statistic | help }\n" + "where OBJECT := { dev | link | resource | monitor | system | statistic | help }\n" " OPTIONS := { -V[ersion] | -d[etails] | -j[son] | -p[retty] | -r[aw]}\n", name, name); } @@ -35,6 +35,7 @@ static int rd_cmd(struct rd *rd, int argc, char **argv) { "resource", cmd_res }, { "system", cmd_sys }, { "statistic", cmd_stat }, + { "monitor", cmd_mon }, { 0 } }; diff --git a/rdma/rdma.h b/rdma/rdma.h index d224ec57..fb037bcf 100644 --- a/rdma/rdma.h +++ b/rdma/rdma.h @@ -98,6 +98,7 @@ int cmd_link(struct rd *rd); int cmd_res(struct rd *rd); int cmd_sys(struct rd *rd); int cmd_stat(struct rd *rd); +int cmd_mon(struct rd* rd); int rd_exec_cmd(struct rd *rd, const struct rd_cmd *c, const char *str); int rd_exec_dev(struct rd *rd, int (*cb)(struct rd *rd)); int rd_exec_require_dev(struct rd *rd, int (*cb)(struct rd *rd)); diff --git a/rdma/utils.c b/rdma/utils.c index 4d3803b5..bc104e0f 100644 --- a/rdma/utils.c +++ b/rdma/utils.c @@ -477,6 +477,7 @@ static const enum mnl_attr_data_type nldev_policy[RDMA_NLDEV_ATTR_MAX] = { [RDMA_NLDEV_SYS_ATTR_PRIVILEGED_QKEY_MODE] = MNL_TYPE_U8, [RDMA_NLDEV_ATTR_DEV_TYPE] = MNL_TYPE_U8, [RDMA_NLDEV_ATTR_PARENT_NAME] = MNL_TYPE_STRING, + [RDMA_NLDEV_ATTR_EVENT_TYPE] = MNL_TYPE_U8, }; static int rd_attr_check(const struct nlattr *attr, int *typep) From patchwork Sun Sep 1 00:54:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Guralnik X-Patchwork-Id: 13786213 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2074.outbound.protection.outlook.com [40.107.94.74]) (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 EF7E218E3F; Sun, 1 Sep 2024 00:55:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.94.74 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725152143; cv=fail; b=oDx8lmGUYiL4oSw3rCWgFRDufbaRx+9vlC12/5gKIaeonGOLKF53dP/bUQXoKdo90INStFCRCf37s+9S4CCiagZCsT0/Z5O2yKZwtcQvOeWr1XZ6RWF2EKnrxaHWHYcXQ/Kjkqy09AzJhS5EE2UAqSfaz+nT7hWy6u04KH/MHFk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725152143; c=relaxed/simple; bh=U5AluDAiMuVy2UxdpLtXLZ/p5+kSSnb8cyDhpfc6yUI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gY9a6cDHUNeKYd7fILbWpAs+JZTEXgvkt4F92qYws5DjJAdapBIC5O/Bc5nXcfP6EiyOHWyeXCdnjB7sE4OsXPAOzbU3JUkQVMzEIkbvY4TpY+LqV48Glmfioy05NpmjnRJKyd02WOP4CLMfbFMiHkl8ACW9OwuMQ4Uw2WelwGs= 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=duRnvF/s; arc=fail smtp.client-ip=40.107.94.74 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="duRnvF/s" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KdP/afNVdPDzPDSbN6TtExLRX0bcvawoPJgeS7ktv5v8gyGuMTPro+j0oNqlF+Wjdj95CGJH+maYS6KHk5gmT6iP1+oFohTtUUHryrL3PlMmp5HLb4Jnn9PVU3pr1ryzWaLrYb+WPtpYz4Y6jfStK/tc02Bi2JI3qV6kjjpEkjcUGUL/7jyRMgmaIIyEYJW4FiNwy/z57y2PLV7Z4zEC5776MoU/sVbWXfN5anVgP4sFTmsBly6g8noXoCr8wzWmwsX5dhZg8L2k54EMg4OvboDgZ8edWQD4eVzZ1kO7IfNcVQAvAx5jklU7dsRQ7ZNq0/o55ZKtPvoFydDEgXpP4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=3EgocS5CVZQL0X+3XeU/9M+cTmMoJsiB/I7JbQ3uG10=; b=UbOM/LojuYo21uoNW/5BsOF4F+XQhMpgmLZ/4tAl+pIo+zbb7sqwYvM3BgEYBxv7d8MtHk9zikfmuuLBsWeF+SKtmTXLR8SzM3wkdY8TybmmVMVGvzFILejS/l5xPSlmMyZTcIyVw8BHXiJvOlR0GMcmbPjcb6PBG5JeKZRzNa/dj2ZyQiSPuIL7ZbHcWhjbJ7jm7Ut2/L5AkmCvjzv8q8ZJFUF+0lWWUnMCUZ0XHySbpVhHpe/5c7TIkINaEnKniiTmQe848L5Y/kg1oRDwkXPNTQcK05W0vAx+d8ZMiyQ/g995QgzgSbn3uy8cJjEgOlnYNENBiNmmHDWfEfJJ2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=gmail.com 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=3EgocS5CVZQL0X+3XeU/9M+cTmMoJsiB/I7JbQ3uG10=; b=duRnvF/sJMic+MiomVTDQhAFE6829VGQL8x0WXmoEiJdsnjBWlmxgJZh60AjEhyi9Hb8NL+l095OSj9OGPCLXbG8h2WtB7hmGQE3q40PHgSFu7JrgwnGkr8+jjsbPpoDOXuVrvaFg4b870KR/wTlUvGzBhjQia6Rkr9yYVY2TDHG4KC9CfHU+bFDOSZ2d5zFQD3i9/NWQGgYP9XvgfD8vtjMrTDcI+7Jua+f6j2Sifj/d6lsbREKV8yk/Le7TkB5PRxKjWz/DLAZmgq3OEBTzyMO+/GECnRGuWJvQgOUGXfF6QPH+YYzQhTUlZyLiTyuowdPyTxn9Q15SOPZf0REmg== Received: from BN0PR08CA0022.namprd08.prod.outlook.com (2603:10b6:408:142::7) by SJ2PR12MB7964.namprd12.prod.outlook.com (2603:10b6:a03:4cf::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.20; Sun, 1 Sep 2024 00:55:37 +0000 Received: from BN2PEPF000044AB.namprd04.prod.outlook.com (2603:10b6:408:142:cafe::1) by BN0PR08CA0022.outlook.office365.com (2603:10b6:408:142::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23 via Frontend Transport; Sun, 1 Sep 2024 00:55:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by BN2PEPF000044AB.mail.protection.outlook.com (10.167.243.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Sun, 1 Sep 2024 00:55:36 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 31 Aug 2024 17:55:30 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 31 Aug 2024 17:55:30 -0700 Received: from vdi.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Sat, 31 Aug 2024 17:55:28 -0700 From: Michael Guralnik To: , CC: , , , Chiara Meiohas , Michael Guralnik Subject: [RFC iproute2-next 3/4] rdma: Expose whether RDMA monitoring is supported Date: Sun, 1 Sep 2024 03:54:55 +0300 Message-ID: <20240901005456.25275-4-michaelgur@nvidia.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20240901005456.25275-1-michaelgur@nvidia.com> References: <20240901005456.25275-1-michaelgur@nvidia.com> Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000044AB:EE_|SJ2PR12MB7964:EE_ X-MS-Office365-Filtering-Correlation-Id: 164863a2-5594-4fc6-5f16-08dcca20caac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|36860700013|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: cubYFiNtSijeH10zl/kh5fNV9mBCugKluVJZzQkCAgrQ/fna/gtpXeNYShCRnVe15IbdCdMikcNOLBUd8Ci0mmRYVyDByFkgVBxHdTMaj8M6Ylm3FkR0HKlwuWyeZ8MDT/RDEmK2rpEYwbyB/6Xf9C5VlN+4usbduN7ir4iJMqXMLYSRc/D3rywoAoptcfRWrWDWGalMX7GNrZgqHT/TjRsJTw1fCkfQiUM/g4uCrzFuTUl+BRb7xLl77WzSmAwITV3LVsq7SlFjJ1kbAOdCzgKsUmnxJfKFWec+PmHbK2Nh6Nsir5PAXy9TPQfVPRhNAxN4xMw8A3nG3WmD0FczYDSRA8ms0PMrFmBRuTyMyX8uzl7LDIyTRyBm8Q3dieFkLhM8aT4+lqJFyUtQyTZ+r7KXai5ZMBm6RzgYk06gclwz8zX/Zv2r77vqtzStcYLMxLUNZMzlSVl+rSentTqkchJ76I9xBU8k8tET/7ufHcjswhhjAxgysyLmSAwvYVrEqM4rdf2sa5cpfYvYfysZTB2lt1dzsoGHHmnxQEXlIL7HJBEUqRZPwa+SL0Xp7sJVgrKEOyQ8V5F0tnPyJhg+nkHH+F3GpQ+QwhUZJz5247LHJxI8elIuxpuTdNlGPL3JXH9PROAdnoedv2NT382fWWHxgY8iwbyYvKrCI3SPUMQzE33APgQ6h5DY96ZYKU58DvcYBfsKMGWrzbxXuJTaialyPiKL/cukHCJH6dL4eRzcREUaOpw8yRXu9Kex6luwwABcsd1wmG9/tyOwKUP0Z2APlt/gvSWpUZyAUTwyhV9kUZK1LzQmPVzbJ4wZcqe7G4ZJxVyMzU92KzAaQF9TVTaAxCQr9ftdGXNV8d4A1rRlDkNL0f6DzgP/EHH6emEjbBlP5MBnc06cnUcs/cnl/TxFP2wifw6Z0jHWlI8dbqzrEbaPhFc8FC9TPrRnrHjtXyQhNWiJeB9K3od62JPEZXVtHNW3wJDkLLJe9+DN2Yb3f72hb5m3UYRz6kBCkHMenkHJU7ODl8aUpcDRJMadq3FEygWJVtgrG0X3feEuO6B3E/B5v+6/xSKiigD5o6HB6Qs7YDWtfgVAy/bKJ1UYAYGFaeTuTSKoIbTQHhJG90NdxAknQ0IcOckrZD7Gr3uSZXesouhHc0P2y+cn7qmdG5Y+eHB2kUaOtp+2vFjdbufeZahWMjVyVXMtjmdwBMghxxVmO3bCiJBlm6jv1b0xSflGwcWa88QfTPMT1Ze8FOfp+IbnS5PmiPXj22b8j2SE3OH8fsw8WqJX9c2/MRSsD3C3AfEQbnApdT0sbMwTAcNMuD9JheQ7r8ocCZk/cn9Gih63cyTA/6ui9IwqksnQYdJfUWK5nkDLLJxdzbfUzndbapvY27G5luUcPdz42MrbqqWNxBnHAOns6/eSNot3ZtBpq711U6oLtZTTL/j7QesyKwbIsV2vbENIs7XPHJeu X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230040)(376014)(36860700013)(82310400026)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2024 00:55:36.5794 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 164863a2-5594-4fc6-5f16-08dcca20caac X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF000044AB.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB7964 From: Chiara Meiohas Extend the "rdma sys" command to display whether RDMA monitoring is supported. Example output for kernel where monitoring is supported: $ rdma sys show netns shared privileged-qkey off monitor on copy-on-fork on Example output for kernel where monitoring is not supported: $ rdma sys show netns shared privileged-qkey off monitor off copy-on-fork on Signed-off-by: Chiara Meiohas Signed-off-by: Michael Guralnik --- man/man8/rdma-system.8 | 9 +++++---- rdma/sys.c | 6 ++++++ rdma/utils.c | 1 + 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/man/man8/rdma-system.8 b/man/man8/rdma-system.8 index 554938eb..5373027a 100644 --- a/man/man8/rdma-system.8 +++ b/man/man8/rdma-system.8 @@ -38,8 +38,8 @@ rdma-system \- RDMA subsystem configuration .SS rdma system set - set RDMA subsystem network namespace mode or privileged qkey mode -.SS rdma system show - display RDMA subsystem network namespace mode and -privileged qkey state +.SS rdma system show - display RDMA subsystem network namespace mode, +privileged qkey state and whether RDMA monitoring is supported. .PP .I "NEWMODE" @@ -66,8 +66,8 @@ controlled QKEY or not. .PP rdma system show .RS 4 -Shows the state of RDMA subsystem network namespace mode on the system and -the state of privileged qkey parameter. +Shows the state of RDMA subsystem network namespace mode on the system, +the state of privileged qkey parameter and whether RDMA monitor is supported. .RE .PP rdma system set netns exclusive @@ -100,6 +100,7 @@ is *not* allowed to specify a controlled QKEY. .BR rdma (8), .BR rdma-link (8), .BR rdma-resource (8), +.BR rdma-monitor (8), .BR network_namespaces (7), .BR namespaces (7), .br diff --git a/rdma/sys.c b/rdma/sys.c index 7dbe4409..9f538e41 100644 --- a/rdma/sys.c +++ b/rdma/sys.c @@ -20,6 +20,7 @@ static const char *netns_modes_str[] = { static int sys_show_parse_cb(const struct nlmsghdr *nlh, void *data) { struct nlattr *tb[RDMA_NLDEV_ATTR_MAX] = {}; + uint8_t mon_mode = 0; bool cof = false; mnl_attr_parse(nlh, 0, rd_attr_cb, tb); @@ -48,6 +49,10 @@ static int sys_show_parse_cb(const struct nlmsghdr *nlh, void *data) } + if (tb[RDMA_NLDEV_SYS_ATTR_MONITOR_MODE]) + mon_mode = mnl_attr_get_u8(tb[RDMA_NLDEV_SYS_ATTR_MONITOR_MODE]); + print_on_off(PRINT_ANY, "monitor", "monitor %s ", mon_mode); + if (tb[RDMA_NLDEV_SYS_ATTR_COPY_ON_FORK]) cof = mnl_attr_get_u8(tb[RDMA_NLDEV_SYS_ATTR_COPY_ON_FORK]); @@ -77,6 +82,7 @@ static int sys_show(struct rd *rd) { NULL, sys_show_no_args}, { "netns", sys_show_no_args}, { "privileged-qkey", sys_show_no_args}, + { "monitor", sys_show_no_args}, { 0 } }; diff --git a/rdma/utils.c b/rdma/utils.c index bc104e0f..07cb0224 100644 --- a/rdma/utils.c +++ b/rdma/utils.c @@ -478,6 +478,7 @@ static const enum mnl_attr_data_type nldev_policy[RDMA_NLDEV_ATTR_MAX] = { [RDMA_NLDEV_ATTR_DEV_TYPE] = MNL_TYPE_U8, [RDMA_NLDEV_ATTR_PARENT_NAME] = MNL_TYPE_STRING, [RDMA_NLDEV_ATTR_EVENT_TYPE] = MNL_TYPE_U8, + [RDMA_NLDEV_SYS_ATTR_MONITOR_MODE] = MNL_TYPE_U8, }; static int rd_attr_check(const struct nlattr *attr, int *typep) From patchwork Sun Sep 1 00:54:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Guralnik X-Patchwork-Id: 13786214 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2059.outbound.protection.outlook.com [40.107.244.59]) (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 CF829849C; Sun, 1 Sep 2024 00:55:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.244.59 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725152144; cv=fail; b=thtPB2bmkZCigm6cW8lMLcBc/kD0zNS4zVErM0gi14VfmjQcth+RRJL8WVq7YoU3T+ddwqF3dG9NWVUjkBXFGr56m/qOd3hGmCrfXpz+2WL7I+lbkcGAa73fhV/sI8VIvBKuBdTlZBOo78UuIKF3QsIV2gUpAIAN2CwZnSd5XMc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725152144; c=relaxed/simple; bh=TYhx+H8NOTNtJbEPjHWVQrY446CTlQH7xfy9K92p0Z0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gFKUEqc5hRkSA6+9JQ4h3RSUDaSNOmUKtzvnepIZWHX+xDHQ1bnJtA9QVHTwrDUUTiM0buq+Xr/Kp8AxJj5rbgWor9UTsQkijeN281wZYHc87sVhOy0WIl0hs8x1zSLWlxJOY6XBsHjif4559xdUI3VzFm2POpoWbbUlRwpsWYA= 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=nn/4hnT4; arc=fail smtp.client-ip=40.107.244.59 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="nn/4hnT4" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=k/2TuSzISTqu6skA6Oij2B2qIFc3ZHAUX8902SUc0Z9DPEYMwjKunjrF0qphKJpqJ+wDW2OCppTbZG1YtCp/Ft2vEYEUNDMYIiiSKegoWp0lLADMTc8dEM+S8iAIGOy40KZez4t+FdSWyMPBeF3p7rfB1Ix4cT6lbrVWxj98sP2BrKO+/Wv0qXPW+a29kGgQifT23wBgwfrTHgG+de0/3OscQuq2hctGCGdcdG+X5BldkOLv2/4o7+wcrBZguvhw/wxDNjfgXS9HE+gHl7YKip98OVQhL+7fvkVCYdIJOaDFttOGDrnrJHGbgsGsr90Z6yD6PxxcdTAvUhtFKnU30g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=hxPtT3lnJmHk+BLsxqIPQdfnTzC39Ld4V+FKHnaPzc0=; b=arwaMv+qlxZwwI1aV0cSYTnhQmQNxKqDVTFQpfVzmlagQlGDdcWyGbav9yhNW7Y+Xs9poQq/cgi+UXCDimRFv+NkzVQK1YeOagcM6zM76wX1tQeV0CEiuSz+nYlzUuNNy6GdbrjNLJ88yNAqEoNBgG06FNmWbpVgK+dm2G97VYBIsZFNZnYRAu7oZ06xK5sROrtkuulhPXV6BZgDbjtFn4JoQ6mdzTnFssrjlYyv8TG3HinTyV9pHHXda4aIjtVESQW1wfpvVT8EsngH2yZLOpTf2/bU16F6WCBYcHmjNFsoRJc9oJYxUpJAdFAOw9YJ4g6hFjotKJ9FI3o/VeHZZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=gmail.com 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=hxPtT3lnJmHk+BLsxqIPQdfnTzC39Ld4V+FKHnaPzc0=; b=nn/4hnT47RtlOQ2Um5WJFLXBy2mIK7zP5OOFjtWgME+8+MPTRxyqgqLLuaLGDQgQ9a6ZHIcwj9zDzOvz+3KUrfogRI813nm7lx8xILjWqXCTcC4LX+fimRQXmYTAYuTZ5swPnC4riJCcoMRJToxlfYU1l0hQ2ZGlJrxl82GI//1ya/TGhnDIKrRMU4Mi5nfqF/Fui7j36KMQvL5nvlFNVGMfH2c3x5GXFKlJNyTk2D2JLZdFYaryiQ2e+9L/CqtyIbfmlfWwhK+l+2EY0Qdx2pDxgUcpi4Lmo63JNmSNu4274TSY9SJSBGZ/YdMFyvjSiqHCGT8C0sx5lB6kVn+A1Q== Received: from BN0PR08CA0006.namprd08.prod.outlook.com (2603:10b6:408:142::26) by SA0PR12MB7479.namprd12.prod.outlook.com (2603:10b6:806:24b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23; Sun, 1 Sep 2024 00:55:39 +0000 Received: from BN2PEPF000044AB.namprd04.prod.outlook.com (2603:10b6:408:142:cafe::9a) by BN0PR08CA0006.outlook.office365.com (2603:10b6:408:142::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23 via Frontend Transport; Sun, 1 Sep 2024 00:55:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by BN2PEPF000044AB.mail.protection.outlook.com (10.167.243.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Sun, 1 Sep 2024 00:55:39 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 31 Aug 2024 17:55:32 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 31 Aug 2024 17:55:32 -0700 Received: from vdi.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Sat, 31 Aug 2024 17:55:30 -0700 From: Michael Guralnik To: , CC: , , , Chiara Meiohas , Michael Guralnik Subject: [RFC iproute2-next 4/4] rdma: Fix typo in rdma-link man page Date: Sun, 1 Sep 2024 03:54:56 +0300 Message-ID: <20240901005456.25275-5-michaelgur@nvidia.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20240901005456.25275-1-michaelgur@nvidia.com> References: <20240901005456.25275-1-michaelgur@nvidia.com> Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000044AB:EE_|SA0PR12MB7479:EE_ X-MS-Office365-Filtering-Correlation-Id: 11221a1d-49ac-48ed-e826-08dcca20cc5b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: EhunmlpfFbB7593z0czxWCEqkv1Klz5v03hd8A1Tyjsyf/Ex60gL4pAjuPax+W1B/aEKGJIV630DFLnj4hgZlLNAr2Bx3oDZqA4XtqAJHr6D/GzRSFnEWSlSFAa20qdMFY7zWhpnJQhF05Q9740ZogjApWaDyYifr55b8hpjEu9o1ZLIMghqOEw1uqZFA7ADPnJqD+LeC8EN3oqAFki7tOh3WKPOYZPOz8rzLu/yjvVjT4YEdPsKwMId+sNSbABuOdikjuq3dHdc4HYOFbLHGcRl8Gw2k1i2WCO7XOqRHLCCD/3kNZDNDDSaRicmrMxHkhGlP8ifkpA37dzm4ZSY2S95/UXlA02tK9m/0wNVoScN+7KeqjlBqPDc5XbKTtKsdWW6kVcZhs/57ieEtfJYPnWYc5Ke/+nM6wAJzMUq9hEAvF8WLVDtqySrf1jkzy3aJ93pjg3xRpGTZz/MeOq7gq3I/qlZzwEAcUcg9mFNfY7EnJ3ZKhEUQXhNNaPFyRHZGIfeUmwY8ymeze4wlnLyaDYxoDy1WRW4HaaObBYgMkRr+bVyJDNOetKM+F627EUezmApREGrDJM7KjJnF7PcBBnXPpwkLwQQS219rkzEaL/kAR8FNbIlweQSQOsmq3lKxjwAg4kf3A65vGhgfAy5TRPQOK/8DP2it3clnoGCP3UVPMaPTQ2HYM92UNdHJlwA6uRdngQgM9s/vP82+sjmi/dz/XWOIOlHIsePsgGB8zNw+sBXHP5QledOMYrfxQ9Wc+lAYh8JI2qQXjycSDpSFvJvYNZnjYwW0dB+RGCDb0tcO+p1t3yjfe5OWe+xRGlBkzfMfqgvcrBunri3ivcRIGJGOMmpZutipFevzv3cfsCcgR20WYcy66eSjkKZWp7zKAjB0jy0SFOiWQZFeEfFZag+DEzs0+MZOKt7fI4Q2JlU+Y42J8EWrxkloy2qUGEV9sKHMzmAN5GYssdkw8k7BoD3qI+Ww2r/4Is33+NzSstFi4faZIxQGy+mNqm3fc/FF0Mecldh3IQdqkDkcn9YGTzDjoQENtLssbYeaKjmbY3wPgZviHr5cE9SRnAklbcwMXFnLWVmm0x62RfQ6CybXIU3bs6JU1Yap+At7aYvoPpqYCaCyON3LLL7bJz/zuU7k51vA2K7/PeybnIxjM1qUeXNqT3kvRnXo7/D8FQPsBNdZWMP71aTj7CLLQyyFMFjp7ynw3Hi11a33NdMDPE2MapgXnngvM3hcIXimNL0+QPozOGGAtHRbcW+rPgIFdC+M9qg0VLAskrz62sud2+LCYaJoNCN4QtvmaDPIsqZ7OiOrKdSlCmZK72ws4ThbGsg3wA1d/PyXt28o8xQZmTmnvKPFRLUBrJd27zQiKbTbEkkZln8amSa2eoUbN5BE+9ajud6wRNVh/Rf95YGI/SpxvprmDB0siVa62MfsBlSXwO+AMRKMPAHnc9zdnMHDcoE X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2024 00:55:39.4232 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 11221a1d-49ac-48ed-e826-08dcca20cc5b X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF000044AB.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB7479 From: Chiara Meiohas Signed-off-by: Chiara Meiohas Signed-off-by: Michael Guralnik --- man/man8/rdma-link.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/man8/rdma-link.8 b/man/man8/rdma-link.8 index 32f80228..5e4a5307 100644 --- a/man/man8/rdma-link.8 +++ b/man/man8/rdma-link.8 @@ -6,7 +6,7 @@ rdma-link \- rdma link configuration .ad l .in +8 .ti -8 -.B devlink +.B rdma .RI "[ " OPTIONS " ]" .B link .RI " { " COMMAND " | "