[openib-general] [PATCH] [mthca] Allow the following QP state transition : reset --> reset
Vladimir Sokolovsky
vlad at dev.mellanox.co.il
Wed Jan 10 06:40:54 PST 2007
The patch was added to kernel_patches/fixes (ofed_1_2).
Regards,
Vladimir
Dotan Barak wrote:
> Allow the following QP state transition : reset --> reset.
>
> Signed-off-by: Dotan Barak <dotanb at mellanox.co.il>
> ---
>
> Index: gen2_devel_kernel/drivers/infiniband/hw/mthca/mthca_qp.c
> ===================================================================
> --- gen2_devel_kernel.orig/drivers/infiniband/hw/mthca/mthca_qp.c 2007-01-08 16:14:25.000000000 +0200
> +++ gen2_devel_kernel/drivers/infiniband/hw/mthca/mthca_qp.c 2007-01-09 11:34:42.000000000 +0200
> @@ -573,6 +573,11 @@ int mthca_modify_qp(struct ib_qp *ibqp,
> goto out;
> }
>
> + if (cur_state == new_state && cur_state == IB_QPS_RESET) {
> + err = 0;
> + goto out;
> + }
> +
> if ((attr_mask & IB_QP_PKEY_INDEX) &&
> attr->pkey_index >= dev->limits.pkey_table_len) {
> mthca_dbg(dev, "P_Key index (%u) too large. max is %d\n",
>
>
>
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
>
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
>
More information about the general
mailing list