Commit f03f5e7d authored by Seth Howell's avatar Seth Howell Committed by Daniel Verkamp
Browse files

iscsi: change iscsi_bhs_scsi_req variable names.



These variable names are changed to retain conformity with astyle 3.0.1. Astyle 3.0.1 recognizes 'final' as a keyword and incorrectly formats the iscsi_spec.h file breaking the build. Names were changed to avoid this case and maintain consistency within the struct.

Change-Id: I39c29d768c0ddfd459a9e9212c29cf564dad1963
Signed-off-by: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/369905


Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 32f86a5f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -310,9 +310,9 @@ struct iscsi_bhs_scsi_req {
	uint8_t reserved	: 1;
	uint8_t attribute	: 3;
	uint8_t reserved2	: 2;
	uint8_t write		: 1;
	uint8_t read		: 1;
	uint8_t final		: 1;
	uint8_t write_bit	: 1;
	uint8_t read_bit	: 1;
	uint8_t final_bit	: 1;
	uint8_t res[2];
	uint8_t total_ahs_len;
	uint8_t data_segment_len[3];
+3 −3
Original line number Diff line number Diff line
@@ -2935,9 +2935,9 @@ spdk_iscsi_op_scsi(struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu *pdu)

	reqh = (struct iscsi_bhs_scsi_req *)&pdu->bhs;

	F_bit = reqh->final;
	R_bit = reqh->read;
	W_bit = reqh->write;
	F_bit = reqh->final_bit;
	R_bit = reqh->read_bit;
	W_bit = reqh->write_bit;
	lun = from_be64(&reqh->lun);
	task_tag = from_be32(&reqh->itt);
	transfer_len = from_be32(&reqh->expected_data_xfer_len);
+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ spdk_iscsi_task_is_read(struct spdk_iscsi_task *task)
	struct iscsi_bhs_scsi_req *scsi_req;

	scsi_req = (struct iscsi_bhs_scsi_req *)spdk_iscsi_task_get_bhs(task);
	return (scsi_req->read == 1);
	return (scsi_req->read_bit == 1);
}

static inline uint32_t
+2 −2
Original line number Diff line number Diff line
@@ -145,8 +145,8 @@ maxburstlength_test(void)
	to_be32(&req->cmd_sn, 0);
	to_be32(&req->expected_data_xfer_len, 1028);
	to_be32(&req->itt, 0x1234);
	req->write = 1;
	req->final = 1;
	req->write_bit = 1;
	req->final_bit = 1;

	g_spdk_iscsi.MaxRecvDataSegmentLength = 1024;