Skip to content

vhost/crypto: fix initialization

Fan Zhang dpdk-dev 1 version Applied

Status from this message: Applied to dpdk-next-virtio/main.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 8 repliesApplied

Changes in v2 from the cover letter

- Removed socket.c setting vhost crypto features.
- Fixed incorrect feature flag.
- Rebased on top of latest master.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2vhost: add backend type in driver startlib/librte_vhost/socket.c lib/librte_vhost/vhost_user.h+39 -82 replies
2/2vhost/crypto: fix feature negotiationexamples/vhost_crypto/main.c lib/librte_vhost/rte_vhost_crypto.h lib/librte_vhost/rte_vhost_version.map +1 more+42 -156 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMaxime CoquelinJiang, YuX
1/2
2/2R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [dpdk-dev] [dpdk-dev v2 0/2] vhost/crypto: fix initialization

This patch fixes the problem that vhost crypto cannot be initialized due to the different requirement between built-in virtio-net and virtio-crypto. The fix includes the following change:

- Added new internal enum type virtio_backend_type to distinguish virtio-net, virtio-crypto, and external device types.
- Added new API rte_vhost_crypto_driver_start to distinguish between virtio-net and virtio-crypto built-in drivers initialization.

v2:
- Removed socket.c setting vhost crypto features.
- Fixed incorrect feature flag.
- Rebased on top of latest master.

Fan Zhang (2):
vhost: add backend type in driver start
vhost/crypto: fix feature negotiation

 examples/vhost_crypto/main.c           |  3 +-
 lib/librte_vhost/rte_vhost_crypto.h    | 12 ++++++++
 lib/librte_vhost/rte_vhost_version.map |  1 +
 lib/librte_vhost/socket.c              | 39 +++++++++++++++++++-----
 lib/librte_vhost/vhost_crypto.c        | 41 +++++++++++++++++---------
 lib/librte_vhost/vhost_user.h          |  8 +++++
 6 files changed, 81 insertions(+), 23 deletions(-)
Signature · 1 line
2.20.1