X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=include%2Fnet%2Fnetdma.h;h=8ba8ce284eeb8d36fa83f146897e7482ca66db02;hb=5e30589521518bff36fd2638b3c3d69679c50436;hp=cbfe89d7e5d09ca1f2d498ef9a6db07c0f75d54a;hpb=db21733488f84a596faaad0d05430b3f51804692;p=safe%2Fjmp%2Flinux-2.6 diff --git a/include/net/netdma.h b/include/net/netdma.h index cbfe89d..8ba8ce2 100644 --- a/include/net/netdma.h +++ b/include/net/netdma.h @@ -20,19 +20,13 @@ */ #ifndef NETDMA_H #define NETDMA_H -#include #ifdef CONFIG_NET_DMA #include +#include + +int dma_skb_copy_datagram_iovec(struct dma_chan* chan, + struct sk_buff *skb, int offset, struct iovec *to, + size_t len, struct dma_pinned_list *pinned_list); -static inline struct dma_chan *get_softnet_dma(void) -{ - struct dma_chan *chan; - rcu_read_lock(); - chan = rcu_dereference(__get_cpu_var(softnet_data.net_dma)); - if (chan) - dma_chan_get(chan); - rcu_read_unlock(); - return chan; -} #endif /* CONFIG_NET_DMA */ #endif /* NETDMA_H */