net/hns3: fix return value for unsupported tuple
[dpdk.git] / drivers / net / dpaa2 / dpaa2_tm.h
index 6632fab..cfbb437 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright 2020 NXP
+ * Copyright 2020-2021 NXP
  */
 
 #ifndef _DPAA2_TM_H_
@@ -7,6 +7,18 @@
 
 #include <rte_tm.h>
 
+enum node_type {
+       NON_LEAF_NODE = 0,
+       LEAF_NODE
+};
+
+enum level_type {
+       LNI_LEVEL = 0,
+       CHANNEL_LEVEL,
+       QUEUE_LEVEL,
+       MAX_LEVEL
+};
+
 struct dpaa2_tm_shaper_profile {
        LIST_ENTRY(dpaa2_tm_shaper_profile) next;
        uint32_t id;
@@ -18,6 +30,9 @@ struct dpaa2_tm_node {
        LIST_ENTRY(dpaa2_tm_node) next;
        uint32_t id;
        uint32_t type;
+       uint32_t level_id;
+       uint16_t channel_id; /* Only for level 1 nodes */
+       uint16_t tc_id; /* Only for level 1 nodes */
        int refcnt;
        struct dpaa2_tm_node *parent;
        struct dpaa2_tm_shaper_profile *profile;