1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /* Copyright (c) 2019 Mellanox Technologies. */
4 #ifndef __MLX5_LAG_MP_H__
5 #define __MLX5_LAG_MP_H__
10 enum mlx5_lag_port_affinity {
11 MLX5_LAG_NORMAL_AFFINITY,
17 struct notifier_block fib_nb;
18 struct fib_info *mfi; /* used in tracking fib events */
19 struct workqueue_struct *wq;
22 #ifdef CONFIG_MLX5_ESWITCH
24 int mlx5_lag_mp_init(struct mlx5_lag *ldev);
25 void mlx5_lag_mp_cleanup(struct mlx5_lag *ldev);
27 #else /* CONFIG_MLX5_ESWITCH */
29 static inline int mlx5_lag_mp_init(struct mlx5_lag *ldev) { return 0; }
30 static inline void mlx5_lag_mp_cleanup(struct mlx5_lag *ldev) {}
32 #endif /* CONFIG_MLX5_ESWITCH */
33 #endif /* __MLX5_LAG_MP_H__ */