On Tue,  8 Apr 2025 06:20:01 +0000
liwencheng <liwench...@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.

Reply via email to