Re: [PATCH for-next V5 05/12] IB/core: Add default GID for RoCE GID table

Jason Gunthorpe
2015-06-11T06:20:17Z

On Mon, Jun 08, 2015 at 05:12:08PM +0300, Matan Barak wrote:

> +unsigned long roce_gid_type_mask_support(struct ib_device *ib_dev, u8 port);
> +

What is all this gid_type_mask stuff about? rocev2?

> +unsigned long roce_gid_type_mask_support(struct ib_device *ib_dev, u8 port)
> +{
> + return !!rdma_protocol_roce(ib_dev, port);
> +}

Just return bool and drop the !!

Jason