app/testpmd: verify DCB config during forward config
authorHuisong Li <lihuisong@huawei.com>
Wed, 28 Apr 2021 06:40:44 +0000 (14:40 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 29 Apr 2021 16:10:14 +0000 (18:10 +0200)
commit43f1f8261136852357057b78aa49d354beaf3931
treee31a44f2c90fa087c8079324fbba3d03e0127625
parentcffb3d66a8e389f6e73ac25219e56664a993572a
app/testpmd: verify DCB config during forward config

Currently, the check for doing DCB test is assigned to
start_packet_forwarding(), which will be called when
run "start" cmd. But fwd_config_setup() is used in many
scenarios, such as, "port config all rxq".

This patch moves the check from start_packet_forwarding()
to fwd_config_setup().

Fixes: 7741e4cf16c0 ("app/testpmd: VMDq and DCB updates")
Cc: stable@dpdk.org
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/config.c
app/test-pmd/testpmd.c