[ofa-general] librdmacm_to_2_6_20.patch

Bernd Schubert bs at q-leap.de
Fri Jun 22 05:24:42 PDT 2007


Hi,

there are patches to make rdma of ofed-1.1 compatible with 2.6.20 
(https://svn.openfabrics.org/svn/openib/gen2/trunk/ofed/patches/user_fixes/
librdmacm_to_2_6_20.patch and perftest_to_2_6_20.patch).


Unfortunately, the patches don't work well. There are hunks that don't 
apply (thats easy to fix) and now there seems to be missing something:

dapl/openib_cma/dapl_ib_cm.c: In function `dapli_route_resolve':
dapl/openib_cma/dapl_ib_cm.c:156: warning: implicit declaration of function `rdma_get_option'
dapl/openib_cma/dapl_ib_cm.c:156: error: `RDMA_PROTO_IB' undeclared (first use in this function)
dapl/openib_cma/dapl_ib_cm.c:156: error: (Each undeclared identifier is reported only once
dapl/openib_cma/dapl_ib_cm.c:156: error: for each function it appears in.)
dapl/openib_cma/dapl_ib_cm.c:177: warning: implicit declaration of function `rdma_set_option'
dapl/openib_cma/dapl_ib_cm.c: In function `dapli_req_recv':
dapl/openib_cma/dapl_ib_cm.c:262: error: structure has no member named `private_data_len'
dapl/openib_cma/dapl_ib_cm.c:264: error: structure has no member named `private_data'
dapl/openib_cma/dapl_ib_cm.c:265: error: structure has no member named `private_data_len'
dapl/openib_cma/dapl_ib_cm.c:268: error: structure has no member named `private_data_len'
dapl/openib_cma/dapl_ib_cm.c: In function `dapli_cm_active_cb':
dapl/openib_cma/dapl_ib_cm.c:380: error: structure has no member named `private_data'
dapl/openib_cma/dapl_ib_cm.c: In function `dapli_cm_passive_cb':
dapl/openib_cma/dapl_ib_cm.c:429: error: structure has no member named `private_data'
make[3]: *** [dapl_udapl_libdaplcma_la-dapl_ib_cm.lo] Error 1


The entrire rdma_set_option() function and its declaration are removed 
by librdmacm_to_2_6_20. So what to do with the call in 
dapl_ib_cm.c:177?

        /* Get default connect request timeout values, and adjust */
        ret = rdma_get_option(conn->cm_id, RDMA_PROTO_IB, IB_CM_REQ_OPTIONS,
                              (void*)&req_opt, &optlen);

RDMA_PROTO_IB was also removed by the patch.

error: structure has no member named `private_data_len': This is easy to fix.


Is there a more recent working version of the patch available or can you 
give me at least some hints what to do with the rdma_get_option() call?

Thanks in advance,
Bernd


-- 
Bernd Schubert
Q-Leap Networks GmbH



More information about the general mailing list