From: Andrew Rybchenko Date: Wed, 9 Oct 2019 12:32:08 +0000 (+0100) Subject: net/virtio: reject unsupported Tx multi-queue modes X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9fc963acc26f31c46e4c7f8527b60fa2e5505f8f;p=dpdk.git 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 Reviewed-by: Maxime Coquelin --- diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 76bd40a3e4..646de9945c 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -2073,6 +2073,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)