10 #define RDS_FASTREG_SIZE 20
11 #define RDS_FASTREG_POOL_SIZE 2048
13 #define RDS_IW_MAX_SGE 8
14 #define RDS_IW_RECV_SGE 2
16 #define RDS_IW_DEFAULT_RECV_WR 1024
17 #define RDS_IW_DEFAULT_SEND_WR 256
19 #define RDS_IW_SUPPORTED_PROTOCOLS 0x00000003
29 #define RDS_PAGE_LAST_OFF (((PAGE_SIZE / RDS_FRAG_SIZE) - 1) * RDS_FRAG_SIZE)
136 #ifdef KERNEL_HAS_ATOMIC64
168 #define IB_GET_SEND_CREDITS(v) ((v) & 0xffff)
169 #define IB_GET_POST_CREDITS(v) ((v) >> 16)
170 #define IB_SET_SEND_CREDITS(v) ((v) & 0xffff)
171 #define IB_SET_POST_CREDITS(v) ((v) << 16)
193 #define IB_ACK_IN_FLIGHT 0
194 #define IB_ACK_REQUESTED 1
197 #define RDS_IW_ACK_WR_ID ((u64)0xffffffffffffffffULL)
198 #define RDS_IW_FAST_REG_WR_ID ((u64)0xefefefefefefefefULL)
199 #define RDS_IW_LOCAL_INV_WR_ID ((u64)0xdfdfdfdfdfdfdfdfULL)
237 static inline void rds_iw_dma_sync_sg_for_cpu(
struct ib_device *
dev,
243 ib_dma_sync_single_for_cpu(dev,
244 ib_sg_dma_address(dev, &sg[i]),
245 ib_sg_dma_len(dev, &sg[i]),
249 #define ib_dma_sync_sg_for_cpu rds_iw_dma_sync_sg_for_cpu
251 static inline void rds_iw_dma_sync_sg_for_device(
struct ib_device *
dev,
257 ib_dma_sync_single_for_device(dev,
258 ib_sg_dma_address(dev, &sg[i]),
259 ib_sg_dma_len(dev, &sg[i]),
263 #define ib_dma_sync_sg_for_device rds_iw_dma_sync_sg_for_device
296 #define rds_iw_conn_error(conn, fmt...) \
297 __rds_iw_conn_error(conn, KERN_WARNING "RDS/IW: " fmt)
304 static inline void rds_iw_destroy_nodev_conns(
void)
308 static inline void rds_iw_destroy_conns(
struct rds_iw_device *rds_iwdev)
326 gfp_t page_gfp,
int prefill);
354 unsigned int hdr_off,
unsigned int sg,
unsigned int off);
362 u32 *adv_credits,
int need_posted,
int max_posted);
366 #define rds_iw_stats_inc(member) rds_stats_inc_which(rds_iw_stats, member)
384 static inline struct ib_sge *
390 static inline struct ib_sge *