[dpdk-dev] [PATCH v1 1/2] eal/x86: add WC store function

Nicolau, Radu radu.nicolau at intel.com
Thu Jun 11 15:56:19 CEST 2020


On 6/11/2020 1:23 PM, Jerin Jacob wrote:
> On Thu, Jun 11, 2020 at 3:41 PM Radu Nicolau <radu.nicolau at intel.com> wrote:
>> Add rte_write32_wc function that implements a WC store
>> using movdiri instruction.
>>
>> Signed-off-by: Radu Nicolau <radu.nicolau at intel.com>
>> ---
>>   lib/librte_eal/x86/include/rte_io.h | 20 ++++++++++++++++++++
>>   1 file changed, 20 insertions(+)
>>
>> diff --git a/lib/librte_eal/x86/include/rte_io.h b/lib/librte_eal/x86/include/rte_io.h
>> index 2db71b1..3d74bec 100644
>> --- a/lib/librte_eal/x86/include/rte_io.h
>> +++ b/lib/librte_eal/x86/include/rte_io.h
>> @@ -11,6 +11,26 @@ extern "C" {
>>
>>   #include "generic/rte_io.h"
>>
>> +/**
>> + * Write a 32-bit value to I/O device memory address *addr*.
>> + * Uses MOVDIRI instruction to perform a direct-store operation using WC
>> + * memory write protocol.
> It will be an x86 specific API, Please change the API name to reflect that.
>
You mean something like rte_x86_write32_wc?


More information about the dev mailing list