Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
0002  * Copyright (c) 2021 Mellanox Technologies Ltd.
0003  */
0004 
0005 #ifndef _MLX5_MPFS_
0006 #define _MLX5_MPFS_
0007 
0008 struct mlx5_core_dev;
0009 
0010 #ifdef CONFIG_MLX5_MPFS
0011 int  mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac);
0012 int  mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac);
0013 #else /* #ifndef CONFIG_MLX5_MPFS */
0014 static inline int  mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac) { return 0; }
0015 static inline int  mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac) { return 0; }
0016 #endif
0017 
0018 #endif