From 23a5ba8922acebe8ca453e55ea9b10198f049c63 Mon Sep 17 00:00:00 2001 From: Jingjing Wu Date: Thu, 25 Feb 2016 15:33:34 +0800 Subject: [PATCH] ixgbe: disallow unsupported Rx mode The multi queue mode ETH_MQ_RX_VMDQ_DCB_RSS is not supported in ixgbe driver. Signed-off-by: Jingjing Wu Acked-by: Helin Zhang --- drivers/net/ixgbe/ixgbe_ethdev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 6b5cbe3d8d..53717200fe 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -1924,6 +1924,11 @@ ixgbe_check_mq_mode(struct rte_eth_dev *dev) return -EINVAL; } } else { + if (dev_conf->rxmode.mq_mode == ETH_MQ_RX_VMDQ_DCB_RSS) { + PMD_INIT_LOG(ERR, "VMDQ+DCB+RSS mq_mode is" + " not supported."); + return -EINVAL; + } /* check configuration for vmdb+dcb mode */ if (dev_conf->rxmode.mq_mode == ETH_MQ_RX_VMDQ_DCB) { const struct rte_eth_vmdq_dcb_conf *conf; -- 2.20.1