[dpdk-dev] [PATCH] net/mlx5: fix tunnel_en initialization value
Congwen Zhang
zhang.congwen at zte.com.cn
Tue Sep 12 11:05:50 CEST 2017
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 at 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
More information about the dev
mailing list