Commit 271bff7a authored by David S. Miller's avatar David S. Miller

net: Add DMA mapping tokens to skb_shared_info.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1e493d19
...@@ -146,8 +146,14 @@ struct skb_shared_info { ...@@ -146,8 +146,14 @@ struct skb_shared_info {
unsigned short gso_segs; unsigned short gso_segs;
unsigned short gso_type; unsigned short gso_type;
__be32 ip6_frag_id; __be32 ip6_frag_id;
#ifdef CONFIG_HAS_DMA
unsigned int num_dma_maps;
#endif
struct sk_buff *frag_list; struct sk_buff *frag_list;
skb_frag_t frags[MAX_SKB_FRAGS]; 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 /* We divide dataref into two halves. The higher 16 bits hold references
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment