> @@ -349,6 +349,9 @@ int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, > struct ib_udata *udata) > int outst_cqe; > int err; > > + if (dev->dev->caps.fw_ver < MLX4_FW_VER_RESIZE_CQ) > + return -ENOSYS;
This is kind of dopey, isn't it? Seems cleaner just to leave the resize_cq method unset if the hardware doesn't support it; then the core takes care of this check for us. - R. _______________________________________________ general mailing list general@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general