Questions about DPDK IOAT driver
Hello DPDK,
I am a postgraduate student from South China Normal University, Guangzhou, China.
I found that the IOAT driver was released in DPDK 19.08 for the first time. At the same time, I noticed that the code of DPDK IOAT driver was similar to SPDK one. So there are some questions I would like to ask you. The questions are as follows.
1. What's the difference between SPDK IOAT driver and DPDK IOAT driver ?
2. I have an idea that apply DPDK lockless ring (struct rte_ring) to DPDK IOAT ring so that multiple threads can enqueue copy request to the same DPDK IOAT ring at the same time, is that work ?
At your convenience, would you please answer my questions?
Thank you !
Wish you a good day !
Regards,
Zhenke Chan
Quoted 9 lines · On Aug 20, 2019, at 7:35 AM, [email protected] wrote:
Hello DPDK,
I am a postgraduate student from South China Normal University, Guangzhou, China.
I found that the IOAT driver was released in DPDK 19.08 for the first time. At the same time, I noticed that the code of DPDK IOAT driver was similar to SPDK one. So there are some questions I would like to ask you. The questions are as follows.1. What's the difference between SPDK IOAT driver and DPDK IOAT driver ?
The SPDK has it own IOAT driver today, but we are looking to have SPDK use the DPDK IOAT driver in the future, but the SPDK folks can answer that question. The DPDK IOAT driver leveraged some of the code from the SPDK system and this is why they look the same.
Quoted 1 line
2. I have an idea that apply DPDK lockless ring (struct
rte_ring) to DPDK IOAT ring so that multiple threads can enqueue copy request to the same DPDK IOAT ring at the same time, is that work ?
We have the Ring PMD which I think could be used on top of the IOAT driver, but I would have to think about it more. What would be the design you had in mind here?
Quoted 10 lines
At your convenience, would you please answer my questions?
Thank you !
Wish you a good day !Regards,
Zhenke Chan
Regards,
Keith
chanzk at m.scnu.edu.cn
[SPDK] Questions about struct spdk_ring
In reply to [email protected]Hello SPDK,
I know struct spdk_ring is actually struct rte_ring and the functions about spdk_ring are based on all based on DPDK one. But I found that struct spdk_ring is incomplete type so that I can not use it directly. So my question is how to use this struct ?
At your convenience, would you please answer my questions?
Thank you !
Wish you a good day !
Regards,
Zhenke Chan
Harris
Re: [SPDK] Questions about struct spdk_ring
On 8/22/19, 10:11 AM, "SPDK on behalf of chanzk(a)m.scnu.edu.cn" <spdk-bounces(a)lists.01.org on behalf of chanzk(a)m.scnu.edu.cn> wrote:
Hello SPDK,
I know struct spdk_ring is actually struct rte_ring and the functions about spdk_ring are based on all based on DPDK one. But I found that struct spdk_ring is incomplete type so that I can not use it directly. So my question is how to use this struct ?
At your convenience, would you please answer my questions?
Hi,
spdk_ring can be used with the spdk_ring_create, spdk_ring_free, spdk_ring_count, etc. functions defined in include/spdk/env.h. Those functions should be sufficient for any operations you need to perform on an spdk_ring.
The env.h API purposely does not expose a structure definition for spdk_ring. The DPDK implementation of the SPDK env API (see lib/env_dpdk/env.c) just aliases spdk_ring to DPDK's rte_ring, but other implementations of the API may decide to do it differently.
Regards,
Jim
Thank you !
Wish you a good day !
Regards,
Zhenke Chan
_______________________________________________
SPDK mailing list
SPDK(a)lists.01.org
https://lists.01.org/mailman/listinfo/spdk
Dear Wiles,
Thank you for your reply. I would like to use IOAT for bulk memory copy instead of memcpy function.
By the way ,would it possible to notify user application by interrupting instead of polling when the IOAT copy operation is done ?
Regards,
Zhenke Chan
发件人: Wiles, Keith
发送时间: 2019-08-21 00:01:38
收件人: [email protected]
抄送: dev
主题: Re: [dpdk-dev] Questions about DPDK IOAT driver
Quoted 7 lines · On Aug 20, 2019, at 7:35 AM, [email protected] wrote:
Hello DPDK,
I am a postgraduate student from South China Normal University, Guangzhou, China.
I found that the IOAT driver was released in DPDK 19.08 for the first time. At the same time, I noticed that the code of DPDK IOAT driver was similar to SPDK one. So there are some questions I would like to ask you. The questions are as follows.1. What's the difference between SPDK IOAT driver and DPDK IOAT driver ?
The SPDK has it own IOAT driver today, but we are looking to have SPDK use the DPDK IOAT driver in the future, but the SPDK folks can answer that question. The DPDK IOAT driver leveraged some of the code from the SPDK system and this is why they look the same.
Quoted 1 line
2. I have an idea that apply DPDK lockless ring (struct
rte_ring) to DPDK IOAT ring so that multiple threads can enqueue copy request to the same DPDK IOAT ring at the same time, is that work ?
We have the Ring PMD which I think could be used on top of the IOAT driver, but I would have to think about it more. What would be the design you had in mind here?
Quoted 10 lines
At your convenience, would you please answer my questions?
Thank you !
Wish you a good day !Regards,
Zhenke Chan
Regards,
Keith