All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sarat Kakarla <sarat.kakarla-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: weiny2-i2BcT+NCU+M@public.gmane.org,
	HANLIN.QIAN-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org,
	"Jia Shi (E-mail)"
	<JIA.SHI-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] libibmad: Add  ib_resolve_noderecord_via  API
Date: Tue, 12 Feb 2013 15:23:19 -0800	[thread overview]
Message-ID: <511ACEE7.7000200@oracle.com> (raw)
In-Reply-To: <511ACDE4.1080006-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>

Hal,

ib_resolve_guid_via has timeout parameter but when it is getting called from ib_resolve_portid_str_via the value is specified as 0.


int ib_resolve_portid_str_via(ib_portid_t * portid, char *addr_str,
             enum MAD_DEST dest_type, ib_portid_t * sm_id,
             const struct ibmad_port *srcport)
{


   case IB_DEST_GUID:
     if (!(guid = strtoull(addr_str, 0, 0)))
       return -1;

     /* keep guid in portid? */
     return ib_resolve_guid_via(portid, &guid, sm_id, 0, srcport);


Thanks
Sarat


On 2/12/2013 3:19 PM, Hal Rosenstock wrote:
> On 2/12/2013 6:03 PM, Sarat Kakarla wrote:
>> [SK] I wanted to make ib_resolve_noderecord_via look like ib_resolve_portid_str_via API which does not take any timeout parameter.
>>
>>       I can pass '0' instead of MAD_DEF_TIMEOUT_MS, that's what passed as timeout to ib_resolve_guid_via function from  ib_resolve_portid_str_via function.
>>
>
> Are you looking at an older version of libibmad ? The upstream
> ib_resolve_guid_via has timeout as second parameter as do other similar
> calls to ib_resolve_smlid_via.
>
> -- Hal
>


--
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

  parent reply	other threads:[~2013-02-12 23:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-12 20:39 [PATCH] libibmad: Add ib_resolve_noderecord_via API Sarat Kakarla
     [not found] ` <511AA890.8050106-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2013-02-12 22:21   ` Hal Rosenstock
     [not found]     ` <511AC06B.3030005-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2013-02-12 23:03       ` Sarat Kakarla
     [not found]         ` <511ACA52.4060104-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2013-02-12 23:19           ` Hal Rosenstock
     [not found]             ` <511ACDE4.1080006-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2013-02-12 23:23               ` Sarat Kakarla [this message]
2013-02-12 23:28   ` Ira Weiny
     [not found]     ` <20130212152859.b62c4d6df7bd5bf0a393fa4a-i2BcT+NCU+M@public.gmane.org>
2013-02-12 23:36       ` Sarat Kakarla
     [not found]         ` <511AD1EB.8070807-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2013-02-12 23:49           ` Ira Weiny
     [not found]             ` <20130212154949.2ff378f25c6cce7e6119137c-i2BcT+NCU+M@public.gmane.org>
2013-02-18 21:59               ` Sarat Kakarla

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=511ACEE7.7000200@oracle.com \
    --to=sarat.kakarla-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
    --cc=HANLIN.QIAN-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
    --cc=JIA.SHI-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
    --cc=hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=weiny2-i2BcT+NCU+M@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.