Do I need to eliminate the use of read/write system calls in a user application for it to user usdpaa interface and replace it with some other code?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Do I need to eliminate the use of read/write system calls in a user application for it to user usdpaa interface and replace it with some other code?

跳至解决方案
2,316 次查看
priyaagarwal
Contributor III

Hi,

I want to make 'squid' (a networking application) use usdpaa interface.

It uses read and write system calls (file descriptors) to read/write the packet information.

Now to make it use dpaa do I need to remove these system calls from the code and instead write a new code so that it uses dpaa.

thanks.

标签 (1)
标记 (2)
1 解答
2,153 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Priya Agarwal,


Since USDPAA applications invoke USDPAA user space device driver to handle network packets directly,  bypassing Linux Kernel network stack, so unlike normal Linux Kernel space application, the method opening a network socket and reading/writing packet from the socket cannot be used anymore.


Actually I think your purpose to design a USDPAA application is to design a fast path application.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

1 回复
2,154 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Priya Agarwal,


Since USDPAA applications invoke USDPAA user space device driver to handle network packets directly,  bypassing Linux Kernel network stack, so unlike normal Linux Kernel space application, the method opening a network socket and reading/writing packet from the socket cannot be used anymore.


Actually I think your purpose to design a USDPAA application is to design a fast path application.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------