From: Don Fry Date: Tue, 6 Mar 2007 02:13:09 +0000 (-0800) Subject: pcnet32: Fix PCnet32 performance bug on non-coherent architecutres X-Git-Tag: v2.6.21-rc3~23^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2cbbd8e0e8093fbf115ac2669482b016d781c78;p=pandora-kernel.git 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 Acked-by: Don Fry Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed