X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=include%2Fnet%2Fnetdma.h;h=8ba8ce284eeb8d36fa83f146897e7482ca66db02;hb=dda5f0a372873bca5f0b1d1866d7784dffd8b675;hp=ceae5ee85c0490178041aa9705944094e6e188cb;hpb=57cad8084e0837e0f2c97da789ec9b3f36809be9;p=~andy%2Flinux diff --git a/include/net/netdma.h b/include/net/netdma.h index ceae5ee85c0..8ba8ce284ee 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);