diff options
| author | ragge <ragge@NetBSD.org> | 2003-06-30 13:20:21 +0000 |
|---|---|---|
| committer | ragge <ragge@NetBSD.org> | 2003-06-30 13:20:21 +0000 |
| commit | b027f1fffd78fa031ed48648d6aa9834bd0f56ea (patch) | |
| tree | c6d492aab68f31caec5b802b7ba3dcfb9e968265 /sys/dev | |
| parent | 273141ddfcec00ca729d906684feadcd7e6db566 (diff) | |
Set the send queue to max(BGE_TX_RING_CNT - 1, IFQ_MAXLEN); sometimes
IFQ_MAXLEN may be choosen to a larger value than number of descriptors.
Why this setting from the beginning???
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/if_bge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 1aecb6eb889..d2a73b55c14 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_bge.c,v 1.41 2003/06/15 23:09:08 fvdl Exp $ */ +/* $NetBSD: if_bge.c,v 1.42 2003/06/30 13:20:21 ragge Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -2090,7 +2090,7 @@ bge_attach(parent, self, aux) ifp->if_start = bge_start; ifp->if_init = bge_init; ifp->if_watchdog = bge_watchdog; - IFQ_SET_MAXLEN(&ifp->if_snd, BGE_TX_RING_CNT - 1); + IFQ_SET_MAXLEN(&ifp->if_snd, max(BGE_TX_RING_CNT - 1, IFQ_MAXLEN)); IFQ_SET_READY(&ifp->if_snd); DPRINTFN(5, ("bcopy\n")); strcpy(ifp->if_xname, sc->bge_dev.dv_xname); |
