From: Eric Dumazet Date: Wed, 17 Jun 2009 21:17:59 +0000 (+0000) Subject: forcedeth: fix dma api mismatches X-Git-Tag: v2.6.31-rc1~140^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73a370795371e41f72aeca61656d47adeadf28e5;p=pandora-kernel.git forcedeth: fix dma api mismatches forcedeth doesnt use properly dma api in its tx completion path and in nv_loopback_test() pci_map_single() should be paired with pci_unmap_single() pci_map_page() should be paired with pci_unmap_page() forcedeth xmit path uses pci_map_single() & pci_map_page(), but tx completion path only uses pci_unmap_single() nv_loopback_test() uses pci_map_single() & pci_unmap_page() Add a dma_single field in struct nv_skb_map, and define a helper function nv_unmap_txskb Signed-off-by: Eric Dumazet CC: Ayaz Abdulla Signed-off-by: David S. Miller --- Reading git-diff-tree failed