From patchwork Wed Feb 20 19:02:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 2168761 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D287A3FD4E for ; Wed, 20 Feb 2013 19:02:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934191Ab3BTTCQ (ORCPT ); Wed, 20 Feb 2013 14:02:16 -0500 Received: from mail-ia0-f178.google.com ([209.85.210.178]:49530 "EHLO mail-ia0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933973Ab3BTTCQ (ORCPT ); Wed, 20 Feb 2013 14:02:16 -0500 Received: by mail-ia0-f178.google.com with SMTP id y26so7617547iab.9 for ; Wed, 20 Feb 2013 11:02:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:content-type:content-transfer-encoding:x-gm-message-state; bh=/Jz9pYckZeDDIAedjZGksizVjralfED/yeoNlTwWuOs=; b=ndJjRDuCRs1uvglz6jpHRsGJdj8KEO0B0lBerTjdoTPLUcHsLmv2IbWs2MQ8WJeAUe 8LSUFeFYrAZqRl7GawUys5dQyhihhmQ9Z4rUIseF05lHnJTRZBNv4VXHqLGnK8rCsvRJ bPbsBnf3vO+vXYZeCWnW1gir8VxZUyr7c4d5vSRgucr1jfb5HReZr/dOXj2SdFgHDWoZ g51EHPWs0KmwFsi+oTMVrxjgj5OIf0CjbT9Kz/YtcX1Ly5owGWlRyLQayMzt57/us2O0 Hk0JFT2ROVcIjBCTD+xZ+mcXSJuyIfzyeEDEc/U0rnVT5M82X2XyRuLuLcQIxKXnT2BL rvaw== X-Received: by 10.50.161.135 with SMTP id xs7mr10983715igb.3.1361386934501; Wed, 20 Feb 2013 11:02:14 -0800 (PST) Received: from [192.168.1.102] (c-71-234-225-85.hsd1.ct.comcast.net. [71.234.225.85]) by mx.google.com with ESMTPS id s8sm1323848igs.0.2013.02.20.11.02.12 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Feb 2013 11:02:13 -0800 (PST) Message-ID: <51251DB3.4090906@dev.mellanox.co.il> Date: Wed, 20 Feb 2013 14:02:11 -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: "Chu, Al" Subject: [PATCH] opensm/osm_qos_policy.c: Fix source & destination GUID policy check X-Gm-Message-State: ALoCoQkaQC+tF2fWqpBCnnlJDFIQ5ftZDu/SMJelgEzQrm8jwxIf4WdVCyaiIrAzQ+c89TTjqYsY Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org in __qos_policy_get_match_rule_by_params Signed-off-by: Hal Rosenstock --- -- 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_qos_policy.c b/opensm/osm_qos_policy.c index 796fb89..1afc289 100644 --- a/opensm/osm_qos_policy.c +++ b/opensm/osm_qos_policy.c @@ -640,19 +640,19 @@ static osm_qos_match_rule_t *__qos_policy_get_match_rule_by_params( */ if (cl_list_count(&p_qos_match_rule->source_group_list) && cl_list_count(&p_qos_match_rule->destination_group_list)) { - if (!__qos_policy_is_port_in_group_list(p_qos_policy, - p_src_physp, - &p_qos_match_rule-> - source_group_list) - && !__qos_policy_is_port_in_group_list(p_qos_policy, - p_dest_physp, - &p_qos_match_rule-> - destination_group_list)) - { + if (__qos_policy_is_port_in_group_list(p_qos_policy, + p_src_physp, + &p_qos_match_rule-> + source_group_list) + && __qos_policy_is_port_in_group_list(p_qos_policy, + p_dest_physp, + &p_qos_match_rule-> + destination_group_list)) + matched_by_sordguid = TRUE; + else { list_iterator = cl_list_next(list_iterator); continue; } - matched_by_sordguid = TRUE; } /* If a match rule has QoS classes, PR request HAS