[dpdk-dev] [dpdk-dev v2 0/2] vhost/crypto: fix initialization
Fan Zhang
roy.fan.zhang at intel.com
Fri Oct 2 17:35:59 CEST 2020
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(-)
--
2.20.1
More information about the dev
mailing list