iw_cxgb3: initialize ibdev.iwcm->ifname for port mapping
The IWCM uses ibdev.iwcm->ifname for registration with the iwarp
port map daemon. But iw_cxgb3 did not initialize this field which
causes intermittent registration failures based on the contents of the
uninitialized memory.
Fixes: c1340e8aa6
("iw_cxgb3: support for iWARP port mapping")
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
Родитель
851d7b6b8a
Коммит
ad202348fe
|
@ -1390,6 +1390,8 @@ int iwch_register_device(struct iwch_dev *dev)
|
||||||
dev->ibdev.iwcm->add_ref = iwch_qp_add_ref;
|
dev->ibdev.iwcm->add_ref = iwch_qp_add_ref;
|
||||||
dev->ibdev.iwcm->rem_ref = iwch_qp_rem_ref;
|
dev->ibdev.iwcm->rem_ref = iwch_qp_rem_ref;
|
||||||
dev->ibdev.iwcm->get_qp = iwch_get_qp;
|
dev->ibdev.iwcm->get_qp = iwch_get_qp;
|
||||||
|
memcpy(dev->ibdev.iwcm->ifname, dev->rdev.t3cdev_p->lldev->name,
|
||||||
|
sizeof(dev->ibdev.iwcm->ifname));
|
||||||
|
|
||||||
ret = ib_register_device(&dev->ibdev, NULL);
|
ret = ib_register_device(&dev->ibdev, NULL);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче