Re: [PATCH 14/14] tcm_loop: Enable DIF/DIX modes in SCSI host LLD

From: Nicholas A. Bellinger
Date: Mon Jan 13 2014 - 13:43:32 EST


On Fri, 2014-01-10 at 16:09 -0500, Martin K. Petersen wrote:
> >>>>> "nab" == Nicholas A Bellinger <nab@xxxxxxxxxxxxx> writes:
>
> nab> This patch updates tcm_loop_driver_probe() to set protection
> nab> information using scsi_host_set_prot() and scsi_host_set_guard(),
> nab> which currently enabled all modes of DIF/DIX protection, minus DIF
> nab> TYPE0.
>
> ITYM, DIX Type 0.

Yes. Fixed up the commit message.

> And ideally you'd have a way to choose between IP and
> T10 CRC for the guard type.
>

Sure, this can be exposed at a tcm_loop configfs attribute that is
accessible after scsi_add_host() has been called, which I assume is OK
to do..

--nab

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/