From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Van Assche Subject: Re: RDMA miniconf: Persistent device naming Date: Mon, 31 Jul 2017 15:00:47 +0000 Message-ID: <1501513246.2466.1.camel@wdc.com> References: <20170731113633.GU13672@mtr-leonro.local> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20170731113633.GU13672-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org> Content-Language: en-US Content-ID: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org" Cc: "liranl-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org" , "tzahio-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org" List-Id: linux-rdma@vger.kernel.org On Mon, 2017-07-31 at 14:36 +0300, Leon Romanovsky wrote: > I would like to propose the discussion about ability to add > persistent device naming to RDMA subsystem. >=20 > Right now, the devices receive their names by simple addition of new free > index to the name (mlx5_0, mlx5_1 ...). Such naming scheme depends on the > PCI probing and in case of device reset can rename device. >=20 > Such situation doesn't help to provide constant udev rules, reliable > ibverbs hotplug and advanced "set command" of RDMAtool which at some > point of time will require reinit of ib_device. >=20 > In this discussion, I want to present netdev implementation of such > feature, talk about implications on libibverbs and suggest possible > device name convention. Hello Leon, Does this mean that there is user space software that depends on these name= s? Shouldn't all user space software be independent of the device names assign= ed by the kernel? For e.g. SCSI disks this was solved a long time ago by makin= g /dev/disk/by-id/${name derived from persistent ID} soft links available. An example: $ ls -l /dev/disk/by-id/scsi-35001b44c698c2947 lrwxrwxrwx 1 root root 9 Jul 31 07:53 /dev/disk/by-id/scsi-35001b44c698c294= 7 -> ../../sda Bart.= -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html