Re: [dpdk-dev] [RFC 01/14] common/mlx5: add common device driver
From: Thomas Monjalon <hidden>
Date: 2021-06-10 09:51:31
From: Thomas Monjalon <hidden>
Date: 2021-06-10 09:51:31
27/05/2021 15:37, Xueming Li:
+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")