On Mon, 13 Oct 2025 09:51:36 +0530
Vamsi Krishna <[email protected]> wrote:

> +     if (conf->domain.type != RTE_DMA_INTER_DOMAIN_NONE &&
> +         conf->direction != RTE_DMA_DIR_MEM_TO_MEM) {
> +             RTE_DMA_LOG(ERR, "Device %d inter domain only support 
> mem-to-mem transfer", dev_id);
> +             return -EINVAL;
> +     }
> +     if (conf->domain.type == RTE_DMA_INTER_OS_DOMAIN &&
> +         !(dev_info.dev_capa & RTE_DMA_CAPA_INTER_OS_DOMAIN)) {
> +             RTE_DMA_LOG(ERR, "Device %d does not support inter os domain", 
> dev_id);
> +             return -EINVAL;
> +     }
> +     if (conf->domain.type == RTE_DMA_INTER_PROCESS_DOMAIN &&
> +         !(dev_info.dev_capa & RTE_DMA_CAPA_INTER_PROCESS_DOMAIN)) {
> +             RTE_DMA_LOG(ERR, "Device %d does not support inter process 
> domain", dev_id);
> +             return -EINVAL;
> +     }

Why is dev_id of type int16_t, seems like a limiting and poor choice.
Would expect it to be unsigned and 32 bits?

Reply via email to