aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igb/igb.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2012-09-17 21:56:27 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-09-22 06:18:20 -0400
commitc9f14bf3a49f86e6402a6e3476a180f2bdc8a71b (patch)
treee9bf482bcbdffcd74fb0cc41b270cbc9ca4deb04 /drivers/net/ethernet/intel/igb/igb.h
parenta57fe23e240b95282e60d643cd8ada3d2a66d8c6 (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/intel/igb/igb.h')
-rw-r--r--drivers/net/ethernet/intel/igb/igb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb.h b/drivers/net/ethernet/intel/igb/igb.h
index 9cad05894193..8aad230c0592 100644
--- a/drivers/net/ethernet/intel/igb/igb.h
+++ b/drivers/net/ethernet/intel/igb/igb.h
@@ -168,8 +168,8 @@ struct igb_tx_buffer {
168 unsigned int bytecount; 168 unsigned int bytecount;
169 u16 gso_segs; 169 u16 gso_segs;
170 __be16 protocol; 170 __be16 protocol;
171 dma_addr_t dma; 171 DEFINE_DMA_UNMAP_ADDR(dma);
172 u32 length; 172 DEFINE_DMA_UNMAP_LEN(len);
173 u32 tx_flags; 173 u32 tx_flags;
174}; 174};
175 175