summaryrefslogtreecommitdiffstats
path: root/sys/net/if_stf.c
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2010-05-03 07:32:50 +0000
committersobomax <sobomax@FreeBSD.org>2010-05-03 07:32:50 +0000
commit213eac1f2c265b68ddb7cb7bbcb289f8e054c161 (patch)
tree66ca2ebd19fbb3af659fe11c4a5999a6fb1fc68f /sys/net/if_stf.c
parent305cdfaf86fcdb4aa91519ed8096ab361cb28970 (diff)
downloadFreeBSD-src-213eac1f2c265b68ddb7cb7bbcb289f8e054c161.zip
FreeBSD-src-213eac1f2c265b68ddb7cb7bbcb289f8e054c161.tar.gz
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
Diffstat (limited to 'sys/net/if_stf.c')
-rw-r--r--sys/net/if_stf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c
index 5c082c4..1ef5581 100644
--- a/sys/net/if_stf.c
+++ b/sys/net/if_stf.c
@@ -252,7 +252,7 @@ stf_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params)
ifp->if_mtu = IPV6_MMTU;
ifp->if_ioctl = stf_ioctl;
ifp->if_output = stf_output;
- ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
+ ifp->if_snd.ifq_maxlen = ifqmaxlen;
if_attach(ifp);
bpfattach(ifp, DLT_NULL, sizeof(u_int32_t));
return (0);
OpenPOWER on IntegriCloud