mbox

[v2,0/2] vhost/crypto: fix initialization

Message ID 20201002153601.84097-1-roy.fan.zhang@intel.com (mailing list archive)
Headers

Message

Fan Zhang Oct. 2, 2020, 3:35 p.m. UTC
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(-)