root/drivers/net/ethernet/mellanox/mlx5/core/lag_mp.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. mlx5_lag_mp_init
  2. mlx5_lag_mp_cleanup

   1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
   2 /* Copyright (c) 2019 Mellanox Technologies. */
   3 
   4 #ifndef __MLX5_LAG_MP_H__
   5 #define __MLX5_LAG_MP_H__
   6 
   7 #include "lag.h"
   8 #include "mlx5_core.h"
   9 
  10 struct lag_mp {
  11         struct notifier_block     fib_nb;
  12         struct fib_info           *mfi; /* used in tracking fib events */
  13 };
  14 
  15 #ifdef CONFIG_MLX5_ESWITCH
  16 
  17 int mlx5_lag_mp_init(struct mlx5_lag *ldev);
  18 void mlx5_lag_mp_cleanup(struct mlx5_lag *ldev);
  19 
  20 #else /* CONFIG_MLX5_ESWITCH */
  21 
  22 static inline int mlx5_lag_mp_init(struct mlx5_lag *ldev) { return 0; }
  23 static inline void mlx5_lag_mp_cleanup(struct mlx5_lag *ldev) {}
  24 
  25 #endif /* CONFIG_MLX5_ESWITCH */
  26 #endif /* __MLX5_LAG_MP_H__ */

/* [<][>][^][v][top][bottom][index][help] */