From patchwork Thu Nov 7 08:02:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chiara Meiohas X-Patchwork-Id: 13865990 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2084.outbound.protection.outlook.com [40.107.101.84]) (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 BC7D01993BA; Thu, 7 Nov 2024 08:04:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.101.84 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730966650; cv=fail; b=bW6npuqZ+HgJb1GQsduzXHNkWW+U/b+Vb+0JSQw5g9V2WTwrEl7T9xmkb4djw4m1wszkW2ClgoNYCcwwZJRtOJ5JeuM5TvrCT73HV94tBnEhYnz3BVpv6cCvRlmJM0iGkuys4pRJbTuvVvvUNQsddqsuktKQeX52DPJOolpqCvo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730966650; c=relaxed/simple; bh=EpT5GDYfXzbcXqW+QrL2A1Zb63v+iFDgCqhqQjbPLlg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dfFdfBOVLUpraRxqP+BWVOlP9JSeESZiA7T068rbWzkIZJTUedYdjkdbfhPdrIfKuKwCDvddYp4tTnEuARr3ZtgYm94DQdSH+0h9tbHs/SwkytBNjbE4BqjEssslB13Td4ECah7HqV6A2ySHs15WfTw1zj7KW915lZ+pcvNmkD8= 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=SCmHrl91; arc=fail smtp.client-ip=40.107.101.84 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="SCmHrl91" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jpT+Hic5Gov9J+LJGf7uDUdM9ntbxDkIdQhQT2Ip8MjLIXVz9qb0Esgfsiy15DapyX3oyNlVQofKhDEH9FZIdE27P2YSGWEsyG3CQuJIQQEIe27afeocY/SBiFAcRNEzhBERfyinhdhZZ8XBRqWfCnGbcKCoocDOr54Ptkw6t2fdbt+8k1N2YxQlKNF7DDIZS85o+FkNE/JeJKbNNhprgioTzliMVrmoi8PzBDU5cH3cdub5BgcfMR+Ni8WLaNCm3ArGhNKo3ev1F8vTD3D4fmLNPlbJdx14jVYgv1IUgR4r6VA8ZuYmykrCIwjG4pnOYC4wJjxKkA2Ln8MtQrOqMQ== 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=xDl2WrRvNRCEUDQHanTFdupBH2ua/NdCjZUjl97QooU=; b=xK8E4fJ4dVuDQ7BAjuk4zM5mUfbn8BXSlf1ds3vNrzCKnGcWvKiUQaohjwlM4bfFb4Tvtk97sqxWttUbxm3GC+u94JTJ6fA7MpG/KhugGxZTmBaLf8jJTJeyjATAXpP40k0kaytKf0EczmGaySEKTXPk/Lpd5qKT4fPWGQw0Jo3bsLaxD5yoCo4JUGGs9Djnia8wqvZFdyQryt56zXqibwrJFPg1bXqVbNZSSPMkBsm/1071/LXWyCYiqdCzaULFnytB13SeXnt89j6sZ6PRuUggfebdGZYQWwUFbdQhBdtJyf5QRfQaHQk4rJs7AZxCytSFf0w+QP/2vTpqvEywfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) 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=xDl2WrRvNRCEUDQHanTFdupBH2ua/NdCjZUjl97QooU=; b=SCmHrl91vTv8WAY+nkAgVETrqX8wV6QELYz0XPw0WA/KHNrm/FIqGVo38DIuHjEk3Ygmio5pYGxXQ+1sAg/ckKw+u/kMya/DInwvh6XeDVBnIjHtSMiK/kh5f3Kex5cae+ybuWPxzU4ALlraKmJSEInJtrQyvPD8xRGtRGdsaF9ALMmQkwlvDdAL902X//OuTtq1QIaWG9xzp/LU4RAU9BdtKPiPDiTP3gtHsyetMUzvgU3dHlEwJQrIeSVgg0J9Oczkt9SF+2IxbsvCyTQquqlmjLvz2PPcyqEIK/xRHr/HCsZq6ZxtAnC0wy7mHd7eAawF1AWGK4hBH4vE1h0zew== Received: from SJ0PR13CA0135.namprd13.prod.outlook.com (2603:10b6:a03:2c6::20) by MN0PR12MB5713.namprd12.prod.outlook.com (2603:10b6:208:370::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19; Thu, 7 Nov 2024 08:04:05 +0000 Received: from SJ1PEPF000023D2.namprd02.prod.outlook.com (2603:10b6:a03:2c6:cafe::cd) by SJ0PR13CA0135.outlook.office365.com (2603:10b6:a03:2c6::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.18 via Frontend Transport; Thu, 7 Nov 2024 08:04:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by SJ1PEPF000023D2.mail.protection.outlook.com (10.167.244.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.17 via Frontend Transport; Thu, 7 Nov 2024 08:04:05 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 7 Nov 2024 00:03:58 -0800 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 7 Nov 2024 00:03:58 -0800 Received: from vdi.nvidia.com (10.127.8.11) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 7 Nov 2024 00:03:56 -0800 From: Chiara Meiohas To: , CC: , , , , Chiara Meiohas , "Mark Bloch" Subject: [PATCH v2 iproute2-next 1/5] rdma: Add support for rdma monitor Date: Thu, 7 Nov 2024 10:02:44 +0200 Message-ID: <20241107080248.2028680-2-cmeioahs@nvidia.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20241107080248.2028680-1-cmeioahs@nvidia.com> References: <20241107080248.2028680-1-cmeioahs@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: SJ1PEPF000023D2:EE_|MN0PR12MB5713:EE_ X-MS-Office365-Filtering-Correlation-Id: 2485c3fa-770b-4e4b-dd5e-08dcff02bfb5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|61400799027|82310400026|36860700013|376014; X-Microsoft-Antispam-Message-Info: ORZpoiyKwp5WqzX6K6UW6/2q7y2yiZ//qdlFBM3pM7L4aDJkVPjkOrcA1KnOwnZGYN4yYWmTNKD4h+6tNsqMcLarugLB/PABnjERfsrmWf9VBICMY2X8gOLKvqj3uuP5gNZ/G8A8OqF2r3oK565BLb7XPVJbZZqrbSq5DjJtjfz9V1vOhXO79HcHA4CKy1VZiEsN8TRibq/rzJP074VPXRR8rW0RW6gZTZ3VyN2Y4xlZw0Yn2jOktzQ8pUKwdwHv6K666zlAtyW5XK+8ujd+7gFgqJvvYlBVzpSs7w+Ilgi/7tkPUAy3woCSOiCmOwtaEpSS++Ec41WymDHQttMmzn1F7BEESSxw3i+uuoI4CpwSCWLQ8NzqAEI7+tSFBGmUYrhTLibGZebH3GisgFXXMxs3R2WgKjWBvY3CXjJNz1K7J8jbP68Krr/hT/IpbnsK47sOXEFNHm7lsMKB8hBqFNwp/hA3oJJdWvLvBQGobQrmyAOWsmY+sbmtVjv6UDTMm+YiK5ATkxjUou8vZpDU9jkbinRtgdssH2wSzXxtfbcJaOgHRDP3iA3ryRrCExKeln1RXJZeMOidul9L1kBJCYgwAo8ItO1NjaDYmyAlzKVRBVImrGddeIV1S9akK5tcuTNp3NqvesqhMwVmc+43QedywqcvEObxGWg246vTdLbpxWHbPYi4BAPpxrEHomn4S2E9Ahd7sfN4WT83KvXHgyquTPm20EXPNX328ppmMudCyp3DNq9fFEgwUCV5sNKZyPWEMisrZwcllZet4BwWpXPfxdgkqjmiF8xfCvIzX3NIO293yowLbSsY+V0nkh6rr9djBhch5eCkJXrtDWa79WX334FMI+m4nKSuBuFYd5q57kN/h5iXfmbyseD0L6EVeZUc6hIzxlKu3cF0yqLfFYuvIN9Dp/5tLBXgDvOl2uNfZblTfMCKI2lNqLBwu8brienXiLlnkH2i7TArYcvoQ6nmIUL+AWxrcvFpc+mqbqFvcK51obvBjI02r8SYtVuPz5s6ibi+GD8pHVh/kmYlnUS29D0EAUF+f0/yUcNLy16+86t6TwyRNXD1SYJxBbNRFEVwKA2+Dsp/0vFuG0jKUbJFSMgAXKPEeAVyr2oguxNpBfU2HxGnPnmslKiR988Y/8zl7c7YhTIwkIghfcslDzk6fjF1ssACPJY4Hlu7FesSeFS8M+xCgPeMe8CsFDwInTxYaTLnn9x/0GLgxMxjG4zN75jahS6GoCIj0Mraa5w8VKdQR/uF++NhOpVsVD0/PoDy3gtfV2BYwld2q4OWlu8J9lDYSiGD5kZcbE/RzIiN6SyBethX3BI6IZc3snx+W+JNjhCh0ijJ3AtXDZ6avWVc7bAmceWtMpMPp2H0yOdUuHkpcsNLfbazov76AYC/RF6PGUU2ENv+E1W/2sK90A== X-Forefront-Antispam-Report: CIP:216.228.118.233;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge2.nvidia.com;CAT:NONE;SFS:(13230040)(61400799027)(82310400026)(36860700013)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2024 08:04:05.0995 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2485c3fa-770b-4e4b-dd5e-08dcff02bfb5 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.233];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF000023D2.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5713 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 rocep8s0f1 [UNREGISTER] dev 2 rocep8s0f0 $modprobe mlx5_ib [REGISTER] dev 4 mlx5_0 [NETDEV_ATTACH] dev 4 mlx5_0 port 1 netdev 4 eth2 [REGISTER] dev 5 mlx5_1 [NETDEV_ATTACH] dev 5 mlx5_1 port 1 netdev 5 eth3 $ devlink dev eswitch set pci/0000:08:00.0 mode switchdev [UNREGISTER] dev 4 rocep8s0f0 [REGISTER] dev 6 mlx5_0 [NETDEV_ATTACH] dev 6 mlx5_0 port 30 netdev 4 eth2 $ echo 4 > /sys/class/net/eth2/device/sriov_numvfs [NETDEV_ATTACH] dev 6 rdmap8s0f0 port 2 netdev 7 eth4 [NETDEV_ATTACH] dev 6 rdmap8s0f0 port 3 netdev 8 eth5 [NETDEV_ATTACH] dev 6 rdmap8s0f0 port 4 netdev 9 eth6 [NETDEV_ATTACH] dev 6 rdmap8s0f0 port 5 netdev 10 eth7 [REGISTER] dev 7 mlx5_0 [NETDEV_ATTACH] dev 7 mlx5_0 port 1 netdev 11 eth8 [REGISTER] dev 8 mlx5_0 [NETDEV_ATTACH] dev 8 mlx5_0 port 1 netdev 12 eth9 [REGISTER] dev 9 mlx5_0 [NETDEV_ATTACH] dev 9 mlx5_0 port 1 netdev 13 eth10 [REGISTER] dev 10 mlx5_0 [NETDEV_ATTACH] dev 10 mlx5_0 port 1 netdev 14 eth11 $ echo 0 > /sys/class/net/eth2/device/sriov_numvfs [UNREGISTER] dev 7 rocep8s0f0v0 [UNREGISTER] dev 8 rocep8s0f0v1 [UNREGISTER] dev 9 rocep8s0f0v2 [UNREGISTER] dev 10 rocep8s0f0v3 [NETDEV_DETACH] dev 6 rdmap8s0f0 port 2 [NETDEV_DETACH] dev 6 rdmap8s0f0 port 3 [NETDEV_DETACH] dev 6 rdmap8s0f0 port 4 [NETDEV_DETACH] dev 6 rdmap8s0f0 port 5 Signed-off-by: Chiara Meiohas Reviewed-by: Mark Bloch --- 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 | 169 ++++++++++++++++++++++++++++++++++++++++ rdma/rdma.c | 3 +- rdma/rdma.h | 1 + rdma/utils.c | 1 + 9 files changed, 238 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..0a2d3053 --- /dev/null +++ b/rdma/monitor.c @@ -0,0 +1,169 @@ +// 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 void mon_print_event_type(struct nlattr **tb) +{ + static const char *const event_types_str[] = { + "[REGISTER]", + "[UNREGISTER]", + "[NETDEV_ATTACH]", + "[NETDEV_DETACH]", + }; + enum rdma_nl_notify_event_type etype; + static char unknown_type[32]; + + if (!tb[RDMA_NLDEV_ATTR_EVENT_TYPE]) + return; + + etype = mnl_attr_get_u8(tb[RDMA_NLDEV_ATTR_EVENT_TYPE]); + if (etype < ARRAY_SIZE(event_types_str)) { + print_string(PRINT_ANY, "event_type", "%s\t", + event_types_str[etype]); + } else { + snprintf(unknown_type, sizeof(unknown_type), "[UNKNOWN 0x%02x]", etype); + print_string(PRINT_ANY, "event_type", "%s\t", unknown_type); + } +} + +static int mon_print_dev(struct nlattr **tb) +{ + const char *name; + uint32_t idx; + + if (tb[RDMA_NLDEV_ATTR_DEV_INDEX]) { + idx = mnl_attr_get_u32(tb[RDMA_NLDEV_ATTR_DEV_INDEX]); + print_uint(PRINT_ANY, "rdma_index", "dev %u", idx); + } + + if(tb[RDMA_NLDEV_ATTR_DEV_NAME]) { + name = mnl_attr_get_str(tb[RDMA_NLDEV_ATTR_DEV_NAME]); + print_string(PRINT_ANY, "rdma_dev", " %s", name); + } + + return 0; +} + +static void mon_print_port_idx(struct nlattr **tb) +{ + uint32_t port; + + if (tb[RDMA_NLDEV_ATTR_PORT_INDEX]) { + port = mnl_attr_get_u32(tb[RDMA_NLDEV_ATTR_PORT_INDEX]); + print_uint(PRINT_ANY, "port", " port %u", port); + } +} + +static void mon_print_netdev(struct nlattr **tb) +{ + uint32_t netdev_idx; + const char *name; + + if (tb[RDMA_NLDEV_ATTR_NDEV_INDEX]) { + netdev_idx = mnl_attr_get_u32(tb[RDMA_NLDEV_ATTR_NDEV_INDEX]); + print_uint(PRINT_ANY, "netdev_idx", " netdev %u", netdev_idx); + } + + if(tb[RDMA_NLDEV_ATTR_NDEV_NAME]) { + name = mnl_attr_get_str(tb[RDMA_NLDEV_ATTR_NDEV_NAME]); + print_string(PRINT_ANY, "netdev_name", " %s", name); + } +} + +static int mon_show_cb(const struct nlmsghdr *nlh, void *data) +{ + struct nlattr *tb[RDMA_NLDEV_ATTR_MAX + 1] = {}; + + mnl_attr_parse(nlh, 0, rd_attr_cb, tb); + if (!tb[RDMA_NLDEV_ATTR_EVENT_TYPE]) + return MNL_CB_ERROR; + + open_json_object(NULL); + + mon_print_event_type(tb); + mon_print_dev(tb); + mon_print_port_idx(tb); + mon_print_netdev(tb); + + close_json_object(); + newline(); + fflush(stdout); + + 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) { + pr_err("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 Thu Nov 7 08:02:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chiara Meiohas X-Patchwork-Id: 13865991 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2065.outbound.protection.outlook.com [40.107.92.65]) (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 8DAC519AA5A; Thu, 7 Nov 2024 08:04:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.65 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730966665; cv=fail; b=kCHvZBerIRUHhwey+iLcETg/WZh+iUR2F4iGdzLlmM8ILzZGFwvaKmJOnORliResSuDLpdeBXQMMurkPxU2Q0xqF8wfevFGxRk3kWJ1XEa6Y6nNhHzKnzar2vAPZa+iqRfFF6SXKj/oF3+46hJPmbLW57mPN3jHDUCSYW7oclz0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730966665; c=relaxed/simple; bh=7AzVwdMpEGTPQmg/RIQ6+6NukoZvk/ZP6u/nk8X2IMc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hLV/hX5a9MHPxczqUddST+lsDdqoS/wRm9HlWqXik1lhMMLsTEoasce1PyOtNIbipuzzJ4UF6SEkwCi5c01dxIwHZF9NqmV4YrYfDVm8vivlc45gfyjVteCclaNywPI/ZKYcdH6fG0hfDTYwFUM7Qx+vci/ty4BMKNKSgPVDXbY= 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=kgNEbIRg; arc=fail smtp.client-ip=40.107.92.65 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="kgNEbIRg" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Qcv9thAdIXJpusXr3QBvZO5RtWyKVQAVQQrS1K99EwC3vCDh7UNKOg2uzOJ71eQ0qG9ctEuJV08H5qrYjJEyvNeBfcI28pbQ/dlys6m0fVRqLhf2Of+MQxbYQUBQ2WwfQxaVAo4Zn7hKxaQzYePjkEd184kNsu+7Yq4mhGxLuCnRQJFFN5RTHGOQ8EI9nisqwIhJed++Yc58H5R8q3FZnrLQ3AzNalEBWit4jdlJrT9BuqVIRw+CTpSdjYi1T8H61XdWsZyJHMPcdYcO/k0D1k4xIaemxx8jkBByc60pRQTS2WuI6EN+vsuOSK8EuhAdYd81JMfnkr768qXm0m6P2g== 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=cUfGHicv0ZzVSkWw+3sDCCDZKRMBeib2hhPUSeg8NaI=; b=EKIl3+Bozn2+DvTNqrws6gpCWUSajD0hDygctUOncpQ5cA/b9yCppQN+amcBUxwmeNd/SfKKeZ2MblUll2zjd3G5VtD9ZMOJ/Gy4RV0ZPoruTvFCoqA0l0QL81zgFSTikayB1Llo6B/CCSCDedTrIDNmDCMADBf2iShlmYCp/wN38pklDYWJvPjThy4wKecaIRv/opAkro7qKbWhqWAFkQSGWBNNK9SOuc0lICXGKDhy4QVXO1Ffjyl1L66NkkNqX6onUyE36LUcgMzwSJ5ERcbQNvJCkFAGqBen3PYZsowdVc5E2eA7Xr/v3gI/tGGJMlIDMChYF8FKm71LlIPzQA== 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=cUfGHicv0ZzVSkWw+3sDCCDZKRMBeib2hhPUSeg8NaI=; b=kgNEbIRgOXKSRztlV09DoYB9C5zasaLH3mAJ1LQ0lBFW91ujTfw/irpLoQouSAR0vijLWT2Pt9QNHZW4JbQxYrP00mS8UtlUZNE6npeYc1isMOVTCuB3ZDBzGxqVTBBNoWu7jQYjEtAYLnVen72sMoPwldX/hT0OpybDYnSXulhTqEU/EWgjDWqwoOqrVWW5ZvzXC4g5IJGiPY9Slz3Xai3FT210OwY7plRfwHc3Ao/vowqQocWcOXuqPftaEMicClivgmzJ2ZJwfvs07yZ846oh+27PhQDTZvMMV/4mtAAEY/QioeGi8E1CUkxChL6/eYqaXfl8jXVJUQGhjtKpDg== Received: from MN2PR11CA0009.namprd11.prod.outlook.com (2603:10b6:208:23b::14) by DS7PR12MB6070.namprd12.prod.outlook.com (2603:10b6:8:9e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.18; Thu, 7 Nov 2024 08:04:19 +0000 Received: from MN1PEPF0000F0DF.namprd04.prod.outlook.com (2603:10b6:208:23b:cafe::37) by MN2PR11CA0009.outlook.office365.com (2603:10b6:208:23b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19 via Frontend Transport; Thu, 7 Nov 2024 08:04:19 +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 MN1PEPF0000F0DF.mail.protection.outlook.com (10.167.242.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.17 via Frontend Transport; Thu, 7 Nov 2024 08:04:18 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) 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; Thu, 7 Nov 2024 00:04:07 -0800 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 7 Nov 2024 00:04:07 -0800 Received: from vdi.nvidia.com (10.127.8.11) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 7 Nov 2024 00:04:05 -0800 From: Chiara Meiohas To: , CC: , , , , Chiara Meiohas , "Mark Bloch" Subject: [PATCH v2 iproute2-next 2/5] rdma: Expose whether RDMA monitoring is supported Date: Thu, 7 Nov 2024 10:02:45 +0200 Message-ID: <20241107080248.2028680-3-cmeioahs@nvidia.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20241107080248.2028680-1-cmeioahs@nvidia.com> References: <20241107080248.2028680-1-cmeioahs@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: MN1PEPF0000F0DF:EE_|DS7PR12MB6070:EE_ X-MS-Office365-Filtering-Correlation-Id: 3ff4abd9-f724-41e6-d96c-08dcff02c80b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|376014|82310400026|61400799027; X-Microsoft-Antispam-Message-Info: 831na0vglASB/XbnjR0wG5rez4v/j4iKN7PHUxxQ5t3uUky5thu+kpSVXbg2KrKeOC4Qh6yaYHiKoEgf+Qh7bEYCoGtE3DiBygOAHcYO0MIDWyZAwpjAzNXJawKGYWtKOen/9sQJjNJkUcl+orxjHRP3JTqQ8xsfbnMF7G0uH5glZaoB/39ocPPr/tVG9+zRwR+WAdwJTPYTXnoYa1s7Pur1FECPZ4E1ktrIAxOqptG7CmfvVzTOIicHw6QZq8/7cm9xufzO0uBSPfNyxWRgZRcBH6bO0z8BNEP3VlBy+eD6ZFTGzN+XytJF4DyTC3Vp7sWgAFtVaJXaU75MM9LZB7XrgFhEpYOa0fhA8dzy5IQJGOx6ubPRLA3u4lqQ5CV7oWVOucxvjV6tLYVHzolSir5/a02uN0NfkA5iPQgr/0XxUBNrOD4Vi4Aei9mrUjaINRoDa8iiV4T0774bUMHtIHAuk1zl16CybeLgCk1a0lsCiNcGJ7uaMoAf3WYMC9f13lE69UgZkfRvvzcLjQiGS1X5Xl7BCmL6qalidgASKKVGU6gWV39Qday/aVxFjIhp1NKr1Z4dla4SGX1OfHrFUkVCy+QrB4+qwzp/9FwbIEt7wSecN4hxJqmSw9jWoQn7HyqNh32bo3I426g7ZROJZ6R+gkTRZnKBnQmt0xH3aeteuoL5RHYPpHUYfBhArRqLm0SQyiZG4C84HXe0EXL7rhqdHTQlmAg9YnR3vRWlyq/AJpiQGJhyX/ZOJo7devvsYCM8J14HZDFNzrt6NBwcHziA7MSano3bDR74jNL8Wjq9aVuM2nAoPsKxteNwYFtQaqOB+ENxcpIBwy89zgJi4OHATdV4hZsViV0TMgfbWIG3zSAU2aOPCDVWrD3J+CP4Difsg8rqQSAdyX24rQEspsQbiElabgp+GuDVu9wThHZeFlRGo/mY/uHQXWFxV7M8FYNjYbs9i0+ZRz48ZpLny5Yq6bvNgvWcutvddF9cDuP0DvDltnasMBk9dAki4kbUvwIQAq0/TLhKjmdqfycyOYtH4oyBcYCfzHcJFh7rbyGCTvqdu4jndAY5iK7VYgx9ldMuuS/aGTIKYvfk2d1/jNJHt3/0M+ax7NnXN7pemLZfsW3dpxyMJnNYDh1fD5OJdBGAFw5ptpADfJ1ahsmDsnPM8iweUS5r3ywkfU3Fyz4f/jFpW+rnaKq3WjT9Z8ALuZSwZUJ9T5jsIMqDKEA4YFTXEU0Emkiamqj4IEmAU1neZbcLnJrPI9EGFgOGfvwfPh3bzG40DwEVmhjzgK3c4KuXrRRCrFkP1uSaLu7l2raccqKNcY/YEWz4HbJXXpJjGUkMa0quqrFeGVnve4BMYY9Bt70PvRwd294qtEY8rx9jUF9QpHZaerT24rT/EAmaEcSghO8I/gXyQhrXKtj02A== 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)(36860700013)(376014)(82310400026)(61400799027);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2024 08:04:18.9130 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3ff4abd9-f724-41e6-d96c-08dcff02c80b 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: MN1PEPF0000F0DF.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB6070 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 Reviewed-by: Mark Bloch --- 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 Thu Nov 7 08:02:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chiara Meiohas X-Patchwork-Id: 13865992 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2059.outbound.protection.outlook.com [40.107.220.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 61D2A158218; Thu, 7 Nov 2024 08:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.59 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730966666; cv=fail; b=Aw9soYsFymJxEPlkRgqhW1vkYNmABpKtcIlYsrkErZdaDpvgju118oGXV6FFaVbOo6AHy1ciM+uQMLdWFQBl/GmLsJRuDHUrwuXVkglaZw0LhQHz5sJmpLZKpfHo98JdprQUKLoaq8pJqo/G4qb1yoFxFL7rh7mfgfFrQcJ7OmI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730966666; c=relaxed/simple; bh=ncle9SeKtepsEI3IDufpeHD4ZWhqjBnrNRh212vFwYE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=l5PHCaQnqyc/ffFQb5a1VdkGnfuf7Oei31Rpx20AACVhQ0a4GL2h/Y6ATqKFukaThmxtJP1u6SnQNLcVZmnhv+uPPcm67L7oXKeYo9y3972V3m9QNVKPGr8eBZLpRW4mKWZ3sfwzfs1UIFqi7gWOWh11TKqZBlUdwSfgLph86Bg= 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=imkZLbSa; arc=fail smtp.client-ip=40.107.220.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="imkZLbSa" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wyGLBjGP1fN95jucpT6qH8b5aU0edJ+enHLrIVhMlbOMsD8o2Y4D1YqvbqboW8jXZ6fdHXzuAWdCu+/eCT2oNK6OlxpauPAGIlV5M8uDqAjFp7ffFGPokoN20uHMb34Urg5+qJ1eSJphLzE69y4dDdphySL7cZWQBayoqRvuGLSmuJsg7InRc+liWFvFCv0S+6EhFCjfx+YJFz2SvD7II/6P4h48JXPYA5ZGFJB2lgXOAkBnh/nAS1eMSg/UrgUFyNLQwYjGvUjHOvm5xh0f+aNoyYz1eX44jYXJW/grZ6H6WlPU8j+IZo4kShtOikFbETidil710/iU1oQPCI/z4g== 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=WszNR1Ann5KlTSPBb8SuFfcM5mgaLX/yJ0umeESdJoU=; b=rArOVThPMJR0NzNhf5vGI/WtD2T0Ko9s26gAQq1Cz0lzBk9nVNQybQAPJEYS5gOeOGNeWFf1g8ihTjlr4NKE9rsMj5CzWJgVXKUgxygBhludA10xjs9O47HOQNVCgag2hemEurciG2/ZYnHLaplKu1kkr+ID3rzSDgMVbXhz/aerDbLhLCXbktiA6Vhp1CA4bVAxiR6XXGZ5Oz3eXx3AB4F+TO4Wr4HtdeMxWue2EpCd8Ag484vSE80AGuGfiJcAJRX3bq8XBtxw9EPfVVlKx9oBqlgIKYItYNCU7FAzM4XMY5zGoxehOGNYUqJwEt5QYQG62vmcvwF+2fxNkIYYEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) 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=WszNR1Ann5KlTSPBb8SuFfcM5mgaLX/yJ0umeESdJoU=; b=imkZLbSaJaIPhLLqQuCHNB4oW16EXJrKs9LRNThF2M1hNOtwzqHmTybCuZoWEyxRp/uPhT+a/aRORBndskcB2pVaHEPolx6RXlnxapuxwl7PtjcXCKR2UxJKCXcamUrXpGI3qnTbBiOSL6p4P74NbxPttsNMCr+1MV59nQeDlD+Ptoh5ZhX/AwEcB3RgJt42V0q9Uct+oXwSHzp78L85sNor9oynZO8kBzz0w/bjud0ogBSqd0ZacBoidz30Qjl5lE6ajV5J1nCeBGEXs/rKhns2Nictt9eguLtnxjyGCuEu3/gsPmT7MEpfedsk65t+iLY/K3bUQFhxLRyWEn8InA== Received: from BYAPR01CA0058.prod.exchangelabs.com (2603:10b6:a03:94::35) by DS0PR12MB6413.namprd12.prod.outlook.com (2603:10b6:8:ce::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.33; Thu, 7 Nov 2024 08:04:22 +0000 Received: from SJ1PEPF000023CB.namprd02.prod.outlook.com (2603:10b6:a03:94:cafe::ae) by BYAPR01CA0058.outlook.office365.com (2603:10b6:a03:94::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.34 via Frontend Transport; Thu, 7 Nov 2024 08:04:23 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by SJ1PEPF000023CB.mail.protection.outlook.com (10.167.244.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.17 via Frontend Transport; Thu, 7 Nov 2024 08:04:22 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 7 Nov 2024 00:04:13 -0800 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 7 Nov 2024 00:04:12 -0800 Received: from vdi.nvidia.com (10.127.8.11) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 7 Nov 2024 00:04:10 -0800 From: Chiara Meiohas To: , CC: , , , , Chiara Meiohas , "Mark Bloch" Subject: [PATCH v2 iproute2-next 3/5] rdma: Fix typo in rdma-link man page Date: Thu, 7 Nov 2024 10:02:46 +0200 Message-ID: <20241107080248.2028680-4-cmeioahs@nvidia.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20241107080248.2028680-1-cmeioahs@nvidia.com> References: <20241107080248.2028680-1-cmeioahs@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: SJ1PEPF000023CB:EE_|DS0PR12MB6413:EE_ X-MS-Office365-Filtering-Correlation-Id: 184698c9-c565-4b0b-6f27-08dcff02c9e3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|61400799027|376014; X-Microsoft-Antispam-Message-Info: +/R+pazt3tS0D25wvjwe5pEJVUibpowewLVh3DIoaTTLgRAsTtE7JWqwbXsp/X6qitsWeNbQT5uj/b6QkGz1NYYmTo8nGzz+bzNwfoYZXGzYF4dW8JROYTQqhtRY3tf3fErf+wpkVvU2fO8BvCXehTifIZh5fRt2zy/3/XCjYh4t55qiecaUvO4ch+ccTnlxK6bu5wj6jgDAiRxd5mJK4VNcZB1EZP8Tz0nsh88h2Yw4n01kTnf1LCJftKXigttNOeM2OgHFHbf61IoA1DBk6XqpDKV5N/gQMI0Kr1XKAHQqp7/W5GpvvCmKHgWV9yjE04SMGeIVhLqDq7aQ9kjO8rHdouAWtTO/npZRqZYQaShoFlRDYfI9F4PrberLj1KnJkLcf4IQeaBibc/ku+/7y/GgCdtnLiZ7VwiHbxzsJhyOEeKHaK1dD/2oAGyehKyhsuE5qGbc2W8EWnnVNU2K1IrqPDVcB5HULmgdsCv2gFS73uRIWDgyFmBTxhZpBMojyIcV3NcKAQGxF24iULDL2jfa1+MiYHY2V8P5J6OJR4TiR5awJAPeC2MsEbA1nXRUEBSJQd9DHN20Cl60Mr21p09IXyp2x0vbkvmWXQa8LpMGu2KYpNOycBQ76iimHlQfpeZmRC+9oDdTqTbqUhVeP4z/VNGPiSAk/FsJeucFhaOONQpi7dh2wcu3dqiFL44MiDG/3XvV9TDzPVKqD+v1AdXH+tvHnO1nEEcAjpPZeg3srLha624oteSwLSmkXlowmCMnQ+XwjjCwDxp6Z3/sz1U4PxUkftpJJv9F3iW7cy31rxdHB1TNntbQ86P463H5BVFtIiGkDQC+BJs4YQqd2tRzROzyFm10Ijpktnu43/IXQivlg7x4Ng0/AZ0xU+nZiH1h014sJTOpOfShJjUn+SOofK33iROdqYRkPDCv5qBy0QPQDUbyHNr3pFJwa1sA7Zz4BhZAjIMcNogApiAiKB7L7zw37NDJ1YdX2FudiKmFy9r1kc7+tGUH9KSLoa/3jrR7jS8QRTr7X09fRsTejEFs/VAbIMYWHWrO+BIPt8p62lb9Nk5sPE902HpbXU0NQzs/6NVAc3B9dMm6Trk8MOWFPZEQsl8XQLRg/0+Lda9mr4ZjCVTwMFcbz9eZtzBcoL4nRzWGzQwbZRqEh54nZvHxxwLkKGDQi2+z1sYOI6D0P2pQMG6+C0Eq62AiIP4xx3gGF4wnO0TUdwM/XSkOZ92KFFCCk7Lc5VbxB2EV543kAqWX0PBK03GFDQmssqT+VLUrmcbcwd1UjgD+qYoJt8OqAoi7QrqAdx+LBREjNMIIkdkx0VbOVZamiuqtJMp13LsnVujgogRU19wsUMdhyYRve98fMeyubDfP2tKViXWejN1QMzQg44SGqDbFrGFbrRZ+G7cwkndDpMfa3sY9tg== X-Forefront-Antispam-Report: CIP:216.228.118.233;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge2.nvidia.com;CAT:NONE;SFS:(13230040)(82310400026)(36860700013)(61400799027)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2024 08:04:22.1754 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 184698c9-c565-4b0b-6f27-08dcff02c9e3 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.233];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF000023CB.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB6413 From: Chiara Meiohas Signed-off-by: Chiara Meiohas Reviewed-by: Mark Bloch --- 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 " | " From patchwork Thu Nov 7 08:02:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chiara Meiohas X-Patchwork-Id: 13865994 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2053.outbound.protection.outlook.com [40.107.243.53]) (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 21C81155398; Thu, 7 Nov 2024 08:04:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730966683; cv=fail; b=uCzQwBLJcxOs1RlMzDYVnjAEVmJLgh9yRywGI1caux3mciW/V0WgFrlFrTJa/u9vzdeBIlUrD//YU6dDKkTQHG43Y37d4docDrYK4OB4OEdtBSdUjSajhPVMdmF9mXh+W7rPu7jMFsyq5q/4xJKQOvpOND/PK6vW9oQ+PGTmwJ4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730966683; c=relaxed/simple; bh=kPSzhW/HlrttbnmapXqwUMOVhd2/8kC2Vz21qdIZOy0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Tb+Np1r5FIErsQ89OO4BjJDCwRizujn+rBO6QJ2hdaTymqiZHOKyldRCc5IcDTSHR4f7p51a81HekI1h8t63uRR2uSgKN4cNw3V8wo+DdTDFT88W4DZCfdZhCBT9zgKaoVQsWkBDfuo7HAfcJ+jImxmW1Hr73C/XXpHeUdFtaGI= 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=PAvAkyo+; arc=fail smtp.client-ip=40.107.243.53 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="PAvAkyo+" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=a+VQ7WUSVzt1jK9YsDILU4sNzsXu2CI6/HXihAC1Ll5IGb8mulAa6W7weCGbQjF5ddAsxpuAD1BU62j/TvCQHGlNIWbVl38C4/XeWOT+AK+r9jvN9qWhgzDfjYO/bIUVIpVmjCjqJWpsMvmOvcAW6vlMGrPlw06Dm9CkA/0oJm37o4ld7CYlzzju49OPehJalsEklVxFpqgoyYtA3TNM3FRF6vcJcAUqyPMsS8SqWEZLfIrH5tX97LMjzKJKuOssX2rLEPRSanzIaQVNJ5fwBH3D1FYLvxYgP/MG8KK/r4bLrHqb2t7nBA+25xEeZwAJCadJMb/b1XceC7+cUMw4kg== 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=jA/MGtEORUUmGMMwM0leDBwubCRVf/5+1zCImVGoFBo=; b=IdPV8X7mk4UPg1SgPXgglkI491hhDefdrTEoN0a07ceDh4smecaDdHx0LjRP+GotW3Yk0kcsSSw/EQSwwu2xEu7XbF0Q7QxoG5j63HTJO5dbsZKBlBnofvm2BjegCF5I5mtISk0UaJWemx1eH3zpRW91QMC1EtDU/BD5P7m2rjFdWk5NlFf/oqdqkjVwlBsdwg7RH1MqsgahR69wQbRUyiSqTCbkk4jyUQseR+RcN+IE/5k34hXYFgy8PGEmuU4StkckFjroByGiYCd8axQLrZtX7E1YQfSW77ZbT7onKDpi9eLk24mTY8V9KDzsh519BtDHBwmZUju+Li0sZhQthQ== 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=jA/MGtEORUUmGMMwM0leDBwubCRVf/5+1zCImVGoFBo=; b=PAvAkyo+SRUSZf2TLwK1pptwBqw4UH1V9A5q1JikXiXy5pQjQsSQH3OWKX+Nqw8wzSOnT4nv+ro33So0cnZ/yaRCjeBymasfmenXbjl815xWbgPUUEJoYmebUkGls7WNkZ90dxLXwAjKuJb6/1TpyTdBwZhR2Xqw/bZZ1tq9rsXgQnKstIkp6xLPC5aoyoIRmXp9pvF7pv6NIO0W2jvEl8B5Wor7crMyC7yFewJZGqkwptnqd44xIxMgFDOyQ8eI8xSR7P6T8jXwa29ruSYnwJjNz1YGbMrraDedP2ibgddq5yMJt6cJgeGPqghVTLkJhNM37BTMYu+x2OxvW/8BMw== Received: from BN1PR10CA0015.namprd10.prod.outlook.com (2603:10b6:408:e0::20) by SN7PR12MB6741.namprd12.prod.outlook.com (2603:10b6:806:26f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.20; Thu, 7 Nov 2024 08:04:39 +0000 Received: from MN1PEPF0000F0E4.namprd04.prod.outlook.com (2603:10b6:408:e0:cafe::75) by BN1PR10CA0015.outlook.office365.com (2603:10b6:408:e0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19 via Frontend Transport; Thu, 7 Nov 2024 08:04: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 MN1PEPF0000F0E4.mail.protection.outlook.com (10.167.242.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.17 via Frontend Transport; Thu, 7 Nov 2024 08:04:39 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) 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; Thu, 7 Nov 2024 00:04:26 -0800 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 7 Nov 2024 00:04:25 -0800 Received: from vdi.nvidia.com (10.127.8.11) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 7 Nov 2024 00:04:23 -0800 From: Chiara Meiohas To: , CC: , , , , Chiara Meiohas Subject: [PATCH v2 iproute2-next 4/5] rdma: update uapi headers Date: Thu, 7 Nov 2024 10:02:47 +0200 Message-ID: <20241107080248.2028680-5-cmeioahs@nvidia.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20241107080248.2028680-1-cmeioahs@nvidia.com> References: <20241107080248.2028680-1-cmeioahs@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: MN1PEPF0000F0E4:EE_|SN7PR12MB6741:EE_ X-MS-Office365-Filtering-Correlation-Id: ce78f24e-3ea5-49fa-a11b-08dcff02d40d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|82310400026|36860700013|61400799027; X-Microsoft-Antispam-Message-Info: rDrl6336cPL2BQ1iiJS9E40Gs5sKoPB9PEw/+Wg3R53QjExb0jUQUgbu9OirmLxG6yLLSBhjBusC4kEE+4QT6ZpGwF6As1BwhMliMzrnZdnkA9Vtz2KBMuFtKyvGa4LSebCmYpm8BGSByTrQNeGP2e8FxkBKZWfWs/53/NFy9GTuw29lrQPhtTQVPOSYkqclc6+H3M6X1KYEL9uDdwvST4h4QtRgEcRkNv2qZOcs4n6Um/ZaN7QnbeaiFQZe9KG1KCshawVQEdmWhSU8Xjm2X3mU+HK9uPbjGGFfBzS3Wq9blB3ickeYMNfJ21O4NvaRaLuC8sTor7cLWNgApSgPk+T8CU1LQ/9GRoC2fv+b9PAlRIovSXt3k3c0wOoMA3fUAzZJCmcFJt13zyZ58i+G76N1+wTDs3THcMN6PNpvLkL1UTYT6E+QoOycvLoG3Iy0CCLzyFMfHKjKiG78lT3l21RmD9wkdWwPob1kh6HIg62Zz5AaXCSjnWyu0SZBn0wAE7Rvtwpxu+aUGtKqRXVok8grwGsX/QoPwAeYekDjaYk6S37CxmxCWPalrykB4eyVIRQMVd4PvwKBD9qhij6csFKYrpJhW2hc6VrNyrcwf+fOBe2xMfQcnym+b2cyP1FgebTTzt7AKha8GfbAsqrPxTc0EcDpkekGY9AKBYW1pCbyCfAU7VE8wn6s6GdPfwlJM6UQBTxwjlJDozDNpbOuAt0+Lb6nO4hU1Q9dEyhK5h+GE4ru7jbrF4yUMVicDqaDqFu6gQbslW69ilKEuciIfrh12ycJotiB0PhEzPEIGXYPg2KbRypVC98oPfObsxyWPUn4QW12HHfkQtFtf3DoaaFtT+czxKklXY6ULWnRp6J732GicmjoBWo+I7i1n4EZ6pE+2L/S03RYKRtSTsgtD51mNuexWwIEDG5+ZwP3CmCpcvBogaBouCBIobvLl1ubmN1R+kQ1vQRlEeV16HQZsyEGE0eWEAncZTM7pYS03EeycBsfG6BCi0A0Hu5IjWqK1glslsqmBTV+X03zEqDanfVfgo4W+X9KfgkDhgxyVKyc4HnGE7UCWFISeC7re5WQ0KZLzfQIjGXpVUUimEmSwQ/yJvYQbPrlpThw2lSgfzoICLRDmXBdxzr9Hhn8ttXSd7pE4goo9Wxaa4YwSX80g1kD+82DgYg051Z+yihIx+x6eNNKZ5rpjgxbPJIMDq+Is4fExVZJIMuwK+G/reqhb2Xn2Aq8MihJ8W5kbxlkyHD3OufTyQsklXy3Gy7sr/E8VWmNzDShfmxdeHmBIFwKnW7wc/bh1hbU5M12Z2vK9KPvAiDwIXBFJgc74A6MkeYhjPcjSigoCmjYZjDZVf4Ipnm5OK58+Cs7mSD2HCjK5ORM8g2WAHiOeD1ilkX9dEmRb+yPtwNX3BQ7owLgInwp+g== 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)(82310400026)(36860700013)(61400799027);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2024 08:04:39.0573 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ce78f24e-3ea5-49fa-a11b-08dcff02d40d 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: MN1PEPF0000F0E4.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6741 From: Chiara Meiohas Update rdma_netlink.h file upto kernel commit 7566752e4d7d ("RDMA/nldev: Add IB device and net device rename events") Signed-off-by: Chiara Meiohas Reviewed-by: Leon Romanovsky --- rdma/include/uapi/rdma/rdma_netlink.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rdma/include/uapi/rdma/rdma_netlink.h b/rdma/include/uapi/rdma/rdma_netlink.h index aaa78e93..28404085 100644 --- a/rdma/include/uapi/rdma/rdma_netlink.h +++ b/rdma/include/uapi/rdma/rdma_netlink.h @@ -638,6 +638,8 @@ enum rdma_nl_notify_event_type { RDMA_UNREGISTER_EVENT, RDMA_NETDEV_ATTACH_EVENT, RDMA_NETDEV_DETACH_EVENT, + RDMA_RENAME_EVENT, + RDMA_NETDEV_RENAME_EVENT, }; #endif /* _RDMA_NETLINK_H */ From patchwork Thu Nov 7 08:02:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chiara Meiohas X-Patchwork-Id: 13865993 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2065.outbound.protection.outlook.com [40.107.93.65]) (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 5942C158218; Thu, 7 Nov 2024 08:04:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.65 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730966682; cv=fail; b=k+NUq/5XoHX6cu57cK5dvAZtoWgYx5YWJ1msta1jKMt9I3auOBT7FPjtwBo/9crbQ3p4jm4we8K12AIpxXItocRM66hxFOH+o3cAX4ynbabm5a42ye+ttX9/AU3w2KNBzx0CCCaVknJd/1xcdaiQ7jcK857TcHEOSF3IPAscR04= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730966682; c=relaxed/simple; bh=SVNIWps5/CD6PDZXOhCzaZf5cWOhTQh0VBdZsZ22b8k=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=m/gRURZtxawCHFlECzM0IxFhUgdRH+8+W9UeoxITSzsNclYAM+tEnsQdYCsnYHBo7fOEqcGFn0Py0ea5N6j5wvhRPrNf19XesBbAk6IT0S1lLzm4IJQX1TaB9UEQGsTTcf6RNDNbf28K5L5nNWnkMEGxoCnG5qnHy7KMtQeVVMU= 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=D2yzhX0r; arc=fail smtp.client-ip=40.107.93.65 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="D2yzhX0r" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uCic+WZFLEK1wsvBDFNutTZnhz6HQ0oC4b2csbK0Zyit4MmDSpxgeUfbkTkDSKO2dQsizisiKv1Zc96PY1op8AqtrY+8xiKeBlbh8wcMtj9uDQtrUy7qEPJn89gg7XUpN4ly7HKBpxcSqkXJ+CQNjbTeAARVMseC1lQ5pxArHBvN4Zoh8D3/A1PzjPS6285VvRpJV7H360YVPYie0Sp/dIHZSfCpHHgVuewJX7bOTeg+o8WCvMwnY76e8gHj13QJQFodF8ftokXAc/zJD9EekgEqwCw+/BbTw1Gz2OlGHz0NhytLQOXAu3WK+bzyOe8YYZLGMzCb18bvwGv4G/MXKw== 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=xs39hZvpY2LV4NMPM3LsUdPEbndxf02SZTL0IlWRr0E=; b=Tk81ysK1qjjqiefF5cFpy2Tp4qj7lKB9IBeIwC+5evQy8rwYD/NDokGhDddDeI3xnuK+PHxUBilhh2b0AekCa3R0QBREvzwNpcGvpkk+fBA4+spuEE97SolYgYOzmQgn3ra9yVNzee7nXKLjKDuZdxDUjEP4nrnkMN9KbZD4i/HTcdLYOZoku9pUaEJzZm7v6HHOSEoisBpTALOupgERiVmmDvQL3icjH5OkiWvqINu1j6bG3CqPhmXvETGVtrRaJGuGxQjKINxKwhsI7W/ncWODo8rB1TzxSn+vQzxFTq2lZGZaSEUCCNyiZJ4Ut/0m0SFPGOxFShx59nNsYwjwdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) 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=xs39hZvpY2LV4NMPM3LsUdPEbndxf02SZTL0IlWRr0E=; b=D2yzhX0rEEzni+VJOMDtW4vdiMJHSIJC/waf27v4d/D0xO7xbwuDzo2TVlB5PMRUVFEEGJeqUO4eTZiEjx+3gWFHR0hZC5Rnq4qfJCF9K7Z8xnS0NK9anJKxb8M2N5w1Qd+/FnqrrUpUfhpLuLGN1CoJaIxLGPhwT4tblnC883oM44X0kl+4GpDNlIgko3+YS0deQ3/lgFgwVwASzecpiUDVYxfaLQJbrwvgRsvoX0loru51nt+yX95FDTRDINF53AuVdL3HnfL4uHOKaBuAE1cBOpO/X40qy1fjX2c2pKe0GwmsJ8y/+wXSKZlZyj0TP/A8VGHYIYGSME0FsuFDVQ== Received: from SJ0PR13CA0117.namprd13.prod.outlook.com (2603:10b6:a03:2c5::32) by PH0PR12MB7862.namprd12.prod.outlook.com (2603:10b6:510:26d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.30; Thu, 7 Nov 2024 08:04:38 +0000 Received: from SJ1PEPF000023D0.namprd02.prod.outlook.com (2603:10b6:a03:2c5:cafe::bd) by SJ0PR13CA0117.outlook.office365.com (2603:10b6:a03:2c5::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.10 via Frontend Transport; Thu, 7 Nov 2024 08:04:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by SJ1PEPF000023D0.mail.protection.outlook.com (10.167.244.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.17 via Frontend Transport; Thu, 7 Nov 2024 08:04:38 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 7 Nov 2024 00:04:30 -0800 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 7 Nov 2024 00:04:29 -0800 Received: from vdi.nvidia.com (10.127.8.11) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 7 Nov 2024 00:04:27 -0800 From: Chiara Meiohas To: , CC: , , , , Chiara Meiohas , "Mark Bloch" Subject: [PATCH v2 iproute2-next 5/5] rdma: Add IB device and net device rename events Date: Thu, 7 Nov 2024 10:02:48 +0200 Message-ID: <20241107080248.2028680-6-cmeioahs@nvidia.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20241107080248.2028680-1-cmeioahs@nvidia.com> References: <20241107080248.2028680-1-cmeioahs@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: SJ1PEPF000023D0:EE_|PH0PR12MB7862:EE_ X-MS-Office365-Filtering-Correlation-Id: a34a5b30-8e30-4227-88e1-08dcff02d397 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|61400799027|36860700013; X-Microsoft-Antispam-Message-Info: Gnk89LvbLkdN9XKqNFWN3WNUlmo8khq3S4zphvf9wTKg/IuwBT6zEjXtkbfqmVuWZN901r9ZI3LXgGOuWfFg43IjUNh+yklETsVWvO23AmSnF36KQ2Ykjr6M5JyaXXB1FdmcUcYdHE2sh6jOvMTJf6V7pLwklq5IJezXUIisqqUIac3UX5Pa5TB6Z3qJI0Tk9pAWX02iUdnwCdOuGc78qXu7i+1FvL0VKbcJmGTBpfqjOYmwqOULZ56LzC7yUmB5XUwuF3Ke1f8OTPcg10UOFHV16ZttGV4mYZdya4Et/R9UQH4UGeC2H0WVZs1Ya2VJP7q98fuWyS4dFrcpfYLOs9opM6xxQqi1+QthMkzfk2E3BYFKwTRD82BDuTUn7UA85Ka0RWfMD1IJlcpYvLtbUTEME394fmrZsEPaMkxUC6xYmauT/KFD35d09fm/Y6ul/m0+IAdAUrHhXLktsE9NlkmoLHLh8mGsYYzuKeeknNybWmCPAAjwePbvG/EdFHmncxBo/xZCH2ZdDIw89dtOyMQUPsGiGCR6lhdEsrqqENG40AfoYtKE3XBnlTF7X8R4WgGeT2ZNur6qNFz0m1hMkyLbmIvh9PR/Whbsk6iksjc3aK1QhCE8pA0WRCc2ZPY/3RlDOUqHqdeiu36jD8nxdGShp0AZ45fqBXxKrlnFLmdAU33+3IG7nx3nDn/14vzWnsx3fk+HBgEtSIGDWm47lR/B8JGXiQBc75CKDxk1tHvf0hORoySavNcqDixCKzjYUly+/2bwRTQiz/CsPYsGDBO9GDqO8M9U3G6Uw5uGvD4nQvkYkdxZ/xNF6c8TTtHmB7L+EzniE0UtUflCD9+LZX04P92FuB4UDAGGl5c5k2JV3m6IMiJ6PiPiLGfLc5z+l+NjrO4LuvXcSctgbpVXD+T90/6OgRekO0dADp9ubGaF85TEXhFqEui/yrkOfdRstNB3O061vtix5mqdvMvEP9AWEqFn8FBeRqUaACnKDN6eTCKk+JdWn4U5E/0iKmuSCIRYhtjMaZdxJ6QBbPPsGyRWFhVXATOf+Iruk0aiuahLdlFasibTI1noZp8TMWjr+Y5r5uc9Lc01ACPMz4E8I1M9lVBSutNaqYb6UwYYeGCkZoK7itmjzJLRFufAD0IAt4ZwCAnMe+JgjxnvKuFo3QIkQ9zvpMOs5P2Llf+uooC8qlw2o0+KtlmfBaT4/8b4FshTkTDdX3JjREqF68gFnxOs4F5YpUbuS57tHH7aPO0unGKalqmdHPSHPX0KZMpl+8HzeHs0Oz1TTGzrGkNV/55gvxEVtrQyWZiTZ4PTQx0bF+4rvAPmXNMkAlq+pkgPFQPRYvTxwQdziYo02XJDKjL9mOGxU2F5EUUtbtq+ewdbD51d2dZX8AN7+4kmvb3cgr0T64XpadFWxtGWmHXuMA== X-Forefront-Antispam-Report: CIP:216.228.118.233;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge2.nvidia.com;CAT:NONE;SFS:(13230040)(82310400026)(376014)(61400799027)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2024 08:04:38.4552 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a34a5b30-8e30-4227-88e1-08dcff02d397 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.233];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF000023D0.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB7862 From: Chiara Meiohas rdma monitor displays the IB device name and the netdevice name when displaying event info. Since users can modiy these names, we track and notify on renaming events. $ rdma monitor $ rmmod mlx5_ib [UNREGISTER] dev 1 rocep8s0f1 [UNREGISTER] dev 0 rocep8s0f0 $ modprobe mlx5_ib [REGISTER] dev 2 mlx5_0 [NETDEV_ATTACH] dev 2 mlx5_0 port 1 netdev 4 eth2 [REGISTER] dev 3 mlx5_1 [NETDEV_ATTACH] dev 3 mlx5_1 port 1 netdev 5 eth3 [RENAME] dev 2 rocep8s0f0 [RENAME] dev 3 rocep8s0f1 $ devlink dev eswitch set pci/0000:08:00.0 mode switchdev [UNREGISTER] dev 2 rocep8s0f0 [REGISTER] dev 4 mlx5_0 [NETDEV_ATTACH] dev 4 mlx5_0 port 30 netdev 4 eth2 [RENAME] dev 4 rdmap8s0f0 $ echo 4 > /sys/class/net/eth2/device/sriov_numvfs [NETDEV_ATTACH] dev 4 rdmap8s0f0 port 2 netdev 7 eth4 [NETDEV_ATTACH] dev 4 rdmap8s0f0 port 3 netdev 8 eth5 [NETDEV_ATTACH] dev 4 rdmap8s0f0 port 4 netdev 9 eth6 [NETDEV_ATTACH] dev 4 rdmap8s0f0 port 5 netdev 10 eth7 [REGISTER] dev 5 mlx5_0 [NETDEV_ATTACH] dev 5 mlx5_0 port 1 netdev 11 eth8 [REGISTER] dev 6 mlx5_1 [NETDEV_ATTACH] dev 6 mlx5_1 port 1 netdev 12 eth9 [RENAME] dev 5 rocep8s0f0v0 [RENAME] dev 6 rocep8s0f0v1 [REGISTER] dev 7 mlx5_0 [NETDEV_ATTACH] dev 7 mlx5_0 port 1 netdev 13 eth10 [RENAME] dev 7 rocep8s0f0v2 [REGISTER] dev 8 mlx5_0 [NETDEV_ATTACH] dev 8 mlx5_0 port 1 netdev 14 eth11 [RENAME] dev 8 rocep8s0f0v3 $ ip link set eth2 name myeth2 [NETDEV_RENAME] netdev 4 myeth2 $ ip link set eth1 name myeth1 ** no events received, because eth1 is not attached to an IB device ** Signed-off-by: Chiara Meiohas Reviewed-by: Mark Bloch Reviewed-by: Leon Romanovsky --- rdma/monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rdma/monitor.c b/rdma/monitor.c index 0a2d3053..cc2d42d9 100644 --- a/rdma/monitor.c +++ b/rdma/monitor.c @@ -16,6 +16,8 @@ static void mon_print_event_type(struct nlattr **tb) "[UNREGISTER]", "[NETDEV_ATTACH]", "[NETDEV_DETACH]", + "[RENAME]", + "[NETDEV_RENAME]", }; enum rdma_nl_notify_event_type etype; static char unknown_type[32];