Skip to content

Commit

Permalink
net/hns3: fix DCB mode check
Browse files Browse the repository at this point in the history
[ upstream commit edba2e3 ]

Currently, "ONLY DCB" and "DCB+RSS" mode are both supported by HNS3
PF driver. But the driver verifies only the "DCB+RSS" multiple queues
mode.

Fixes: 62e3ccc ("net/hns3: support flow control")

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
  • Loading branch information
LiHuiSong1 authored and steevenlee committed May 8, 2021
1 parent 2782c99 commit cdffbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/hns3/hns3_ethdev.c
Expand Up @@ -2154,7 +2154,7 @@ hns3_check_mq_mode(struct rte_eth_dev *dev)
return -EINVAL;
}

if (rx_mq_mode == ETH_MQ_RX_DCB_RSS) {
if (rx_mq_mode & ETH_MQ_RX_DCB_FLAG) {
if (dcb_rx_conf->nb_tcs > pf->tc_max) {
hns3_err(hw, "nb_tcs(%u) > max_tc(%u) driver supported.",
dcb_rx_conf->nb_tcs, pf->tc_max);
Expand Down

0 comments on commit cdffbfb

Please sign in to comment.