IB/mlx4: Manage admin alias GUID upon admin request
Set the admin alias GUID per the administrator's request via the sysfs mechanism into the core layer. The "get" request returns the current value. However, if the administrator requests the SM to assign a new value by requesting 0, the SM assigned GUID is returned. Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committed by
Doug Ledford

parent
fb517a4f03
commit
2350f24774
@@ -328,6 +328,12 @@ static void aliasguid_query_handler(int status,
|
||||
} else {
|
||||
*(__be64 *)&rec->all_recs[i * GUID_REC_SIZE] =
|
||||
sm_response;
|
||||
if (required_val == 0)
|
||||
mlx4_set_admin_guid(dev->dev,
|
||||
sm_response,
|
||||
(guid_rec->block_num
|
||||
* NUM_ALIAS_GUID_IN_REC) + i,
|
||||
cb_ctx->port);
|
||||
goto next_entry;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user