numam-dpdk/lib/vhost
Akhil Goyal bdce2564db cryptodev: rework session framework
As per current design, rte_cryptodev_sym_session_create() and
rte_cryptodev_sym_session_init() use separate mempool objects
for a single session.
And structure rte_cryptodev_sym_session is not directly used
by the application, it may cause ABI breakage if the structure
is modified in future.

To address these two issues, the rte_cryptodev_sym_session_create
will take one mempool object that the session and session private
data are virtually/physically contiguous, and initializes both
fields. The API rte_cryptodev_sym_session_init is removed.

rte_cryptodev_sym_session_create will now return an opaque session
pointer which will be used by the app and other APIs.

In data path, opaque session pointer is attached to rte_crypto_op
and the PMD can call an internal library API to get the session
private data pointer based on the driver id.

Note: currently single session may be used by different device
drivers, given it is initialized by them. After the change the
session created by one device driver cannot be used or
reinitialized by another driver.

Signed-off-by: Akhil Goyal <gakhil@marvell.com>
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Kai Ji <kai.ji@intel.com>
Tested-by: Gagandeep Singh <g.singh@nxp.com>
Tested-by: David Coyle <david.coyle@intel.com>
Tested-by: Kevin O'Sullivan <kevin.osullivan@intel.com>
2022-10-04 22:04:59 +02:00
..
fd_man.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
fd_man.h lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
iotlb.c vhost: reduce memory footprint when IOMMU is disabled 2022-09-29 10:13:22 +02:00
iotlb.h vhost: stop using mempool for IOTLB cache 2022-09-15 17:56:24 +02:00
meson.build vhost: integrate dmadev in asynchronous data-path 2022-02-10 15:59:17 +01:00
rte_vdpa.h vhost: add missing C++ guards 2022-02-22 14:47:49 +01:00
rte_vhost_async.h vhost: support clear in-flight packets for async dequeue 2022-06-17 15:19:57 +02:00
rte_vhost_crypto.h cryptodev: rework session framework 2022-10-04 22:04:59 +02:00
rte_vhost.h vhost: remove deprecated helpers 2022-09-29 10:13:22 +02:00
socket.c vhost: reduce memory footprint when IOMMU is disabled 2022-09-29 10:13:22 +02:00
vdpa_driver.h vhost: get vDPA device type 2022-06-01 11:50:10 +02:00
vdpa.c dev: hide device object 2022-09-23 16:14:34 +02:00
version.map vhost: remove deprecated helpers 2022-09-29 10:13:22 +02:00
vhost_crypto.c cryptodev: rework session framework 2022-10-04 22:04:59 +02:00
vhost_user.c vhost: use dedicated variable for message result 2022-09-29 10:13:22 +02:00
vhost_user.h vhost: remove unneeded header includes 2022-06-21 16:46:57 +02:00
vhost.c vhost: reduce memory footprint when IOMMU is disabled 2022-09-29 10:13:22 +02:00
vhost.h vhost: reduce memory footprint when IOMMU is disabled 2022-09-29 10:13:22 +02:00
virtio_crypto.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
virtio_net.c vhost: keep a reference to virtqueue index 2022-09-15 17:56:13 +02:00