[dpdk-dev] [PATCH] app/pdump: fix port id storage size

Pattan, Reshma reshma.pattan at intel.com
Tue Nov 13 18:09:31 CET 2018



> -----Original Message-----
> From: Kovacevic, Marko
> Sent: Tuesday, November 13, 2018 2:27 PM
> To: dev at dpdk.org
> Cc: Yigit, Ferruh <ferruh.yigit at intel.com>; Pattan, Reshma
> <reshma.pattan at intel.com>; Kovacevic, Marko <marko.kovacevic at intel.com>;
> Yang, Zhiyong <zhiyong.yang at intel.com>
> Subject: [PATCH] app/pdump: fix port id storage size
> 
> port_id size should be uint16_t,
> fix where it is defined as uint8_t
> 
> Fixes: f8244c6399d9 ("ethdev: increase port id range")
> Cc: zhiyong.yang at intel.com
> 
> Signed-off-by: Marko Kovacevic <marko.kovacevic at intel.com>
> ---
>  app/pdump/main.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/app/pdump/main.c b/app/pdump/main.c index d96556e..baabd04
> 100644
> --- a/app/pdump/main.c
> +++ b/app/pdump/main.c
> @@ -266,7 +266,7 @@ parse_pdump(const char *optarg)
>  				&parse_uint_value, &v);
>  		if (ret < 0)

Can you also int type  to unit16_t for below two. 

        int rx_vdev_id;
        int tx_vdev_id;

Thanks,
Reshma


More information about the dev mailing list