[PATCH rdma-next v1 0/2] IB device rename support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Leon Romanovsky <leonro@xxxxxxxxxxxx>

Changelog:
 v0 -> v1:
  * Based on Jason's latest dev_name changes
  * Dropped all patches related to alloc_name changes

-----------------------------------------------------------------------
Hi,

This series introduce long-waiting feature - "IB device rename".
Such feature gives and option to rename user visible IB device name from
vendor specific name (e.g. mlx5_0) to anything else.

The user space component through rdmatool was already sent to the ML.

[leonro@server /]$ lspci |grep -i Ether
00:08.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:09.0 Ethernet controller: Mellanox Technologies MT27700 Family
[ConnectX-4]
[leonro@server /]$ sudo rdma dev
1: mlx5_0: node_type ca fw 3.8.9999 node_guid 5254:00c0:fe12:3455
sys_image_guid 5254:00c0:fe12:3455
[leonro@server /]$ sudo rdma dev set mlx5_0 name hfi1_0
[leonro@server /]$ sudo rdma dev
1: hfi1_0: node_type ca fw 3.8.9999 node_guid 5254:00c0:fe12:3455
sys_image_guid 5254:00c0:fe12:3455

This functionality is done through RDMA netlink and implemented by
device_rename() function, despite the comment from 2010, which warns
about downsides of this function, the netdev is still uses, so we will
use too.

This series was tested with mlx5 devices with/without traffic and with
non-modified rdma-core.


Leon Romanovsky (2):
  RDMA/core: Implement IB device rename function
  RDMA/nldev: Allow IB device rename through RDMA netlink

 drivers/infiniband/core/core_priv.h |  1 +
 drivers/infiniband/core/device.c    | 21 +++++++++++++++++++++
 drivers/infiniband/core/nldev.c     | 33 +++++++++++++++++++++++++++++++++
 include/uapi/rdma/rdma_netlink.h    |  3 ++-
 4 files changed, 57 insertions(+), 1 deletion(-)

--
2.14.4




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux