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 
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
620 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
457 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
458 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!
-----------------------------------------------------------------------------------------------------------------------