crypto/virtio: add OOP_LB_IN_LB_OUT feature flag
Checks
Commit Message
Since it will check the feature mask before running out-of-place
test cases and the virtio-crypto device supports OOP_LB_IN_LB_OUT mode.
Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
---
drivers/crypto/virtio/virtio_cryptodev.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
Hi Jay,
>
> Since it will check the feature mask before running out-of-place
> test cases and the virtio-crypto device supports OOP_LB_IN_LB_OUT mode.
>
Is this feature already supported in the PMD and this patch is a fix to the original patch.
If that is the case, title should be
Crypto/virtio: add missing OOP feature flag
Also add a fixes line to link the original feature patch.
> Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
> ---
>
> Hi Jay,
>
>
> >
> > Since it will check the feature mask before running out-of-place
> > test cases and the virtio-crypto device supports OOP_LB_IN_LB_OUT mode.
> >
> Is this feature already supported in the PMD and this patch is a fix to the original
> patch.
> If that is the case, title should be
> Crypto/virtio: add missing OOP feature flag
> Also add a fixes line to link the original feature patch.
>
> > Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
> > ---
The feature is also not added in the documentation
doc/guides/cryptodevs/features/virtio.ini
>
> >
> > Hi Jay,
> >
> >
> > >
> > > Since it will check the feature mask before running out-of-place
> > > test cases and the virtio-crypto device supports OOP_LB_IN_LB_OUT mode.
> > >
> > Is this feature already supported in the PMD and this patch is a fix to the
> original
> > patch.
> > If that is the case, title should be
> > Crypto/virtio: add missing OOP feature flag
> > Also add a fixes line to link the original feature patch.
> >
> > > Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
> > > ---
>
> The feature is also not added in the documentation
> doc/guides/cryptodevs/features/virtio.ini
>
I have done the required changes myself while merging the patch as we
Need to close the tree for RC3.
Please have a look.
Thanks.
Hi Akhil,
> -----Original Message-----
> From: Akhil Goyal [mailto:akhil.goyal@nxp.com]
> Sent: Saturday, May 16, 2020 1:08 AM
> To: Zhoujian (jay) <jianjay.zhou@huawei.com>; dev@dpdk.org
> Cc: pablo.de.lara.guarch@intel.com; roy.fan.zhang@intel.com; Huangweidong
> (C) <weidong.huang@huawei.com>
> Subject: RE: [PATCH] crypto/virtio: add OOP_LB_IN_LB_OUT feature flag
>
> Hi Jay,
>
>
> >
> > Since it will check the feature mask before running out-of-place test
> > cases and the virtio-crypto device supports OOP_LB_IN_LB_OUT mode.
> >
> Is this feature already supported in the PMD and this patch is a fix to the original
> patch.
Yes.
> If that is the case, title should be
> Crypto/virtio: add missing OOP feature flag Also add a fixes line to link the original
> feature patch.
The OOP_LB_IN_LB_OUT function is introduced by commit 82adb12a
(crypto/virtio: support burst enqueue/dequeue), but the OOP_LB_IN_LB_OUT
feature flag is introduced after that, which is commit 2717246e
(cryptodev: replace mbuf scatter gather flag), I'm not sure which one should be added.
Regards,
Jay Zhou
>
> > Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
> > ---
> -----Original Message-----
> From: Akhil Goyal [mailto:akhil.goyal@nxp.com]
> Sent: Sunday, May 17, 2020 10:18 PM
> To: Zhoujian (jay) <jianjay.zhou@huawei.com>; dev@dpdk.org
> Cc: pablo.de.lara.guarch@intel.com; roy.fan.zhang@intel.com; Huangweidong
> (C) <weidong.huang@huawei.com>
> Subject: RE: [dpdk-dev] [PATCH] crypto/virtio: add OOP_LB_IN_LB_OUT feature
> flag
>
> >
> > >
> > > Hi Jay,
> > >
> > >
> > > >
> > > > Since it will check the feature mask before running out-of-place
> > > > test cases and the virtio-crypto device supports OOP_LB_IN_LB_OUT mode.
> > > >
> > > Is this feature already supported in the PMD and this patch is a fix
> > > to the
> > original
> > > patch.
> > > If that is the case, title should be
> > > Crypto/virtio: add missing OOP feature flag Also add a fixes line to
> > > link the original feature patch.
> > >
> > > > Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
> > > > ---
> >
> > The feature is also not added in the documentation
> > doc/guides/cryptodevs/features/virtio.ini
> >
Oh, Yes.
>
> I have done the required changes myself while merging the patch as we Need to
> close the tree for RC3.
> Please have a look.
Thanks for helping to do it. BTW, should we add the "Fixes:" line in the patch?
Regards,
Jay Zhou
@@ -741,7 +741,8 @@ static int virtio_crypto_sym_configure_session(struct rte_cryptodev *dev,
cryptodev->dequeue_burst = virtio_crypto_pkt_rx_burst;
cryptodev->feature_flags = RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO |
- RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING;
+ RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING |
+ RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT;
hw = cryptodev->data->dev_private;
hw->dev_id = cryptodev->data->dev_id;