From: Thomas Monjalon <thomas@monjalon.net>
To: Fan Zhang <roy.fan.zhang@intel.com>,
techboard@dpdk.org, Jerin Jacob <jerinjacobk@gmail.com>
Cc: Anoob Joseph <anoobj@marvell.com>, dpdk-dev <dev@dpdk.org>,
Akhil Goyal <akhil.goyal@nxp.com>,
Fiona Trahe <fiona.trahe@intel.com>,
Piotr Bronowski <piotrx.bronowski@intel.com>,
honnappa.nagarahalli@arm.com
Subject: Re: [dpdk-dev] [dpdk-techboard] [PATCH] crypto/qat: add data-path APIs
Date: Fri, 26 Jun 2020 12:38:51 +0200 [thread overview]
Message-ID: <6794037.dnW9c1l1XM@thomas> (raw)
In-Reply-To: <CALBAE1MGP-7yUcuXirjy3yzqvQYDEgU-NELs2rPYdWA7neviHw@mail.gmail.com>
26/06/2020 08:55, Jerin Jacob:
> On Fri, Jun 12, 2020 at 8:10 PM Fan Zhang <roy.fan.zhang@intel.com> wrote:
> >
> > This patch adds data-path APIs to QAT symmetric dirver to support
> > raw data as input.
> >
> > For applications/libraries that want to benefit from the data-path
> > encryption acceleration provided by QAT but not necessarily depends
> > on DPDK data-path structures (such as VPP), some performance
> > degradation is unavoidable to convert between their specific data
> > structure and DPDK cryptodev operation as well as mbufs.
> >
> > This patch takes advantage of existing QAT implementations to form
> > symmetric data-path enqueue and dequeue APIs that support raw data
> > as input so that they can have wider usability towards those
> > applications/libraries without performance drop caused by the data
> > structure conversions. In the meantime the less performance-sensitive
> > cryptodev device and session management remains intact so that DPDK
> > cryptodev remains to be unified control path library for QAT.
> >
> > Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
> > Signed-off-by: Piotr Bronowski <piotrx.bronowski@intel.com>
> > ---
>
> + Techboard,
>
> I think, this problem is not specific to QAT nor the crypto subsystem.
> If we are planning to expose the PMD specific descriptors, It would good to get
> general agreement from everyone. Probably we can/need to extend ethdev
> PMDs as well based on the need.
>
> If we are taking this path, at minimum, we need a generic control path
> API with cryptodev,
> to query such capability. (Probably API to register descriptor and
> query supported descriptor as PMD
> can support multiple descriptors)
I fully agree, it needs to be a community decision.
Today, if an application wants to use DPDK, either it adopts mbuf,
or it pays the cost of mbuf conversion.
The question is: can DPDK provides helpers for a non-mbuf datapath?
The benefit is clear for applications which are not mbuf-centric.
The disadvantages I can think about:
- Opening a new API layer is adding more work for everybody
(development, test, maintenance).
- Applications must duplicate a part of the DPDK datapath.
- Lack of consistency between the configuration APIs
and the datapath implemented by the application.
next prev parent reply other threads:[~2020-06-26 10:38 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-12 14:39 [dpdk-dev] " Fan Zhang
2020-06-18 17:50 ` Trahe, Fiona
2020-06-25 13:31 ` [dpdk-dev] [dpdk-dev v2 0/3] crypto/qat: add symmetric crypto " Fan Zhang
2020-06-25 13:31 ` [dpdk-dev] [dpdk-dev v2 1/3] crypto/qat: add " Fan Zhang
2020-06-25 13:31 ` [dpdk-dev] [dpdk-dev v2 2/3] test/crypto: add unit-test for QAT direct APIs Fan Zhang
2020-06-30 17:47 ` Trahe, Fiona
2020-06-25 13:31 ` [dpdk-dev] [dpdk-dev v2 3/3] doc: add QAT direct APIs guide Fan Zhang
2020-07-03 10:14 ` [dpdk-dev] [dpdk-dev v3 0/3] cryptodev: add symmetric crypto data-path APIs Fan Zhang
2020-07-03 10:14 ` [dpdk-dev] [dpdk-dev v3 1/3] crypto/qat: add support to direct " Fan Zhang
2020-07-03 10:14 ` [dpdk-dev] [dpdk-dev v3 2/3] test/crypto: add unit-test for cryptodev direct APIs Fan Zhang
2020-07-03 10:14 ` [dpdk-dev] [dpdk-dev v3 3/3] doc: add cryptodev direct APIs guide Fan Zhang
2020-07-03 11:09 ` [dpdk-dev] [dpdk-dev v3 0/4] cryptodev: add symmetric crypto data-path APIs Fan Zhang
2020-07-03 11:09 ` [dpdk-dev] [dpdk-dev v3 1/4] " Fan Zhang
2020-07-03 11:09 ` [dpdk-dev] [dpdk-dev v3 1/3] crypto/qat: add support to direct " Fan Zhang
2020-07-03 11:09 ` [dpdk-dev] [dpdk-dev v3 2/4] " Fan Zhang
2020-07-03 11:09 ` [dpdk-dev] [dpdk-dev v3 2/3] test/crypto: add unit-test for cryptodev direct APIs Fan Zhang
2020-07-03 11:09 ` [dpdk-dev] [dpdk-dev v3 3/3] doc: add cryptodev direct APIs guide Fan Zhang
2020-07-03 11:09 ` [dpdk-dev] [dpdk-dev v3 3/4] test/crypto: add unit-test for cryptodev direct APIs Fan Zhang
2020-07-03 11:09 ` [dpdk-dev] [dpdk-dev v3 4/4] doc: add cryptodev direct APIs guide Fan Zhang
2020-07-03 12:49 ` [dpdk-dev] [dpdk-dev v4 0/4] cryptodev: add symmetric crypto data-path APIs Fan Zhang
2020-07-03 12:49 ` [dpdk-dev] [dpdk-dev v4 1/4] " Fan Zhang
2020-07-04 18:16 ` Akhil Goyal
2020-07-06 10:02 ` Zhang, Roy Fan
2020-07-06 12:13 ` Akhil Goyal
2020-07-07 12:37 ` Zhang, Roy Fan
2020-07-07 20:37 ` Akhil Goyal
2020-07-08 15:09 ` Zhang, Roy Fan
2020-07-03 12:49 ` [dpdk-dev] [dpdk-dev v4 2/4] crypto/qat: add support to direct " Fan Zhang
2020-07-03 12:49 ` [dpdk-dev] [dpdk-dev v4 3/4] test/crypto: add unit-test for cryptodev direct APIs Fan Zhang
2020-07-03 12:49 ` [dpdk-dev] [dpdk-dev v4 4/4] doc: add cryptodev direct APIs guide Fan Zhang
2020-07-13 16:57 ` [dpdk-dev] [dpdk-dev v5 0/4] cryptodev: add symmetric crypto data-path APIs Fan Zhang
2020-07-13 16:57 ` [dpdk-dev] [dpdk-dev v5 1/4] cryptodev: add " Fan Zhang
2020-07-13 16:57 ` [dpdk-dev] [dpdk-dev v5 2/4] crypto/qat: add support to direct " Fan Zhang
2020-07-13 16:57 ` [dpdk-dev] [dpdk-dev v5 3/4] test/crypto: add unit-test for cryptodev direct APIs Fan Zhang
2020-07-13 16:57 ` [dpdk-dev] [dpdk-dev v5 4/4] doc: add cryptodev direct APIs guide Fan Zhang
2020-06-26 6:55 ` [dpdk-dev] [PATCH] crypto/qat: add data-path APIs Jerin Jacob
2020-06-26 10:38 ` Thomas Monjalon [this message]
2020-06-30 20:33 ` [dpdk-dev] [dpdk-techboard] " Honnappa Nagarahalli
2020-06-30 21:00 ` Thomas Monjalon
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=6794037.dnW9c1l1XM@thomas \
--to=thomas@monjalon.net \
--cc=akhil.goyal@nxp.com \
--cc=anoobj@marvell.com \
--cc=dev@dpdk.org \
--cc=fiona.trahe@intel.com \
--cc=honnappa.nagarahalli@arm.com \
--cc=jerinjacobk@gmail.com \
--cc=piotrx.bronowski@intel.com \
--cc=roy.fan.zhang@intel.com \
--cc=techboard@dpdk.org \
/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).