Lines Matching defs:mdev
14 static bool required_caps_supported(struct mlx5_core_dev *mdev)
19 got = MLX5_CAP_GEN_64(mdev, general_obj_types);
24 event_mode = MLX5_CAP_DEV_VDPA_EMULATION(mdev, event_mode);
28 if (!MLX5_CAP_DEV_VDPA_EMULATION(mdev, eth_frame_offload_type))
34 static void *mlx5_vdpa_add(struct mlx5_core_dev *mdev)
38 if (mlx5_core_is_pf(mdev))
41 if (!required_caps_supported(mdev)) {
42 dev_info(mdev->device, "virtio net emulation not supported\n");
45 vdev = mlx5_vdpa_add_dev(mdev);
52 static void mlx5_vdpa_remove(struct mlx5_core_dev *mdev, void *context)