* Native IB connection setup.
@ 2014-01-02 8:11 Ilya Kalistru
[not found] ` <CAKxz9HDpu6-R8HbP6kFw1TU-Px-vrGOB7JVOTdRAFyXiDTdKjg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Ilya Kalistru @ 2014-01-02 8:11 UTC (permalink / raw)
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA
Happy New Year, ladies and gentlemen!
I'm developing some sort of "hardware InfiniBand server" runing on
FPGA and delivering some data to PC using RDMA_WRITE operation.
I've already had Physical Link Up and Logical Link Up between my
device and PC with Mellanox HCA.
I see GUID and LID of my device when I runing ibstatus or
ibnetdiscover command on PC and therefore I think subnet configuration
is ok.
Now I have a problem with connection setup. Because I'm only who is
developing this device and it's a problem to add extra protocols in
FPGA firmware I don't want to use any something like getaddrinfo()
(they use IPoIB)...
I'm going to use native IB CM REQ/REP/RTU MADs for connection setup,
but I don't know how.
I think that I should request GUID to LID resolution at first. Like
rdma_resolve_addr()/rdma_resolve_route() but from GUID not from IP.
Second (I think) I should use ib_send_cm_req() and ib_send_cm_rtu()
with well known ServiceID (I select it) to establish connection.
I'm not a programmer and have no experience with programming of
network based applications and therefore I will be thankful very much
if you help me with example of programm code using native IB
connection setup technics or any other help.
P.S. It's my first time I'm using mailing list. I'm sorry, if I'm
doing something wrong.
--
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] 6+ messages in thread
* Re: Native IB connection setup.
[not found] ` <CAKxz9HDpu6-R8HbP6kFw1TU-Px-vrGOB7JVOTdRAFyXiDTdKjg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-01-02 11:10 ` Sagi Grimberg
[not found] ` <52C54937.7020003-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Sagi Grimberg @ 2014-01-02 11:10 UTC (permalink / raw)
To: Ilya Kalistru; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
On 1/2/2014 10:11 AM, Ilya Kalistru wrote:
> Happy New Year, ladies and gentlemen!
>
> I'm developing some sort of "hardware InfiniBand server" runing on
> FPGA and delivering some data to PC using RDMA_WRITE operation.
> I've already had Physical Link Up and Logical Link Up between my
> device and PC with Mellanox HCA.
> I see GUID and LID of my device when I runing ibstatus or
> ibnetdiscover command on PC and therefore I think subnet configuration
> is ok.
>
> Now I have a problem with connection setup. Because I'm only who is
> developing this device and it's a problem to add extra protocols in
> FPGA firmware I don't want to use any something like getaddrinfo()
> (they use IPoIB)...
> I'm going to use native IB CM REQ/REP/RTU MADs for connection setup,
> but I don't know how.
>
> I think that I should request GUID to LID resolution at first. Like
> rdma_resolve_addr()/rdma_resolve_route() but from GUID not from IP.
> Second (I think) I should use ib_send_cm_req() and ib_send_cm_rtu()
> with well known ServiceID (I select it) to establish connection.
>
> I'm not a programmer and have no experience with programming of
> network based applications and therefore I will be thankful very much
> if you help me with example of programm code using native IB
> connection setup technics or any other help.
You can have a look in SRP (SCSI RDMA Protocol under
drivers/infiniband/ulp/srp) as a reference for native IB connection
establishment.
> P.S. It's my first time I'm using mailing list. I'm sorry, if I'm
> doing something wrong.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message tomajordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info athttp://vger.kernel.org/majordomo-info.html
--
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] 6+ messages in thread
* Re: Native IB connection setup.
[not found] ` <52C54937.7020003-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
@ 2014-01-02 13:55 ` Hal Rosenstock
[not found] ` <52C56FB8.1080509-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Hal Rosenstock @ 2014-01-02 13:55 UTC (permalink / raw)
To: Sagi Grimberg; +Cc: Ilya Kalistru, linux-rdma-u79uwXL29TY76Z2rM5mHXA
On 1/2/2014 6:10 AM, Sagi Grimberg wrote:
> On 1/2/2014 10:11 AM, Ilya Kalistru wrote:
>> Happy New Year, ladies and gentlemen!
>>
>> I'm developing some sort of "hardware InfiniBand server" runing on
>> FPGA and delivering some data to PC using RDMA_WRITE operation.
>> I've already had Physical Link Up and Logical Link Up between my
>> device and PC with Mellanox HCA.
>> I see GUID and LID of my device when I runing ibstatus or
>> ibnetdiscover command on PC and therefore I think subnet configuration
>> is ok.
>>
>> Now I have a problem with connection setup. Because I'm only who is
>> developing this device and it's a problem to add extra protocols in
>> FPGA firmware I don't want to use any something like getaddrinfo()
>> (they use IPoIB)...
>> I'm going to use native IB CM REQ/REP/RTU MADs for connection setup,
>> but I don't know how.
>>
>> I think that I should request GUID to LID resolution at first. Like
>> rdma_resolve_addr()/rdma_resolve_route() but from GUID not from IP.
>> Second (I think) I should use ib_send_cm_req() and ib_send_cm_rtu()
>> with well known ServiceID (I select it) to establish connection.
>>
>> I'm not a programmer and have no experience with programming of
>> network based applications and therefore I will be thankful very much
>> if you help me with example of programm code using native IB
>> connection setup technics or any other help.
>
> You can have a look in SRP (SCSI RDMA Protocol under
> drivers/infiniband/ulp/srp) as a reference for native IB connection
> establishment.
There are 2 basic approaches for this:
As Sagi wrote, first approach is IB CM/UCM which is the approach used by
SRP and IPoIB-CM.
Also, RDMA CM now supports AF_IB. A "recent" kernel (and "recent"
librdmacm if user space app) are needed for this approach. There are 2
example user space applications which show how to use this (rstream and
ucmatose).
Both require some information from SA PathRecord on the active (client)
side of the connection.
-- Hal
>> P.S. It's my first time I'm using mailing list. I'm sorry, if I'm
>> doing something wrong.
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>> the body of a message tomajordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info athttp://vger.kernel.org/majordomo-info.html
>
> --
> 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
>
--
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] 6+ messages in thread
* Re: Native IB connection setup.
[not found] ` <52C56FB8.1080509-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2014-01-03 18:33 ` Ilya Kalistru
[not found] ` <CAKxz9HAoCxEZA=DPaJc2TmwotBFsXLdWogr6c379zr4M6-A0Fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Ilya Kalistru @ 2014-01-03 18:33 UTC (permalink / raw)
To: Hal Rosenstock; +Cc: Sagi Grimberg, linux-rdma-u79uwXL29TY76Z2rM5mHXA
Thank you very much!
I'm going to study this examples.
In SRP code I've found process of connection establishment with
REQ/REP/RTU messages.
Moreover, I've found that SAQUERY tool in infiniband-diags package
contains functions of NAME -> LID resolution and I think I can use it
to learn how do they do such things.
I don't know what is AF_IB and how I can use it, but I'll study
rstream and ucmatose sources too.
2014/1/2 Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>:
> On 1/2/2014 6:10 AM, Sagi Grimberg wrote:
>> On 1/2/2014 10:11 AM, Ilya Kalistru wrote:
>>> Happy New Year, ladies and gentlemen!
>>>
>>> I'm developing some sort of "hardware InfiniBand server" runing on
>>> FPGA and delivering some data to PC using RDMA_WRITE operation.
>>> I've already had Physical Link Up and Logical Link Up between my
>>> device and PC with Mellanox HCA.
>>> I see GUID and LID of my device when I runing ibstatus or
>>> ibnetdiscover command on PC and therefore I think subnet configuration
>>> is ok.
>>>
>>> Now I have a problem with connection setup. Because I'm only who is
>>> developing this device and it's a problem to add extra protocols in
>>> FPGA firmware I don't want to use any something like getaddrinfo()
>>> (they use IPoIB)...
>>> I'm going to use native IB CM REQ/REP/RTU MADs for connection setup,
>>> but I don't know how.
>>>
>>> I think that I should request GUID to LID resolution at first. Like
>>> rdma_resolve_addr()/rdma_resolve_route() but from GUID not from IP.
>>> Second (I think) I should use ib_send_cm_req() and ib_send_cm_rtu()
>>> with well known ServiceID (I select it) to establish connection.
>>>
>>> I'm not a programmer and have no experience with programming of
>>> network based applications and therefore I will be thankful very much
>>> if you help me with example of programm code using native IB
>>> connection setup technics or any other help.
>>
>> You can have a look in SRP (SCSI RDMA Protocol under
>> drivers/infiniband/ulp/srp) as a reference for native IB connection
>> establishment.
>
> There are 2 basic approaches for this:
>
> As Sagi wrote, first approach is IB CM/UCM which is the approach used by
> SRP and IPoIB-CM.
>
> Also, RDMA CM now supports AF_IB. A "recent" kernel (and "recent"
> librdmacm if user space app) are needed for this approach. There are 2
> example user space applications which show how to use this (rstream and
> ucmatose).
>
> Both require some information from SA PathRecord on the active (client)
> side of the connection.
>
> -- Hal
>
>>> P.S. It's my first time I'm using mailing list. I'm sorry, if I'm
>>> doing something wrong.
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>> the body of a message tomajordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>> More majordomo info athttp://vger.kernel.org/majordomo-info.html
>>
>> --
>> 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
>>
>
--
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] 6+ messages in thread
* Re: Native IB connection setup.
[not found] ` <CAKxz9HAoCxEZA=DPaJc2TmwotBFsXLdWogr6c379zr4M6-A0Fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-01-15 16:57 ` Ilya Kalistru
[not found] ` <CAKxz9HD3Gr3xyKh0CSM=SjLJLuGezDyrQUGAz-6jHDRVh_gPdw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Ilya Kalistru @ 2014-01-15 16:57 UTC (permalink / raw)
To: Hal Rosenstock; +Cc: Sagi Grimberg, linux-rdma-u79uwXL29TY76Z2rM5mHXA
Ok, I know that here is Linux mail-list, but may be somebody
know is it able to implement approach with AF_IB for Windows?
I don't know where I can ask this somewere else.
2014/1/3 Ilya Kalistru <stebanoid-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> Thank you very much!
> I'm going to study this examples.
> In SRP code I've found process of connection establishment with
> REQ/REP/RTU messages.
> Moreover, I've found that SAQUERY tool in infiniband-diags package
> contains functions of NAME -> LID resolution and I think I can use it
> to learn how do they do such things.
>
> I don't know what is AF_IB and how I can use it, but I'll study
> rstream and ucmatose sources too.
>
> 2014/1/2 Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>:
>> On 1/2/2014 6:10 AM, Sagi Grimberg wrote:
>>> On 1/2/2014 10:11 AM, Ilya Kalistru wrote:
>>>> Happy New Year, ladies and gentlemen!
>>>>
>>>> I'm developing some sort of "hardware InfiniBand server" runing on
>>>> FPGA and delivering some data to PC using RDMA_WRITE operation.
>>>> I've already had Physical Link Up and Logical Link Up between my
>>>> device and PC with Mellanox HCA.
>>>> I see GUID and LID of my device when I runing ibstatus or
>>>> ibnetdiscover command on PC and therefore I think subnet configuration
>>>> is ok.
>>>>
>>>> Now I have a problem with connection setup. Because I'm only who is
>>>> developing this device and it's a problem to add extra protocols in
>>>> FPGA firmware I don't want to use any something like getaddrinfo()
>>>> (they use IPoIB)...
>>>> I'm going to use native IB CM REQ/REP/RTU MADs for connection setup,
>>>> but I don't know how.
>>>>
>>>> I think that I should request GUID to LID resolution at first. Like
>>>> rdma_resolve_addr()/rdma_resolve_route() but from GUID not from IP.
>>>> Second (I think) I should use ib_send_cm_req() and ib_send_cm_rtu()
>>>> with well known ServiceID (I select it) to establish connection.
>>>>
>>>> I'm not a programmer and have no experience with programming of
>>>> network based applications and therefore I will be thankful very much
>>>> if you help me with example of programm code using native IB
>>>> connection setup technics or any other help.
>>>
>>> You can have a look in SRP (SCSI RDMA Protocol under
>>> drivers/infiniband/ulp/srp) as a reference for native IB connection
>>> establishment.
>>
>> There are 2 basic approaches for this:
>>
>> As Sagi wrote, first approach is IB CM/UCM which is the approach used by
>> SRP and IPoIB-CM.
>>
>> Also, RDMA CM now supports AF_IB. A "recent" kernel (and "recent"
>> librdmacm if user space app) are needed for this approach. There are 2
>> example user space applications which show how to use this (rstream and
>> ucmatose).
>>
>> Both require some information from SA PathRecord on the active (client)
>> side of the connection.
>>
>> -- Hal
>>
>>>> P.S. It's my first time I'm using mailing list. I'm sorry, if I'm
>>>> doing something wrong.
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>>> the body of a message tomajordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>>> More majordomo info athttp://vger.kernel.org/majordomo-info.html
>>>
>>> --
>>> 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
>>>
>>
--
С уважением, Илья Калистру.
--
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] 6+ messages in thread
* RE: Native IB connection setup.
[not found] ` <CAKxz9HD3Gr3xyKh0CSM=SjLJLuGezDyrQUGAz-6jHDRVh_gPdw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-01-15 18:14 ` Hefty, Sean
0 siblings, 0 replies; 6+ messages in thread
From: Hefty, Sean @ 2014-01-15 18:14 UTC (permalink / raw)
To: Ilya Kalistru, Hal Rosenstock
Cc: Sagi Grimberg, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org
> Ok, I know that here is Linux mail-list, but may be somebody
> know is it able to implement approach with AF_IB for Windows?
The windows NetworkDirect interface only supports IP based addressing.
You can try mailing the ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5@public.gmane.org mail list (copied), but it is not very active anymore.
- Sean
--
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] 6+ messages in thread
end of thread, other threads:[~2014-01-15 18:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-02 8:11 Native IB connection setup Ilya Kalistru
[not found] ` <CAKxz9HDpu6-R8HbP6kFw1TU-Px-vrGOB7JVOTdRAFyXiDTdKjg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-02 11:10 ` Sagi Grimberg
[not found] ` <52C54937.7020003-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2014-01-02 13:55 ` Hal Rosenstock
[not found] ` <52C56FB8.1080509-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2014-01-03 18:33 ` Ilya Kalistru
[not found] ` <CAKxz9HAoCxEZA=DPaJc2TmwotBFsXLdWogr6c379zr4M6-A0Fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-15 16:57 ` Ilya Kalistru
[not found] ` <CAKxz9HD3Gr3xyKh0CSM=SjLJLuGezDyrQUGAz-6jHDRVh_gPdw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-15 18:14 ` Hefty, Sean
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox