DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd: remove port status check from TM node add cli
@ 2017-11-10 10:30 Jasvinder Singh
  2017-11-10 12:14 ` Lu, Wenzhuo
  0 siblings, 1 reply; 3+ messages in thread
From: Jasvinder Singh @ 2017-11-10 10:30 UTC (permalink / raw)
  To: dev; +Cc: wenzhuo.lu, yulong.pei, ferruh.yigit

Currently, testpmd CLI doesn't permit to add leaf and non-leaf node when
port is started. It doesn't work in case of i40e device as DCB
configuration is deleted when port is stopped. Therefore, removes the
port status check before invoking leaf and nonleaf node API in the cli.
If needed, device can add port status check at the driver layer. 

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
---
 app/test-pmd/cmdline_tm.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/app/test-pmd/cmdline_tm.c b/app/test-pmd/cmdline_tm.c
index 4acef98..803fae4 100644
--- a/app/test-pmd/cmdline_tm.c
+++ b/app/test-pmd/cmdline_tm.c
@@ -1599,12 +1599,6 @@ static void cmd_add_port_tm_nonleaf_node_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;
-	}
-
 	memset(&np, 0, sizeof(struct rte_tm_node_params));
 
 	/* Node parameters */
@@ -1759,12 +1753,6 @@ static void cmd_add_port_tm_leaf_node_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;
-	}
-
 	memset(&np, 0, sizeof(struct rte_tm_node_params));
 
 	/* Node parameters */
-- 
2.9.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] app/testpmd: remove port status check from TM node add cli
  2017-11-10 10:30 [dpdk-dev] [PATCH] app/testpmd: remove port status check from TM node add cli Jasvinder Singh
@ 2017-11-10 12:14 ` Lu, Wenzhuo
  2017-11-11 15:17   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Lu, Wenzhuo @ 2017-11-10 12:14 UTC (permalink / raw)
  To: Singh, Jasvinder, dev; +Cc: Pei, Yulong, Yigit, Ferruh

Hi,

> -----Original Message-----
> From: Singh, Jasvinder
> Sent: Friday, November 10, 2017 6:31 PM
> To: dev@dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Pei, Yulong
> <yulong.pei@intel.com>; Yigit, Ferruh <ferruh.yigit@intel.com>
> Subject: [PATCH] app/testpmd: remove port status check from TM node add
> cli
> 
> Currently, testpmd CLI doesn't permit to add leaf and non-leaf node when
> port is started. It doesn't work in case of i40e device as DCB configuration is
> deleted when port is stopped. Therefore, removes the port status check
> before invoking leaf and nonleaf node API in the cli.
> If needed, device can add port status check at the driver layer.
> 
> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] app/testpmd: remove port status check from TM node add cli
  2017-11-10 12:14 ` Lu, Wenzhuo
@ 2017-11-11 15:17   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2017-11-11 15:17 UTC (permalink / raw)
  To: Singh, Jasvinder; +Cc: dev, Lu, Wenzhuo, Pei, Yulong, Yigit, Ferruh

> > Currently, testpmd CLI doesn't permit to add leaf and non-leaf node when
> > port is started. It doesn't work in case of i40e device as DCB configuration is
> > deleted when port is stopped. Therefore, removes the port status check
> > before invoking leaf and nonleaf node API in the cli.
> > If needed, device can add port status check at the driver layer.
> > 
> > Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-11 15:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-10 10:30 [dpdk-dev] [PATCH] app/testpmd: remove port status check from TM node add cli Jasvinder Singh
2017-11-10 12:14 ` Lu, Wenzhuo
2017-11-11 15:17   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).