Skip to contentSkip to conversation

app/testpmd: remove port status check from TM hierarchy commit cli

PATCH Applied Jasvinder Singh 2 participants 3 messages Oct 27, 2017 – Nov 7, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 app/testpmd: remove port status check from TM hierarchy commit cli

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.

---
 app/test-pmd/cmdline_tm.c | 6 ------
 1 file changed, 6 deletions(-)
app/test-pmd/cmdline_tm.c +0 -6
index 964ce9d..53f941c 100644
@@ -2033,12 +2033,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
Signature · 1 line
2.9.3
Applied
#2 lore raw
Quoted 9 lines · Ferruh Yigit
Quoted 6 lines · Jasvinder Singh

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.

Applied to dpdk/master, thanks.