Hello Roland,

>>> he queue pairs successfully switch from RESET to INIT, but miserably fail 
>>> to switch from INIT to RTR with an EINVAL error code.
>> 
>> On IBoE, are you passing in a path with a global routing info, ie a GID?
> 
> for example, what is the value of
> 
>    qp_attr.ah_attr.is_global
> 
> that you pass into modify_qp for the INIT->RTR transition?

I use 0 for is_global, as i am only using a local subnet. Here is my qp_attr 
configuration for the switch to INIT -> RTR :

  qp_attr . qp_state              = IBV_QPS_RTR;
  qp_attr . path_mtu              = IBV_MTU_2048;
  qp_attr . rq_psn                = 0;  
  qp_attr . max_dest_rd_atomic    = 0x10; 
  qp_attr . min_rnr_timer         = 12;  
  qp_attr . ah_attr.is_global     = 0; 
  qp_attr . ah_attr.dlid          = remoteId;
  qp_attr . ah_attr.sl            = 0; 
  qp_attr . ah_attr.src_path_bits = 0;   
  qp_attr . ah_attr.port_num      = _interface . port () . id ();
  qp_attr . dest_qp_num           = remoteNumber;

remoteId, remoteNumber and _interface . port () . id () are runtime values 
returned by the peer QP and the interface.

Xavier

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to