[dpdk-dev] [RFC 01/14] common/mlx5: add common device driver

Thomas Monjalon thomas at monjalon.net
Thu Jun 10 11:51:24 CEST 2021


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")




More information about the dev mailing list