Spidernet DMA coalescing
authorLinas Vepstas <linas@austin.ibm.com>
Wed, 13 Dec 2006 21:06:59 +0000 (15:06 -0600)
committerJeff Garzik <jeff@garzik.org>
Mon, 5 Feb 2007 21:58:43 +0000 (16:58 -0500)
commitd4ed8f8d1fb7d59eb63d2eada9a32c2f8c3795e2
tree5deb53b975439ce61e40bee57259c2d113df598a
parent834324687d08e0f67b167934cb56406aa98ff8c6
Spidernet DMA coalescing

The current driver code performs 512 DMA mappings of a bunch of
32-byte ring descriptor structures. This is silly, as they are
all in contiguous memory. This patch changes the code to
dma_map_coherent() each rx/tx ring as a whole.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Cc: James K Lewis <jklewis@us.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/spider_net.c
drivers/net/spider_net.h
drivers/net/spider_net_ethtool.c