aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2013-12-30 15:37:29 -0500
committerDan Williams <dan.j.williams@intel.com>2014-09-28 10:05:16 -0400
commit7bced397510ab569d31de4c70b39e13355046387 (patch)
treefaa4067a53e42acffc752e9a153e7dbaed4126e5 /net/ipv4/tcp_ipv4.c
parent08223d80df38e666a42d7c82eb340db55c6e03bd (diff)
net_dma: simple removal
Per commit "77873803363c net_dma: mark broken" net_dma is no longer used and there is no plan to fix it. This is the mechanical removal of bits in CONFIG_NET_DMA ifdef guards. Reverting the remainder of the net_dma induced changes is deferred to subsequent patches. Marked for stable due to Roman's report of a memory leak in dma_pin_iovec_pages(): https://lkml.org/lkml/2014/9/3/177 Cc: Dave Jiang <dave.jiang@intel.com> Cc: Vinod Koul <vinod.koul@intel.com> Cc: David Whipple <whipple@securedatainnovations.ch> Cc: Alexander Duyck <alexander.h.duyck@intel.com> Cc: <stable@vger.kernel.org> Reported-by: Roman Gushchin <klamm@yandex-team.ru> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 3cf976510497..737c2e270ee3 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -72,7 +72,6 @@
72#include <net/inet_common.h> 72#include <net/inet_common.h>
73#include <net/timewait_sock.h> 73#include <net/timewait_sock.h>
74#include <net/xfrm.h> 74#include <net/xfrm.h>
75#include <net/netdma.h>
76#include <net/secure_seq.h> 75#include <net/secure_seq.h>
77#include <net/tcp_memcontrol.h> 76#include <net/tcp_memcontrol.h>
78#include <net/busy_poll.h> 77#include <net/busy_poll.h>
@@ -1999,18 +1998,8 @@ process:
1999 bh_lock_sock_nested(sk); 1998 bh_lock_sock_nested(sk);
2000 ret = 0; 1999 ret = 0;
2001 if (!sock_owned_by_user(sk)) { 2000 if (!sock_owned_by_user(sk)) {
2002#ifdef CONFIG_NET_DMA 2001 if (!tcp_prequeue(sk, skb))
2003 struct tcp_sock *tp = tcp_sk(sk);
2004 if (!tp->ucopy.dma_chan && tp->ucopy.pinned_list)
2005 tp->ucopy.dma_chan = net_dma_find_channel();
2006 if (tp->ucopy.dma_chan)
2007 ret = tcp_v4_do_rcv(sk, skb); 2002 ret = tcp_v4_do_rcv(sk, skb);
2008 else
2009#endif
2010 {
2011 if (!tcp_prequeue(sk, skb))
2012 ret = tcp_v4_do_rcv(sk, skb);
2013 }
2014 } else if (unlikely(sk_add_backlog(sk, skb, 2003 } else if (unlikely(sk_add_backlog(sk, skb,
2015 sk->sk_rcvbuf + sk->sk_sndbuf))) { 2004 sk->sk_rcvbuf + sk->sk_sndbuf))) {
2016 bh_unlock_sock(sk); 2005 bh_unlock_sock(sk);
@@ -2169,11 +2158,6 @@ void tcp_v4_destroy_sock(struct sock *sk)
2169 } 2158 }
2170#endif 2159#endif
2171 2160
2172#ifdef CONFIG_NET_DMA
2173 /* Cleans up our sk_async_wait_queue */
2174 __skb_queue_purge(&sk->sk_async_wait_queue);
2175#endif
2176
2177 /* Clean prequeue, it must be empty really */ 2161 /* Clean prequeue, it must be empty really */
2178 __skb_queue_purge(&tp->ucopy.prequeue); 2162 __skb_queue_purge(&tp->ucopy.prequeue);
2179 2163