From: Alexander Duyck Date: Tue, 18 Sep 2012 01:56:27 +0000 (+0000) Subject: igb: Use dma_unmap_addr and dma_unmap_len defines X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~111^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9f14bf3a49f86e6402a6e3476a180f2bdc8a71b;p=pandora-kernel.git igb: Use dma_unmap_addr and dma_unmap_len defines This change is meant to improve performance on systems that do not require the DMA unmap calls. On those systems we do not need to make use of the unmap address for Tx or the unmap length so we can drop both thereby reducing the size of the Tx buffer info structure. In addition I have changed the logic to check for unmap length instead of unmap address when checking to see if a buffer needs to be unmapped from DMA use. The reasons for this change is that on some platforms it is possible to receive a valid DMA address of 0 from an IOMMU. Signed-off-by: Alexander Duyck Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed