Re: [v1,1/5] raw/zxdh: introduce zxdh raw device driver
zhang.yong25 at zte.com.cn
zhang.yong25 at zte.com.cn
Mon Aug 12 08:40:44 CEST 2024
>> +struct zxdh_gdma_buff_desc {>> + uint SrcAddr_L;>> + uint DstAddr_L;>> + uint Xpara;>> + uint ZY_para;>> + uint ZY_SrcStep;>> + uint ZY_DstStep;>> + uint ExtAddr;>> + uint LLI_Addr_L;>> + uint LLI_Addr_H;>> + uint ChCont;>> + uint LLI_User;>> + uint ErrAddr;>> + uint Control;>> + uint SrcAddr_H;>> + uint DstAddr_H;>> + uint Reserved;>> +};>> +>Why is this driver using uint type?>It should be using datatypes with explicit size (like uint32_t) to>make sure it can be used on both 32 and 64 bit builds.
This was an oversight, I will fix it as suggested.
Thanks
Original
From: StephenHemminger <stephen at networkplumber.org>
To: 张勇10313449;
Cc: dev at dpdk.org <dev at dpdk.org>;
Date: 2024年08月05日 23:46
Subject: Re: [v1,1/5] raw/zxdh: introduce zxdh raw device driver
On Mon, 5 Aug 2024 21:34:53 +0800
Yong Zhang <zhang.yong25 at zte.com.cn> wrote:
> +struct zxdh_gdma_buff_desc {
> + uint SrcAddr_L;
> + uint DstAddr_L;
> + uint Xpara;
> + uint ZY_para;
> + uint ZY_SrcStep;
> + uint ZY_DstStep;
> + uint ExtAddr;
> + uint LLI_Addr_L;
> + uint LLI_Addr_H;
> + uint ChCont;
> + uint LLI_User;
> + uint ErrAddr;
> + uint Control;
> + uint SrcAddr_H;
> + uint DstAddr_H;
> + uint Reserved;
> +};
> +
Why is this driver using uint type?
It should be using datatypes with explicit size (like uint32_t) to
make sure it can be used on both 32 and 64 bit builds.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20240812/775ad46f/attachment-0001.htm>
More information about the dev
mailing list