diff options
| author | Ido Shamay <idos@mellanox.com> | 2015-04-02 09:31:08 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-04-02 16:24:51 -0400 |
| commit | fccea6436a5bd16aed6f722efce13ec2c90427d7 (patch) | |
| tree | 700242691c8121678e4df9fa66a28c5fb323bfad /include/linux/mlx4 | |
| parent | 241a08c3a767ca2f6ab1c99c4db4c3ff867de8aa (diff) | |
net/mlx4: Make mlx4_is_eth visible inline funcion
Currently implemented as static function in resource_tracker.c --
this change will allow other files in mlx4_core to use it as well.
Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
| -rw-r--r-- | include/linux/mlx4/device.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 41eaafdfb1cd..0f7f13d6a03e 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
| @@ -1002,6 +1002,11 @@ static inline int mlx4_is_slave(struct mlx4_dev *dev) | |||
| 1002 | return dev->flags & MLX4_FLAG_SLAVE; | 1002 | return dev->flags & MLX4_FLAG_SLAVE; |
| 1003 | } | 1003 | } |
| 1004 | 1004 | ||
| 1005 | static inline int mlx4_is_eth(struct mlx4_dev *dev, int port) | ||
| 1006 | { | ||
| 1007 | return dev->caps.port_type[port] == MLX4_PORT_TYPE_IB ? 0 : 1; | ||
| 1008 | } | ||
| 1009 | |||
| 1005 | int mlx4_buf_alloc(struct mlx4_dev *dev, int size, int max_direct, | 1010 | int mlx4_buf_alloc(struct mlx4_dev *dev, int size, int max_direct, |
| 1006 | struct mlx4_buf *buf, gfp_t gfp); | 1011 | struct mlx4_buf *buf, gfp_t gfp); |
| 1007 | void mlx4_buf_free(struct mlx4_dev *dev, int size, struct mlx4_buf *buf); | 1012 | void mlx4_buf_free(struct mlx4_dev *dev, int size, struct mlx4_buf *buf); |
