Skip to content

Commit

Permalink
net/virtio: reject unsupported Tx multi-queue modes
Browse files Browse the repository at this point in the history
[ upstream commit 9fc963a ]

This driver supports none of DCB or VMDQ modes, therefore must
check and return error if configured incorrectly.

Fixes: c1f8630 ("virtio: add new driver")

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
  • Loading branch information
arybchenko authored and kevintraynor committed Dec 10, 2019
1 parent 20accec commit 9b86e7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/net/virtio/virtio_ethdev.c
Expand Up @@ -1873,6 +1873,13 @@ virtio_dev_configure(struct rte_eth_dev *dev)
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) {
ret = virtio_init_device(dev, hw->req_guest_features);
if (ret < 0)
Expand Down

0 comments on commit 9b86e7f

Please sign in to comment.