33 #include <linux/kernel.h>
34 #include <linux/slab.h>
61 unsigned int hdr_off,
unsigned int sg,
75 BUG_ON(hdr_off || sg || off);
134 spin_unlock_irqrestore(&loop_conns_lock, flags);
139 static void rds_loop_conn_free(
void *
arg)
144 rdsdebug(
"lc %p\n", lc);
147 spin_unlock_irqrestore(&loop_conns_lock, flags);
167 spin_lock_irq(&loop_conns_lock);
168 list_splice(&loop_conns, &tmp_list);
169 INIT_LIST_HEAD(&loop_conns);
170 spin_unlock_irq(&loop_conns_lock);
185 .xmit = rds_loop_xmit,
186 .recv = rds_loop_recv,
187 .conn_alloc = rds_loop_conn_alloc,
188 .conn_free = rds_loop_conn_free,
189 .conn_connect = rds_loop_conn_connect,
190 .conn_shutdown = rds_loop_conn_shutdown,
192 .inc_free = rds_loop_inc_free,
193 .t_name =
"loopback",