]> git.karo-electronics.de Git - linux-beck.git/commitdiff
IB/hns: Fix the IB device name
authorLijun Ou <oulijun@huawei.com>
Tue, 29 Nov 2016 23:10:30 +0000 (23:10 +0000)
committerDoug Ledford <dledford@redhat.com>
Sat, 3 Dec 2016 19:20:42 +0000 (14:20 -0500)
This patch mainly fix the name for IB device in order
to match with libhns.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_main.c

index 28a8f24366df65081d8286ce5908a3de4afea85f..eddb053ff0ba087978932cf5a5b7b8823a742a0f 100644 (file)
@@ -433,7 +433,7 @@ static int hns_roce_register_device(struct hns_roce_dev *hr_dev)
        spin_lock_init(&iboe->lock);
 
        ib_dev = &hr_dev->ib_dev;
-       strlcpy(ib_dev->name, "hisi_%d", IB_DEVICE_NAME_MAX);
+       strlcpy(ib_dev->name, "hns_%d", IB_DEVICE_NAME_MAX);
 
        ib_dev->owner                   = THIS_MODULE;
        ib_dev->node_type               = RDMA_NODE_IB_CA;