> +enum {
 > +    MLX4_MAX_DIRECT_CQ_SIZE = 2 * PAGE_SIZE
 > +};

If you're going to introduce this, please replace the existing use of
2 * PAGE_SIZE with the constant.

 > +enum {
 > +    MLX4_CQ_ENTRY_SIZE = 0x20
 > +};

Just use sizeof (struct mlx4_cqe) the way the rest of the code does.

 > +    cq->is_kernel = !context;

I don't think there's any need for this new member... we can just test
cq->ibcq->uobject the way the rest of the existing code does.

 > +    context = kzalloc(sizeof *context, GFP_KERNEL);
 > +    memset(context, 0, sizeof *context);

no point in doing this memset if you use kzalloc().

 - 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