crypto/qat: support GMAC in GEN4 legacy mode
[dpdk.git] / drivers / net / i40e / i40e_hash.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2020 Intel Corporation
3  */
4
5 #ifndef _I40E_HASH_H_
6 #define _I40E_HASH_H_
7
8 #include <rte_ethdev.h>
9 #include <rte_flow.h>
10 #include "i40e_ethdev.h"
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 int i40e_hash_parse(const struct rte_eth_dev *dev,
17                     const struct rte_flow_item pattern[],
18                     const struct rte_flow_action actions[],
19                     struct i40e_rte_flow_rss_conf *rss_conf,
20                     struct rte_flow_error *error);
21
22 int i40e_hash_filter_create(struct i40e_pf *pf,
23                             struct i40e_rte_flow_rss_conf *rss_conf);
24
25 int i40e_hash_filter_restore(struct i40e_pf *pf);
26 int i40e_hash_filter_destroy(struct i40e_pf *pf,
27                              const struct i40e_rss_filter *rss_filter);
28 int i40e_hash_filter_flush(struct i40e_pf *pf);
29
30 #ifdef __cplusplus
31 }
32 #endif
33
34 #endif /* I40E_HASH_H_ */