From patchwork Tue Dec 2 10:26:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 5419161 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 8AEFCBEEA8 for ; Tue, 2 Dec 2014 10:27:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A3F172028D for ; Tue, 2 Dec 2014 10:27:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CE0102027D for ; Tue, 2 Dec 2014 10:27:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932079AbaLBK0z (ORCPT ); Tue, 2 Dec 2014 05:26:55 -0500 Received: from mail-wi0-f179.google.com ([209.85.212.179]:57043 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754445AbaLBK0n (ORCPT ); Tue, 2 Dec 2014 05:26:43 -0500 Received: by mail-wi0-f179.google.com with SMTP id ex7so20427897wid.12 for ; Tue, 02 Dec 2014 02:26:41 -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=Ymu3tafm4Po5TD/DAiJm+lhgGySzrceBPerUul+i9B8=; b=JV+fSKvFp2x4QkU1Mh9VvtYZ+IvzfKhMBY2IWWLvLdcPF1O/4UkZTiCBz6pQiXA/Ar eiHYhfU1RIBtk6GU2Lrn2G6X5ur413O82W1cRslSlyBbHsnhKOSiYCyKEVtXiso0Z8vW n8LS6z88T8WZ/zmichWl4/sgYxUpLDBhwsCL8PP+BbaZTgSRk4ziMggYKUh9ms1Pyb4Y 7bXz5owGm/cwcxX39hfBX/OMKL54+USADbgsvLGpKyHpNi9Lj+7UwYp66HrCDdwwP7Iw 0F0uvoLVb+JFuQ/aOxFBHqNh3N+OBnzfMAPnzwOl60/BjENSOuKwie0q5uyamLNZ6+ev IoWQ== X-Gm-Message-State: ALoCoQnWRdoEufF0HTiBqCuMSdTgpHbitsnUNPbfmDCFgBMAZv6P8yzSxEI1ZzUpJCSl/e0kqNOO X-Received: by 10.180.109.3 with SMTP id ho3mr92217577wib.39.1417516001662; Tue, 02 Dec 2014 02:26:41 -0800 (PST) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id bj7sm31303084wjc.33.2014.12.02.02.26.40 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 02 Dec 2014 02:26:41 -0800 (PST) From: Eli Cohen X-Google-Original-From: Eli Cohen To: davem@davemloft.net Cc: roland@kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, ogerlitz@mellanox.com, amirv@mellanox.com, Eli Cohen Subject: [PATCH net-next 5/9] net/mlx5_core: Print resource number on QP/SRQ async events Date: Tue, 2 Dec 2014 12:26:15 +0200 Message-Id: <1417515979-22418-6-git-send-email-eli@mellanox.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1417515979-22418-1-git-send-email-eli@mellanox.com> References: <1417515979-22418-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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Useful for debugging purposes. Signed-off-by: Eli Cohen --- drivers/net/ethernet/mellanox/mlx5/core/eq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eq.c b/drivers/net/ethernet/mellanox/mlx5/core/eq.c index dfd3ad0a39c1..ab684463780b 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eq.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eq.c @@ -225,8 +225,8 @@ static int mlx5_eq_int(struct mlx5_core_dev *dev, struct mlx5_eq *eq) case MLX5_EVENT_TYPE_WQ_INVAL_REQ_ERROR: case MLX5_EVENT_TYPE_WQ_ACCESS_ERROR: rsn = be32_to_cpu(eqe->data.qp_srq.qp_srq_n) & 0xffffff; - mlx5_core_dbg(dev, "event %s(%d) arrived\n", - eqe_type_str(eqe->type), eqe->type); + mlx5_core_dbg(dev, "event %s(%d) arrived on resource 0x%x\n", + eqe_type_str(eqe->type), eqe->type, rsn); mlx5_rsc_event(dev, rsn, eqe->type); break;