DPDK patches and discussions
 help / color / mirror / Atom feed
From: Congwen Zhang <zhang.congwen@zte.com.cn>
To: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com
Cc: dev@dpdk.org, Congwen Zhang <zhang.congwen@zte.com.cn>
Subject: [dpdk-dev] [PATCH] net/mlx5: fix tunnel_en initialization value
Date: Tue, 12 Sep 2017 17:05:50 +0800	[thread overview]
Message-ID: <201709120914.v8C9Evq8012512@mse01.zte.com.cn> (raw)

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 <zhang.congwen@zte.com.cn>
---
 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;
 
-- 
1.8.3.1

             reply	other threads:[~2017-09-12  9:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-12  9:05 Congwen Zhang [this message]
2017-09-12 10:19 ` Adrien Mazarguil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201709120914.v8C9Evq8012512@mse01.zte.com.cn \
    --to=zhang.congwen@zte.com.cn \
    --cc=adrien.mazarguil@6wind.com \
    --cc=dev@dpdk.org \
    --cc=nelio.laranjeiro@6wind.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).