From: Jasvinder Singh Date: Fri, 27 Oct 2017 09:46:19 +0000 (+0100) Subject: app/testpmd: allow TM hierarchy commit on running port X-Git-Tag: spdx-start~939 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6fcaacd4c2447c78ecf71e67214021c967a72a7b;p=dpdk.git app/testpmd: allow TM hierarchy commit on running port Some drivers might allow to commit the traffic management hierarchy while being in running state. Therefore, removes port status check before invoking hierarchy commit API in the cli. If needed, device can add port status check at the driver layer. Signed-off-by: Jasvinder Singh Reviewed-by: Ferruh Yigit --- diff --git a/app/test-pmd/cmdline_tm.c b/app/test-pmd/cmdline_tm.c index b737f8a63e..4acef98f73 100644 --- a/app/test-pmd/cmdline_tm.c +++ b/app/test-pmd/cmdline_tm.c @@ -2043,12 +2043,6 @@ static void cmd_port_tm_hierarchy_commit_parsed(void *parsed_result, if (port_id_is_invalid(port_id, ENABLED_WARN)) return; - /* Port status */ - if (port_is_started(port_id)) { - printf(" Port %u not stopped (error)\n", port_id); - return; - } - if (strcmp(res->clean_on_fail, "yes") == 0) clean_on_fail = 1; else