f-stack/dpdk/drivers/net/i40e/i40e_hash.h

35 lines
820 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2020 Intel Corporation
*/
#ifndef _I40E_HASH_H_
#define _I40E_HASH_H_
#include <rte_ethdev.h>
#include <rte_flow.h>
#include "i40e_ethdev.h"
#ifdef __cplusplus
extern "C" {
#endif
int i40e_hash_parse(const struct rte_eth_dev *dev,
const struct rte_flow_item pattern[],
const struct rte_flow_action actions[],
struct i40e_rte_flow_rss_conf *rss_conf,
struct rte_flow_error *error);
int i40e_hash_filter_create(struct i40e_pf *pf,
struct i40e_rte_flow_rss_conf *rss_conf);
int i40e_hash_filter_restore(struct i40e_pf *pf);
int i40e_hash_filter_destroy(struct i40e_pf *pf,
const struct i40e_rss_filter *rss_filter);
int i40e_hash_filter_flush(struct i40e_pf *pf);
#ifdef __cplusplus
}
#endif
#endif /* I40E_HASH_H_ */