]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Use dma_unmap_addr and dma_unmap_len defines
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 18 Sep 2012 01:56:27 +0000 (01:56 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 22 Sep 2012 10:18:20 +0000 (03:18 -0700)
commitbf3a868d10a989b67b93a50cd602b88e6d9cd7ac
treee9bf482bcbdffcd74fb0cc41b270cbc9ca4deb04
parent6fea3477f5e9e233c7321a131db75348a5bed0f0
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 <alexander.h.duyck@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb.h
drivers/net/ethernet/intel/igb/igb_main.c