[PATCH] app/testpmd: dump private info in 'show port info'
Singh, Aman Deep
aman.deep.singh at intel.com
Wed Mar 15 09:28:40 CET 2023
On 3/15/2023 8:03 AM, Chengwen Feng wrote:
> This patch adds dump private info in 'show port info [port_id]' cmd.
>
> Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
Acked-by: Aman Singh <aman.deep.singh at intel.com>
> ---
> app/test-pmd/config.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
> index 018536f177..ab5199f223 100644
> --- a/app/test-pmd/config.c
> +++ b/app/test-pmd/config.c
> @@ -938,6 +938,11 @@ port_infos_display(portid_t port_id)
> printf("unknown\n");
> break;
> }
> + printf("Device private info:\n");
> + ret = rte_eth_dev_priv_dump(port_id, stdout);
> + if (ret < 0)
> + fprintf(stderr, " Failed to dump private info with error (%d): %s\n",
> + ret, strerror(-ret));
> }
>
> void
More information about the dev
mailing list