RE: [PATCH 23/24] mpi3mr: add eedp dif dix support

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

 



> -----Original Message-----
> From: Tomas Henzl [mailto:thenzl@xxxxxxxxxx]
> Sent: Monday, February 22, 2021 9:07 PM
> To: Kashyap Desai <kashyap.desai@xxxxxxxxxxxx>; linux-
> scsi@xxxxxxxxxxxxxxx
> Cc: jejb@xxxxxxxxxxxxx; martin.petersen@xxxxxxxxxx;
> steve.hagan@xxxxxxxxxxxx; peter.rivera@xxxxxxxxxxxx; mpi3mr-
> linuxdrv.pdl@xxxxxxxxxxxx; sathya.prakash@xxxxxxxxxxxx
> Subject: Re: [PATCH 23/24] mpi3mr: add eedp dif dix support
>
> On 12/22/20 11:11 AM, Kashyap Desai wrote:
> > Signed-off-by: Kashyap Desai <kashyap.desai@xxxxxxxxxxxx>
> > Cc: sathya.prakash@xxxxxxxxxxxx
> > ---
> >  drivers/scsi/mpi3mr/mpi3mr.h    |  18 +-
> >  drivers/scsi/mpi3mr/mpi3mr_fw.c |   7 +
> >  drivers/scsi/mpi3mr/mpi3mr_os.c | 303
> > +++++++++++++++++++++++++++++++-
> >  3 files changed, 321 insertions(+), 7 deletions(-)
> >
> > diff --git a/drivers/scsi/mpi3mr/mpi3mr.h
> > b/drivers/scsi/mpi3mr/mpi3mr.h index f0ead83dc16c..acc5649bed5f
> 100644
> > --- a/drivers/scsi/mpi3mr/mpi3mr.h
> > +++ b/drivers/scsi/mpi3mr/mpi3mr.h
> > @@ -118,6 +118,7 @@ extern struct list_head mrioc_list;
> >  #define MPI3MR_SENSEBUF_SZ	256
> >  #define MPI3MR_SENSEBUF_FACTOR	3
> >  #define MPI3MR_CHAINBUF_FACTOR	3
> > +#define MPI3MR_CHAINBUFDIX_FACTOR	2
> >
> >  /* Invalid target device handle */
> >  #define MPI3MR_INVALID_DEV_HANDLE	0xFFFF
> > @@ -145,6 +146,15 @@ extern struct list_head mrioc_list;
> >  /* Default target device queue depth */
> >  #define MPI3MR_DEFAULT_SDEV_QD	32
> >
> > +/* Definitions for the sector size for EEDP */
> > +#define MPI3_SECTOR_SIZE_512_BYTE	(512)
> > +#define MPI3_SECTOR_SIZE_520_BYTE	(520)
> > +#define MPI3_SECTOR_SIZE_4080_BYTE	(4080)
> > +#define MPI3_SECTOR_SIZE_4088_BYTE	(4088)
> > +#define MPI3_SECTOR_SIZE_4096_BYTE	(4096)
> > +#define MPI3_SECTOR_SIZE_4104_BYTE	(4104)
> > +#define MPI3_SECTOR_SIZE_4160_BYTE	(4160)
> > +
>
> This looks weird, please use the values directly instead of creating
macros.

I will change in V2.
>
> tomash

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[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