]> git.droids-corp.org - dpdk.git/commit
gpudev: support multi-process
authorThomas Monjalon <thomas@monjalon.net>
Mon, 8 Nov 2021 18:58:00 +0000 (18:58 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 8 Nov 2021 16:20:53 +0000 (17:20 +0100)
commita9af048abaacc2a0cbdc284e033390f13a0c2525
tree8a21e8e34c54d8b3381b6a9d0fccdaf935e8ca59
parent82e5f6b658f92a6d613398875367badc948f8b99
gpudev: support multi-process

The device data shared between processes are moved in a struct
allocated in a shared memory (a new memzone for all GPUs).
The main struct rte_gpu references the shared memory
via the pointer mpshared.

The API function rte_gpu_attach() is added to attach a device
from the secondary process.
The function rte_gpu_allocate() can be used only by primary process.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
lib/gpudev/gpudev.c
lib/gpudev/gpudev_driver.h
lib/gpudev/version.map