aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ce
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2010-05-03 07:32:50 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2010-05-03 07:32:50 +0000
commite50d35e6c6c68e83fa329aff043d53ab84982fd3 (patch)
tree66ca2ebd19fbb3af659fe11c4a5999a6fb1fc68f /sys/dev/ce
parent551e75c7af421b58b9ba54d639af1e5f7a79ca23 (diff)
downloadsrc-e50d35e6c6c68e83fa329aff043d53ab84982fd3.tar.gz
src-e50d35e6c6c68e83fa329aff043d53ab84982fd3.zip
Add new tunable 'net.link.ifqmaxlen' to set default send interface
queue length. The default value for this parameter is 50, which is quite low for many of today's uses and the only way to modify this parameter right now is to edit if_var.h file. Also add read-only sysctl with the same name, so that it's possible to retrieve the current value. MFC after: 1 month
Notes
Notes: svn path=/head/; revision=207554
Diffstat (limited to 'sys/dev/ce')
-rw-r--r--sys/dev/ce/if_ce.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ce/if_ce.c b/sys/dev/ce/if_ce.c
index f04fd0916e64..d151b4243a8f 100644
--- a/sys/dev/ce/if_ce.c
+++ b/sys/dev/ce/if_ce.c
@@ -701,9 +701,9 @@ static int ce_attach (device_t dev)
#endif
continue;
}
- d->queue.ifq_maxlen = IFQ_MAXLEN;
- d->hi_queue.ifq_maxlen = IFQ_MAXLEN;
- d->rqueue.ifq_maxlen = IFQ_MAXLEN;
+ d->queue.ifq_maxlen = ifqmaxlen;
+ d->hi_queue.ifq_maxlen = ifqmaxlen;
+ d->rqueue.ifq_maxlen = ifqmaxlen;
#if __FreeBSD_version >= 500000
mtx_init (&d->queue.ifq_mtx, "ce_queue", NULL, MTX_DEF);
mtx_init (&d->hi_queue.ifq_mtx, "ce_queue_hi", NULL, MTX_DEF);
@@ -732,7 +732,7 @@ static int ce_attach (device_t dev)
d->ifp->if_ioctl = ce_sioctl;
d->ifp->if_start = ce_ifstart;
d->ifp->if_init = ce_initialize;
- d->rqueue.ifq_maxlen = IFQ_MAXLEN;
+ d->rqueue.ifq_maxlen = ifqmaxlen;
#if __FreeBSD_version >= 500000
mtx_init (&d->rqueue.ifq_mtx, "ce_rqueue", NULL, MTX_DEF);
#endif