diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mlx4/driver.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mlx4/driver.h b/include/linux/mlx4/driver.h index 5a06d969338e..2e8af001c5da 100644 --- a/include/linux/mlx4/driver.h +++ b/include/linux/mlx4/driver.h | |||
| @@ -75,6 +75,11 @@ static inline int mlx4_is_bonded(struct mlx4_dev *dev) | |||
| 75 | return !!(dev->flags & MLX4_FLAG_BONDED); | 75 | return !!(dev->flags & MLX4_FLAG_BONDED); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | static inline int mlx4_is_mf_bonded(struct mlx4_dev *dev) | ||
| 79 | { | ||
| 80 | return (mlx4_is_bonded(dev) && mlx4_is_mfunc(dev)); | ||
| 81 | } | ||
| 82 | |||
| 78 | struct mlx4_port_map { | 83 | struct mlx4_port_map { |
| 79 | u8 port1; | 84 | u8 port1; |
| 80 | u8 port2; | 85 | u8 port2; |
