net/hns3: list supported ptypes for advanced Rx descriptor
[dpdk.git] / drivers / net / dpaa2 / dpaa2_tm.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2020 NXP
3  */
4
5 #ifndef _DPAA2_TM_H_
6 #define _DPAA2_TM_H_
7
8 #include <rte_tm.h>
9
10 struct dpaa2_tm_shaper_profile {
11         LIST_ENTRY(dpaa2_tm_shaper_profile) next;
12         uint32_t id;
13         int refcnt;
14         struct rte_tm_shaper_params params;
15 };
16
17 struct dpaa2_tm_node {
18         LIST_ENTRY(dpaa2_tm_node) next;
19         uint32_t id;
20         uint32_t type;
21         int refcnt;
22         struct dpaa2_tm_node *parent;
23         struct dpaa2_tm_shaper_profile *profile;
24         uint32_t weight;
25         uint32_t priority;
26         uint64_t stats_mask;
27 };
28
29 int dpaa2_tm_init(struct rte_eth_dev *dev);
30 void dpaa2_tm_deinit(struct rte_eth_dev *dev);
31
32 #endif /* _DPAA2_TM_H_ */