summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-06-18 20:31:32 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-06-18 20:31:32 +0000
commitcf6825fbef378f1d692556be2e63cd4e4a3c6286 (patch)
treee4e97c2ebc5e3553f361d7a2d4bc2f086d9fd728 /sys/dev
parentcf0c02b67623d91ccfbd57bf12d47825d4f8e0fa (diff)
Pass MAX_JUMBO_FRAME_SIZE as the size argument of bus_dmamap_create(),
fixes sending of jumbo frames. ok henric@ drahn@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_em.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c
index 8ade126b4af..7952f851c8e 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.38 2004/03/17 17:50:31 njl Exp $*/
-/* $OpenBSD: if_em.c,v 1.21 2004/05/04 06:00:51 henric Exp $ */
+/* $OpenBSD: if_em.c,v 1.22 2004/06/18 20:31:31 mcbride Exp $ */
#include "bpfilter.h"
#include "vlan.h"
@@ -1435,8 +1435,8 @@ em_encap(struct em_softc *sc, struct mbuf *m_head)
/*
* Map the packet for DMA.
*/
- if (bus_dmamap_create(sc->txtag, MCLBYTES, 32, 0, 0, BUS_DMA_NOWAIT,
- &q.map)) {
+ if (bus_dmamap_create(sc->txtag, MAX_JUMBO_FRAME_SIZE, 32,
+ 0, 0, BUS_DMA_NOWAIT, &q.map)) {
sc->no_tx_map_avail++;
return (ENOMEM);
}