]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5.c
net/mlx5: fix tunnel offload detection
[dpdk.git] / drivers / net / mlx5 / mlx5.c
index d7968f54cf18e2ef81ff88a30114da265076135c..084df8832cb67f7c77e2ea7d1977c1115ed39ff8 100644 (file)
@@ -445,7 +445,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev)
        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;
 
@@ -503,6 +503,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev)
                        mps = MLX5_MPW_DISABLED;
                        break;
                case PCI_DEVICE_ID_MELLANOX_CONNECTX4LX:
+                       tunnel_en = 1;
                        mps = MLX5_MPW;
                        break;
                case PCI_DEVICE_ID_MELLANOX_CONNECTX5: