IB/{core,hw}: Add constant for node_desc
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committed by
Doug Ledford

parent
32f7451d1c
commit
bd99fdea42
@@ -1423,7 +1423,8 @@ static int modify_device(struct ib_device *device,
|
||||
}
|
||||
|
||||
if (device_modify_mask & IB_DEVICE_MODIFY_NODE_DESC) {
|
||||
memcpy(device->node_desc, device_modify->node_desc, 64);
|
||||
memcpy(device->node_desc, device_modify->node_desc,
|
||||
IB_DEVICE_NODE_DESC_MAX);
|
||||
for (i = 0; i < dd->num_pports; i++) {
|
||||
struct hfi1_ibport *ibp = &dd->pport[i].ibport_data;
|
||||
|
||||
|
Reference in New Issue
Block a user