diff options
author | scottl <scottl@FreeBSD.org> | 2004-10-19 02:42:49 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2004-10-19 02:42:49 +0000 |
commit | 76f96ced4bd6f2ba9bb261a0a56064451384a97c (patch) | |
tree | 0cba5c6b6b634bfa261f0a7c0de53226581b9c4e /sys/dev/bge | |
parent | 57d3e400ee18162a2b75af4a328175684cc1f30e (diff) | |
download | FreeBSD-src-76f96ced4bd6f2ba9bb261a0a56064451384a97c.zip FreeBSD-src-76f96ced4bd6f2ba9bb261a0a56064451384a97c.tar.gz |
Use and alignment of 1 instead of ETHER_ALIGN for rx and tx buffers and jumbo
frames. BGE hardware with the rx alignment bug will still be handled by the
calls to m_adj() that already exist. m_adj() is probably better suited for
this task anyways. Just as with if_em, this saves a malloc + several locks
per packet and prevents unneeded data copying within busdma.
Diffstat (limited to 'sys/dev/bge')
-rw-r--r-- | sys/dev/bge/if_bge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 34341ca..35cf6cd 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -1935,7 +1935,7 @@ bge_dma_alloc(dev) * Create tag for RX mbufs. */ nseg = 32; - error = bus_dma_tag_create(sc->bge_cdata.bge_parent_tag, ETHER_ALIGN, + error = bus_dma_tag_create(sc->bge_cdata.bge_parent_tag, 1, 0, BUS_SPACE_MAXADDR, BUS_SPACE_MAXADDR, NULL, NULL, MCLBYTES * nseg, nseg, MCLBYTES, 0, NULL, NULL, &sc->bge_cdata.bge_mtag); @@ -2024,7 +2024,7 @@ bge_dma_alloc(dev) */ error = bus_dma_tag_create(sc->bge_cdata.bge_parent_tag, - ETHER_ALIGN, 0, BUS_SPACE_MAXADDR, BUS_SPACE_MAXADDR, NULL, + 1, 0, BUS_SPACE_MAXADDR, BUS_SPACE_MAXADDR, NULL, NULL, MCLBYTES * nseg, nseg, BGE_JLEN, 0, NULL, NULL, &sc->bge_cdata.bge_mtag_jumbo); |