linux/drivers/net/ethernet/mellanox/mlx5/core/en/trap.c

// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
/* Copyright (c) 2020 Mellanox Technologies */

#include "en/txrx.h"
#include "en/params.h"
#include "en/trap.h"

static int mlx5e_trap_napi_poll(struct napi_struct *napi, int budget)
{}

static void mlx5e_init_trap_rq(struct mlx5e_trap *t, struct mlx5e_params *params,
			       struct mlx5e_rq *rq)
{}

static int mlx5e_open_trap_rq(struct mlx5e_priv *priv, struct mlx5e_trap *t)
{}

static void mlx5e_close_trap_rq(struct mlx5e_rq *rq)
{}

static int mlx5e_create_trap_direct_rq_tir(struct mlx5_core_dev *mdev, struct mlx5e_tir *tir,
					   u32 rqn)
{}

static void mlx5e_build_trap_params(struct mlx5_core_dev *mdev,
				    int max_mtu, struct mlx5e_trap *t)
{}

static struct mlx5e_trap *mlx5e_open_trap(struct mlx5e_priv *priv)
{}

void mlx5e_close_trap(struct mlx5e_trap *trap)
{}

static void mlx5e_activate_trap(struct mlx5e_trap *trap)
{}

void mlx5e_deactivate_trap(struct mlx5e_priv *priv)
{}

static struct mlx5e_trap *mlx5e_add_trap_queue(struct mlx5e_priv *priv)
{}

static void mlx5e_del_trap_queue(struct mlx5e_priv *priv)
{}

static int mlx5e_trap_get_tirn(struct mlx5e_trap *en_trap)
{}

static int mlx5e_handle_action_trap(struct mlx5e_priv *priv, int trap_id)
{}

static int mlx5e_handle_action_drop(struct mlx5e_priv *priv, int trap_id)
{}

int mlx5e_handle_trap_event(struct mlx5e_priv *priv, struct mlx5_trap_ctx *trap_ctx)
{}

static int mlx5e_apply_trap(struct mlx5e_priv *priv, int trap_id, bool enable)
{}

static const int mlx5e_traps_arr[] =;

int mlx5e_apply_traps(struct mlx5e_priv *priv, bool enable)
{}