[dpdk-users] Dpdk multi core packet acquisition.

Gábor LENCSE lencse at hit.bme.hu
Wed Jul 14 18:32:07 CEST 2021


I recommend you to use multi queue receiving (RSS). Thus you do not need 
to use mutual exclusion. (Performance!)
Of course, you need some entropy for the hash function to distribute the 
packets approximately evenly among the queues.

Gábor

2021.07.14. 17:15 keltezéssel, Stephen Hemminger írta:
> On Wed, 14 Jul 2021 10:32:56 +0200
> Nirmal R <raja.nirmalraj at gmail.com> wrote:
>
>> Hello All,
>>
>> I need to acquire packets from a source at more than 40Gbps. I was thinking
>> to use rx_burst in a function with more than one core and load it into a
>> ring. My question is, will the packets received will be in order between
>> the cores say core 1 receives packet 1,2,3 and core 2 receives packet 4,5,6
>> or will it be in out of order(Random).  Also can we combine 2 cores to
>> launch one function.
>>
>> Thank you,
>>
>> With Regards,
>> Nirmalraj R
> DPDK drivers assume a single core at a time is reading a single queue.
> If you have multiple cores reading a single queue then you need to do
> some form of mutual exclusion in your application.
>
> This is in the documentation



More information about the users mailing list