From: Sasha Khapyorsky <sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org>
To: "Eli Dorfman (Voltaire)"
<dorfman.eli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Vladimir Koushnir
<vladimirk-smomgflXvOZWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH] opensm: bug in trap report for MC create(66) and delete(67) traps
Date: Wed, 3 Feb 2010 11:49:23 +0200 [thread overview]
Message-ID: <20100203094923.GQ26338@me> (raw)
In-Reply-To: <4B6832F8.9090200-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Hi Eli,
On 16:13 Tue 02 Feb , Eli Dorfman (Voltaire) wrote:
>
> In this case the GID in the data details is the MGID and
> not the source gid. So the SM gid should be taken as the source gid.
There the source port is detected in order P_Key matching check between
source and trap destination port.
So in case of 66,67 trap you will just check P_Key match between trap
destination port and SM port, which is likely useless due to fact of
already working SA communication between both.
What should be really checked in this case is a good question. At least
I cannot find some explicit explanations in the spec.
I would guess that the needed check is that trap destination port has MC
group's P_Key (as present in MCMember Record) value.
Thoughts?
> There was also an error in comparing the subnet prefix and guid due to
> host/network order mismatch.
Agree about this.
>
> Signed-off-by: Eli Dorfman <elid-smomgflXvOZWk0Htik3J/w@public.gmane.org>
> ---
> opensm/opensm/osm_inform.c | 19 +++++++++----------
> 1 files changed, 9 insertions(+), 10 deletions(-)
>
> diff --git a/opensm/opensm/osm_inform.c b/opensm/opensm/osm_inform.c
> index 8108213..5f48376 100644
> --- a/opensm/opensm/osm_inform.c
> +++ b/opensm/opensm/osm_inform.c
> @@ -460,18 +460,16 @@ static void match_notice_to_inf_rec(IN cl_list_item_t * p_list_item,
> }
> }
>
> - /* Check if there is a pkey match. o13-17.1.1 */
> - /* Check if the issuer of the trap is the SM. If it is, then the gid
> + /* In case of GID IN(64) or GID OUT(65) traps the source gid
> comparison should be done on the trap source (saved as the gid in the
> data details field).
> - If the issuer gid is not the SM - then it is the guid of the trap
> - source */
> - if ((cl_ntoh64(p_ntc->issuer_gid.unicast.prefix) ==
> - p_subn->opt.subnet_prefix)
> - && (cl_ntoh64(p_ntc->issuer_gid.unicast.interface_id) ==
> - p_subn->sm_port_guid))
> - /* The issuer is the SM then this is trap 64-67 - compare the gid
> - with the gid saved on the data details */
> + In all other cases the issuer gis is the trap source.
> + This is also the case for MC CREATE(66) and MC DELETE(67) where the
> + data details gid is MGID */
> + if (p_ntc->g_or_v.generic.trap_num == 64 ||
> + p_ntc->g_or_v.generic.trap_num == 65 )
ib_mad_notice_attr_t.g_or_v.generic.trap_num is encoded in network byte
order.
Sasha
> + /* The issuer of these traps is the SM so source_gid
> + is the gid saved on the data details */
> source_gid = p_ntc->data_details.ntc_64_67.gid;
> else
> source_gid = p_ntc->issuer_gid;
> @@ -495,6 +493,7 @@ static void match_notice_to_inf_rec(IN cl_list_item_t * p_list_item,
> goto Exit;
> }
>
> + /* Check if there is a pkey match. o13-17.1.1 */
> if (osm_port_share_pkey(p_log, p_src_port, p_dest_port) == FALSE) {
> OSM_LOG(p_log, OSM_LOG_DEBUG, "Mismatch by Pkey\n");
> /* According to o13-17.1.2 - If this informInfo does not have
> --
> 1.5.5
>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-02-03 9:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-02 14:13 [PATCH] opensm: bug in trap report for MC create(66) and delete(67) traps Eli Dorfman (Voltaire)
[not found] ` <4B6832F8.9090200-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-02-03 9:49 ` Sasha Khapyorsky [this message]
2010-02-04 17:43 ` [PATCH v2] " Eli Dorfman (Voltaire)
[not found] ` <4B6B0736.9010001-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-02-04 20:52 ` Hal Rosenstock
[not found] ` <f0e08f231002041252s4c2f9c66jaa43d25bb3c75cbc-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-05 14:18 ` Eli Dorfman
[not found] ` <694d48601002050618s2af59695xa36522c04027d8af-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-05 16:20 ` Hal Rosenstock
[not found] ` <f0e08f231002050820j1df2b425ia44203957257a6fb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-07 9:47 ` Eli Dorfman (Voltaire)
[not found] ` <4B6E8C46.5020807-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-02-08 13:26 ` Hal Rosenstock
[not found] ` <f0e08f231002080526k562b2082oa7376c50794c6f75-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-08 16:05 ` Eli Dorfman (Voltaire)
[not found] ` <4B70363C.7080101-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-02-08 19:06 ` Hal Rosenstock
2010-11-09 19:35 ` Sasha Khapyorsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100203094923.GQ26338@me \
--to=sashak-smomgflxvozwk0htik3j/w@public.gmane.org \
--cc=dorfman.eli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=vladimirk-smomgflXvOZWk0Htik3J/w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).