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

Pattan, Reshma reshma.pattan at intel.com
Wed Nov 7 10:47:08 CET 2018



> -----Original Message-----
> From: Li Han [mailto:han.li1 at zte.com.cn]
> Sent: Wednesday, November 7, 2018 6:10 AM
> To: Pattan, Reshma <reshma.pattan at intel.com>
> Cc: dev at dpdk.org; Li Han <han.li1 at zte.com.cn>
> Subject: [PATCH v3] [dpdk-dev] app/proc-info: fix port mask parse issue
> 
> parse_portmask return type is int,but global variable "enabled_port_mask" type
> is uint32_t.so in proc_info_parse_args function,when parse_portmask return -
> 1,"enabled_port_mask" will get a huge value and "if (enabled_port_mask == 0)"
> will never happen.
> 
> Fixes: 22561383ea17 ("app: replace dump_cfg by proc_info")
> Signed-off-by: Li Han <han.li1 at zte.com.cn>

Acked-by: Reshma Pattan <reshma.pattan at intel.com>


More information about the dev mailing list