net/virtio: reject unsupported Tx multi-queue modes
This driver supports none of DCB or VMDQ modes, therefore must check and return error if configured incorrectly. Fixes: c1f86306a026 ("virtio: add new driver") Cc: stable@dpdk.org Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
This commit is contained in:
parent
13b3137f3b
commit
9fc963acc2
@ -2073,6 +2073,13 @@ virtio_dev_configure(struct rte_eth_dev *dev)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (txmode->mq_mode != ETH_MQ_TX_NONE) {
|
||||||
|
PMD_DRV_LOG(ERR,
|
||||||
|
"Unsupported Tx multi queue mode %d",
|
||||||
|
txmode->mq_mode);
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
if (dev->data->dev_conf.intr_conf.rxq) {
|
if (dev->data->dev_conf.intr_conf.rxq) {
|
||||||
ret = virtio_init_device(dev, hw->req_guest_features);
|
ret = virtio_init_device(dev, hw->req_guest_features);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user