app/testpmd: show topology at forwarding start
authorZhihong Wang <zhihong.wang@intel.com>
Tue, 14 Jun 2016 23:08:06 +0000 (19:08 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 16 Jun 2016 14:34:48 +0000 (16:34 +0200)
This patch show topology at forwarding start.

"show config fwd" also does this, but showing it directly can reduce the
possibility of misconfiguration.

Currently fwd_config_display() calls fwd_config_setup(), this misleading
behavior will be fixed in other patches.

Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-pmd/testpmd.c

index 901e664..8060c99 100644 (file)
@@ -1024,6 +1024,7 @@ start_packet_forwarding(int with_tx_first)
                flush_fwd_rx_queues();
 
        fwd_config_setup();
+       pkt_fwd_config_display(&cur_fwd_config);
        rxtx_config_display();
 
        for (i = 0; i < cur_fwd_config.nb_fwd_ports; i++) {