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>
此提交包含在:
Alexander Duyck
2009-12-02 16:47:18 +00:00
提交者 David S. Miller
父節點 e5a43549f7
當前提交 6366ad331f
共有 2 個檔案被更改,包括 56 行新增18 行删除

查看文件

@@ -137,12 +137,13 @@ struct igb_buffer {
unsigned long time_stamp;
u16 length;
u16 next_to_watch;
u16 mapped_as_page;
};
/* RX */
struct {
struct page *page;
u64 page_dma;
unsigned int page_offset;
dma_addr_t page_dma;
u16 page_offset;
};
};
};