mpfs.h 540 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
  2. * Copyright (c) 2021 Mellanox Technologies Ltd.
  3. */
  4. #ifndef _MLX5_MPFS_
  5. #define _MLX5_MPFS_
  6. struct mlx5_core_dev;
  7. #ifdef CONFIG_MLX5_MPFS
  8. int mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac);
  9. int mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac);
  10. #else /* #ifndef CONFIG_MLX5_MPFS */
  11. static inline int mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac) { return 0; }
  12. static inline int mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac) { return 0; }
  13. #endif
  14. #endif