From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuval Shaia Subject: Re: [PATCH rdma-rc 6/9] IB/mlx4: Put non zero value in max_ah device attribute Date: Sun, 6 Nov 2016 09:33:03 +0200 Message-ID: <20161106073302.GD3799@yuval-lap.us.oracle.com> References: <1478375842-21513-1-git-send-email-leonro@mellanox.com> <1478375842-21513-7-git-send-email-leonro@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1478375842-21513-7-git-send-email-leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Leon Romanovsky Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Maor Gottlieb , Daniel Jurgens , Leon Romanovsky List-Id: linux-rdma@vger.kernel.org FWIW Reviewed-by: Yuval Shaia On Sat, Nov 05, 2016 at 09:57:19PM +0200, Leon Romanovsky wrote: > From: Maor Gottlieb > > Use INT_MAX since this is the max value the attribute can hold, though > hardware capability is unlimited. > > Fixes: 225c7b1feef1 ('IB/mlx4: Add a driver Mellanox ConnectX InfiniBand > adapters') > Signed-off-by: Maor Gottlieb > Signed-off-by: Daniel Jurgens > Signed-off-by: Leon Romanovsky > Empty line > Signed-off-by: Leon Romanovsky > --- > drivers/infiniband/hw/mlx4/main.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c > index b597e82..05ab3cb 100644 > --- a/drivers/infiniband/hw/mlx4/main.c > +++ b/drivers/infiniband/hw/mlx4/main.c > @@ -547,6 +547,7 @@ static int mlx4_ib_query_device(struct ib_device *ibdev, > props->max_map_per_fmr = dev->dev->caps.max_fmr_maps; > props->hca_core_clock = dev->dev->caps.hca_core_clock * 1000UL; > props->timestamp_mask = 0xFFFFFFFFFFFFULL; > + props->max_ah = INT_MAX; > > if (!mlx4_is_slave(dev->dev)) > err = mlx4_get_internal_clock_params(dev->dev, &clock_params); > -- > 2.7.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html