* Querying the GID from a Provider Library
@ 2017-02-01 12:26 Amrani, Ram
[not found] ` <SN1PR07MB22070E07E3610AFDD7F6DD97F84D0-mikhvbZlbf8TSoR2DauN2+FPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Amrani, Ram @ 2017-02-01 12:26 UTC (permalink / raw)
To: Yishai Hadas, dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Hi Doug, Yishay,
I need to translate sgid_index to sgid in the library to check for loopback.
While invoking ibv_query_gid does the job, it seems to me somewhat
inadequate that a provider library invokes an ibv function and not
an ibv_cmd function. What are your thoughts on this?
I would have invoked the ibv_cmd_query_gid, but there is no such function
because ibv_query_gid does not require the kernel. However there's an old
*declaration* of the ibv_cmd_query_gid. Perhaps I will define the function
in a similar way to ibv_query_gid?!
Thanks,
Ram
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <SN1PR07MB22070E07E3610AFDD7F6DD97F84D0-mikhvbZlbf8TSoR2DauN2+FPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>]
* Re: Querying the GID from a Provider Library [not found] ` <SN1PR07MB22070E07E3610AFDD7F6DD97F84D0-mikhvbZlbf8TSoR2DauN2+FPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org> @ 2017-02-01 16:11 ` Yishai Hadas [not found] ` <d435251a-00a9-9304-afed-76aa46f0aa26-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Yishai Hadas @ 2017-02-01 16:11 UTC (permalink / raw) To: Amrani, Ram Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org On 2/1/2017 2:26 PM, Amrani, Ram wrote: > Hi Doug, Yishay, > I need to translate sgid_index to sgid in the library to check for loopback. > > While invoking ibv_query_gid does the job, it seems to me somewhat > inadequate that a provider library invokes an ibv function and not > an ibv_cmd function. What are your thoughts on this? > > I would have invoked the ibv_cmd_query_gid, but there is no such function > because ibv_query_gid does not require the kernel. However there's an old > *declaration* of the ibv_cmd_query_gid. Perhaps I will define the function > in a similar way to ibv_query_gid?! ibv_query_gid is used all around by vendors, it serves as some helper function which is exported from libibverbs, you can just use it. Re 'ibv_cmd_query_gid' looks like some 'dead' code that should be delted. -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <d435251a-00a9-9304-afed-76aa46f0aa26-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>]
* Re: Querying the GID from a Provider Library [not found] ` <d435251a-00a9-9304-afed-76aa46f0aa26-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> @ 2017-02-01 16:15 ` Jason Gunthorpe [not found] ` <20170201161514.GA8024-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> 2017-02-02 10:54 ` Amrani, Ram 1 sibling, 1 reply; 5+ messages in thread From: Jason Gunthorpe @ 2017-02-01 16:15 UTC (permalink / raw) To: Yishai Hadas Cc: Amrani, Ram, dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org On Wed, Feb 01, 2017 at 06:11:07PM +0200, Yishai Hadas wrote: > Re 'ibv_cmd_query_gid' looks like some 'dead' code that should be delted. Yes, please send a patch.. Jason -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20170201161514.GA8024-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>]
* RE: Querying the GID from a Provider Library [not found] ` <20170201161514.GA8024-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> @ 2017-02-02 10:54 ` Amrani, Ram 0 siblings, 0 replies; 5+ messages in thread From: Amrani, Ram @ 2017-02-02 10:54 UTC (permalink / raw) To: Jason Gunthorpe, Yishai Hadas Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org > > Yes, please send a patch.. > Sure Ram. -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Querying the GID from a Provider Library [not found] ` <d435251a-00a9-9304-afed-76aa46f0aa26-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> 2017-02-01 16:15 ` Jason Gunthorpe @ 2017-02-02 10:54 ` Amrani, Ram 1 sibling, 0 replies; 5+ messages in thread From: Amrani, Ram @ 2017-02-02 10:54 UTC (permalink / raw) To: Yishai Hadas Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org > ibv_query_gid is used all around by vendors, it serves as some helper > function which is exported from libibverbs, you can just use it. OK, thanks. > Re 'ibv_cmd_query_gid' looks like some 'dead' code that should be delted. I'll send a patch on Sunday. Thanks, Ram -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-02-02 10:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-01 12:26 Querying the GID from a Provider Library Amrani, Ram
[not found] ` <SN1PR07MB22070E07E3610AFDD7F6DD97F84D0-mikhvbZlbf8TSoR2DauN2+FPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-02-01 16:11 ` Yishai Hadas
[not found] ` <d435251a-00a9-9304-afed-76aa46f0aa26-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2017-02-01 16:15 ` Jason Gunthorpe
[not found] ` <20170201161514.GA8024-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-02-02 10:54 ` Amrani, Ram
2017-02-02 10:54 ` Amrani, Ram
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox