From patchwork Tue Feb 25 18:14:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 3718311 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 5C6AF9F35F for ; Tue, 25 Feb 2014 18:14:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8BFA6201F2 for ; Tue, 25 Feb 2014 18:14:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6DC84201ED for ; Tue, 25 Feb 2014 18:14:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753587AbaBYSOO (ORCPT ); Tue, 25 Feb 2014 13:14:14 -0500 Received: from mail-we0-f182.google.com ([74.125.82.182]:58406 "EHLO mail-we0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753577AbaBYSON (ORCPT ); Tue, 25 Feb 2014 13:14:13 -0500 Received: by mail-we0-f182.google.com with SMTP id u57so715603wes.41 for ; Tue, 25 Feb 2014 10:14:12 -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=mKusHJ1mq8lqw2IuPkU4PWPF/EwlteUN919ZujfI5/I=; b=EVmLz4WgVZX5UloVt4LBdpjZ70UMPXMsbT27q9AeL8nGVucKzzVv4fk6qir0QkiKM+ 5+iHrXvOVB7qXeH8PTbRnBjH6WJuJmbvWaK6EHfVy1CHHDzt7BY/l8L52Mcn0S5b88RK 3TQJBV23bXJs1pw7uTWPZSpNeCeSvEb620gR4/8qtXpORXEnYQfROI7LJpV+GXsGBoPI KFbZx0R8aerG7ZbepznJqMi/+MhGzwTsK3/YBHUe44FDBVLTJ60kOeUc6zY65yLHTb3h x7gzwAXgPneykD9qQrYyWrDARuMEO6a2vxaVdjQUZLXHsI5UazIdiA+dO1+5JTZz2/ln WxXA== X-Gm-Message-State: ALoCoQkZSe6pb9SAiCrHbhtXUys1FWfDjyO2nqwDAx7c+71En0QjQgYfH9nGPokMCyoNjNMjje8r X-Received: by 10.180.73.173 with SMTP id m13mr1260473wiv.52.1393352052301; Tue, 25 Feb 2014 10:14:12 -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 u6sm2367541wif.6.2014.02.25.10.14.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 10:14:11 -0800 (PST) Message-ID: <530CDD71.20705@dev.mellanox.co.il> Date: Tue, 25 Feb 2014 13:14:09 -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_sw_info_rcv.c: Fix sending PortInfo during lightsweep 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 OpenSM shouldn't send PortInfo MADs when receiving SWInfo during lightsweep or as a response to SET. Signed-off-by: Alex Netes Signed-off-by: Hal Rosenstock --- opensm/osm_sw_info_rcv.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/opensm/osm_sw_info_rcv.c b/opensm/osm_sw_info_rcv.c index 910e8f0..bcd13a9 100644 --- a/opensm/osm_sw_info_rcv.c +++ b/opensm/osm_sw_info_rcv.c @@ -439,6 +439,9 @@ void osm_si_rcv_process(IN void *context, IN void *data) /* we might get back a request for signaling change was detected */ sm->p_subn->force_heavy_sweep = TRUE; + if (p_context->light_sweep || p_context->set_method) + goto Exit; + si_rcv_get_sp0_info(sm, p_node); Exit: