From patchwork Sun Jun 1 12:41:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 4278011 X-Patchwork-Delegate: hal@mellanox.com 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 88FA4BEEA7 for ; Sun, 1 Jun 2014 12:41:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF08420351 for ; Sun, 1 Jun 2014 12:41:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C682620340 for ; Sun, 1 Jun 2014 12:41:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756899AbaFAMll (ORCPT ); Sun, 1 Jun 2014 08:41:41 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:53870 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752130AbaFAMll (ORCPT ); Sun, 1 Jun 2014 08:41:41 -0400 Received: by mail-we0-f172.google.com with SMTP id k48so4008320wev.31 for ; Sun, 01 Jun 2014 05:41:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=Hd3AmSMLXRcUkWVz21MRdwJsVNA5cqn1ajmXgs/iy4w=; b=fKGglHzSUdWkNyOB+ayQSwAzetMM2vMiYXx2m1G/Z1U18DsKDNbVE7ZxqM5StLCstu mlBlFHQ9k9eMBt0QUcHCmc0MfXnCNrjbCYjT71tNWUUgYbV9vZpDKhMzvGwGa7fuaSC0 DaAlEDHNTG7FAhthNAgCWkMQPNb0Kd+A5WI4KhShaOhgTic6Yf/lHhtUbGFdhzuuNmAQ m9ld2LzWwFKwNjetjNnYsTfcniJHLpd3vgdE/+GNxTBheiizM5eaXYL/scbJogLZIvhy QCzDLekthiLlLyoYLIr9NvFErVSQhh6JyO3gfpMpH/sfX060aKhJO+736zPuNXbD47zn OkMA== X-Gm-Message-State: ALoCoQldToA+Uzu+7l28s2fIfuL1S9Hzro6snS61z16qrWAe5xySwP5WOXgPmKt6YGMC56Yp1lmf X-Received: by 10.180.85.163 with SMTP id i3mr14526252wiz.14.1401626499682; Sun, 01 Jun 2014 05:41:39 -0700 (PDT) Received: from [192.168.1.102] (c-98-229-118-119.hsd1.ma.comcast.net. [98.229.118.119]) by mx.google.com with ESMTPSA id kr6sm26639541wjb.16.2014.06.01.05.41.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 01 Jun 2014 05:41:38 -0700 (PDT) Message-ID: <538B1F80.7010905@dev.mellanox.co.il> Date: Sun, 01 Jun 2014 08:41:36 -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: Tomer Cohen Subject: [PATCH opensm] osm_sa_path_record.c: Fix misleading error messages during sweep 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 From: Tomer Cohen PathQuery is received during heavy-sweep caused by just rebooted node. The PathQuery is received for the new node during discovery stage when no LID is still assigned to the node. Fix: change from using OSM_LOG_ERROR to OSM_LOG_DEBUG for ERR 1F20 and 1F21 Signed-off-by: Tomer Cohen Signed-off-by: Hal Rosenstock --- opensm/osm_sa_path_record.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opensm/osm_sa_path_record.c b/opensm/osm_sa_path_record.c index aaf2f2f..a915636 100644 --- a/opensm/osm_sa_path_record.c +++ b/opensm/osm_sa_path_record.c @@ -1113,7 +1113,7 @@ static void pr_rcv_get_port_pair_paths(IN osm_sa_t * sa, &src_lid_min_ho, &src_lid_max_ho); if (src_lid_min_ho == 0) { - OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 1F20:" + OSM_LOG(sa->p_log, OSM_LOG_DEBUG, "Obtained source LID of 0. No such LID possible " "(%s port %d)\n", p_src_alias_guid->p_base_port->p_node->print_desc, @@ -1122,7 +1122,7 @@ static void pr_rcv_get_port_pair_paths(IN osm_sa_t * sa, } if (dest_lid_min_ho == 0) { - OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 1F21:" + OSM_LOG(sa->p_log, OSM_LOG_DEBUG, "Obtained destination LID of 0. No such LID possible " "(%s port %d)\n", p_dest_alias_guid->p_base_port->p_node->print_desc,