> +#define CX3_PPF_DEV_ID 0x1003
> +
> +static int vl_cap_start(struct mlx4_dev *dev)
> +{
> +       /* for non CX3 devices, start with 4 VLs to avoid errors in syslog */
> +       if (dev->pdev->device != CX3_PPF_DEV_ID)
> +               return 4;
> +       return 8;
> +}

This really doesn't look maintainable as different devices with
different limits come along.

How ugly is it to pass some sort of "no warn" flag down into
the command to suppress the messages?
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to