File Index
Files and directories
Sign in
FILE

bridge.h

File preview with syntax highlighting.

linux-6.19.14/drivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.h C
 1/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
 2/* Copyright (c) 2021 Mellanox Technologies. */
 3
 4#ifndef __MLX5_EN_REP_BRIDGE__
 5#define __MLX5_EN_REP_BRIDGE__
 6
 7#include "en.h"
 8
 9#if IS_ENABLED(CONFIG_MLX5_BRIDGE)
10
11void mlx5e_rep_bridge_init(struct mlx5e_priv *priv);
12void mlx5e_rep_bridge_cleanup(struct mlx5e_priv *priv);
13
14#else /* CONFIG_MLX5_BRIDGE */
15
16static inline void mlx5e_rep_bridge_init(struct mlx5e_priv *priv) {}
17static inline void mlx5e_rep_bridge_cleanup(struct mlx5e_priv *priv) {}
18
19#endif /* CONFIG_MLX5_BRIDGE */
20
21#endif /* __MLX5_EN_REP_BRIDGE__ */
~/ Read-only file preview.