linma / rpms / iproute

Forked from rpms/iproute 4 years ago
Clone

Blame SOURCES/0054-rdma-Document-IB-device-renaming-option.patch

7e752c
From 1857f106b1fda133918456617efe74cd068c1a86 Mon Sep 17 00:00:00 2001
7e752c
From: Andrea Claudi <aclaudi@redhat.com>
7e752c
Date: Mon, 10 Jun 2019 15:32:55 +0200
7e752c
Subject: [PATCH] rdma: Document IB device renaming option
7e752c
7e752c
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1663228
7e752c
Upstream Status: iproute2.git commit e89feffae3626
7e752c
7e752c
commit e89feffae3626da5b5fda352ae73db132ac60a47
7e752c
Author: Leon Romanovsky <leonro@mellanox.com>
7e752c
Date:   Sun Nov 4 21:11:22 2018 +0200
7e752c
7e752c
    rdma: Document IB device renaming option
7e752c
7e752c
    [leonro@server /]$ lspci |grep -i Ether
7e752c
    00:08.0 Ethernet controller: Red Hat, Inc. Virtio network device
7e752c
    00:09.0 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4]
7e752c
    [leonro@server /]$ sudo rdma dev
7e752c
    1: mlx5_0: node_type ca fw 3.8.9999 node_guid 5254:00c0:fe12:3455
7e752c
    sys_image_guid 5254:00c0:fe12:3455
7e752c
    [leonro@server /]$ sudo rdma dev set mlx5_0 name hfi1_0
7e752c
    [leonro@server /]$ sudo rdma dev
7e752c
    1: hfi1_0: node_type ca fw 3.8.9999 node_guid 5254:00c0:fe12:3455
7e752c
    sys_image_guid 5254:00c0:fe12:3455
7e752c
7e752c
    Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
7e752c
    Signed-off-by: David Ahern <dsahern@gmail.com>
7e752c
---
7e752c
 man/man8/rdma-dev.8 | 15 ++++++++++++++-
7e752c
 1 file changed, 14 insertions(+), 1 deletion(-)
7e752c
7e752c
diff --git a/man/man8/rdma-dev.8 b/man/man8/rdma-dev.8
7e752c
index b7abfe1088c2f..069f471791904 100644
7e752c
--- a/man/man8/rdma-dev.8
7e752c
+++ b/man/man8/rdma-dev.8
7e752c
@@ -1,6 +1,6 @@
7e752c
 .TH RDMA\-DEV 8 "06 Jul 2017" "iproute2" "Linux"
7e752c
 .SH NAME
7e752c
-rdmak-dev \- RDMA device configuration
7e752c
+rdma-dev \- RDMA device configuration
7e752c
 .SH SYNOPSIS
7e752c
 .sp
7e752c
 .ad l
7e752c
@@ -22,10 +22,18 @@ rdmak-dev \- RDMA device configuration
7e752c
 .B rdma dev show
7e752c
 .RI "[ " DEV " ]"
7e752c
 
7e752c
+.ti -8
7e752c
+.B rdma dev set
7e752c
+.RI "[ " DEV " ]"
7e752c
+.BR name
7e752c
+.BR NEWNAME
7e752c
+
7e752c
 .ti -8
7e752c
 .B rdma dev help
7e752c
 
7e752c
 .SH "DESCRIPTION"
7e752c
+.SS rdma dev set - rename rdma device
7e752c
+
7e752c
 .SS rdma dev show - display rdma device attributes
7e752c
 
7e752c
 .PP
7e752c
@@ -45,6 +53,11 @@ rdma dev show mlx5_3
7e752c
 Shows the state of specified RDMA device.
7e752c
 .RE
7e752c
 .PP
7e752c
+rdma dev set mlx5_3 name rdma_0
7e752c
+.RS 4
7e752c
+Renames the mlx5_3 device to rdma_0.
7e752c
+.RE
7e752c
+.PP
7e752c
 
7e752c
 .SH SEE ALSO
7e752c
 .BR rdma (8),
7e752c
-- 
7e752c
2.20.1
7e752c