diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-08-23 13:31:40 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-08-23 13:31:40 +0000 |
commit | 30ef79932d1153019099efab10f01f7ac644abe0 (patch) | |
tree | 5910deca76c648893c88cb19c19633f83058493a /sys/dev/pci | |
parent | 1df55bd1f9cf6ec7f638303652c1d36e92f14cc6 (diff) |
configure the NIU to rx packets that will fit into the mbufs we will
allocate for it, rather than the default of 1600.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_nxe.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_nxe.c b/sys/dev/pci/if_nxe.c index d07cd1be535..0b1edbf7c12 100644 --- a/sys/dev/pci/if_nxe.c +++ b/sys/dev/pci/if_nxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nxe.c,v 1.44 2007/08/23 12:10:38 dlg Exp $ */ +/* $OpenBSD: if_nxe.c,v 1.45 2007/08/23 13:31:39 dlg Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -1152,6 +1152,8 @@ nxe_up(struct nxe_softc *sc) NXE_1_SW_CONTEXT_SIG(sc->sc_port)); nxe_crb_set(sc, 0); + nxe_crb_write(sc, NXE_0_XG_MTU(sc->sc_function), + MCLBYTES - ETHER_ALIGN); nxe_lladdr(sc); nxe_iff(sc); nxe_crb_set(sc, 1); |