DPDK usage discussions
 help / color / mirror / Atom feed
From: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
To: Chinmaya Dwibedy <ckdwibedy@gmail.com>
Cc: users@dpdk.org
Subject: Re: [dpdk-users] Issue with ipsec-secgw sample application on VM using Intel QAT device (pass-through mode)
Date: Mon, 20 Jun 2016 09:06:10 +0100	[thread overview]
Message-ID: <bf518a3b-c899-c66c-082e-db4c1d61e929@intel.com> (raw)
In-Reply-To: <CAMHS8REmS2jLn=V56CqKBzhDwsnWqgMP+izPQ5h-TQ28Eszbnw@mail.gmail.com>

On 20/06/2016 08:33, Chinmaya Dwibedy wrote:
>
> Hi All,
>
>
> @Sergio:  Thank you for your valuable suggestion.
>
>
> I passed through one of VFs and it detected the QAT device in VM. I 
> just sent one UDP datagram which has to be encapsulated using H/W 
> crypto device (i.e., Intel QAT). I run the ipsec-segw application with 
> following arguments.  ./build/ipsec-secgw  -l 0 -n 4 -- -p 0x3 -P 
> --config="(0,0,0),(1,0,0)" --cdev QAT --ep0. Found that, the 
> rte_crypto_enqueue_burst() function returns one. It means it could 
> able to suceesfully place packet on the queue “queue_id” of the QAT 
> device designated by its “dev_id”*.  But The 
> rte_crypto_dequeue_burst() functionreturns zero. It means it cannot 
> dequeue the packet and that packet might not have been processed by 
> QAT device.
>
>

It's expected when using crypto HW offload that you might not dequeue 
the same amount of crypto ops you just previously enqueued, it's 
asynchronous.

> Please note that, I have tested the same application with AESNI device 
> and did not encounter any such issue. Furthermore the 
> rte_crypto_dequeue_burst() API does not provide any error 
> notification.  Can anyone please suggest what might be the issue and 
> is there any way to debug further?
>

Can you give a bit more details about what the issue is when using HW vs 
using SW crypto?

Are using the same config (SP/SA/RT) when using HW and SW?

Sergio

  reply	other threads:[~2016-06-20  8:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-15 12:01 Chinmaya Dwibedy
2016-06-15 12:35 ` Sergio Gonzalez Monroy
2016-06-20  7:33   ` Chinmaya Dwibedy
2016-06-20  8:06     ` Sergio Gonzalez Monroy [this message]
2016-06-20  9:08       ` Chinmaya Dwibedy
2016-06-20  9:34         ` Sergio Gonzalez Monroy
2016-06-21  7:26           ` Chinmaya Dwibedy
2016-06-21 15:40             ` Sergio Gonzalez Monroy
2016-06-22  8:09               ` Chinmaya Dwibedy
2016-06-23 11:48                 ` Chinmaya Dwibedy
2016-06-24  9:34                   ` Chinmaya Dwibedy

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=bf518a3b-c899-c66c-082e-db4c1d61e929@intel.com \
    --to=sergio.gonzalez.monroy@intel.com \
    --cc=ckdwibedy@gmail.com \
    --cc=users@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).