iscsi: make param tables const
Allow the tables to be in the read-only data section. Change-Id: I58199a86d4d44dbad7baed397b2e148c45b3a3de Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
dd2e6164c9
commit
bd2a3a0998
@ -383,7 +383,7 @@ struct iscsi_param_table {
|
|||||||
int type;
|
int type;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct iscsi_param_table conn_param_table[] = {
|
static const struct iscsi_param_table conn_param_table[] = {
|
||||||
{ "HeaderDigest", "None", "CRC32C,None", ISPT_LIST },
|
{ "HeaderDigest", "None", "CRC32C,None", ISPT_LIST },
|
||||||
{ "DataDigest", "None", "CRC32C,None", ISPT_LIST },
|
{ "DataDigest", "None", "CRC32C,None", ISPT_LIST },
|
||||||
{ "MaxRecvDataSegmentLength", "8192", "512,16777215", ISPT_NUMERICAL_DECLARATIVE },
|
{ "MaxRecvDataSegmentLength", "8192", "512,16777215", ISPT_NUMERICAL_DECLARATIVE },
|
||||||
@ -401,7 +401,7 @@ static struct iscsi_param_table conn_param_table[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static 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
|
||||||
/* need special handling */
|
/* need special handling */
|
||||||
@ -429,7 +429,7 @@ static struct iscsi_param_table sess_param_table[] = {
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
spdk_iscsi_params_init_internal(struct iscsi_param **params,
|
spdk_iscsi_params_init_internal(struct iscsi_param **params,
|
||||||
struct iscsi_param_table *table)
|
const struct iscsi_param_table *table)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user