summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2018-05-14 13:04:38 +0800
committerThomas Monjalon <thomas@monjalon.net>2018-05-15 22:29:22 +0200
commitf11a4a7d8a8bff6ce167ea7a6a87f34ca47340e0 (patch)
treeef8f4a65705afcde817f62835e63692fc11653fd
parent52f766443423a7728a9dedda13fd8b23d7e50665 (diff)
downloaddpdk-f11a4a7d8a8bff6ce167ea7a6a87f34ca47340e0.zip
dpdk-f11a4a7d8a8bff6ce167ea7a6a87f34ca47340e0.tar.gz
dpdk-f11a4a7d8a8bff6ce167ea7a6a87f34ca47340e0.tar.xz
net/mlx5: fix uninitialized variable in probing
Fixes: ccdcba53a3f4 ("net/mlx5: use Netlink to add/remove MAC addresses") Signed-off-by: Andy Green <andy@warmcat.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
-rw-r--r--drivers/net/mlx5/mlx5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 8aa91cc..f455ea8 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -686,7 +686,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
int err = 0;
struct ibv_context *attr_ctx = NULL;
struct ibv_device_attr_ex device_attr;
- unsigned int vf;
+ unsigned int vf = 0;
unsigned int mps;
unsigned int cqe_comp;
unsigned int tunnel_en = 0;