MVXPSEC_MAX_SESSIONS
if (__predict_false(session > MVXPSEC_MAX_SESSIONS)) {
if (sc->sc_nsessions >= MVXPSEC_MAX_SESSIONS) {
__func__, MVXPSEC_MAX_SESSIONS);
for (i = hint; i < MVXPSEC_MAX_SESSIONS; i++) {
__func__, MVXPSEC_MAX_SESSIONS);
if (hint >= MVXPSEC_MAX_SESSIONS)
KASSERTMSG(session < MVXPSEC_MAX_SESSIONS, "session=%d max=%d",
session, MVXPSEC_MAX_SESSIONS);
"Max %d sessions.\n", MVXPSEC_MAX_SESSIONS);
pool_cache_sethiwat(sc->sc_session_pool, MVXPSEC_MAX_SESSIONS);
pool_cache_setlowat(sc->sc_session_pool, MVXPSEC_MAX_SESSIONS / 2);
pool_cache_sethiwat(sc->sc_packet_pool, MVXPSEC_MAX_SESSIONS);
pool_cache_setlowat(sc->sc_packet_pool, MVXPSEC_MAX_SESSIONS / 2);
for (i = 0; i < MVXPSEC_MAX_SESSIONS; i++) {
struct mvxpsec_session *sc_sessions[MVXPSEC_MAX_SESSIONS];