Re: [PATCH 1/4] target/core: T10-Dif: check HW support capabilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2014-03-31 at 17:53 +0000, Quinn Tran wrote:
> On 3/28/14 6:24 PM, "sagi grimberg" <sagig@xxxxxxxxxxxx> wrote:
> 
> >On 3/29/2014 3:53 AM, Quinn Tran wrote:

<SNIP>

> >>>> +            }
> >>>> +    }
> >>>> +
> >>>>       if (lun->lun_se_dev !=  NULL) {
> >>>>               pr_err("Port Symlink already exists\n");
> >>>>               return -EEXIST;
> >>>> diff --git a/drivers/target/target_core_tpg.c
> >>>> b/drivers/target/target_core_tpg.c
> >>>> index c036595..9279971 100644
> >>>> --- a/drivers/target/target_core_tpg.c
> >>>> +++ b/drivers/target/target_core_tpg.c
> >>>> @@ -632,6 +632,15 @@ int core_tpg_set_initiator_node_tag(
> >>>>    }
> >>>>    EXPORT_SYMBOL(core_tpg_set_initiator_node_tag);
> >>>>
> >>>> +void core_tpg_set_fabric_t10dif(
> >>>> +    struct se_portal_group *tpg,
> >>>> +    uint32_t fabric_t10dif_force_on)
> >>>> +{
> >>>> +    tpg->fabric_t10dif_force_on = fabric_t10dif_force_on;
> >>>> +}
> >>>> +EXPORT_SYMBOL(core_tpg_set_fabric_t10dif);
> >>>> +
> >>> Is there a user for this function in this patch?
> >> QT> I'm on the fence with this piece.  Just thinking of a case where DIX
> >> is not available for initiator side, but user wants to turn on
> >>protection
> >> at the link layer.  Our test folks would like to cover this case in the
> >> future.
> >
> >Not sure I understand. Initiator will send the target data+protection
> >(DIX disabled HBA does INSERT), why does this help?
> >Why should the target fabric care who generated the protection (OS or
> >HBA)?
> 
> QT> Sorry for the confusion.  The case I'm trying to get at is "Data In
> Insert" and "Data out strip".    In this case, the protection starts from
> front end target adapter to the back end storage.  In revisit your
> previous patch, this case is not covered.
> 
> 

<nod>

So for the TARGET_PROT_DIN_INSERT + TARGET_PROT_DOUT_STRIP cases, the
target will need to expose INQUIRY PROTECT=1 + other PI related control
bits when the fabric supports these modes, regardless of what PI is
supported on the backend device.

Keeping this configuration in mind as well while coding up the
aforementioned series.  ;)

--nab

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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux