diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2005-05-01 12:19:49 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2005-05-01 12:19:49 +0000 |
commit | 84ae6990d78a818212676a8cf436d53ae35fa35b (patch) | |
tree | cd683f189bd439a9160587d67201d1090e5d8b49 | |
parent | 7505ffe955403794fd7d853733c4c6ea91342061 (diff) |
update the maxium sendqueue size on ifconfig up; this should fix problems
where IP cannot send packets larger then 11*mtu (e.g for large UDP/NFS
packets); pascoe@ brad@
-rw-r--r-- | sys/dev/pci/if_em.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index 50afcf63e4d..3ec36be60a1 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -32,7 +32,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ -/* $OpenBSD: if_em.c,v 1.47 2005/04/25 17:55:51 brad Exp $ */ +/* $OpenBSD: if_em.c,v 1.48 2005/05/01 12:19:48 markus Exp $ */ #include "bpfilter.h" #include "vlan.h" @@ -668,6 +668,7 @@ em_init_locked(struct em_softc *sc) sc->num_tx_desc = EM_MIN_TXD; sc->num_rx_desc = EM_MIN_RXD; } + IFQ_SET_MAXLEN(&ifp->if_snd, sc->num_tx_desc - 1); /* Packet Buffer Allocation (PBA) * Writing PBA sets the receive portion of the buffer |