app/testpmd: fix default flow control values
authorDing Zhi <zhi.ding@6wind.com>
Mon, 1 Jun 2015 12:11:09 +0000 (14:11 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 15 Jun 2015 10:01:06 +0000 (12:01 +0200)
This variable has undefined values in some cases.

Fixes: 422a20a4e62d ("app/testpmd: fix uninitialized flow control variables")

Signed-off-by: Ding Zhi <zhi.ding@6wind.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
[Thomas: split lines to conform with guidelines]
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test-pmd/cmdline.c

index 952a9df..8142910 100644 (file)
@@ -4743,7 +4743,8 @@ cmd_link_flow_ctrl_set_parsed(void *parsed_result,
        struct cmd_link_flow_ctrl_set_result *res = parsed_result;
        cmdline_parse_inst_t *cmd = data;
        struct rte_eth_fc_conf fc_conf;
-       int rx_fc_en, tx_fc_en = 0;
+       int rx_fc_en = 0;
+       int tx_fc_en = 0;
        int ret;
 
        /*