DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Zhang, Roy Fan" <roy.fan.zhang@intel.com>
To: Maxime Coquelin <maxime.coquelin@redhat.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] example/vhost_crypto: fix incorrect fetch size
Date: Wed, 29 Jan 2020 10:21:56 +0000	[thread overview]
Message-ID: <SN6PR11MB2622E1BB66071C0511E563D8B8050@SN6PR11MB2622.namprd11.prod.outlook.com> (raw)
In-Reply-To: <3ca778f2-eee5-bcf2-61bc-cda6e7271dcb@redhat.com>

Hi Maxime,

Sorry for the late reply.
This patch is incorrect. I have sent the correct version http://patchwork.dpdk.org/patch/65302/

Regards,
Fan

> -----Original Message-----
> From: Maxime Coquelin <maxime.coquelin@redhat.com>
> Sent: Tuesday, January 14, 2020 9:30 AM
> To: Zhang, Roy Fan <roy.fan.zhang@intel.com>; dev@dpdk.org
> Subject: Re: [PATCH] example/vhost_crypto: fix incorrect fetch size
> 
> Hi Fan,
> 
> On 11/26/19 10:54 AM, Fan Zhang wrote:
> > Coverity issue: 343401
> >
> > Fixes: f5188211c721 ("examples/vhost_crypto: add sample application")
> > Cc: roy.fan.zhang@intel.com
> >
> > Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
> > ---
> >  examples/vhost_crypto/main.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/examples/vhost_crypto/main.c
> > b/examples/vhost_crypto/main.c index 1d7ba9419..5d80bcaca 100644
> > --- a/examples/vhost_crypto/main.c
> > +++ b/examples/vhost_crypto/main.c
> > @@ -387,7 +387,7 @@ vhost_crypto_worker(void *arg)
> >  				continue;
> >
> >  			for (j = 0; j < NB_VIRTIO_QUEUES; j++) {
> > -				to_fetch = RTE_MIN(burst_size,
> > +				to_fetch = RTE_MAX(burst_size,
> >  						(NB_CRYPTO_DESCRIPTORS
> -
> >  						info->nb_inflight_ops));
> >  				fetched = rte_vhost_crypto_fetch_requests(
> >
> 
> Could you please add a commit message to explain the change?
> With just the patch context, this fix looks weird.
> 
> Thanks!
> Maxime


  reply	other threads:[~2020-01-29 10:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-26  9:54 Fan Zhang
2020-01-14  9:30 ` Maxime Coquelin
2020-01-29 10:21   ` Zhang, Roy Fan [this message]
2020-01-29 10:19 ` [dpdk-dev] [PATCH] vhost/crypto: fix missed user protocol flag Fan Zhang
2020-04-07 13:34   ` Maxime Coquelin
2020-04-10 14:42   ` Maxime Coquelin
2020-01-29 10:24 ` [dpdk-dev] [PATCH] vhost/crypto: fix incorrect fetch size Fan Zhang
2020-02-05  9:20   ` Maxime Coquelin
2020-02-05  9:48   ` Maxime Coquelin

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=SN6PR11MB2622E1BB66071C0511E563D8B8050@SN6PR11MB2622.namprd11.prod.outlook.com \
    --to=roy.fan.zhang@intel.com \
    --cc=dev@dpdk.org \
    --cc=maxime.coquelin@redhat.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).