27/05/2021 15:37, Xueming Li:
quoted hunk ↗ jump to hunk
+static const struct {
+ const char *name;
+ unsigned int drv_class;
+} mlx5_classes[] = {
+ { .name = "vdpa", .drv_class = MLX5_CLASS_VDPA },
+ { .name = "net", .drv_class = MLX5_CLASS_NET },
+ { .name = "regex", .drv_class = MLX5_CLASS_REGEX },
+ { .name = "compress", .drv_class = MLX5_CLASS_COMPRESS },
+};
The class name should be "eth", not "net".
This is the standard in rte_ethdev.c:
rte_class_find_by_name("eth")