diff options
author | Chris Leech <christopher.leech@intel.com> | 2006-05-23 17:50:37 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-17 21:25:46 -0700 |
commit | de5506e155276d385712c2aa1c2d9a27cd4ed947 (patch) | |
tree | 219c30dab27b9aef2597d8735dfc19db8454849e /include/net/netdma.h | |
parent | db21733488f84a596faaad0d05430b3f51804692 (diff) | |
download | linux-de5506e155276d385712c2aa1c2d9a27cd4ed947.tar.gz linux-de5506e155276d385712c2aa1c2d9a27cd4ed947.tar.bz2 linux-de5506e155276d385712c2aa1c2d9a27cd4ed947.zip |
[I/OAT]: Utility functions for offloading sk_buff to iovec copies
Provides for pinning user space pages in memory, copying to iovecs,
and copying from sk_buffs including fragmented and chained sk_buffs.
Signed-off-by: Chris Leech <christopher.leech@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netdma.h')
-rw-r--r-- | include/net/netdma.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/netdma.h b/include/net/netdma.h index cbfe89d7e5d0..19760eb131aa 100644 --- a/include/net/netdma.h +++ b/include/net/netdma.h @@ -23,6 +23,7 @@ #include <linux/config.h> #ifdef CONFIG_NET_DMA #include <linux/dmaengine.h> +#include <linux/skbuff.h> static inline struct dma_chan *get_softnet_dma(void) { @@ -34,5 +35,10 @@ static inline struct dma_chan *get_softnet_dma(void) rcu_read_unlock(); return chan; } + +int dma_skb_copy_datagram_iovec(struct dma_chan* chan, + const struct sk_buff *skb, int offset, struct iovec *to, + size_t len, struct dma_pinned_list *pinned_list); + #endif /* CONFIG_NET_DMA */ #endif /* NETDMA_H */ |