From: Sasha Khapyorsky <sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org>
To: Hal Rosenstock <hnrose-Wuw85uim5zDR7s880joybQ@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] opensm/osm_sa.c: In osm_sa_respond, only fill in attr offset if RMPP method
Date: Wed, 9 Jun 2010 08:43:41 +0300 [thread overview]
Message-ID: <20100609054341.GK28549@me> (raw)
In-Reply-To: <20100603134209.GA12225-Wuw85uim5zDR7s880joybQ@public.gmane.org>
Hi Hal,
On 09:42 Thu 03 Jun , Hal Rosenstock wrote:
>
> Signed-off-by: Hal Rosenstock <hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> ---
> opensm/opensm/osm_sa.c | 12 ++++++++++--
> 1 files changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/opensm/opensm/osm_sa.c b/opensm/opensm/osm_sa.c
> index 0aca81f..8325632 100644
> --- a/opensm/opensm/osm_sa.c
> +++ b/opensm/opensm/osm_sa.c
> @@ -3,6 +3,7 @@
> * Copyright (c) 2002-2010 Mellanox Technologies LTD. All rights reserved.
> * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
> * Copyright (c) 2008 Xsigo Systems Inc. All rights reserved.
> + * Copyright (c) 2010 HNR Consulting. All rights reserved.
> *
> * This software is available to you under a choice of one of two
> * licenses. You may choose to be licensed under the terms of the GNU
> @@ -454,8 +455,15 @@ void osm_sa_respond(osm_sa_t *sa, osm_madw_t *madw, size_t attr_size,
> /* C15-0.1.5 - always return SM_Key = 0 (table 185 p 884) */
> resp_sa_mad->sm_key = 0;
>
> - /* Fill in the offset (paylen will be done by the rmpp SAR) */
> - resp_sa_mad->attr_offset = num_rec ? ib_get_attr_offset(attr_size) : 0;
> +#ifdef DUAL_SIDED_RMPP
> + if (resp_sa_mad->method == IB_MAD_METHOD_GETTABLE_RESP ||
> + resp_sa_mad->method == IB_MAD_METHOD_GETMULTI_RESP) {
> +#else
> + if (resp_sa_mad->method == IB_MAD_METHOD_GETTABLE_RESP) {
> +#endif
> + /* Fill in the offset (paylen will be done by the rmpp SAR) */
> + resp_sa_mad->attr_offset = num_rec ? ib_get_attr_offset(attr_size) : 0;
> + }
What is wrong with current implementation?
Sasha
>
> p = ib_sa_mad_get_payload_ptr(resp_sa_mad);
>
> --
> 1.5.6.4
>
--
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-06-09 5:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-03 13:42 [PATCH] opensm/osm_sa.c: In osm_sa_respond, only fill in attr offset if RMPP method Hal Rosenstock
[not found] ` <20100603134209.GA12225-Wuw85uim5zDR7s880joybQ@public.gmane.org>
2010-06-09 5:43 ` Sasha Khapyorsky [this message]
2010-06-09 10:23 ` Hal Rosenstock
[not found] ` <AANLkTilkr6KYG_TVJYwvNl7sZ8XBKmFljktxg8qCA9t9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-09 12:10 ` Sasha Khapyorsky
2010-06-09 12:40 ` Hal Rosenstock
[not found] ` <AANLkTikTxpvb-Nw2V1PrBcX4rZ1GwElXV22CBtBZx1iK-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-09 12:48 ` Sasha Khapyorsky
2010-06-09 15:27 ` Hal Rosenstock
[not found] ` <AANLkTinxeLPtxYPvPBZfWq96BZjxDqcAlCzP2v_1VJnv-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-09 17:15 ` Sasha Khapyorsky
2010-06-09 18:51 ` Hal Rosenstock
2010-06-10 15:18 ` Smith, Stan
2010-06-11 16:02 ` Smith, Stan
[not found] ` <3F6F638B8D880340AB536D29CD4C1E1925634C8F42-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-06-11 19:04 ` Hal Rosenstock
2010-06-11 16:44 ` Smith, Stan
[not found] ` <3F6F638B8D880340AB536D29CD4C1E1925634C8FE9-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-06-14 13:04 ` [PATCH] iba/ib_types.h: remove assertion in ib_get_attr_offset() Sasha Khapyorsky
2010-06-14 16:16 ` Hefty, Sean
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=20100609054341.GK28549@me \
--to=sashak-smomgflxvozwk0htik3j/w@public.gmane.org \
--cc=hnrose-Wuw85uim5zDR7s880joybQ@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@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