[dpdk-dev] [PATCH] app/proc-info:fix port mask parse bug

Pattan, Reshma reshma.pattan at intel.com
Mon Nov 5 16:27:09 CET 2018


Hi,

> -----Original Message-----
> From: dev [mailto:dev-bounces at 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


More information about the dev mailing list