|
@@ -652,12 +652,12 @@ int __mlx4_ib_query_gid(struct ib_device *ibdev, u8 port, int index,
|
|
|
int mlx4_ib_resolve_grh(struct mlx4_ib_dev *dev, const struct ib_ah_attr *ah_attr,
|
|
|
u8 *mac, int *is_mcast, u8 port);
|
|
|
|
|
|
-static inline int mlx4_ib_ah_grh_present(struct mlx4_ib_ah *ah)
|
|
|
+static inline bool mlx4_ib_ah_grh_present(struct mlx4_ib_ah *ah)
|
|
|
{
|
|
|
u8 port = be32_to_cpu(ah->av.ib.port_pd) >> 24 & 3;
|
|
|
|
|
|
if (rdma_port_get_link_layer(ah->ibah.device, port) == IB_LINK_LAYER_ETHERNET)
|
|
|
- return 1;
|
|
|
+ return true;
|
|
|
|
|
|
return !!(ah->av.ib.g_slid & 0x80);
|
|
|
}
|