> struct mlx4_ib_create_qp {
 >      __u64   buf_addr;
 >      __u64   db_addr;
 >      __u32   rq_wqe_count;
 >      __u32   rq_wqe_shift;
 >      __u32   sq_wqebb_count;
 >      __u32   sq_wqebb_shift;
 > };

Actually, on second thought maybe it's cleaner just to pass the SQ
information from user->kernel?  There's not really anything that can
go wrong with RQs, and it's probably safer not to have the same info
passed in two different ways.

maybe something like

struct mlx4_ib_create_qp {
        __u64   buf_addr;
        __u64   db_addr;
        __u8    log_sq_stride;  
        __u8    log_sq_bb_per_wqe;
        __u8    reserved[6];
};

and then use the RQ and SQ sizes and number of gather entries from the
normal part of the command to figure the rest out?

Any opinion on which is preferable?

 - R.
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to