From patchwork Tue Sep 12 09:05:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Congwen Zhang X-Patchwork-Id: 28610 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B722A29CA; Tue, 12 Sep 2017 11:15:02 +0200 (CEST) Received: from mxct.zte.com.cn (out1.zte.com.cn [202.103.147.172]) by dpdk.org (Postfix) with ESMTP id BF4402BA4 for ; Tue, 12 Sep 2017 11:15:01 +0200 (CEST) Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 39DCC97A2CEA088E1922; Tue, 12 Sep 2017 17:14:59 +0800 (CST) Received: (from root@localhost) by mse01.zte.com.cn id v8C9Evq8012512; Tue, 12 Sep 2017 17:14:57 +0800 (GMT-8) (envelope-from zhang.congwen@zte.com.cn) Message-Id: <201709120914.v8C9Evq8012512@mse01.zte.com.cn> Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id v8C96eXi085025; Tue, 12 Sep 2017 17:06:40 +0800 (GMT-8) (envelope-from zhang.congwen@zte.com.cn) Received: from localhost.localdomain.localdomain ([10.43.166.171]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2017091217064316-2261757 ; Tue, 12 Sep 2017 17:06:43 +0800 From: Congwen Zhang To: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com Cc: dev@dpdk.org, Congwen Zhang Date: Tue, 12 Sep 2017 17:05:50 +0800 X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2017-09-12 17:06:43, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2017-09-12 17:06:35, Serialize complete at 2017-09-12 17:06:35 X-MAIL: mse01.zte.com.cn v8C9Evq8012512 X-MSS: AUDITRELEASE@mse01.zte.com.cn Subject: [dpdk-dev] [PATCH] net/mlx5: fix tunnel_en initialization value X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" In function mlx5_pci_probe(), tunnel_en actually be used without being initialized. Fix it by initializing it to 0. Signe-off-by: Congwen Zhang --- drivers/net/mlx5/mlx5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index b7e5046..95e62ad 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -452,7 +452,7 @@ struct mlx5_args { struct ibv_device_attr device_attr; unsigned int sriov; unsigned int mps; - unsigned int tunnel_en; + unsigned int tunnel_en = 0; int idx; int i;