提交 225f6f11 编写于 作者: L Lang Cheng 提交者: Xie XiuQi

RDMA/hns: sync roce device name of kernel 5.x

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

The ib_dev name is managed by ib_core,
to prevent the two roce devices from using the same temporary NIC name.
Signed-off-by: NLang Cheng <chenglang@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 70ffa6e4
...@@ -6795,9 +6795,6 @@ static int hns_roce_hw_v2_get_cfg(struct hns_roce_dev *hr_dev, ...@@ -6795,9 +6795,6 @@ static int hns_roce_hw_v2_get_cfg(struct hns_roce_dev *hr_dev,
hr_dev->irq[i] = pci_irq_vector(handle->pdev, hr_dev->irq[i] = pci_irq_vector(handle->pdev,
i + handle->rinfo.base_vector); i + handle->rinfo.base_vector);
snprintf(hr_dev->ib_dev.name, IB_DEVICE_NAME_MAX, "hns%s",
handle->rinfo.netdev->name);
/* cmd issue mode: 0 is poll, 1 is event */ /* cmd issue mode: 0 is poll, 1 is event */
hr_dev->cmd_mod = 1; hr_dev->cmd_mod = 1;
hr_dev->loop_idc = loopback; hr_dev->loop_idc = loopback;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册