#include <linux/rhashtable.h>
#include <net/flow_offload.h>
#include "en/tc_priv.h"
#include "act_stats.h"
#include "en/fs.h"
struct mlx5e_tc_act_stats_handle { … };
struct mlx5e_tc_act_stats { … };
static const struct rhashtable_params act_counters_ht_params = …;
struct mlx5e_tc_act_stats_handle *
mlx5e_tc_act_stats_create(void)
{ … }
void mlx5e_tc_act_stats_free(struct mlx5e_tc_act_stats_handle *handle)
{ … }
static int
mlx5e_tc_act_stats_add(struct mlx5e_tc_act_stats_handle *handle,
unsigned long act_cookie,
struct mlx5_fc *counter)
{ … }
void
mlx5e_tc_act_stats_del_flow(struct mlx5e_tc_act_stats_handle *handle,
struct mlx5e_tc_flow *flow)
{ … }
int
mlx5e_tc_act_stats_add_flow(struct mlx5e_tc_act_stats_handle *handle,
struct mlx5e_tc_flow *flow)
{ … }
int
mlx5e_tc_act_stats_fill_stats(struct mlx5e_tc_act_stats_handle *handle,
struct flow_offload_action *fl_act)
{ … }