aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mlx4/device.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index 1beb1ec2fbdf..74b765ce48ab 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -1011,8 +1011,7 @@ struct mlx4_mad_ifc {
1011#define mlx4_foreach_ib_transport_port(port, dev) \ 1011#define mlx4_foreach_ib_transport_port(port, dev) \
1012 for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ 1012 for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \
1013 if (((dev)->caps.port_mask[port] == MLX4_PORT_TYPE_IB) || \ 1013 if (((dev)->caps.port_mask[port] == MLX4_PORT_TYPE_IB) || \
1014 ((dev)->caps.flags & MLX4_DEV_CAP_FLAG_IBOE) || \ 1014 ((dev)->caps.port_mask[port] == MLX4_PORT_TYPE_ETH))
1015 ((dev)->caps.flags2 & MLX4_DEV_CAP_FLAG2_ROCE_V1_V2))
1016 1015
1017#define MLX4_INVALID_SLAVE_ID 0xFF 1016#define MLX4_INVALID_SLAVE_ID 0xFF
1018#define MLX4_SINK_COUNTER_INDEX(dev) (dev->caps.max_counters - 1) 1017#define MLX4_SINK_COUNTER_INDEX(dev) (dev->caps.max_counters - 1)