root/drivers/net/ethernet/mellanox/mlx5/core/en/hv_vhca_stats.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. mlx5e_hv_vhca_stats_create
  2. mlx5e_hv_vhca_stats_destroy

   1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
   2 /* Copyright (c) 2019 Mellanox Technologies. */
   3 
   4 #ifndef __MLX5_EN_STATS_VHCA_H__
   5 #define __MLX5_EN_STATS_VHCA_H__
   6 #include "en.h"
   7 
   8 #if IS_ENABLED(CONFIG_PCI_HYPERV_INTERFACE)
   9 
  10 int mlx5e_hv_vhca_stats_create(struct mlx5e_priv *priv);
  11 void mlx5e_hv_vhca_stats_destroy(struct mlx5e_priv *priv);
  12 
  13 #else
  14 
  15 static inline int mlx5e_hv_vhca_stats_create(struct mlx5e_priv *priv)
  16 {
  17         return 0;
  18 }
  19 
  20 static inline void mlx5e_hv_vhca_stats_destroy(struct mlx5e_priv *priv)
  21 {
  22 }
  23 #endif
  24 
  25 #endif /* __MLX5_EN_STATS_VHCA_H__ */

/* [<][>][^][v][top][bottom][index][help] */