[openib-general] APM support in openib stack

somenath somenath at veritas.com
Sun Oct 15 14:01:18 PDT 2006


Sean Hefty wrote:

>>now I am able to create connections with pri_path = path1, alt_path = path2
>>with the following change in the code.
>>
>>I specify the port_num and al_port_num before calling ib_modify_qp() to
>>change
>>state to RTR (earlier I was changing this when modifying state to
>>IB_QPS_INIT).
>>    
>>
>
>Doesn't ib_cm_init_qp_attr() set this for you?
>  
>

No, it doesn't. it returns me
attr_mask=        0x12d181
port=0x0 alt_port=0x0

other attribs are:

qp_state=0x2 cur_qp_state=0x0 path_mtu=0x4 path_mig_state=0x0
qkey=0x0 rq_psn=0x0 sq_psn=0x0 dest_qp_num=0x407
qp_access_flags=0x0 pkey_index=0x0 min_rnr_timer=0x0 port_num=0x0
timeout=0x0 retry_cnt=0x0 rnr_retry=0x0 alt_port_num=0x0
cap: max_send_wr=0x0 max_recv_wr=0x0 max_send_sge=0x0 max_recv_sge=0x0 
max_inline_d        ate=0x0


thanks, som.,


>  
>
>>( but it fails if I do this  qp_attr_mask  |= IB_QP_PORT, should it fail?)
>>    
>>
>
>This sets the primary physical port, which is only valid transitioning to INIT.
>
>- Sean
>  
>





More information about the general mailing list