From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by dpdk.org (Postfix) with ESMTP id A46F1DE4 for ; Mon, 1 Jun 2015 14:11:18 +0200 (CEST) Received: by wibdq8 with SMTP id dq8so27113058wib.1 for ; Mon, 01 Jun 2015 05:11:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wgUE7aKufKpJdNe2igvW8pFx8EKfD+4j4WPU79+M4uQ=; b=UybejXgeCINO3cJSYMPPFrEqWyl05bZSNZspRB4eHl2O9TTXs1Q4Hfsr6hm2XUYP7D tdpYRpskMazUQEVm0fSsKvmqtWR76XQBmHT2cBmPCLr+f4bA9IO91f1PJtzFbEV/RTmY 5aJWiWI3Ok1o+3SFeMSrgtce0rWpErfoL518d6UzAKzzSjDLnJVPIm7bCwMiRlLZhdmu 427AK/YtOhITC5qTIuGlK+ShJGGCpHQsze+Hnia1apOEi/KPeiZ+bH/28A7V56odhc/z JzN81WP5InwsncUx/IGtkRAuXUs/QLsJ+wJH7CBZ3IUTflmZiV6YoxBeTBFra6AtAC/Y kp5w== X-Gm-Message-State: ALoCoQlbmWVPZzNtBAiTBfx7uwweF3ywywESRvQhwH1h/xZRg2MevHl0fITSDs59nkc4p1DGXGBK X-Received: by 10.194.186.198 with SMTP id fm6mr16588681wjc.101.1433160678546; Mon, 01 Jun 2015 05:11:18 -0700 (PDT) Received: from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id k2sm16395340wif.3.2015.06.01.05.11.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jun 2015 05:11:17 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Mon, 1 Jun 2015 14:11:09 +0200 Message-Id: <1433160669-20810-1-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 Cc: Ding Zhi Subject: [dpdk-dev] [PATCH] app/testpmd: fix default RX/TX flow control values X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2015 12:11:18 -0000 From: Ding Zhi 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 --- app/test-pmd/cmdline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index f01db2a..aec7a0b 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -4743,7 +4743,7 @@ 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, tx_fc_en = 0; int ret; /* -- 1.7.10.4