X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=include%2Fnet%2Fnetdma.h;h=8ba8ce284eeb8d36fa83f146897e7482ca66db02;hb=818be5894ed4e01781521164c90cae2428931e0b;hp=7f53cd1d8b1eb8b54e8e88fbd286edef6e6673b7;hpb=36a2c6b28003dd0592b8ece5e9409991e0820f50;p=karo-tx-linux.git diff --git a/include/net/netdma.h b/include/net/netdma.h index 7f53cd1d8b1e..8ba8ce284eeb 100644 --- a/include/net/netdma.h +++ b/include/net/netdma.h @@ -20,22 +20,10 @@ */ #ifndef NETDMA_H #define NETDMA_H -#include #ifdef CONFIG_NET_DMA #include #include -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; -} - 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);