git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/hns3: fix delay for waiting to stop Rx/Tx
[dpdk.git]
/
drivers
/
net
/
hns3
/
hns3_tm.c
diff --git
a/drivers/net/hns3/hns3_tm.c
b/drivers/net/hns3/hns3_tm.c
index
bcae57a
..
aae4970
100644
(file)
--- a/
drivers/net/hns3/hns3_tm.c
+++ b/
drivers/net/hns3/hns3_tm.c
@@
-1,5
+1,5
@@
/* SPDX-License-Identifier: BSD-3-Clause
/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2020-202
0 His
ilicon Limited.
+ * Copyright(c) 2020-202
1 HiS
ilicon Limited.
*/
#include <rte_malloc.h>
*/
#include <rte_malloc.h>
@@
-385,7
+385,7
@@
hns3_tm_leaf_node_param_check(struct rte_eth_dev *dev __rte_unused,
return -EINVAL;
}
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;
error->type = RTE_TM_ERROR_TYPE_NODE_PARAMS_CMAN;
error->message = "congestion management not supported";
return -EINVAL;