]> git.baikalelectronics.ru Git - kernel.git/commit
pcnet32: Fix PCnet32 performance bug on non-coherent architecutres
authorDon Fry <pcnet32@verizon.net>
Tue, 6 Mar 2007 02:13:09 +0000 (18:13 -0800)
committerJeff Garzik <jeff@garzik.org>
Tue, 6 Mar 2007 11:14:54 +0000 (06:14 -0500)
commitd9949a2825e36f3caf1700401eb2ada79186a304
tree04d96724cf39fb65e7209da608fcda0f22d14666
parent790ca3cb82f2579a04bcb487c32a981d068eecf9
pcnet32: Fix PCnet32 performance bug on non-coherent architecutres

The PCnet32 driver always passed the the size of the largest possible packet
to the pci_dma_sync_single_for_cpu and pci_dma_sync_single_for_device.
This results in a fairly large "colateral damage" in the caches and makes
the flush operation itself much slower.  On a system with a 40MHz CPU this
patch increases network bandwidth by about 12%.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Don Fry <pcnet32@verizon.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/pcnet32.c