From patchwork Thu Oct 24 09:01:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 3091131 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6BE409F2B7 for ; Thu, 24 Oct 2013 09:02:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 71ED520378 for ; Thu, 24 Oct 2013 09:02:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5709E204A9 for ; Thu, 24 Oct 2013 09:02:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754103Ab3JXJCh (ORCPT ); Thu, 24 Oct 2013 05:02:37 -0400 Received: from mail-ea0-f178.google.com ([209.85.215.178]:43515 "EHLO mail-ea0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752036Ab3JXJCg (ORCPT ); Thu, 24 Oct 2013 05:02:36 -0400 Received: by mail-ea0-f178.google.com with SMTP id a15so1017114eae.23 for ; Thu, 24 Oct 2013 02:02:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EbaNpYL8IJav1CbWBClg5lKKl+oos9HxzHEgvmvi+n8=; b=J8wFZ2C/Q6swHGOYhE7wM8f960aJGTEGIdAUi32TlD1A+7v2HNUCWvAbO4qAFrhqEP 9yD+lwJZZPSk+EWtN0JWmVOfQPdCQ3Fa3N00JOJWTtbhKjNLSTRwhdd4VQnBPyuYUkp4 b2NjuDrRsii5bGrLDbouYXs3tX29qPVSnuYp1oIwn+54Vka7t5lCSL5DdBOAGDhpG+oQ apt7qufV9KyVmB8TjxK1IflCPOBGPaxdLlTpKnVd4f/uA2R7bE2cGBr7SLwX8F57GEwh R78ChUzzpLWJYeA9CEGYO8Ar8r1F8qdGBYBIRcIe1UoSwqOCETuQAMs41Y3hQZNmsvps /JTQ== X-Gm-Message-State: ALoCoQn1M//GmpMPbbs/GacSl7AXAk27qWhdQUxlsow+MZokyK9R93g6lqsdvDHzXjHbDKMEnERb X-Received: by 10.14.203.198 with SMTP id f46mr1199075eeo.111.1382605355772; Thu, 24 Oct 2013 02:02:35 -0700 (PDT) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id a6sm1691116eei.10.2013.10.24.02.02.35 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 24 Oct 2013 02:02:35 -0700 (PDT) From: Eli Cohen To: roland@kernel.org Cc: linux-rdma@vger.kernel.org, amirv@mellanox.com, ogerlitz@mellanox.com, yevgenyp@mellanox.com, Eli Cohen Subject: [PATCH for-next 3/4] IB/mlx5: Update opt param mask for RTS2RTS Date: Thu, 24 Oct 2013 12:01:02 +0300 Message-Id: <1382605263-6822-4-git-send-email-eli@mellanox.com> X-Mailer: git-send-email 1.8.4.1 In-Reply-To: <1382605263-6822-1-git-send-email-eli@mellanox.com> References: <1382605263-6822-1-git-send-email-eli@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP RTS to RTS transition should allow update of alternate path. Signed-off-by: Eli Cohen --- drivers/infiniband/hw/mlx5/qp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c index 2e4c465..5bcf579 100644 --- a/drivers/infiniband/hw/mlx5/qp.c +++ b/drivers/infiniband/hw/mlx5/qp.c @@ -1317,9 +1317,11 @@ static enum mlx5_qp_optpar opt_mask[MLX5_QP_NUM_STATE][MLX5_QP_NUM_STATE][MLX5_Q MLX5_QP_OPTPAR_RAE | MLX5_QP_OPTPAR_RWE | MLX5_QP_OPTPAR_RNR_TIMEOUT | - MLX5_QP_OPTPAR_PM_STATE, + MLX5_QP_OPTPAR_PM_STATE | + MLX5_QP_OPTPAR_ALT_ADDR_PATH, [MLX5_QP_ST_UC] = MLX5_QP_OPTPAR_RWE | - MLX5_QP_OPTPAR_PM_STATE, + MLX5_QP_OPTPAR_PM_STATE | + MLX5_QP_OPTPAR_ALT_ADDR_PATH, [MLX5_QP_ST_UD] = MLX5_QP_OPTPAR_Q_KEY | MLX5_QP_OPTPAR_SRQN | MLX5_QP_OPTPAR_CQN_RCV,