From patchwork Thu Nov 6 15:52:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 5244581 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3AF5DC11AC for ; Thu, 6 Nov 2014 15:53:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 59354200F3 for ; Thu, 6 Nov 2014 15:53:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6F46D200F4 for ; Thu, 6 Nov 2014 15:53:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751264AbaKFPxD (ORCPT ); Thu, 6 Nov 2014 10:53:03 -0500 Received: from mail-wi0-f174.google.com ([209.85.212.174]:65513 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750970AbaKFPxC (ORCPT ); Thu, 6 Nov 2014 10:53:02 -0500 Received: by mail-wi0-f174.google.com with SMTP id d1so1906737wiv.13 for ; Thu, 06 Nov 2014 07:53:01 -0800 (PST) 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=JK/TiQlRzzIXHxL9tHTFmAMYDXR0E/p0o8hZ1aYoAjE=; b=AHnKGt1kp6v60LqzdjJd7NJWJPiajG5gZ61wJNgyoHCRhmnSPcA0AZi4FKqVruNx43 WUMxradwPyarCkaR5WZSnX6p5mK/edgiv09OCqSSj0WEcOZkrH6l7UNjmSscxUjtoTuO oCqYZXkcznaPe+gMPJbARIJNn9Ncj4K58NTe6ms5tDgnjwSW0dR2pM4YGjYRyowh2nns 7OW2qsWzWo7nrer8s0sUVHi4P+2NOABc+KPCOsZpPL0ecP+OXaEQ4rMajZyZAPGQhkR6 qOczzpZdu05QGAiNkowd2YqzChQy9bPwcUGd2eDE6awpoilJaHhEsb6j8bwEH7HStOHN rJRQ== X-Gm-Message-State: ALoCoQngsACNCXTqlcwNFT53zIx8jStnh5BRMcpaoy0jCvRrDBnm3j6IKJ1HBAQ9iNzlc+QqR09m X-Received: by 10.194.89.161 with SMTP id bp1mr7178906wjb.114.1415289181238; Thu, 06 Nov 2014 07:53:01 -0800 (PST) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id x13sm8299956wjw.18.2014.11.06.07.53.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 06 Nov 2014 07:53:00 -0800 (PST) From: Eli Cohen X-Google-Original-From: Eli Cohen To: roland@kernel.org Cc: linux-rdma@vger.kernel.org, ogerlitz@mellanox.com, richardg@mellanox.com, yevgenyp@mellanox.com, Eli Cohen Subject: [PATCH for-next 5/5] mlx5_core: Update mlx5_command_str with DC commands Date: Thu, 6 Nov 2014 17:52:39 +0200 Message-Id: <1415289159-4376-6-git-send-email-eli@mellanox.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1415289159-4376-1-git-send-email-eli@mellanox.com> References: <1415289159-4376-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.5 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 Add support for DC commands and make a few other minor fixes. Signed-off-by: Eli Cohen --- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c index 368c6c5ea014..37786ea6ad6c 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c @@ -289,10 +289,10 @@ const char *mlx5_command_str(int command) return "TEARDOWN_HCA"; case MLX5_CMD_OP_ENABLE_HCA: - return "MLX5_CMD_OP_ENABLE_HCA"; + return "ENABLE_HCA"; case MLX5_CMD_OP_DISABLE_HCA: - return "MLX5_CMD_OP_DISABLE_HCA"; + return "DISABLE_HCA"; case MLX5_CMD_OP_QUERY_PAGES: return "QUERY_PAGES"; @@ -390,6 +390,21 @@ const char *mlx5_command_str(int command) case MLX5_CMD_OP_RESIZE_SRQ: return "RESIZE_SRQ"; + case MLX5_CMD_OP_CREATE_DCT: + return "CREATE_DCT"; + + case MLX5_CMD_OP_DESTROY_DCT: + return "DESTROY_DCT"; + + case MLX5_CMD_OP_DRAIN_DCT: + return "DRAIN_DCT"; + + case MLX5_CMD_OP_QUERY_DCT: + return "QUERY_DCT"; + + case MLX5_CMD_OP_ARM_DCT_FOR_KEY_VIOLATION: + return "ARM_DCT"; + case MLX5_CMD_OP_ALLOC_PD: return "ALLOC_PD"; @@ -415,7 +430,7 @@ const char *mlx5_command_str(int command) return "DEALLOC_XRCD"; case MLX5_CMD_OP_ACCESS_REG: - return "MLX5_CMD_OP_ACCESS_REG"; + return "ACCESS_REG"; default: return "unknown command opcode"; }