From: Bernard Iremonger Date: Tue, 14 Jun 2016 15:35:39 +0000 (+0100) Subject: app/testpmd: move forward streams initialisation X-Git-Tag: spdx-start~6735 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=edf87b4ad0fe706f704868ffa6a80684c7c0a26c;p=dpdk.git app/testpmd: move forward streams initialisation Move call to init_fwd_streams from start_port function to start_packet_forwarding function. Signed-off-by: Bernard Iremonger Acked-by: Pablo de Lara --- diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 5afce2739f..38cddca2d8 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -994,6 +994,12 @@ start_packet_forwarding(int with_tx_first) printf("Packet forwarding already started\n"); return; } + + if (init_fwd_streams() < 0) { + printf("Fail from init_fwd_streams()\n"); + return; + } + if(dcb_test) { for (i = 0; i < nb_fwd_ports; i++) { pt_id = fwd_ports_ids[i]; @@ -1284,11 +1290,6 @@ start_port(portid_t pid) if (port_id_is_invalid(pid, ENABLED_WARN)) return 0; - if (init_fwd_streams() < 0) { - printf("Fail from init_fwd_streams()\n"); - return -1; - } - if(dcb_config) dcb_test = 1; FOREACH_PORT(pi, ports) {