app/testpmd: check MAC address query
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Tue, 16 Mar 2021 06:51:36 +0000 (12:21 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Mar 2021 10:17:09 +0000 (11:17 +0100)
commit2382a607599ec1e44594bd74175fc8ffcc260a47
tree0d6920c674358821314cabbed7d110cbc17f06a3
parent71f5872dd131983932cbfeb5f71345c53473fa81
app/testpmd: check MAC address query

This patch checks return value for rte_eth_dev_info_get() in show_macs().

Coverity issue: 353629
Fixes: e1d44d0ad623 ("app/testpmd: show MAC addresses added to a port")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
app/test-pmd/config.c