1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Chelsio Communications.
8 #include <rte_flow_driver.h>
9 #include "cxgbe_filter.h"
12 #define CXGBE_FLOW_POLL_US 10
13 #define CXGBE_FLOW_POLL_CNT 10
16 int (*fptr)(const void *mask, /* currently supported mask */
17 const struct rte_flow_item *item, /* user input */
18 struct ch_filter_specification *fs, /* where to parse */
19 struct rte_flow_error *e);
20 const void *dmask; /* Specify what is supported by chelsio by default*/
24 struct filter_entry *f;
25 struct ch_filter_specification fs; /* temp, to create filter */
26 struct chrte_fparse *item_parser;
28 * filter_entry doesn't store user priority.
29 * Post creation of filter this will indicate the
30 * flow index (fidx) for both hash and tcam filters
33 struct rte_eth_dev *dev;
37 cxgbe_dev_filter_ctrl(struct rte_eth_dev *dev,
38 enum rte_filter_type filter_type,
39 enum rte_filter_op filter_op,
42 #endif /* _CXGBE_FLOW_H_ */