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?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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?

Jump to solution
1,605 Views
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.

Labels (1)
Tags (2)
1 Solution
1,442 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

1 Reply
1,443 Views
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!
-----------------------------------------------------------------------------------------------------------------------