]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5.c
net/mlx5: fix SW parsing feature detection
[dpdk.git] / drivers / net / mlx5 / mlx5.c
index 5190b9fcd9b59487d7168e6871f4703a93ed263d..3885b0bf0e1a55212d4c6409e559c8b02a8b5e1e 100644 (file)
@@ -729,7 +729,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
                mps = MLX5_MPW_DISABLED;
        }
 #ifdef HAVE_IBV_MLX5_MOD_SWP
-       if (attrs_out.comp_mask | MLX5DV_CONTEXT_MASK_SWP)
+       if (attrs_out.comp_mask & MLX5DV_CONTEXT_MASK_SWP)
                swp = attrs_out.sw_parsing_caps.sw_parsing_offloads;
        DRV_LOG(DEBUG, "SWP support: %u", swp);
 #endif