Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b593931d authored by Armen Baloyan's avatar Armen Baloyan Committed by James Bottomley
Browse files

[SCSI] qla2xxx: Replace constant value for IOCTL IOCB abort execution status...


[SCSI] qla2xxx: Replace constant value for IOCTL IOCB abort execution status with a macro for ISPFX00.

Signed-off-by: default avatarArmen Baloyan <armen.baloyan@qlogic.com>
Signed-off-by: default avatarSaurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 0f8cdff5
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -2017,7 +2017,8 @@ qlafx00_fx_disc(scsi_qla_host_t *vha, fc_port_t *fcport, uint16_t fx_type)
		memcpy(vha->hw->gid_list, pinfo, QLAFX00_TGT_NODE_LIST_SIZE);
		memcpy(vha->hw->gid_list, pinfo, QLAFX00_TGT_NODE_LIST_SIZE);
	} else if (fx_type == FXDISC_ABORT_IOCTL)
	} else if (fx_type == FXDISC_ABORT_IOCTL)
		fdisc->u.fxiocb.result =
		fdisc->u.fxiocb.result =
		    (fdisc->u.fxiocb.result == cpu_to_le32(0x68)) ?
		    (fdisc->u.fxiocb.result ==
			cpu_to_le32(QLAFX00_IOCTL_ICOB_ABORT_SUCCESS)) ?
		    cpu_to_le32(QLA_SUCCESS) : cpu_to_le32(QLA_FUNCTION_FAILED);
		    cpu_to_le32(QLA_SUCCESS) : cpu_to_le32(QLA_FUNCTION_FAILED);


	rval = le32_to_cpu(fdisc->u.fxiocb.result);
	rval = le32_to_cpu(fdisc->u.fxiocb.result);
+3 −0
Original line number Original line Diff line number Diff line
@@ -548,4 +548,7 @@ struct mr_data_fx00 {
/* Max conncurrent IOs that can be queued */
/* Max conncurrent IOs that can be queued */
#define QLAFX00_MAX_CANQUEUE		1024
#define QLAFX00_MAX_CANQUEUE		1024


/* IOCTL IOCB abort success */
#define QLAFX00_IOCTL_ICOB_ABORT_SUCCESS	0x68

#endif
#endif