iscsi-target: add int (*iscsit_validate_params)()
Add int (*iscsit_validate_params)() to struct iscsit_transport, iscsi-target uses this callback for validating conn operational parameters. cxgbit.ko needs this callback to check and update the value of MAXXMITDATASEGMENTLENGTH. Signed-off-by: Varun Prakash <varun@chelsio.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:

committed by
Nicholas Bellinger

parent
e8205cca0a
commit
42bc3e5787
@@ -1387,6 +1387,16 @@ static int __iscsi_target_login_thread(struct iscsi_np *np)
|
||||
goto old_sess_out;
|
||||
}
|
||||
|
||||
if (conn->conn_transport->iscsit_validate_params) {
|
||||
ret = conn->conn_transport->iscsit_validate_params(conn);
|
||||
if (ret < 0) {
|
||||
if (zero_tsih)
|
||||
goto new_sess_out;
|
||||
else
|
||||
goto old_sess_out;
|
||||
}
|
||||
}
|
||||
|
||||
ret = iscsi_target_start_negotiation(login, conn);
|
||||
if (ret < 0)
|
||||
goto new_sess_out;
|
||||
|
Reference in New Issue
Block a user