diff options
author | Sowmini Varadhan <sowmini.varadhan@oracle.com> | 2016-06-30 19:11:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-01 16:45:17 -0400 |
commit | 2da43c4a1b517d02e71d9611a2242273e7d399ba (patch) | |
tree | 107b08d6a7d188a41fcf2b2559d2be33ed8bf978 /net/rds/loop.c | |
parent | ea3b1ea53930879c9847044f5cb9c97411cae797 (diff) |
RDS: TCP: make receive path use the rds_conn_path
The ->sk_user_data contains a pointer to the rds_conn_path
for the socket. Use this consistently in the rds_tcp_data_ready
callbacks to get the rds_conn_path for rds_recv_incoming.
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/loop.c')
-rw-r--r-- | net/rds/loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rds/loop.c b/net/rds/loop.c index 318c21d7d8d4..20284a4dca91 100644 --- a/net/rds/loop.c +++ b/net/rds/loop.c | |||
@@ -102,7 +102,7 @@ static void rds_loop_inc_free(struct rds_incoming *inc) | |||
102 | } | 102 | } |
103 | 103 | ||
104 | /* we need to at least give the thread something to succeed */ | 104 | /* we need to at least give the thread something to succeed */ |
105 | static int rds_loop_recv(struct rds_connection *conn) | 105 | static int rds_loop_recv_path(struct rds_conn_path *cp) |
106 | { | 106 | { |
107 | return 0; | 107 | return 0; |
108 | } | 108 | } |
@@ -185,7 +185,7 @@ void rds_loop_exit(void) | |||
185 | */ | 185 | */ |
186 | struct rds_transport rds_loop_transport = { | 186 | struct rds_transport rds_loop_transport = { |
187 | .xmit = rds_loop_xmit, | 187 | .xmit = rds_loop_xmit, |
188 | .recv = rds_loop_recv, | 188 | .recv_path = rds_loop_recv_path, |
189 | .conn_alloc = rds_loop_conn_alloc, | 189 | .conn_alloc = rds_loop_conn_alloc, |
190 | .conn_free = rds_loop_conn_free, | 190 | .conn_free = rds_loop_conn_free, |
191 | .conn_connect = rds_loop_conn_connect, | 191 | .conn_connect = rds_loop_conn_connect, |