X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fhns3%2Fhns3_tm.c;h=aae4970a4b1d797b302e8227954b8778c3d511db;hb=4d8cce267840556cec8483c61f8cfbf25873496d;hp=15e00b6e9c202f4721b54f9af199438972feca62;hpb=fa485faca236bd0ac834b6ad7c36f5050305482e;p=dpdk.git diff --git a/drivers/net/hns3/hns3_tm.c b/drivers/net/hns3/hns3_tm.c index 15e00b6e9c..aae4970a4b 100644 --- a/drivers/net/hns3/hns3_tm.c +++ b/drivers/net/hns3/hns3_tm.c @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright(c) 2020-2020 HiSilicon Limited. + * Copyright(c) 2020-2021 HiSilicon Limited. */ #include @@ -385,7 +385,7 @@ hns3_tm_leaf_node_param_check(struct rte_eth_dev *dev __rte_unused, return -EINVAL; } - if (params->leaf.cman) { + if (params->leaf.cman != RTE_TM_CMAN_TAIL_DROP) { error->type = RTE_TM_ERROR_TYPE_NODE_PARAMS_CMAN; error->message = "congestion management not supported"; return -EINVAL;