[ofa-general] Re: [PATCH 2/2] IB/mlx4: pass more data from user to kernel

Roland Dreier rdreier at cisco.com
Fri May 18 14:51:13 PDT 2007


 > I'm OK with what you say about RQ, but replacing sq_wqebb_count with log_sq_bb_per_wqe
 > looks like obfuscation to me: you still pass in 2 values, and the kernel does
 > not actually care about number of SQ WRs at all, it really only needs to look at
 > # of wqbbs.

Makes sense... how about:

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



More information about the general mailing list