From patchwork Fri Sep 21 21:18:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 1493561 X-Patchwork-Delegate: ira.weiny@intel.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3DBA83FE65 for ; Fri, 21 Sep 2012 21:18:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932783Ab2IUVSs (ORCPT ); Fri, 21 Sep 2012 17:18:48 -0400 Received: from prdiron-1.llnl.gov ([128.15.143.171]:22083 "EHLO prdiron-1.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932378Ab2IUVSs (ORCPT ); Fri, 21 Sep 2012 17:18:48 -0400 X-Attachments: Received: from eris.llnl.gov (HELO trebuchet.chaos) ([128.115.7.7]) by prdiron-1.llnl.gov with SMTP; 21 Sep 2012 14:18:47 -0700 Date: Fri, 21 Sep 2012 14:18:46 -0700 From: Ira Weiny To: "linux-rdma@vger.kernel.org" Subject: [PATCH] infiniband-diags: fix bug with loop ports where SMP queries are needed Message-Id: <20120921141846.c8b845600aeddcbf8765dd4d@llnl.gov> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.18.9; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Ira Weiny --- src/perfquery.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/perfquery.c b/src/perfquery.c index 605ece9..df8556b 100644 --- a/src/perfquery.c +++ b/src/perfquery.c @@ -659,7 +659,7 @@ static int process_opt(void *context, int ch, char *optarg) int main(int argc, char **argv) { - int mgmt_classes[2] = { IB_SA_CLASS, IB_PERFORMANCE_CLASS }; + int mgmt_classes[3] = { IB_SMI_CLASS, IB_SA_CLASS, IB_PERFORMANCE_CLASS }; ib_portid_t portid = { 0 }; int mask = 0xffff; uint64_t ext_mask = 0xffffffffffffffffULL; @@ -758,7 +758,7 @@ int main(int argc, char **argv) mask = ext_mask; } - srcport = mad_rpc_open_port(ibd_ca, ibd_ca_port, mgmt_classes, 2); + srcport = mad_rpc_open_port(ibd_ca, ibd_ca_port, mgmt_classes, 3); if (!srcport) IBERROR("Failed to open '%s' port '%d'", ibd_ca, ibd_ca_port);