xref: /linux-6.15/include/linux/mlx5/mpfs.h (revision 7c9f131f)
1*7c9f131fSEli Cohen /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
2*7c9f131fSEli Cohen  * Copyright (c) 2021 Mellanox Technologies Ltd.
3*7c9f131fSEli Cohen  */
4*7c9f131fSEli Cohen 
5*7c9f131fSEli Cohen #ifndef _MLX5_MPFS_
6*7c9f131fSEli Cohen #define _MLX5_MPFS_
7*7c9f131fSEli Cohen 
8*7c9f131fSEli Cohen struct mlx5_core_dev;
9*7c9f131fSEli Cohen 
10*7c9f131fSEli Cohen #ifdef CONFIG_MLX5_MPFS
11*7c9f131fSEli Cohen int  mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac);
12*7c9f131fSEli Cohen int  mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac);
13*7c9f131fSEli Cohen #else /* #ifndef CONFIG_MLX5_MPFS */
mlx5_mpfs_add_mac(struct mlx5_core_dev * dev,u8 * mac)14*7c9f131fSEli Cohen static inline int  mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac) { return 0; }
mlx5_mpfs_del_mac(struct mlx5_core_dev * dev,u8 * mac)15*7c9f131fSEli Cohen static inline int  mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac) { return 0; }
16*7c9f131fSEli Cohen #endif
17*7c9f131fSEli Cohen 
18*7c9f131fSEli Cohen #endif
19