app/testpmd: retain all original dev conf when config DCB
authorHuisong Li <lihuisong@huawei.com>
Mon, 11 Oct 2021 09:12:46 +0000 (17:12 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 Oct 2021 15:26:30 +0000 (17:26 +0200)
commitc1ba6c325c4c7c8e0f32d9e96bc25ab172a222ee
treedd0ff113a4404cea278a280ece66d511d62d1953
parent6c31a8c20a5af8f8b7929d7637a6a9d414ccfb31
app/testpmd: retain all original dev conf when config DCB

When configuring DCB, testpmd retains the rx_mode/tx_mode configuration in
rte_port->dev_conf. But some configurations, such as the link_speed, were
not saved if they were set before configuring DCB.

Fixes: 1a572499beb6 ("app/testpmd: setup DCB forwarding based on traffic class")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
app/test-pmd/testpmd.c