xref: /dpdk/drivers/net/cnxk/cn10k_flow.h (revision cbf10d7f4ede2e1bb068bbb7ebb7c5de5a33ebb3)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2020 Marvell.
3  */
4 #ifndef __CN10K_RTE_FLOW_H__
5 #define __CN10K_RTE_FLOW_H__
6 
7 #include <rte_flow_driver.h>
8 
9 struct rte_flow *cn10k_flow_create(struct rte_eth_dev *dev, const struct rte_flow_attr *attr,
10 				   const struct rte_flow_item pattern[],
11 				   const struct rte_flow_action actions[],
12 				   struct rte_flow_error *error);
13 int cn10k_flow_destroy(struct rte_eth_dev *dev, struct rte_flow *flow,
14 		       struct rte_flow_error *error);
15 
16 int cn10k_flow_info_get(struct rte_eth_dev *dev, struct rte_flow_port_info *port_info,
17 			struct rte_flow_queue_info *queue_info, struct rte_flow_error *err);
18 
19 #define CN10K_NPC_COUNTERS_MAX 512
20 
21 #endif /* __CN10K_RTE_FLOW_H__ */
22