app/testpmd: check DCB info support for configuration
authorHuisong Li <lihuisong@huawei.com>
Wed, 28 Apr 2021 06:40:43 +0000 (14:40 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 29 Apr 2021 16:10:14 +0000 (18:10 +0200)
commitcffb3d66a8e389f6e73ac25219e56664a993572a
treef3772b4e03f77c3484696471156dc229180583e5
parent5cbbcbad652848b8ecdf26d1d8bf1ea5c794edda
app/testpmd: check DCB info support for configuration

Currently, '.get_dcb_info' must be supported for the port doing DCB
test, or all information in 'rte_eth_dcb_info' are zero. It should be
prevented when user run cmd "port config 0 dcb vt off 4 pfc off".

This patch adds the check for support of reporting dcb info.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
app/test-pmd/cmdline.c