From patchwork Mon Feb 3 11:05:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Netes X-Patchwork-Id: 3569311 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 86AA59F382 for ; Mon, 3 Feb 2014 13:06:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C3754201C0 for ; Mon, 3 Feb 2014 13:06:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 118B1201B6 for ; Mon, 3 Feb 2014 13:06:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751686AbaBCNGz (ORCPT ); Mon, 3 Feb 2014 08:06:55 -0500 Received: from mail-wg0-f50.google.com ([74.125.82.50]:38068 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750967AbaBCNGy (ORCPT ); Mon, 3 Feb 2014 08:06:54 -0500 Received: by mail-wg0-f50.google.com with SMTP id l18so11917710wgh.5 for ; Mon, 03 Feb 2014 05:06:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=4Z/nkMG9ZsV4N+6ZLod/612bUmn0bgGmOGLks2nFB94=; b=YWgpFsRhycvWOQ3+0VNqwCmbWAqMTtLXySn2ASHb2eDhmwdgLvpIwYoQ8zGqVEqYSR kbl6Tngg22aGFCgfBonzKwrPRj+Ccy3OBxYw3pGzLMPeMXqSud0k8HJWmFB0QYK+6ARs n3naaQKhMZyXnwqs85wipXJFUJv+NXQNAXpmJ0bu/O0LMu3DU7mM0fGmBg23YsPJz249 Ssa6goo827nJYersMtEcu9xzhVd+Q2ihzuGH3NsVTwGCXgSDjS+MxNTkSSq9/6ZHgiHg ADnMHxsqwGdz+0PEVD1lUVv1o8gDGDAzdj7NENQyPO7MNnGCVYiGuvUlN8GRgNC6fAKe pKwA== X-Gm-Message-State: ALoCoQlNQ260SywOYjE0X5nPBUvvjADAG40yvUsGbO3h55bBgD6tAlvwY3eeFa7o3zfDBVczSIIW X-Received: by 10.180.164.174 with SMTP id yr14mr8653772wib.18.1391432813903; Mon, 03 Feb 2014 05:06:53 -0800 (PST) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id fz5sm25658947wic.11.2014.02.03.05.06.53 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 03 Feb 2014 05:06:53 -0800 (PST) From: Alex Netes To: hal@mellanox.com, linux-rdma@vger.kernel.org Cc: Alex Netes Subject: [PATCH 4/5] opensm/osm_port_info_rcv.c: Reread pkeys from SP0 if switch rebooted during a sweep Date: Mon, 3 Feb 2014 13:05:15 +0200 Message-Id: <1391425516-14462-4-git-send-email-alexne@mellanox.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1391425516-14462-1-git-send-email-alexne@mellanox.com> References: <1391425516-14462-1-git-send-email-alexne@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=-7.4 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 SM may miss switch reboot because of a long sweep. In that case it won't reread pkey tables from Switch Port 0. Signed-off-by: Alex Netes --- opensm/osm_port_info_rcv.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/opensm/osm_port_info_rcv.c b/opensm/osm_port_info_rcv.c index d813f1a..eb68dbf 100644 --- a/opensm/osm_port_info_rcv.c +++ b/opensm/osm_port_info_rcv.c @@ -796,7 +796,8 @@ void osm_pi_rcv_process(IN void *context, IN void *data) /* Get the tables on the physp. */ - if (p_physp->need_update) + if (p_physp->need_update || (p_node->sw && + p_node->sw->need_update)) pi_rcv_get_pkey_slvl_vla_tables(sm, p_node, p_physp); }