[PATCH v6 1/3] net/macb: add new poll mode driver

Stephen Hemminger stephen at networkplumber.org
Wed Apr 16 18:38:32 CEST 2025


On Tue,  8 Apr 2025 06:20:01 +0000
liwencheng <liwencheng at phytium.com.cn> wrote:

> +
> +	dev_num = rte_kvargs_count(kvlist, MACB_DEVICE_NAME_ARG);
> +
> +	/* compatibility support */
> +	if (!strcmp(vdev_name, "net_macb")) {
> +		if (dev_num > MACB_MAX_PORT_NUM) {
> +			ret = -EINVAL;
> +			MACB_LOG(ERR, "number of devices exceeded. Maximum value: %d.",
> +				 MACB_MAX_PORT_NUM);
> +			goto out_free_kvlist;
> +		}
> +	} else {
> +		if (dev_num != 1) {
> +			ret = -EINVAL;
> +			MACB_LOG(ERR, "Error args: one vdev to one device.");
> +			goto out_free_kvlist;
> +		}
> +	}
> +

Since this is to first merged version of the driver, confused about what
compatibility means in this context?

Does the driver require devargs to work? Isn't it a hardware driver.


More information about the dev mailing list