#include "rx_res.h"
#include "channels.h"
#include "params.h"
#define MLX5E_MAX_NUM_RSS …
struct mlx5e_rx_res { … };
static u32 *get_vhca_ids(struct mlx5e_rx_res *res, int offset)
{ … }
void mlx5e_rx_res_rss_update_num_channels(struct mlx5e_rx_res *res, u32 nch)
{ … }
static int mlx5e_rx_res_rss_init_def(struct mlx5e_rx_res *res,
unsigned int init_nch)
{ … }
int mlx5e_rx_res_rss_init(struct mlx5e_rx_res *res, u32 *rss_idx, unsigned int init_nch)
{ … }
static int __mlx5e_rx_res_rss_destroy(struct mlx5e_rx_res *res, u32 rss_idx)
{ … }
int mlx5e_rx_res_rss_destroy(struct mlx5e_rx_res *res, u32 rss_idx)
{ … }
static void mlx5e_rx_res_rss_destroy_all(struct mlx5e_rx_res *res)
{ … }
static void mlx5e_rx_res_rss_enable(struct mlx5e_rx_res *res)
{ … }
static void mlx5e_rx_res_rss_disable(struct mlx5e_rx_res *res)
{ … }
void mlx5e_rx_res_rss_set_indir_uniform(struct mlx5e_rx_res *res, unsigned int nch)
{ … }
int mlx5e_rx_res_rss_get_rxfh(struct mlx5e_rx_res *res, u32 rss_idx,
u32 *indir, u8 *key, u8 *hfunc)
{ … }
int mlx5e_rx_res_rss_set_rxfh(struct mlx5e_rx_res *res, u32 rss_idx,
const u32 *indir, const u8 *key, const u8 *hfunc)
{ … }
int mlx5e_rx_res_rss_get_hash_fields(struct mlx5e_rx_res *res, u32 rss_idx,
enum mlx5_traffic_types tt)
{ … }
int mlx5e_rx_res_rss_set_hash_fields(struct mlx5e_rx_res *res, u32 rss_idx,
enum mlx5_traffic_types tt, u8 rx_hash_fields)
{ … }
int mlx5e_rx_res_rss_cnt(struct mlx5e_rx_res *res)
{ … }
int mlx5e_rx_res_rss_index(struct mlx5e_rx_res *res, struct mlx5e_rss *rss)
{ … }
struct mlx5e_rss *mlx5e_rx_res_rss_get(struct mlx5e_rx_res *res, u32 rss_idx)
{ … }
static void mlx5e_rx_res_free(struct mlx5e_rx_res *res)
{ … }
static struct mlx5e_rx_res *mlx5e_rx_res_alloc(struct mlx5_core_dev *mdev, unsigned int max_nch,
bool multi_vhca)
{ … }
static int mlx5e_rx_res_channels_init(struct mlx5e_rx_res *res)
{ … }
static int mlx5e_rx_res_ptp_init(struct mlx5e_rx_res *res)
{ … }
static void mlx5e_rx_res_channels_destroy(struct mlx5e_rx_res *res)
{ … }
static void mlx5e_rx_res_ptp_destroy(struct mlx5e_rx_res *res)
{ … }
struct mlx5e_rx_res *
mlx5e_rx_res_create(struct mlx5_core_dev *mdev, enum mlx5e_rx_res_features features,
unsigned int max_nch, u32 drop_rqn,
const struct mlx5e_packet_merge_param *init_pkt_merge_param,
unsigned int init_nch)
{ … }
void mlx5e_rx_res_destroy(struct mlx5e_rx_res *res)
{ … }
u32 mlx5e_rx_res_get_tirn_direct(struct mlx5e_rx_res *res, unsigned int ix)
{ … }
u32 mlx5e_rx_res_get_tirn_rss(struct mlx5e_rx_res *res, enum mlx5_traffic_types tt)
{ … }
u32 mlx5e_rx_res_get_tirn_rss_inner(struct mlx5e_rx_res *res, enum mlx5_traffic_types tt)
{ … }
u32 mlx5e_rx_res_get_tirn_ptp(struct mlx5e_rx_res *res)
{ … }
static u32 mlx5e_rx_res_get_rqtn_direct(struct mlx5e_rx_res *res, unsigned int ix)
{ … }
static void mlx5e_rx_res_channel_activate_direct(struct mlx5e_rx_res *res,
struct mlx5e_channels *chs,
unsigned int ix)
{ … }
static void mlx5e_rx_res_channel_deactivate_direct(struct mlx5e_rx_res *res,
unsigned int ix)
{ … }
void mlx5e_rx_res_channels_activate(struct mlx5e_rx_res *res, struct mlx5e_channels *chs)
{ … }
void mlx5e_rx_res_channels_deactivate(struct mlx5e_rx_res *res)
{ … }
void mlx5e_rx_res_xsk_update(struct mlx5e_rx_res *res, struct mlx5e_channels *chs,
unsigned int ix, bool xsk)
{ … }
int mlx5e_rx_res_packet_merge_set_param(struct mlx5e_rx_res *res,
struct mlx5e_packet_merge_param *pkt_merge_param)
{ … }
struct mlx5e_rss_params_hash mlx5e_rx_res_get_current_hash(struct mlx5e_rx_res *res)
{ … }
int mlx5e_rx_res_tls_tir_create(struct mlx5e_rx_res *res, unsigned int rxq,
struct mlx5e_tir *tir)
{ … }