From: Intel Date: Mon, 22 Jul 2013 22:00:00 +0000 (+0200) Subject: ixgbe: fix DCB setup X-Git-Tag: spdx-start~11169 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0b3144a9050fe1cfd99dbf3ca5992718fd9184a7;p=dpdk.git ixgbe: fix DCB setup Signed-off-by: Intel --- diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c index 3039faaa66..5fba01d846 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c @@ -3036,16 +3036,11 @@ void ixgbe_configure_dcb(struct rte_eth_dev *dev) PMD_INIT_FUNC_TRACE(); /* check support mq_mode for DCB */ - if ((dev_conf->rxmode.mq_mode != ETH_MQ_RX_VMDQ_DCB) || + if ((dev_conf->rxmode.mq_mode != ETH_MQ_RX_VMDQ_DCB) && (dev_conf->rxmode.mq_mode != ETH_MQ_RX_DCB)) return; - if ((dev_conf->txmode.mq_mode != ETH_MQ_TX_VMDQ_DCB) || - (dev_conf->txmode.mq_mode != ETH_MQ_TX_DCB)) - return; - - if ((dev->data->nb_rx_queues != ETH_DCB_NUM_QUEUES) || - (dev->data->nb_tx_queues != ETH_DCB_NUM_QUEUES)) + if (dev->data->nb_rx_queues != ETH_DCB_NUM_QUEUES) return; /** Configure DCB hardware **/