IB/isert: use the ISCSI_LOGIN_CURRENT_STAGE macro

Use the proper macro to get the current_stage value.

Link: https://lore.kernel.org/r/20221116094535.138298-1-mlombard@redhat.com
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
Maurizio Lombardi 2022-11-16 10:45:35 +01:00 committed by Jason Gunthorpe
parent 0c5e259b06
commit 2a402120a8

View File

@ -993,9 +993,8 @@ isert_rx_login_req(struct isert_conn *isert_conn)
* login request PDU. * login request PDU.
*/ */
login->leading_connection = (!login_req->tsih) ? 1 : 0; login->leading_connection = (!login_req->tsih) ? 1 : 0;
login->current_stage = login->current_stage = ISCSI_LOGIN_CURRENT_STAGE(
(login_req->flags & ISCSI_FLAG_LOGIN_CURRENT_STAGE_MASK) login_req->flags);
>> 2;
login->version_min = login_req->min_version; login->version_min = login_req->min_version;
login->version_max = login_req->max_version; login->version_max = login_req->max_version;
memcpy(login->isid, login_req->isid, 6); memcpy(login->isid, login_req->isid, 6);