version 1.151.6.2, 2008/06/02 13:24:13 |
version 1.165, 2008/05/24 18:43:02 |
Line 69 __KERNEL_RCSID(0, "$NetBSD$"); |
|
Line 69 __KERNEL_RCSID(0, "$NetBSD$"); |
|
#include "opt_sosend_loan.h" |
#include "opt_sosend_loan.h" |
#include "opt_mbuftrace.h" |
#include "opt_mbuftrace.h" |
#include "opt_somaxkva.h" |
#include "opt_somaxkva.h" |
#include "opt_multiprocessor.h" /* XXX */ |
|
|
|
#include <sys/param.h> |
#include <sys/param.h> |
#include <sys/systm.h> |
#include <sys/systm.h> |
Line 128 EVCNT_ATTACH_STATIC(sosend_kvalimit); |
|
Line 127 EVCNT_ATTACH_STATIC(sosend_kvalimit); |
|
|
|
static struct callback_entry sokva_reclaimerentry; |
static struct callback_entry sokva_reclaimerentry; |
|
|
#if defined(SOSEND_NO_LOAN) || defined(MULTIPROCESSOR) |
#ifdef SOSEND_NO_LOAN |
int sock_loan_thresh = -1; |
int sock_loan_thresh = -1; |
#else |
#else |
int sock_loan_thresh = 4096; |
int sock_loan_thresh = 4096; |
|
|
mutex_init(&so_pendfree_lock, MUTEX_DEFAULT, IPL_VM); |
mutex_init(&so_pendfree_lock, MUTEX_DEFAULT, IPL_VM); |
softnet_lock = mutex_obj_alloc(MUTEX_DEFAULT, IPL_NONE); |
softnet_lock = mutex_obj_alloc(MUTEX_DEFAULT, IPL_NONE); |
cv_init(&socurkva_cv, "sokva"); |
cv_init(&socurkva_cv, "sokva"); |
soinit2(); |
|
|
|
/* Set the initial adjusted socket buffer size. */ |
/* Set the initial adjusted socket buffer size. */ |
if (sb_max_set(sb_max)) |
if (sb_max_set(sb_max)) |