loop.c (226f7a7d97e37220a442f52eb85ebff2cd6fc0d2) | loop.c (2da43c4a1b517d02e71d9611a2242273e7d399ba) |
---|---|
1/* 2 * Copyright (c) 2006 Oracle. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 88 unchanged lines hidden (view full) --- 97static void rds_loop_inc_free(struct rds_incoming *inc) 98{ 99 struct rds_message *rm = container_of(inc, struct rds_message, m_inc); 100 101 rds_message_put(rm); 102} 103 104/* we need to at least give the thread something to succeed */ | 1/* 2 * Copyright (c) 2006 Oracle. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 88 unchanged lines hidden (view full) --- 97static void rds_loop_inc_free(struct rds_incoming *inc) 98{ 99 struct rds_message *rm = container_of(inc, struct rds_message, m_inc); 100 101 rds_message_put(rm); 102} 103 104/* we need to at least give the thread something to succeed */ |
105static int rds_loop_recv(struct rds_connection *conn) | 105static int rds_loop_recv_path(struct rds_conn_path *cp) |
106{ 107 return 0; 108} 109 110struct rds_loop_connection { 111 struct list_head loop_node; 112 struct rds_connection *conn; 113}; --- 66 unchanged lines hidden (view full) --- 180/* 181 * This is missing .xmit_* because loop doesn't go through generic 182 * rds_send_xmit() and doesn't call rds_recv_incoming(). .listen_stop and 183 * .laddr_check are missing because transport.c doesn't iterate over 184 * rds_loop_transport. 185 */ 186struct rds_transport rds_loop_transport = { 187 .xmit = rds_loop_xmit, | 106{ 107 return 0; 108} 109 110struct rds_loop_connection { 111 struct list_head loop_node; 112 struct rds_connection *conn; 113}; --- 66 unchanged lines hidden (view full) --- 180/* 181 * This is missing .xmit_* because loop doesn't go through generic 182 * rds_send_xmit() and doesn't call rds_recv_incoming(). .listen_stop and 183 * .laddr_check are missing because transport.c doesn't iterate over 184 * rds_loop_transport. 185 */ 186struct rds_transport rds_loop_transport = { 187 .xmit = rds_loop_xmit, |
188 .recv = rds_loop_recv, | 188 .recv_path = rds_loop_recv_path, |
189 .conn_alloc = rds_loop_conn_alloc, 190 .conn_free = rds_loop_conn_free, 191 .conn_connect = rds_loop_conn_connect, 192 .conn_path_shutdown = rds_loop_conn_path_shutdown, 193 .inc_copy_to_user = rds_message_inc_copy_to_user, 194 .inc_free = rds_loop_inc_free, 195 .t_name = "loopback", 196}; | 189 .conn_alloc = rds_loop_conn_alloc, 190 .conn_free = rds_loop_conn_free, 191 .conn_connect = rds_loop_conn_connect, 192 .conn_path_shutdown = rds_loop_conn_path_shutdown, 193 .inc_copy_to_user = rds_message_inc_copy_to_user, 194 .inc_free = rds_loop_inc_free, 195 .t_name = "loopback", 196}; |