$ oc label node <node_name> feature.node.kubernetes.io/network-sriov.capable="true"
The Single Root I/O Virtualization (SR-IOV) specification is a standard for a type of PCI device assignment that can share a single device with multiple pods.
You can configure a Single Root I/O Virtualization (SR-IOV) device in your cluster by using the SR-IOV Operator.
SR-IOV can segment a compliant network device, recognized on the host node as a physical function (PF), into multiple virtual functions (VFs). The VF is used like any other network device. The SR-IOV network device driver for the device determines how the VF is exposed in the container:
netdevice
driver: A regular kernel network device in the netns
of the container
vfio-pci
driver: A character device mounted in the container
You can use SR-IOV network devices with additional networks on your OpenShift Container Platform cluster installed on bare metal or Red Hat OpenStack Platform (RHOSP) infrastructure for applications that require high bandwidth or low latency.
You can configure multi-network policies for SR-IOV networks. The support for this is technology preview and SR-IOV additional networks are only supported with kernel NICs. They are not supported for Data Plane Development Kit (DPDK) applications.
Creating multi-network policies on SR-IOV networks might not deliver the same performance to applications compared to SR-IOV networks without a multi-network policy configured. |
Multi-network policies for SR-IOV network is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process. For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope. |
You can enable SR-IOV on a node by using the following command:
$ oc label node <node_name> feature.node.kubernetes.io/network-sriov.capable="true"
The SR-IOV Network Operator creates and manages the components of the SR-IOV stack. The Operator performs the following functions:
Orchestrates discovery and management of SR-IOV network devices
Generates NetworkAttachmentDefinition
custom resources for the SR-IOV Container Network Interface (CNI)
Creates and updates the configuration of the SR-IOV network device plugin
Creates node specific SriovNetworkNodeState
custom resources
Updates the spec.interfaces
field in each SriovNetworkNodeState
custom resource
The Operator provisions the following components:
A daemon set that is deployed on worker nodes when the SR-IOV Network Operator starts. The daemon is responsible for discovering and initializing SR-IOV network devices in the cluster.
A dynamic admission controller webhook that validates the Operator custom resource and sets appropriate default values for unset fields.
A dynamic admission controller webhook that provides functionality for patching Kubernetes pod specifications with requests and limits for custom network resources such as SR-IOV VFs. The SR-IOV network resources injector adds the resource
field to only the first container in a pod automatically.
A device plugin that discovers, advertises, and allocates SR-IOV network virtual function (VF) resources. Device plugins are used in Kubernetes to enable the use of limited resources, typically in physical devices. Device plugins give the Kubernetes scheduler awareness of resource availability, so that the scheduler can schedule pods on nodes with sufficient resources.
A CNI plugin that attaches VF interfaces allocated from the SR-IOV network device plugin directly into a pod.
A CNI plugin that attaches InfiniBand (IB) VF interfaces allocated from the SR-IOV network device plugin directly into a pod.
The SR-IOV Network resources injector and SR-IOV Network Operator webhook are enabled by default and can be disabled by editing the |
The SR-IOV Network Operator is supported on the following platforms:
Bare metal
Red Hat OpenStack Platform (RHOSP)
OpenShift Container Platform supports the following network interface controllers:
Manufacturer | Model | Vendor ID | Device ID |
---|---|---|---|
Broadcom |
BCM57414 |
14e4 |
16d7 |
Broadcom |
BCM57508 |
14e4 |
1750 |
Broadcom |
BCM57504 |
14e4 |
1751 |
Intel |
X710 |
8086 |
1572 |
Intel |
X710 Backplane |
8086 |
1581 |
Intel |
X710 Base T |
8086 |
15ff |
Intel |
XL710 |
8086 |
1583 |
Intel |
XXV710 |
8086 |
158b |
Intel |
E810-CQDA2 |
8086 |
1592 |
Intel |
E810-2CQDA2 |
8086 |
1592 |
Intel |
E810-XXVDA2 |
8086 |
159b |
Intel |
E810-XXVDA4 |
8086 |
1593 |
Intel |
E810-XXVDA4T |
8086 |
1593 |
Intel |
Ice E810-XXV Backplane |
8086 |
1599 |
Intel |
Ice E823L Backplane |
8086 |
124c |
Intel |
Ice E823L SFP |
8086 |
124d |
Marvell |
OCTEON Fusion CNF105XX |
177d |
ba00 |
Marvell |
OCTEON10 CN10XXX |
1177d |
b900 |
Mellanox |
MT27700 Family [ConnectX‑4] |
15b3 |
1013 |
Mellanox |
MT27710 Family [ConnectX‑4 Lx] |
15b3 |
1015 |
Mellanox |
MT27800 Family [ConnectX‑5] |
15b3 |
1017 |
Mellanox |
MT28880 Family [ConnectX‑5 Ex] |
15b3 |
1019 |
Mellanox |
MT28908 Family [ConnectX‑6] |
15b3 |
101b |
Mellanox |
MT2892 Family [ConnectX‑6 Dx] |
15b3 |
101d |
Mellanox |
MT2894 Family [ConnectX‑6 Lx] |
15b3 |
101f |
Mellanox |
Mellanox MT2910 Family [ConnectX‑7] |
15b3 |
1021 |
Mellanox |
MT42822 BlueField‑2 in ConnectX‑6 NIC mode |
15b3 |
a2d6 |
Pensando [1] |
DSC-25 dual-port 25G distributed services card for ionic driver |
0x1dd8 |
0x1002 |
Pensando [1] |
DSC-100 dual-port 100G distributed services card for ionic driver |
0x1dd8 |
0x1003 |
Silicom |
STS Family |
8086 |
1591 |
OpenShift SR-IOV is supported, but you must set a static, Virtual Function (VF) media access control (MAC) address using the SR-IOV CNI config file when using SR-IOV.
For the most up-to-date list of supported cards and compatible OpenShift Container Platform versions available, see Openshift Single Root I/O Virtualization (SR-IOV) and PTP hardware networks Support Matrix. |