[SCSI] be2iscsi: Fix for Login failure
The current code in tree has problems with Login. This patch fixes the Login Failure . Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com> [mnc: Can't believe I missed that.] Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
d842a93c4b
commit
b15d05b0d3
|
@ -300,8 +300,7 @@ int beiscsi_get_host_param(struct Scsi_Host *shost,
|
||||||
enum iscsi_host_param param, char *buf)
|
enum iscsi_host_param param, char *buf)
|
||||||
{
|
{
|
||||||
struct beiscsi_hba *phba = (struct beiscsi_hba *)iscsi_host_priv(shost);
|
struct beiscsi_hba *phba = (struct beiscsi_hba *)iscsi_host_priv(shost);
|
||||||
int len = 0;
|
int status = 0;
|
||||||
int status;
|
|
||||||
|
|
||||||
SE_DEBUG(DBG_LVL_8, "In beiscsi_get_host_param, param= %d\n", param);
|
SE_DEBUG(DBG_LVL_8, "In beiscsi_get_host_param, param= %d\n", param);
|
||||||
switch (param) {
|
switch (param) {
|
||||||
|
@ -315,7 +314,7 @@ int beiscsi_get_host_param(struct Scsi_Host *shost,
|
||||||
default:
|
default:
|
||||||
return iscsi_host_get_param(shost, param, buf);
|
return iscsi_host_get_param(shost, param, buf);
|
||||||
}
|
}
|
||||||
return len;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
int beiscsi_get_macaddr(char *buf, struct beiscsi_hba *phba)
|
int beiscsi_get_macaddr(char *buf, struct beiscsi_hba *phba)
|
||||||
|
|
|
@ -368,7 +368,7 @@ int mgmt_open_connection(struct beiscsi_hba *phba,
|
||||||
memset(req, 0, sizeof(*req));
|
memset(req, 0, sizeof(*req));
|
||||||
wrb->tag0 |= tag;
|
wrb->tag0 |= tag;
|
||||||
|
|
||||||
be_wrb_hdr_prepare(wrb, sizeof(*req), true, 1);
|
be_wrb_hdr_prepare(wrb, sizeof(*req), false, 1);
|
||||||
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI,
|
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI,
|
||||||
OPCODE_COMMON_ISCSI_TCP_CONNECT_AND_OFFLOAD,
|
OPCODE_COMMON_ISCSI_TCP_CONNECT_AND_OFFLOAD,
|
||||||
sizeof(*req));
|
sizeof(*req));
|
||||||
|
|
Loading…
Reference in a new issue