aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-12-02 11:49:02 -0500
committerDavid S. Miller <davem@davemloft.net>2009-12-02 22:57:15 -0500
commitc81c2d95449cd218c2022ce6014c52fef1eb1f66 (patch)
tree3da987f71e3a6807b1d48637766724412689805b /include/linux/skbuff.h
parentf4188d8affc8267a0f0f1b587a4d0a4b9b7f2999 (diff)
skbuff: remove skb_dma_map/unmap
The two functions skb_dma_map/unmap are unsafe to use as they cause problems when packets are cloned and sent to multiple devices while a HW IOMMU is enabled. Due to this it is best to remove the code so it is not used by any other network driver maintainters. 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 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 89eed8cdd318..ae836fded530 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -416,14 +416,6 @@ struct sk_buff {
416 416
417#include <asm/system.h> 417#include <asm/system.h>
418 418
419#ifdef CONFIG_HAS_DMA
420#include <linux/dma-mapping.h>
421extern int skb_dma_map(struct device *dev, struct sk_buff *skb,
422 enum dma_data_direction dir);
423extern void skb_dma_unmap(struct device *dev, struct sk_buff *skb,
424 enum dma_data_direction dir);
425#endif
426
427static inline struct dst_entry *skb_dst(const struct sk_buff *skb) 419static inline struct dst_entry *skb_dst(const struct sk_buff *skb)
428{ 420{
429 return (struct dst_entry *)skb->_skb_dst; 421 return (struct dst_entry *)skb->_skb_dst;