Commit d96fe93b authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

iscsi: make globals static where possible



Change-Id: Ibd226babd873ad7cc10cf531abd90e3db24005b9
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent b8e5fbe6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@
		offsetof(struct spdk_iscsi_conn, portal));

#define MICROSECOND_TO_TSC(x) ((x) * rte_get_timer_hz()/1000000)
int64_t g_conn_idle_interval_in_tsc = -1;
static int64_t g_conn_idle_interval_in_tsc = -1;

#define DEFAULT_CONNECTIONS_PER_LCORE	4
#define SPDK_MAX_POLLERS_PER_CORE	4096
@@ -75,11 +75,11 @@ static int g_connections_per_lcore = DEFAULT_CONNECTIONS_PER_LCORE;
static rte_atomic32_t g_num_connections[RTE_MAX_LCORE];

struct spdk_iscsi_conn *g_conns_array;
char g_shm_name[64];
static char g_shm_name[64];

pthread_mutex_t g_conns_mutex;
static pthread_mutex_t g_conns_mutex;

struct rte_timer g_shutdown_timer;
static struct rte_timer g_shutdown_timer;

static uint32_t spdk_iscsi_conn_allocate_reactor(uint64_t cpumask);
static void __add_idle_conn(spdk_event_t event);
+19 −19
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ spdk_iscsi_config_dump_section(FILE *fp)


/* Portal groups */
const char *portal_group_section = \
static const char *portal_group_section = \
		"\n"
		"# Users must change the PortalGroup section(s) to match the IP addresses\n"
		"#  for their environment.\n"
@@ -173,7 +173,7 @@ spdk_iscsi_config_dump_portal_groups(FILE *fp)
}

/* Initiator Groups */
const char *initiator_group_section = \
static const char *initiator_group_section = \
		"\n"
		"# Users must change the InitiatorGroup section(s) to match the IP\n"
		"#  addresses and initiator configuration in their environment.\n"
@@ -220,7 +220,7 @@ spdk_iscsi_config_dump_initiator_groups(FILE *fp)
}

/* Target nodes */
const char *target_nodes_section = \
static const char *target_nodes_section = \
		"\n"
		"# Users should change the TargetNode section(s) below to match the\n"
		"#  desired iSCSI target node configuration.\n"