cea47990e59daffd84178fc7565bdfcbdae454bd
[dpdk.git] / drivers / net / ice / ice_switch_filter.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019 Intel Corporation
3  */
4
5 #ifndef _ICE_SWITCH_FILTER_H_
6 #define _ICE_SWITCH_FILTER_H_
7
8 #include "base/ice_switch.h"
9 #include "base/ice_type.h"
10 #include "ice_ethdev.h"
11
12 int
13 ice_create_switch_filter(struct ice_pf *pf,
14                         const struct rte_flow_item pattern[],
15                         const struct rte_flow_action actions[],
16                         struct rte_flow *flow,
17                         struct rte_flow_error *error);
18 int
19 ice_destroy_switch_filter(struct ice_pf *pf,
20                         struct rte_flow *flow,
21                         struct rte_flow_error *error);
22 void
23 ice_free_switch_filter_rule(void *rule);
24 #endif /* _ICE_SWITCH_FILTER_H_ */