https://github.com/torvalds/linux
Raw File
Tip revision: b90cb1053190353cc30f0fef0ef1f378ccc063c5 authored by Linus Torvalds on 28 August 2022, 22:05:29 UTC
Linux 6.0-rc3
Tip revision: b90cb10
mpfs.h
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
 * Copyright (c) 2021 Mellanox Technologies Ltd.
 */

#ifndef _MLX5_MPFS_
#define _MLX5_MPFS_

struct mlx5_core_dev;

#ifdef CONFIG_MLX5_MPFS
int  mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac);
int  mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac);
#else /* #ifndef CONFIG_MLX5_MPFS */
static inline int  mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u8 *mac) { return 0; }
static inline int  mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u8 *mac) { return 0; }
#endif

#endif
back to top