[openib-general] Re: the QP attribute have a double defenition of the QP primary port

Roland Dreier rdreier at cisco.com
Thu May 4 09:57:17 PDT 2006


    Dotan> In the IB spec: in the transition RESET->INIT, the primary
    Dotan> port is required.  in the transition INIT->RTR, the address
    Dotan> vector is required for connected QPs.

    Dotan> In the driver: in the transition RESET->INIT, the primary
    Dotan> port is required (the mask IBV_QP_PORT is required) in the
    Dotan> transition INIT->RTR, the port number is one of the
    Dotan> attributes of the address vector (which mean there are 2
    Dotan> attributes which define the QP port number).

    Dotan> I think that there are 2 problems with this implementation:
    Dotan> 1) the user can use two different values for those port
    Dotan> numbers (in mthca driver, the port number that was defined
    Dotan> in the address vector will be used) 2) the user can define
    Dotan> / change the QP port number in the transition INIT->RTR
    Dotan> (which means a IB spec violation)

Probably the low-level drivers should ignore the port number in the
primary address vector for INIT->RTR.  That would fix both problems, right?

 - R.



More information about the general mailing list