From: "Michael S. Tsirkin" <mst@redhat.com>
To: zhenwei pi <pizhenwei@bytedance.com>
Cc: "Gonglei (Arei)" <arei.gonglei@huawei.com>,
"jasowang@redhat.com" <jasowang@redhat.com>,
"herbert@gondor.apana.org.au" <herbert@gondor.apana.org.au>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"virtualization@lists.linux-foundation.org"
<virtualization@lists.linux-foundation.org>,
"linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>,
"helei.sig11@bytedance.com" <helei.sig11@bytedance.com>,
"davem@davemloft.net" <davem@davemloft.net>
Subject: Re: RE: [PATCH v5 5/5] virtio-crypto: enable retry for virtio-crypto-dev
Date: Fri, 6 May 2022 07:33:26 -0400 [thread overview]
Message-ID: <20220506073316-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <48c9b073-0b03-5769-633b-5b668cea6fa4@bytedance.com>
On Fri, May 06, 2022 at 05:55:33PM +0800, zhenwei pi wrote:
> On 5/6/22 17:34, Gonglei (Arei) wrote:
> >
> >
> > > -----Original Message-----
> > > From: zhenwei pi [mailto:pizhenwei@bytedance.com]
> > > Sent: Thursday, May 5, 2022 5:24 PM
> > > To: Gonglei (Arei) <arei.gonglei@huawei.com>; mst@redhat.com
> > > Cc: jasowang@redhat.com; herbert@gondor.apana.org.au;
> > > linux-kernel@vger.kernel.org; virtualization@lists.linux-foundation.org;
> > > linux-crypto@vger.kernel.org; helei.sig11@bytedance.com;
> > > pizhenwei@bytedance.com; davem@davemloft.net
> > > Subject: [PATCH v5 5/5] virtio-crypto: enable retry for virtio-crypto-dev
> > >
> > > From: lei he <helei.sig11@bytedance.com>
> > >
> > > Enable retry for virtio-crypto-dev, so that crypto-engine can process
> > > cipher-requests parallelly.
> > >
> > > Cc: Michael S. Tsirkin <mst@redhat.com>
> > > Cc: Jason Wang <jasowang@redhat.com>
> > > Cc: Gonglei <arei.gonglei@huawei.com>
> > > Signed-off-by: lei he <helei.sig11@bytedance.com>
> > > Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
> > > ---
> > > drivers/crypto/virtio/virtio_crypto_core.c | 3 ++-
> > > 1 file changed, 2 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/crypto/virtio/virtio_crypto_core.c
> > > b/drivers/crypto/virtio/virtio_crypto_core.c
> > > index 60490ffa3df1..f67e0d4c1b0c 100644
> > > --- a/drivers/crypto/virtio/virtio_crypto_core.c
> > > +++ b/drivers/crypto/virtio/virtio_crypto_core.c
> > > @@ -144,7 +144,8 @@ static int virtcrypto_find_vqs(struct virtio_crypto *vi)
> > > spin_lock_init(&vi->data_vq[i].lock);
> > > vi->data_vq[i].vq = vqs[i];
> > > /* Initialize crypto engine */
> > > - vi->data_vq[i].engine = crypto_engine_alloc_init(dev, 1);
> > > + vi->data_vq[i].engine = crypto_engine_alloc_init_and_set(dev, true,
> > > NULL, 1,
> > > + virtqueue_get_vring_size(vqs[i]));
> >
> > Here the '1' can be 'true' too.
> >
> > Sure, you can add
> >
> > Reviewed-by: Gonglei <arei.gonglei@huawei.com>
> >
> > Regards,
> > -Gonglei
> >
> > > if (!vi->data_vq[i].engine) {
> > > ret = -ENOMEM;
> > > goto err_engine;
> > > --
> > > 2.20.1
> >
>
> Thanks to Lei!
>
> Hi, Michael
> I would appreciate it if you could apply this minor change, or I send the v6
> series, which one do you prefer?
>
> --
send v6 with acks and change pls
WARNING: multiple messages have this Message-ID (diff)
From: "Michael S. Tsirkin" <mst@redhat.com>
To: zhenwei pi <pizhenwei@bytedance.com>
Cc: "herbert@gondor.apana.org.au" <herbert@gondor.apana.org.au>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"virtualization@lists.linux-foundation.org"
<virtualization@lists.linux-foundation.org>,
"linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>,
"davem@davemloft.net" <davem@davemloft.net>,
"helei.sig11@bytedance.com" <helei.sig11@bytedance.com>
Subject: Re: RE: [PATCH v5 5/5] virtio-crypto: enable retry for virtio-crypto-dev
Date: Fri, 6 May 2022 07:33:26 -0400 [thread overview]
Message-ID: <20220506073316-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <48c9b073-0b03-5769-633b-5b668cea6fa4@bytedance.com>
On Fri, May 06, 2022 at 05:55:33PM +0800, zhenwei pi wrote:
> On 5/6/22 17:34, Gonglei (Arei) wrote:
> >
> >
> > > -----Original Message-----
> > > From: zhenwei pi [mailto:pizhenwei@bytedance.com]
> > > Sent: Thursday, May 5, 2022 5:24 PM
> > > To: Gonglei (Arei) <arei.gonglei@huawei.com>; mst@redhat.com
> > > Cc: jasowang@redhat.com; herbert@gondor.apana.org.au;
> > > linux-kernel@vger.kernel.org; virtualization@lists.linux-foundation.org;
> > > linux-crypto@vger.kernel.org; helei.sig11@bytedance.com;
> > > pizhenwei@bytedance.com; davem@davemloft.net
> > > Subject: [PATCH v5 5/5] virtio-crypto: enable retry for virtio-crypto-dev
> > >
> > > From: lei he <helei.sig11@bytedance.com>
> > >
> > > Enable retry for virtio-crypto-dev, so that crypto-engine can process
> > > cipher-requests parallelly.
> > >
> > > Cc: Michael S. Tsirkin <mst@redhat.com>
> > > Cc: Jason Wang <jasowang@redhat.com>
> > > Cc: Gonglei <arei.gonglei@huawei.com>
> > > Signed-off-by: lei he <helei.sig11@bytedance.com>
> > > Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
> > > ---
> > > drivers/crypto/virtio/virtio_crypto_core.c | 3 ++-
> > > 1 file changed, 2 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/crypto/virtio/virtio_crypto_core.c
> > > b/drivers/crypto/virtio/virtio_crypto_core.c
> > > index 60490ffa3df1..f67e0d4c1b0c 100644
> > > --- a/drivers/crypto/virtio/virtio_crypto_core.c
> > > +++ b/drivers/crypto/virtio/virtio_crypto_core.c
> > > @@ -144,7 +144,8 @@ static int virtcrypto_find_vqs(struct virtio_crypto *vi)
> > > spin_lock_init(&vi->data_vq[i].lock);
> > > vi->data_vq[i].vq = vqs[i];
> > > /* Initialize crypto engine */
> > > - vi->data_vq[i].engine = crypto_engine_alloc_init(dev, 1);
> > > + vi->data_vq[i].engine = crypto_engine_alloc_init_and_set(dev, true,
> > > NULL, 1,
> > > + virtqueue_get_vring_size(vqs[i]));
> >
> > Here the '1' can be 'true' too.
> >
> > Sure, you can add
> >
> > Reviewed-by: Gonglei <arei.gonglei@huawei.com>
> >
> > Regards,
> > -Gonglei
> >
> > > if (!vi->data_vq[i].engine) {
> > > ret = -ENOMEM;
> > > goto err_engine;
> > > --
> > > 2.20.1
> >
>
> Thanks to Lei!
>
> Hi, Michael
> I would appreciate it if you could apply this minor change, or I send the v6
> series, which one do you prefer?
>
> --
send v6 with acks and change pls
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
next prev parent reply other threads:[~2022-05-06 11:33 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-05 9:24 [PATCH v5 0/5] virtio-crypto: Improve performance zhenwei pi
2022-05-05 9:24 ` zhenwei pi
2022-05-05 9:24 ` [PATCH v5 1/5] virtio-crypto: change code style zhenwei pi
2022-05-05 9:24 ` zhenwei pi
2022-05-06 8:46 ` Gonglei (Arei)
2022-05-06 8:46 ` Gonglei (Arei) via Virtualization
2022-05-05 9:24 ` [PATCH v5 2/5] virtio-crypto: use private buffer for control request zhenwei pi
2022-05-05 9:24 ` zhenwei pi
2022-05-06 8:59 ` Gonglei (Arei)
2022-05-06 8:59 ` Gonglei (Arei) via Virtualization
2022-05-05 9:24 ` [PATCH v5 3/5] virtio-crypto: wait ctrl queue instead of busy polling zhenwei pi
2022-05-05 9:24 ` zhenwei pi
2022-05-06 9:26 ` Gonglei (Arei)
2022-05-06 9:26 ` Gonglei (Arei) via Virtualization
2022-05-05 9:24 ` [PATCH v5 4/5] virtio-crypto: adjust dst_len at ops callback zhenwei pi
2022-05-05 9:24 ` zhenwei pi
2022-05-06 9:28 ` Gonglei (Arei)
2022-05-06 9:28 ` Gonglei (Arei) via Virtualization
2022-05-05 9:24 ` [PATCH v5 5/5] virtio-crypto: enable retry for virtio-crypto-dev zhenwei pi
2022-05-05 9:24 ` zhenwei pi
2022-05-06 9:34 ` Gonglei (Arei)
2022-05-06 9:34 ` Gonglei (Arei) via Virtualization
2022-05-06 9:55 ` zhenwei pi
2022-05-06 9:55 ` zhenwei pi
2022-05-06 11:33 ` Michael S. Tsirkin [this message]
2022-05-06 11:33 ` Michael S. Tsirkin
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=20220506073316-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=arei.gonglei@huawei.com \
--cc=davem@davemloft.net \
--cc=helei.sig11@bytedance.com \
--cc=herbert@gondor.apana.org.au \
--cc=jasowang@redhat.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pizhenwei@bytedance.com \
--cc=virtualization@lists.linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.