Commit bd2a3a09 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Ben Walker
Browse files

iscsi: make param tables const



Allow the tables to be in the read-only data section.

Change-Id: I58199a86d4d44dbad7baed397b2e148c45b3a3de
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent dd2e6164
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -383,7 +383,7 @@ struct iscsi_param_table {
	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 },
	{ "DataDigest", "None", "CRC32C,None", ISPT_LIST },
	{ "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 },
#if 0
	/* need special handling */
@@ -429,7 +429,7 @@ static struct iscsi_param_table sess_param_table[] = {

static int
spdk_iscsi_params_init_internal(struct iscsi_param **params,
				struct iscsi_param_table *table)
				const struct iscsi_param_table *table)
{
	int rc;
	int i;