mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
qat: fix UIO mounts
DPDK uses /sys/class/uio/uioX/device/[control|resource*] and we had special mounts for the individual uioX paths. However, it turned out this wasn't working as expected: host's /sys/class/uio/uioX/device/ was mounted to container's /sys/class/uio and DPDK failed to find uioX/device/[control|resource*] files. Moreover, workloads requesting more than one QAT resource, still saw only one path. While cri-o/containerd give sysfs read-only mounts, DPDK needs device/config RW. Therefore, we need to mount host /sys/class/uio/uioX to container /sys/class/uio/uioX for each requested device. Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
This commit is contained in:
parent
a352cd5d54
commit
e4a57899d2
@ -178,7 +178,7 @@ func (dp *DevicePlugin) getDpdkMounts(id string) ([]pluginapi.Mount, error) {
|
||||
return []pluginapi.Mount{
|
||||
{
|
||||
HostPath: uioMountPoint,
|
||||
ContainerPath: uioMountPath,
|
||||
ContainerPath: uioMountPoint,
|
||||
},
|
||||
}, nil
|
||||
case "vfio-pci":
|
||||
|
Loading…
Reference in New Issue
Block a user