[ofa-general][PATCH v1 2/2] mlx4: Default value for automatic completion vector selection

Roland Dreier rdreier at cisco.com
Fri May 23 10:44:30 PDT 2008


 > When the vector number passed to mlx4_cq_alloc is MLX4_ANY_VECTOR (0xff),
 > the driver selects the completion vector that has the least CQs attached
 > to it and attaches the CQ to the chosen vector.

Ummm... how could an app/ULP use this sanely?  Have a huge switch
statement to choose MLX4_ANY_VECTOR / EHCA_ANY_VECTOR / FOOHCA_ANY_VECTOR?

We need something generic like IB_CQ_VECTOR_LEAST_ATTACHED that
specifies the policy in a driver-independent way.

 - R.



More information about the general mailing list