net/cnxk: add TM shaper and node operations
[dpdk.git] / drivers / net / cnxk / cnxk_rte_flow.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2021 Marvell.
3  */
4 #ifndef __CNXK_RTE_FLOW_H__
5 #define __CNXK_RTE_FLOW_H__
6
7 #include <rte_flow_driver.h>
8 #include <rte_malloc.h>
9
10 #include "cnxk_ethdev.h"
11 #include "roc_api.h"
12 #include "roc_npc_priv.h"
13
14 struct cnxk_rte_flow_term_info {
15         uint16_t item_type;
16         uint16_t item_size;
17 };
18
19 struct roc_npc_flow *cnxk_flow_create(struct rte_eth_dev *dev,
20                                       const struct rte_flow_attr *attr,
21                                       const struct rte_flow_item pattern[],
22                                       const struct rte_flow_action actions[],
23                                       struct rte_flow_error *error);
24 int cnxk_flow_destroy(struct rte_eth_dev *dev, struct roc_npc_flow *flow,
25                       struct rte_flow_error *error);
26
27 #endif /* __CNXK_RTE_FLOW_H__ */