[dpdk-dev] [PATCH v2 7/8] app/bbdev: add parameter to take input in network order

Hemant Agrawal hemant.agrawal at oss.nxp.com
Mon Apr 12 09:29:39 CEST 2021


On 4/12/2021 12:52 PM, David Marchand wrote:
> On Sat, Apr 10, 2021 at 7:04 PM Hemant Agrawal <hemant.agrawal at nxp.com> wrote:
>> From: Nipun Gupta <nipun.gupta at nxp.com>
>>
>> Test bbdev application is reading the input and output from the
>> test vector files in the same endianness which is of the system.
>> This patch adds an option to provide data in the network order
>> i.e. big endian format
> I did not look at the bbdev API, but something feels odd here.
> Why should the test know about endianness?
>
This is baseband data, which need to be processed by the offload device. 
It is important for know the endianness of this data else the offload 
device will not be able to process it correctly.

The existing files only have data in little-endian format.  In the real 
world, the network data can come in big-endian format, so the drivers 
(running on Little-endian machine) shall be able to pass the big-endian 
data for processing to offload device.



More information about the dev mailing list