ib_recv.c (6ea24cf79e055f0a62a64baa8587e2254a493c7b) | ib_recv.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: --- 22 unchanged lines hidden (view full) --- 31 * 32 */ 33#include <linux/kernel.h> 34#include <linux/slab.h> 35#include <linux/pci.h> 36#include <linux/dma-mapping.h> 37#include <rdma/rdma_cm.h> 38 | 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: --- 22 unchanged lines hidden (view full) --- 31 * 32 */ 33#include <linux/kernel.h> 34#include <linux/slab.h> 35#include <linux/pci.h> 36#include <linux/dma-mapping.h> 37#include <rdma/rdma_cm.h> 38 |
39#include "rds_single_path.h" |
|
39#include "rds.h" 40#include "ib.h" 41 42static struct kmem_cache *rds_ib_incoming_slab; 43static struct kmem_cache *rds_ib_frag_slab; 44static atomic_t rds_ib_allocation = ATOMIC_INIT(0); 45 46void rds_ib_recv_init_ring(struct rds_ib_connection *ic) --- 956 unchanged lines hidden (view full) --- 1003 * timeouts. */ 1004 if (rds_ib_ring_empty(&ic->i_recv_ring)) 1005 rds_ib_stats_inc(s_ib_rx_ring_empty); 1006 1007 if (rds_ib_ring_low(&ic->i_recv_ring)) 1008 rds_ib_recv_refill(conn, 0, GFP_NOWAIT); 1009} 1010 | 40#include "rds.h" 41#include "ib.h" 42 43static struct kmem_cache *rds_ib_incoming_slab; 44static struct kmem_cache *rds_ib_frag_slab; 45static atomic_t rds_ib_allocation = ATOMIC_INIT(0); 46 47void rds_ib_recv_init_ring(struct rds_ib_connection *ic) --- 956 unchanged lines hidden (view full) --- 1004 * timeouts. */ 1005 if (rds_ib_ring_empty(&ic->i_recv_ring)) 1006 rds_ib_stats_inc(s_ib_rx_ring_empty); 1007 1008 if (rds_ib_ring_low(&ic->i_recv_ring)) 1009 rds_ib_recv_refill(conn, 0, GFP_NOWAIT); 1010} 1011 |
1011int rds_ib_recv(struct rds_connection *conn) | 1012int rds_ib_recv_path(struct rds_conn_path *cp) |
1012{ | 1013{ |
1014 struct rds_connection *conn = cp->cp_conn; |
|
1013 struct rds_ib_connection *ic = conn->c_transport_data; 1014 int ret = 0; 1015 1016 rdsdebug("conn %p\n", conn); 1017 if (rds_conn_up(conn)) { 1018 rds_ib_attempt_ack(ic); 1019 rds_ib_recv_refill(conn, 0, GFP_KERNEL); 1020 } --- 36 unchanged lines hidden --- | 1015 struct rds_ib_connection *ic = conn->c_transport_data; 1016 int ret = 0; 1017 1018 rdsdebug("conn %p\n", conn); 1019 if (rds_conn_up(conn)) { 1020 rds_ib_attempt_ack(ic); 1021 rds_ib_recv_refill(conn, 0, GFP_KERNEL); 1022 } --- 36 unchanged lines hidden --- |