cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

mpfs.h (540B)


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