scsi, param: remove multi_negot_sess_params

There is no string defined, so remove it.

Change-Id: I4abfe0a561efcaeabe522e826ef64f65b24c2386
Signed-off-by: Ziye Yang <ziye.yang@intel.com>
This commit is contained in:
Ziye Yang 2016-10-09 15:58:27 +08:00 committed by Jim Harris
parent 93ab45d68c
commit 94566ccf21

View File

@ -56,7 +56,6 @@ static const char *non_simple_value_params[] = {
NULL, NULL,
}; };
void void
spdk_iscsi_param_free(struct iscsi_param *params) spdk_iscsi_param_free(struct iscsi_param *params)
{ {
@ -375,7 +374,6 @@ spdk_iscsi_param_eq_val(struct iscsi_param *params, const char *key,
return 0; return 0;
} }
struct iscsi_param_table { struct iscsi_param_table {
const char *key; const char *key;
const char *val; const char *val;
@ -400,7 +398,6 @@ static const struct iscsi_param_table conn_param_table[] = {
{ NULL, NULL, NULL, ISPT_INVALID }, { NULL, NULL, NULL, ISPT_INVALID },
}; };
static const struct iscsi_param_table sess_param_table[] = { static const struct iscsi_param_table sess_param_table[] = {
{ "MaxConnections", "1", "1,65535", ISPT_NUMERICAL_MIN }, { "MaxConnections", "1", "1,65535", ISPT_NUMERICAL_MIN },
#if 0 #if 0
@ -466,7 +463,6 @@ spdk_iscsi_sess_params_init(struct iscsi_param **params)
return spdk_iscsi_params_init_internal(params, &sess_param_table[0]); return spdk_iscsi_params_init_internal(params, &sess_param_table[0]);
} }
static const char *chap_type[] = { static const char *chap_type[] = {
"CHAP_A", "CHAP_A",
"CHAP_N", "CHAP_N",
@ -487,11 +483,6 @@ static const char *discovery_ignored_param[] = {
NULL, NULL,
}; };
/* The following params can be negotiated twice*/
static const char *multi_negot_sess_params[] = {
NULL,
};
static const char *multi_negot_conn_params[] = { static const char *multi_negot_conn_params[] = {
"MaxRecvDataSegmentLength", "MaxRecvDataSegmentLength",
NULL, NULL,
@ -505,8 +496,6 @@ static const char *target_declarative_params[] = {
NULL, NULL,
}; };
/* This function is used to contruct the data from the special param (e.g., /* This function is used to contruct the data from the special param (e.g.,
* MaxRecvDataSegmentLength) * MaxRecvDataSegmentLength)
* return: * return:
@ -599,8 +588,6 @@ spdk_iscsi_special_param_construction(struct spdk_iscsi_conn *conn,
} }
/** /**
* spdk_iscsi_construct_data_from_param: * spdk_iscsi_construct_data_from_param:
* To construct the data which will be returned to the initiator * To construct the data which will be returned to the initiator
@ -772,7 +759,6 @@ static char *spdk_iscsi_negotiate_param_boolean(int *add_param_value,
* The entry function to handle each type of the param * The entry function to handle each type of the param
* return value: the new negotiated value * return value: the new negotiated value
*/ */
static char * static char *
spdk_iscsi_negotiate_param_all(int *add_param_value, struct iscsi_param *param, spdk_iscsi_negotiate_param_all(int *add_param_value, struct iscsi_param *param,
char *valid_list, char *in_val, char *cur_val) char *valid_list, char *in_val, char *cur_val)
@ -821,7 +807,6 @@ spdk_iscsi_negotiate_param_all(int *add_param_value, struct iscsi_param *param,
return new_val; return new_val;
} }
/** /**
* This function is used to judge whether the param is in session's params or * This function is used to judge whether the param is in session's params or
* connection's params * connection's params
@ -852,8 +837,6 @@ spdk_iscsi_negotiate_param_init(struct spdk_iscsi_conn *conn,
} else { } else {
index = (*cur_param_p)->state_index; index = (*cur_param_p)->state_index;
if (conn->sess_param_state_negotiated[index] && if (conn->sess_param_state_negotiated[index] &&
!spdk_iscsi_find_key_in_array(param->key,
multi_negot_sess_params) &&
!spdk_iscsi_find_key_in_array(param->key, !spdk_iscsi_find_key_in_array(param->key,
target_declarative_params)) target_declarative_params))
return SPDK_ISCSI_PARAMETER_EXCHANGE_NOT_ONCE; return SPDK_ISCSI_PARAMETER_EXCHANGE_NOT_ONCE;
@ -871,7 +854,6 @@ spdk_iscsi_negotiate_param_init(struct spdk_iscsi_conn *conn,
return 0; return 0;
} }
int int
spdk_iscsi_negotiate_params(struct spdk_iscsi_conn *conn, spdk_iscsi_negotiate_params(struct spdk_iscsi_conn *conn,
struct iscsi_param *params, uint8_t *data, int alloc_len, struct iscsi_param *params, uint8_t *data, int alloc_len,
@ -1086,7 +1068,6 @@ final_return:
return total; return total;
} }
int int
spdk_iscsi_copy_param2var(struct spdk_iscsi_conn *conn) spdk_iscsi_copy_param2var(struct spdk_iscsi_conn *conn)
{ {