From patchwork Wed Nov 6 17:48:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 3148531 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 79775BEEB2 for ; Wed, 6 Nov 2013 17:48:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 799D220465 for ; Wed, 6 Nov 2013 17:48:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CE3F520459 for ; Wed, 6 Nov 2013 17:48:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754515Ab3KFRsN (ORCPT ); Wed, 6 Nov 2013 12:48:13 -0500 Received: from mail-ee0-f54.google.com ([74.125.83.54]:39766 "EHLO mail-ee0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751223Ab3KFRsN (ORCPT ); Wed, 6 Nov 2013 12:48:13 -0500 Received: by mail-ee0-f54.google.com with SMTP id c50so2730894eek.13 for ; Wed, 06 Nov 2013 09:48:11 -0800 (PST) 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=ob5n7aTOGziOYll1uFQuCPh15lwBGiU2qS0BhzxwvaU=; b=MjcgZzYFhZbzZbhrFT4Bq9GFiPVY3Es9Oa9zAyGIFtQgZppxZJLBtY1kvKq+tiNq4g UiLQsMpMituFo42BCpyMxQP7uW1CpEjubxnp51DvwsaRl6j397a0ECieqmWZVFZRe8rl jWq4ZYPINZ3ZlpvEITcEkabORBO/LEm9DGFOjytuXn+c5HuQxBanN/+emHIPCwrpcJ2e n+Usfu+xCOZfbBQNZP+xKcb6H1OEL/YIjR/HtdnZv006qPabkQ/BtGWeqjJoBTHZyJmw T2UD57xQ83t8YjZjM6bOeBUVHw4T8I1OZR9thugUZXOZVS0jIGzffeIpMZanWua2BgrB YNEA== X-Gm-Message-State: ALoCoQlxqp2f0GqzPSWMp3Bm8jTHyK6el9QJFf0vT4VmZ7wVHa412LBL/CdpL8dCAjquxvppuAah X-Received: by 10.14.89.7 with SMTP id b7mr4982974eef.10.1383760091522; Wed, 06 Nov 2013 09:48:11 -0800 (PST) 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 z1sm50616500eeo.14.2013.11.06.09.48.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Nov 2013 09:48:11 -0800 (PST) Message-ID: <527A80D7.8070706@dev.mellanox.co.il> Date: Wed, 06 Nov 2013 12:48:07 -0500 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: Alex Netes Subject: [PATCH opensm] osm_drop_mgr.c: fix timeouts on Get Pkey from ext switch ports 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 From: Alex Netes In case SM doesn't recieve PkeyTable GetResp from external switch ports, it should clear the PkeyTable GetResp counter and set physp->need_update = 2, in order to resend PkeyTable Get on the next sweep. Signed-off-by: Alex Netes Signed-off-by: Hal Rosenstock --- opensm/osm_drop_mgr.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/opensm/osm_drop_mgr.c b/opensm/osm_drop_mgr.c index 7e7c7f6..cb685cb 100644 --- a/opensm/osm_drop_mgr.c +++ b/opensm/osm_drop_mgr.c @@ -582,6 +582,8 @@ void osm_drop_mgr_process(osm_sm_t * sm) p_physp = osm_node_get_physp_ptr(p_node, port_num); if (!p_physp || p_physp->pkeys.rcv_blocks_cnt == 0) continue; + p_physp->pkeys.rcv_blocks_cnt = 0; + p_physp->need_update = 2; sm->p_subn->subnet_initialization_error = TRUE; port_guid = osm_physp_get_port_guid(p_physp); p_port = osm_get_port_by_guid(sm->p_subn, port_guid);