From patchwork Wed Oct 28 00:58:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 7505901 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D70DEBEEA4 for ; Wed, 28 Oct 2015 00:59:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1B926208FC for ; Wed, 28 Oct 2015 00:59:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4BD80208ED for ; Wed, 28 Oct 2015 00:59:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751558AbbJ1A7I (ORCPT ); Tue, 27 Oct 2015 20:59:08 -0400 Received: from [193.47.165.129] ([193.47.165.129]:58754 "EHLO mellanox.co.il" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754117AbbJ1A7G (ORCPT ); Tue, 27 Oct 2015 20:59:06 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from eli@mellanox.com) with ESMTPS (AES256-SHA encrypted); 28 Oct 2015 02:58:41 +0200 Received: from x-vnc01.mtx.labs.mlnx (x-vnc01.mtx.labs.mlnx [10.12.150.16]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id t9S0weLS021092; Wed, 28 Oct 2015 02:58:40 +0200 Received: from x-vnc01.mtx.labs.mlnx (localhost.localdomain [127.0.0.1]) by x-vnc01.mtx.labs.mlnx (8.14.4/8.14.4) with ESMTP id t9S0weJK111327; Wed, 28 Oct 2015 02:58:40 +0200 Received: (from eli@localhost) by x-vnc01.mtx.labs.mlnx (8.14.4/8.14.4/Submit) id t9S0we9A111326; Wed, 28 Oct 2015 02:58:40 +0200 From: Eli Cohen To: dledford@redhat.com Cc: linux-rdma@vger.kernel.org, ogerlitz@mellanox.com, eranbe@mellanox.com, cl@linux.com, Eli Cohen Subject: [PATCH 1/2] IB/mlx5: Add debug print to signify if block multicast is used Date: Wed, 28 Oct 2015 02:58:34 +0200 Message-Id: <1445993915-111262-2-git-send-email-eli@mellanox.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1445993915-111262-1-git-send-email-eli@mellanox.com> References: <1445993915-111262-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, 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 Signed-off-by: Eli Cohen --- drivers/infiniband/hw/mlx5/qp.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c index 6f521a3..b80b2bd 100644 --- a/drivers/infiniband/hw/mlx5/qp.c +++ b/drivers/infiniband/hw/mlx5/qp.c @@ -1033,6 +1033,10 @@ static int create_qp_common(struct mlx5_ib_dev *dev, struct ib_pd *pd, qp->mqp.event = mlx5_ib_qp_event; + /* QP related debug prints go here */ + if (qp->flags & MLX5_IB_QP_BLOCK_MULTICAST_LOOPBACK) + mlx5_ib_dbg(dev, "QP 0x%x will block multicast\n", qp->mqp.qpn); + return 0; err_create: