DPDK patches and discussions
 help / color / mirror / Atom feed
From: <zhang.yong25@zte.com.cn>
To: <stephen@networkplumber.org>
Cc: <dev@dpdk.org>
Subject: Re: [v1,1/5] raw/zxdh: introduce zxdh raw device driver
Date: Mon, 12 Aug 2024 14:40:44 +0800 (CST)	[thread overview]
Message-ID: <20240812144044385iDd2Cb52jzn3OlpCv5CQw@zte.com.cn> (raw)
In-Reply-To: <20240805084556.46ddf663@hermes.local>


[-- Attachment #1.1.1: Type: text/plain, Size: 1507 bytes --]

>> +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@networkplumber.org>
To: 张勇10313449;
Cc: dev@dpdk.org <dev@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@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.

[-- Attachment #1.1.2: Type: text/html , Size: 11010 bytes --]

      reply	other threads:[~2024-08-12  6:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-05 13:34 Yong Zhang
2024-08-05 13:34 ` [v1,2/5] raw/zxdh: add support for queue setup operation Yong Zhang
2024-08-05 13:34 ` [v1,3/5] raw/zxdh: add support for standard rawdev operations Yong Zhang
2024-08-05 13:35 ` [v1,4/5] raw/zxdh: add support for enqueue operation Yong Zhang
2024-08-05 13:35 ` [v1,5/5] raw/zxdh: add support for dequeue operation Yong Zhang
2024-08-05 15:45 ` [v1,1/5] raw/zxdh: introduce zxdh raw device driver Stephen Hemminger
2024-08-12  6:40   ` zhang.yong25 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240812144044385iDd2Cb52jzn3OlpCv5CQw@zte.com.cn \
    --to=zhang.yong25@zte.com.cn \
    --cc=dev@dpdk.org \
    --cc=stephen@networkplumber.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).