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>
This commit is contained in:

committed by
David S. Miller

parent
ea3b1ea539
commit
2da43c4a1b
@@ -102,7 +102,7 @@ static void rds_loop_inc_free(struct rds_incoming *inc)
|
||||
}
|
||||
|
||||
/* we need to at least give the thread something to succeed */
|
||||
static int rds_loop_recv(struct rds_connection *conn)
|
||||
static int rds_loop_recv_path(struct rds_conn_path *cp)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -185,7 +185,7 @@ void rds_loop_exit(void)
|
||||
*/
|
||||
struct rds_transport rds_loop_transport = {
|
||||
.xmit = rds_loop_xmit,
|
||||
.recv = rds_loop_recv,
|
||||
.recv_path = rds_loop_recv_path,
|
||||
.conn_alloc = rds_loop_conn_alloc,
|
||||
.conn_free = rds_loop_conn_free,
|
||||
.conn_connect = rds_loop_conn_connect,
|
||||
|
Reference in New Issue
Block a user