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

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

#ifndef __MLX5E_TRAP_H__
#define __MLX5E_TRAP_H__

#include "../en.h"
#include "../devlink.h"

struct mlx5e_trap {};

void mlx5e_close_trap(struct mlx5e_trap *trap);
void mlx5e_deactivate_trap(struct mlx5e_priv *priv);
int mlx5e_handle_trap_event(struct mlx5e_priv *priv, struct mlx5_trap_ctx *trap_ctx);
int mlx5e_apply_traps(struct mlx5e_priv *priv, bool enable);

#endif