aboutsummaryrefslogtreecommitdiff
path: root/sys/arm
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/arm
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/arm')
-rw-r--r--sys/arm/at91/if_ate.c4
-rw-r--r--sys/arm/xscale/ixp425/if_npe.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm/at91/if_ate.c b/sys/arm/at91/if_ate.c
index 2f6b741cc10c..b0654823470a 100644
--- a/sys/arm/at91/if_ate.c
+++ b/sys/arm/at91/if_ate.c
@@ -272,8 +272,8 @@ ate_attach(device_t dev)
ifp->if_ioctl = ateioctl;
ifp->if_init = ateinit;
ifp->if_baudrate = 10000000;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
- ifp->if_snd.ifq_drv_maxlen = IFQ_MAXLEN;
+ IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen);
+ ifp->if_snd.ifq_drv_maxlen = ifqmaxlen;
IFQ_SET_READY(&ifp->if_snd);
ifp->if_linkmib = &sc->mibdata;
ifp->if_linkmiblen = sizeof(sc->mibdata);
diff --git a/sys/arm/xscale/ixp425/if_npe.c b/sys/arm/xscale/ixp425/if_npe.c
index 5b605aeb6d2a..3d8d670eec94 100644
--- a/sys/arm/xscale/ixp425/if_npe.c
+++ b/sys/arm/xscale/ixp425/if_npe.c
@@ -360,7 +360,7 @@ npe_attach(device_t dev)
ifp->if_ioctl = npeioctl;
ifp->if_init = npeinit;
IFQ_SET_MAXLEN(&ifp->if_snd, sc->txdma.nbuf - 1);
- ifp->if_snd.ifq_drv_maxlen = IFQ_MAXLEN;
+ ifp->if_snd.ifq_drv_maxlen = ifqmaxlen;
IFQ_SET_READY(&ifp->if_snd);
ifp->if_linkmib = &sc->mibdata;
ifp->if_linkmiblen = sizeof(sc->mibdata);