app/testpmd: fix VLAN configuration on failure
authorChengchang Tang <tangchengchang@huawei.com>
Fri, 25 Sep 2020 12:47:15 +0000 (20:47 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:13 +0000 (19:19 +0200)
commit57d4198a0b50f93d921b4b3d30cbdea7f4131db5
tree07742cfed8fd0867a7c96ba97450e7e040fa5996
parentb428e71775e43acc7b074c82b0d9e08f401dde6b
app/testpmd: fix VLAN configuration on failure

When failing to configure VLAN offloads after the port was started, there
is no need to update the port configuration. Currently, when user
configure an unsupported VLAN offloads and fails, and then restart the
port, it will fails since the configuration has been refreshed.

This patch makes the function return directly instead of refreshing the
configuration when execution fails.

Fixes: 384161e00627 ("app/testpmd: adjust on the fly VLAN configuration")
Cc: stable@dpdk.org
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/config.c