diff options
author | yongari <yongari@FreeBSD.org> | 2009-05-25 00:56:01 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2009-05-25 00:56:01 +0000 |
commit | d583ffbd6cc997033015b3b4c330f105c0e6edfa (patch) | |
tree | 4e845d2a6b7b41038476c20c8beac995af0e2176 | |
parent | 6db2b7a8a83c79eb9cb3e0a57c325b6b86f270bf (diff) | |
download | FreeBSD-src-d583ffbd6cc997033015b3b4c330f105c0e6edfa.zip FreeBSD-src-d583ffbd6cc997033015b3b4c330f105c0e6edfa.tar.gz |
NVIDIA MCP controllers have no Rx buffer alignment restrictions.
Remove PAGE_SIZE alignment used in Rx buffer DMA tag creation. The
alignment restriction was used in old local jumbo allocator and
nfe(4) switched to UMA backed page allocator for jumbo frame.
This change should fix jumbo buffer allocation failure.
Reported by: Pascal Braun ( pascal.braun <> continum dot net )
-rw-r--r-- | sys/dev/nfe/if_nfe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/nfe/if_nfe.c b/sys/dev/nfe/if_nfe.c index e5a5294..cb7a163 100644 --- a/sys/dev/nfe/if_nfe.c +++ b/sys/dev/nfe/if_nfe.c @@ -1153,7 +1153,7 @@ nfe_alloc_jrx_ring(struct nfe_softc *sc, struct nfe_jrx_ring *ring) /* Create DMA tag for jumbo Rx buffers. */ error = bus_dma_tag_create(sc->nfe_parent_tag, - PAGE_SIZE, 0, /* alignment, boundary */ + 1, 0, /* alignment, boundary */ BUS_SPACE_MAXADDR, /* lowaddr */ BUS_SPACE_MAXADDR, /* highaddr */ NULL, NULL, /* filter, filterarg */ |