DPDK patches and discussions
 help / color / mirror / Atom feed
From: Anoob Joseph <anoobj@marvell.com>
To: Akhil Goyal <akhil.goyal@nxp.com>
Cc: "declan.doherty@intel.com" <declan.doherty@intel.com>,
	Hemant Agrawal <hemant.agrawal@nxp.com>,
	Vakul Garg <vakul.garg@nxp.com>, "dev@dpdk.org" <dev@dpdk.org>,
	Ankur Dwivedi <adwivedi@marvell.com>
Subject: Re: [dpdk-dev] [PATCH] test/crypto: change cipher offset for esn	vector
Date: Tue, 14 Jul 2020 07:52:49 +0000	[thread overview]
Message-ID: <MN2PR18MB2877037323324BBBB2332CFADF610@MN2PR18MB2877.namprd18.prod.outlook.com> (raw)
In-Reply-To: <MN2PR18MB2877406381FBF965637AA3CADF670@MN2PR18MB2877.namprd18.prod.outlook.com>

Hi Akhil,

Did you get a chance to look at my comments?

Thanks,
Anoob

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Anoob Joseph
> Sent: Wednesday, July 8, 2020 3:21 PM
> To: Akhil Goyal <akhil.goyal@nxp.com>; Ankur Dwivedi
> <adwivedi@marvell.com>; dev@dpdk.org
> Cc: declan.doherty@intel.com; Hemant Agrawal
> <hemant.agrawal@nxp.com>; Vakul Garg <vakul.garg@nxp.com>
> Subject: Re: [dpdk-dev] [PATCH] test/crypto: change cipher offset for esn
> vector
> 
> Hi Akhil,
> 
> Please see inline.
> 
> Thanks,
> Anoob
> 
> > -----Original Message-----
> > From: Akhil Goyal <akhil.goyal@nxp.com>
> > Sent: Wednesday, July 8, 2020 12:51 AM
> > To: Ankur Dwivedi <adwivedi@marvell.com>; dev@dpdk.org
> > Cc: declan.doherty@intel.com; Hemant Agrawal
> <hemant.agrawal@nxp.com>;
> > Vakul Garg <vakul.garg@nxp.com>; Anoob Joseph <anoobj@marvell.com>
> > Subject: [EXT] RE: [PATCH] test/crypto: change cipher offset for esn
> > vector
> >
> > External Email
> >
> > ----------------------------------------------------------------------
> >
> > > >> >Why do we need this change?
> > > >> >The existing test case is to demonstrate a generic case where we
> > > >> >can have an auth only trailer as well. It is similar to a case
> > > >> >of IPSEC ESN but not exactly IPSec. Cipher offset can be
> > > >> >anything as per the app
> > > >requirement.
> > > >> >I don't think there is anything wrong in the vector. It should
> > > >> >pass in every hardware without any issue.
> > > >> [Ankur] It's a limitation in OCTEON TX PMDs that the (encr offset
> > > >> - auth offset) should be 8 bytes aligned.
> > > >> In the IPSEC ESN scenario generally the offsets will be such.
> > > >> But in the above IPSEC ESN test vector, this requirement is not
> > > >> met and hence the associated test cases fails on the PMD.
> > > >
> > > >In that case, I think it is better to have a separate test vector
> > > >and both should be executed. With the previous one as not supported
> > > >in your case and this one will be supported.
> > > [Ankur] The offsets values are present per crypto operation. So to
> > > make these tests as unsupported the pmd datapath needs to be
> changed.
> > > Is there an alternative to make these tests unsupported?
> >
> > I believe this is a data path error and a limitation in your PMD.
> > You can not stop the application writer from using unaligned cipher
> > offsets(non-8 byte aligned)
> 
> [Anoob] Yes. But the typical case with IPsec is what is supported in the PMD.
> 
> >
> > This is just a test application, which may hide your PMD limitation by
> > accepting this patch But in actual the scenario will fail when some
> > user configures a 12B cipher offset.
> 
> [Anoob] Agreed. But autotest having a failure is not an ideal situation to be it.
> Especially when it's not the typical usage. Can I propose to add a field like
> "Know Issues:" in the summary field? We can add a check for OCTEONTX
> PMDs in the test case and mark it as a known case. I do understand that the
> vision was to remove all driver specific tests and have generic tests for all
> PMDs, but here we are left with no other option. Chances are, other PMDs
> also could have similar limitations when moving to generic framework.
> 
> If you have suggestions to skip this test in any other way, that would also
> work for us.
> 
> > IMO, you should add a new test vector instead of replacing this one
> > and it should Be OK to have the existing one fail in your case.
> >


  reply	other threads:[~2020-07-14  7:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-05  8:30 Ankur Dwivedi
2020-06-30 14:15 ` Ankur Dwivedi
2020-07-06 12:23 ` Akhil Goyal
2020-07-06 15:03   ` Ankur Dwivedi
2020-07-06 18:54     ` Akhil Goyal
2020-07-07  6:07       ` Ankur Dwivedi
2020-07-07 19:20         ` Akhil Goyal
2020-07-08  9:51           ` Anoob Joseph
2020-07-14  7:52             ` Anoob Joseph [this message]
2020-07-15 19:54             ` Akhil Goyal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MN2PR18MB2877037323324BBBB2332CFADF610@MN2PR18MB2877.namprd18.prod.outlook.com \
    --to=anoobj@marvell.com \
    --cc=adwivedi@marvell.com \
    --cc=akhil.goyal@nxp.com \
    --cc=declan.doherty@intel.com \
    --cc=dev@dpdk.org \
    --cc=hemant.agrawal@nxp.com \
    --cc=vakul.garg@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).