summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIntel <intel.com>2013-07-23 00:00:00 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-09-17 14:16:10 +0200
commit0b3144a9050fe1cfd99dbf3ca5992718fd9184a7 (patch)
tree6bfd340bf3930d3cfa4fc3356faee4c0f7a6ab64
parent11c378b199c662a133fe61482b06f870a56a4c5b (diff)
downloaddpdk-0b3144a9050fe1cfd99dbf3ca5992718fd9184a7.zip
dpdk-0b3144a9050fe1cfd99dbf3ca5992718fd9184a7.tar.gz
dpdk-0b3144a9050fe1cfd99dbf3ca5992718fd9184a7.tar.xz
ixgbe: fix DCB setup
Signed-off-by: Intel
-rw-r--r--lib/librte_pmd_ixgbe/ixgbe_rxtx.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c
index 3039faa..5fba01d 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 **/