
Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Enable SRIOV with DPDK
SRIOV and DPDK
SRI-IOV WorkerNode Prerequisites
In order for the cni-sriov-plugin to start reading Virtual Functions resources as well HostNetworkTemplate objects can configure virtual functions you need to perform the following steps.
Enable** VT-D** at BIOS level.
Enable SRIOV feature globally and/or per nic according to the nic you are working with, for example Intel x710 should be enabled per nic at BIOS level.
Upgrade Kernel boot line to enable intel_iommu=on and iommu=pt
Huge page Support
Most network applications use huge pages, so you may want to enable that. Please edit /etc/default/grub and add huge-ages
Create SR-IOV ConfigMap
SR-IOV ConfigMap
Please copy paste the following definition update the values of your Physical Functions and ranges or Virtual Functions as well as Drivers and apply it to our cluster, in case that you have multiple nics, that each one uses different kernels drivers please omit the drivers section and just mentioned pfName within the selectors section.
SR-IOV Kernel Driver plus DPDK ConfigMap
Create NetworkAttachDefinition of DPDK type
Network Attach Definition Validation SR-IOV-DPDK type
Let’s validate our work by listing and describing our new Network Attach Definition
Create Pods with SR-IOV interfaces (DPDK Driver - vfio-pci)
Deploy the new pods
Validate Pods Creation with SR-IOV interfaces (DPDK - Driver vfio-pci)
Let’s validate your work by confirming that the created pods got successfully created by doing the following commands: