[PATCH RESEND 1/2] nvme-fc: add a helper to check ctrl sgl support

Christoph Hellwig hch at lst.de
Wed Jun 9 05:59:48 PDT 2021


On Tue, Jun 08, 2021 at 12:10:36PM -0700, Chaitanya Kulkarni wrote:
> +static inline bool nvme_ctrl_sgl_supported(struct nvme_ctrl *ctrl)
> +{
> +	if (!(ctrl->sgls & ((1 << 0) | (1 << 1))))
> +		return true;
> +
> +	return false;
> +}

Please move this into a separate patch as it isn't FC-related.



More information about the Linux-nvme mailing list