[dpdk-dev] [PATCH v3 1/2] virtio: cleanup virtio_dev_queue_setup()

Yuanhan Liu yuanhan.liu at linux.intel.com
Thu May 5 05:19:31 CEST 2016


On Fri, Apr 29, 2016 at 12:48:45AM +0000, Jianfeng Tan wrote:
> +	if (queue_type < VTNET_RQ || queue_type > VTNET_CQ) {
> +		PMD_INIT_LOG(ERR, "invalid queue type: %d", queue_type);
> +		return -EINVAL;
>  	}

I'm thinking this check is not necessary. We can make sure it's a valid
queue type.

	--yliu


More information about the dev mailing list