diff options
author | yongari <yongari@FreeBSD.org> | 2005-11-21 04:17:43 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2005-11-21 04:17:43 +0000 |
commit | 85fff8c580f83d33cbff47991e253eb22ef67a23 (patch) | |
tree | a32aeb53a275b3874430deb5b5313d090b449aa3 /lib/msun/src | |
parent | 6e1f984ebcb6955fe5450e23f3da26c327e69d8d (diff) | |
download | FreeBSD-src-85fff8c580f83d33cbff47991e253eb22ef67a23.zip FreeBSD-src-85fff8c580f83d33cbff47991e253eb22ef67a23.tar.gz |
busdma cleanup for em(4).
- don't force busdma to pre-allocate bounce pages for parent tag.
- use system supplied roundup2 macro instead of rolling its own version.
- TX/RX decriptor length should be multiple of 128. There is no
no need to expand the size with the multiple of 4096.
- don't create/destroy DMA maps in TX/RX handlers. Use pre-allocated
DMA maps. Since creating DMA maps on sparc64 is time consuming
operations(resource mananger overhead), this change should boost
performance on sparc64. I could get > 2x speedup on Ultra60.
- TX/RX descriptors could be aligned on 128 boundary. Aligning them
on PAGE_SIZE is waste of resource.
- don't blindly create TX DMA tag with size of MCLBYTES * 8. The size
is only valid under jumbo frame environments. Instead of using the
hardcoded value, re-compute necessary size on the fly.
- RX side bus_dmamap_load_mbuf_sg(9) support.
- remove unused macro EM_ROUNDUP and constant EM_MMBA.
Reviewed by: scottl
Tested by: glebius
Diffstat (limited to 'lib/msun/src')
0 files changed, 0 insertions, 0 deletions