summaryrefslogtreecommitdiffstats
path: root/sys/dev/iscsi_initiator
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/iscsi_initiator')
-rw-r--r--sys/dev/iscsi_initiator/iscsi.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/iscsi_initiator/iscsi.c b/sys/dev/iscsi_initiator/iscsi.c
index cd66a36..049c111 100644
--- a/sys/dev/iscsi_initiator/iscsi.c
+++ b/sys/dev/iscsi_initiator/iscsi.c
@@ -77,11 +77,11 @@ struct mtx iscsi_dbg_mtx;
#endif
static int max_sessions = MAX_SESSIONS;
-SYSCTL_INT(_net, OID_AUTO, iscsi_initiator_max_sessions, CTLFLAG_RDTUN, &max_sessions, MAX_SESSIONS,
- "Max sessions allowed");
+SYSCTL_INT(_net, OID_AUTO, iscsi_initiator_max_sessions, CTLFLAG_RDTUN,
+ &max_sessions, 0, "Max sessions allowed");
static int max_pdus = MAX_PDUS;
-SYSCTL_INT(_net, OID_AUTO, iscsi_initiator_max_pdus, CTLFLAG_RDTUN, &max_pdus, MAX_PDUS,
- "Max pdu pool");
+SYSCTL_INT(_net, OID_AUTO, iscsi_initiator_max_pdus, CTLFLAG_RDTUN,
+ &max_pdus, 0, "Max PDU pool");
static char isid[6+1] = {
0x80,
@@ -711,9 +711,6 @@ iscsi_start(void)
{
debug_called(8);
- TUNABLE_INT_FETCH("net.iscsi_initiator.max_sessions", &max_sessions);
- TUNABLE_INT_FETCH("net.iscsi_initiator.max_pdus", &max_pdus);
-
isc = malloc(sizeof(struct isc_softc), M_ISCSI, M_ZERO|M_WAITOK);
mtx_init(&isc->isc_mtx, "iscsi-isc", NULL, MTX_DEF);
OpenPOWER on IntegriCloud