common/mlx5: fix name for ConnectX VF device ID
[dpdk.git] / drivers / net / mlx5 / linux / mlx5_os.c
index 4b7fff4..5a6ae79 100644 (file)
@@ -250,15 +250,13 @@ mlx5_alloc_shared_dr(struct mlx5_priv *priv)
                             flow_dv_push_vlan_remove_cb);
        /* Init sample action cache list. */
        snprintf(s, sizeof(s), "%s_sample_action_cache", sh->ibdev_name);
-       mlx5_cache_list_init(&sh->sample_action_list, s, 0,
-                            &rte_eth_devices[priv->dev_data->port_id],
+       mlx5_cache_list_init(&sh->sample_action_list, s, 0, sh,
                             flow_dv_sample_create_cb,
                             flow_dv_sample_match_cb,
                             flow_dv_sample_remove_cb);
        /* Init dest array action cache list. */
        snprintf(s, sizeof(s), "%s_dest_array_cache", sh->ibdev_name);
-       mlx5_cache_list_init(&sh->dest_array_list, s, 0,
-                            &rte_eth_devices[priv->dev_data->port_id],
+       mlx5_cache_list_init(&sh->dest_array_list, s, 0, sh,
                             flow_dv_dest_array_create_cb,
                             flow_dv_dest_array_match_cb,
                             flow_dv_dest_array_remove_cb);
@@ -2115,7 +2113,7 @@ mlx5_os_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
        case PCI_DEVICE_ID_MELLANOX_CONNECTX5EXVF:
        case PCI_DEVICE_ID_MELLANOX_CONNECTX5BFVF:
        case PCI_DEVICE_ID_MELLANOX_CONNECTX6VF:
-       case PCI_DEVICE_ID_MELLANOX_CONNECTX6DXVF:
+       case PCI_DEVICE_ID_MELLANOX_CONNECTXVF:
                dev_config_vf = 1;
                break;
        default: