diff options
Diffstat (limited to 'include/linux/mlx4')
| -rw-r--r-- | include/linux/mlx4/device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index b3f9b4500b9b..9b243df789ef 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
| @@ -697,6 +697,10 @@ struct mlx4_init_port_param { | |||
| 697 | for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ | 697 | for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ |
| 698 | if ((type) == (dev)->caps.port_mask[(port)]) | 698 | if ((type) == (dev)->caps.port_mask[(port)]) |
| 699 | 699 | ||
| 700 | #define mlx4_foreach_non_ib_transport_port(port, dev) \ | ||
| 701 | for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ | ||
| 702 | if (((dev)->caps.port_mask[port] != MLX4_PORT_TYPE_IB)) | ||
| 703 | |||
| 700 | #define mlx4_foreach_ib_transport_port(port, dev) \ | 704 | #define mlx4_foreach_ib_transport_port(port, dev) \ |
| 701 | for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ | 705 | for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ |
| 702 | if (((dev)->caps.port_mask[port] == MLX4_PORT_TYPE_IB) || \ | 706 | if (((dev)->caps.port_mask[port] == MLX4_PORT_TYPE_IB) || \ |
