[PATCH v3 1/1] lib/dma: introduce inter-process and inter-OS DMA

Stephen Hemminger stephen at networkplumber.org
Wed Oct 15 19:27:46 CEST 2025


On Mon, 13 Oct 2025 09:51:36 +0530
Vamsi Krishna <vattunuru at marvell.com> 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?


More information about the dev mailing list