[openib-general] [PATCH][5/5] ib_get_dma_mr(): use in SDP
Roland Dreier
roland at topspin.com
Wed Oct 20 16:04:52 PDT 2004
Index: infiniband/ulp/sdp/sdp_conn.c
===================================================================
--- infiniband/ulp/sdp/sdp_conn.c (revision 994)
+++ infiniband/ulp/sdp/sdp_conn.c (working copy)
@@ -1869,7 +1869,6 @@
#ifdef _TS_SDP_AIO_SUPPORT
struct ib_fmr_pool_param fmr_param_s;
#endif
- struct ib_phys_buf buffer_list;
struct ib_device_attr node_info;
struct sdev_hca_port *port;
struct sdev_hca *hca;
@@ -1918,16 +1917,7 @@
/*
* memory registration
*/
- buffer_list.addr = 0;
- buffer_list.size = (unsigned long)high_memory - PAGE_OFFSET;
-
- hca->iova = 0;
-
- hca->mem_h = ib_reg_phys_mr(hca->pd,
- &buffer_list,
- 1, /* list_len */
- IB_ACCESS_LOCAL_WRITE,
- &hca->iova);
+ hca->mem_h = ib_get_dma_mr(hca->pd, IB_ACCESS_LOCAL_WRITE);
if (IS_ERR(hca->mem_h)) {
result = PTR_ERR(hca->mem_h);
TS_TRACE(MOD_LNX_SDP, T_TERSE, TRACE_FLOW_FATAL,
Index: infiniband/ulp/sdp/sdp_dev.h
===================================================================
--- infiniband/ulp/sdp/sdp_dev.h (revision 915)
+++ infiniband/ulp/sdp/sdp_dev.h (working copy)
@@ -149,7 +149,6 @@
struct ib_mr *mem_h; /* registered memory region */
u32 l_key; /* local key */
u32 r_key; /* remote key */
- u64 iova; /* address */
struct ib_fmr_pool *fmr_pool; /* fast memory for Zcopy */
struct sdev_hca_port *port_list; /* ports on this HCA */
struct sdev_hca *next; /* next HCA in the list */
More information about the general
mailing list