| 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 |
|
| 11 |
void mlx5e_rep_bridge_init(struct mlx5e_priv *priv); |
| 12 |
void mlx5e_rep_bridge_cleanup(struct mlx5e_priv *priv); |
| 13 |
|
| 14 |
#else /* CONFIG_MLX5_BRIDGE */ |
| 15 |
|
| 16 |
static inline void mlx5e_rep_bridge_init(struct mlx5e_priv *priv) {} |
| 17 |
static inline void mlx5e_rep_bridge_cleanup(struct mlx5e_priv *priv) {} |
| 18 |
|
| 19 |
#endif /* CONFIG_MLX5_BRIDGE */ |
| 20 |
|
| 21 |
#endif /* __MLX5_EN_REP_BRIDGE__ */ |