On Thu, Sep 26, 2019 at 12:42:53PM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@xxxxxxxxxxxx> > > Virtual devices like SIW or RXE don't set FW version because > they don't have one, use that fact to rely on having empty > fw_ver file to sense such virtual devices. > > Such change is needed to ensure that virtual devices which are > attached to real hardware won't be renamed, because during > device attachment, user already supplied desired name. > > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > kernel-boot/rdma_rename.c | 39 +++++++++++++++++++++++++++++++++++++-- > 1 file changed, 37 insertions(+), 2 deletions(-) I have slightly better variant of this patch, but want to get feedback on the concept before reposting. Thanks