Skip to contentSkip to conversation

: net: Add DMA mapping tokens to skb_shared_info.

PATCH In review David Miller 1 participant 1 message Sep 11, 2008

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/3 : net: Add DMA mapping tokens to skb_shared_info.

net: Add DMA mapping tokens to skb_shared_info.

---
 include/linux/skbuff.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
include/linux/skbuff.h +6 -0
index 9099237..4b2be23 100644
@@ -146,8 +146,14 @@ struct skb_shared_info {
 	unsigned short	gso_segs;
 	unsigned short  gso_type;
 	__be32          ip6_frag_id;
+#ifdef CONFIG_HAS_DMA
+	unsigned int	num_dma_maps;
+#endif
 	struct sk_buff	*frag_list;
 	skb_frag_t	frags[MAX_SKB_FRAGS];
+#ifdef CONFIG_HAS_DMA
+	dma_addr_t	dma_maps[MAX_SKB_FRAGS + 1];
+#endif
 };
 
 /* We divide dataref into two halves.  The higher 16 bits hold references
Signature · 1 line
1.5.6.5.GIT