From: "Pattan, Reshma" <reshma.pattan@intel.com>
To: Li Han <han.li1@zte.com.cn>, "Tahhan, Maryam" <maryam.tahhan@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] app/proc-info:fix port mask parse bug
Date: Mon, 5 Nov 2018 15:27:09 +0000 [thread overview]
Message-ID: <3AEA2BF9852C6F48A459DA490692831F2A3D08EC@irsmsx110.ger.corp.intel.com> (raw)
In-Reply-To: <1538031669-9305-1-git-send-email-han.li1@zte.com.cn>
Hi,
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Li Han
To avoid typecast below , please use uint64_t for enabled_port_mask.
So change below function return type to uint64_t
> -static int
> +static uint32_t
> parse_portmask(const char *portmask)
> {
Declare pm to be of type uint64_t.
> + return (uint32_t)pm;
You can remove above typecast after change to uint64_t.
Thanks,
Reshma
prev parent reply other threads:[~2018-11-05 15:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-27 7:01 Li Han
2018-11-05 11:41 ` Thomas Monjalon
2018-11-05 15:27 ` Pattan, Reshma [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=3AEA2BF9852C6F48A459DA490692831F2A3D08EC@irsmsx110.ger.corp.intel.com \
--to=reshma.pattan@intel.com \
--cc=dev@dpdk.org \
--cc=han.li1@zte.com.cn \
--cc=maryam.tahhan@intel.com \
/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).