aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-12-02 11:47:18 -0500
committerDavid S. Miller <davem@davemloft.net>2009-12-02 22:57:12 -0500
commit6366ad331f436388129dfc044db871de79604e4d (patch)
tree39e667c2191093fbb21f5cf74a538da945b32817 /drivers/net/igb/igb.h
parente5a43549f7a58509a91b299a51337d386697b92c (diff)
igb: remove use of skb_dma_map from driver
This change removes skb_dma_map/unmap calls from the igb driver due to the fact that the call is incompatible with iommu enabled kernels. In order to prevent warnings about using the wrong unmap call I have added a mapped_as_page value to the buffer_info structure to track if the mapped region is a page or a buffer. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/igb.h')
-rw-r--r--drivers/net/igb/igb.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h
index c458d9b188ba..b1c1eb88893f 100644
--- a/drivers/net/igb/igb.h
+++ b/drivers/net/igb/igb.h
@@ -137,12 +137,13 @@ struct igb_buffer {
137 unsigned long time_stamp; 137 unsigned long time_stamp;
138 u16 length; 138 u16 length;
139 u16 next_to_watch; 139 u16 next_to_watch;
140 u16 mapped_as_page;
140 }; 141 };
141 /* RX */ 142 /* RX */
142 struct { 143 struct {
143 struct page *page; 144 struct page *page;
144 u64 page_dma; 145 dma_addr_t page_dma;
145 unsigned int page_offset; 146 u16 page_offset;
146 }; 147 };
147 }; 148 };
148}; 149};