From: David S. Miller Date: Thu, 11 Sep 2008 11:48:58 +0000 (-0700) Subject: net: Add DMA mapping tokens to skb_shared_info. X-Git-Tag: MMI-PSA29.97-13-9~31818^2~296 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=271bff7afbb2cbaa81e744006ad2fff1f3e10b1b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git net: Add DMA mapping tokens to skb_shared_info. Signed-off-by: David S. Miller --- diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 909923717830..4b2be23903c4 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -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