From patchwork Wed Jun 12 10:33:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 2709261 X-Patchwork-Delegate: hal@mellanox.com 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 BBC4B9F1E2 for ; Wed, 12 Jun 2013 10:33:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD4AD20234 for ; Wed, 12 Jun 2013 10:33:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6700920233 for ; Wed, 12 Jun 2013 10:33:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755860Ab3FLKdJ (ORCPT ); Wed, 12 Jun 2013 06:33:09 -0400 Received: from mail-bk0-f47.google.com ([209.85.214.47]:44663 "EHLO mail-bk0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752343Ab3FLKdI (ORCPT ); Wed, 12 Jun 2013 06:33:08 -0400 Received: by mail-bk0-f47.google.com with SMTP id jg1so4219913bkc.6 for ; Wed, 12 Jun 2013 03:33:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=B7GzyZhiVn495a+1Ilf/Lp9lecc1537P8lMp75pZt+8=; b=YnGDO6I8iwVfzyiGnrgLpGFSIjBALt1Mp8Ni5p3kxMY4Jf+e4/MhccdlI+RzYL20EU 1zS1cpEEvL6hicdhgSNf+DHq576p4krQ5OarvcSrMnisoQXBkaagaN2b/trIus/2LJ6L EogmYIiKK0a8d/Bq+nCRGzuffl/ynPecsr6pS+5E6WJNUx1ohDK4PVk4pjMuRbUN0+7b hMrJWUsgn455S+Q5SATpFohObheIzLpa/+xuORPK6/F5fCU5MPqHesAPRx7iBrK1173J pHyBE/zyNKN1oF7ZLBqabCYdsV4NqiBWp4Iqk3JfBTLHKDAD9/+OTKGywcTPsK3zLa93 FQpQ== X-Received: by 10.204.241.9 with SMTP id lc9mr2858565bkb.63.1371033186598; Wed, 12 Jun 2013 03:33:06 -0700 (PDT) Received: from [192.168.1.102] (c-71-234-225-85.hsd1.ct.comcast.net. [71.234.225.85]) by mx.google.com with ESMTPSA id da16sm7328846bkb.2.2013.06.12.03.33.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 03:33:05 -0700 (PDT) Message-ID: <51B84E5F.3090802@dev.mellanox.co.il> Date: Wed, 12 Jun 2013 06:33:03 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" CC: Dan Ben-Yosef Subject: [PATCH] osm_sa_sminfo_record.c: fix sminfo sa query returns all sminfo records when filtering by LID in osm_smir_rcv_process X-Gm-Message-State: ALoCoQkFOtyyqCF/yyv69vN5Mt7CdqOd5EE3gPHV/S3Von10uvzE6ZJFyegALKCI3ZNUy9DcI9/D 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.1 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 From fefee6db5955554ab6cc66da9aef1084f14d7006 Mon Sep 17 00:00:00 2001 From: Dan Ben Yosef Date: Wed, 5 Jun 2013 14:52:01 +0300 Subject: [PATCH] osm_sa_sminfo_record.c: fix sminfo sa query returns all sminfo records when filtering by LID in osm_smir_rcv_process Signed-off-by: Dan Ben Yosef --- opensm/osm_sa_sminfo_record.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opensm/osm_sa_sminfo_record.c b/opensm/osm_sa_sminfo_record.c index f6bd9be..f73b433 100644 --- a/opensm/osm_sa_sminfo_record.c +++ b/opensm/osm_sa_sminfo_record.c @@ -310,7 +310,7 @@ void osm_smir_rcv_process(IN void *ctx, IN void *data) OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 280A: " "No remote SM for GUID 0x%016" PRIx64 "\n", cl_ntoh64(port_guid)); - } else { + } else if (!p_port) { /* Go over all other known (remote) SMs */ cl_qmap_apply_func(&sa->p_subn->sm_guid_tbl, sa_smir_by_comp_mask_cb, &context);