diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-06-01 14:58:44 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-06-01 14:58:44 -0300 |
commit | 0ab8009b3e8dd6baf54751e734b8734bc0fcde5e (patch) | |
tree | 926957e39e8458339b7589082a4949c060f4a76f /include/linux/mlx5/mpfs.h | |
parent | 79e157b00853af0e96d76997a93feec476a23bfa (diff) | |
parent | c2131f7e73c9e9365613e323d65c7b9e5b910f56 (diff) | |
download | linux-stable-0ab8009b3e8dd6baf54751e734b8734bc0fcde5e.tar.gz linux-stable-0ab8009b3e8dd6baf54751e734b8734bc0fcde5e.tar.bz2 linux-stable-0ab8009b3e8dd6baf54751e734b8734bc0fcde5e.zip |
Merge remote-tracking branch 'torvalds/master' into perf/core
To pick up fixes from perf/urgent to allow perf/core to be used for new
development.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'include/linux/mlx5/mpfs.h')
-rw-r--r-- | include/linux/mlx5/mpfs.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/mlx5/mpfs.h b/include/linux/mlx5/mpfs.h new file mode 100644 index 000000000000..bf700c8d5516 --- /dev/null +++ b/include/linux/mlx5/mpfs.h @@ -0,0 +1,18 @@ +/* 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 |