libiscsi: Reduce the size of struct iscsi_context
Reduce the size of struct iscsi_context by reordering the members of this data structure. Additionally, change the rdma_ack_timeout value from 'unsigned char' into 'uint8_t' to make it clear that this variable represents an integer. Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
@@ -89,6 +89,7 @@ struct iscsi_context {
|
||||
|
||||
enum iscsi_session_type session_type;
|
||||
unsigned char isid[6];
|
||||
uint8_t rdma_ack_timeout;
|
||||
uint32_t itt;
|
||||
uint32_t cmdsn;
|
||||
uint32_t min_cmdsn_waiting;
|
||||
@@ -109,8 +110,6 @@ struct iscsi_context {
|
||||
int tcp_syncnt;
|
||||
int tcp_nonblocking;
|
||||
|
||||
unsigned char rdma_ack_timeout;
|
||||
|
||||
int current_phase;
|
||||
int next_phase;
|
||||
#define ISCSI_LOGIN_SECNEG_PHASE_OFFER_CHAP 0
|
||||
|
||||
Reference in New Issue
Block a user