From: Ding Zhi Date: Mon, 1 Jun 2015 12:11:09 +0000 (+0200) Subject: app/testpmd: fix default flow control values X-Git-Tag: spdx-start~9106 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c76ee0d0ee4561615e4ec59dd745d54a6af17e25;p=dpdk.git app/testpmd: fix default flow control values This variable has undefined values in some cases. Fixes: 422a20a4e62d ("app/testpmd: fix uninitialized flow control variables") Signed-off-by: Ding Zhi Signed-off-by: David Marchand [Thomas: split lines to conform with guidelines] Acked-by: Thomas Monjalon --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 952a9dfe49..8142910d7f 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -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; /*