Chapter 12. Switching Bluefield-2 from DPU to NIC
You can switch the Bluefield-2 network device from data processing unit (DPU) mode to network interface controller (NIC) mode.
Before you perform any tasks in the following documentation, ensure that you installed the SR-IOV Network Operator.
12.1. Switching Bluefield-2 from DPU mode to NIC mode Copy linkLink copied to clipboard!
Use the following procedure to switch Bluefield-2 from data processing units (DPU) mode to network interface controller (NIC) mode.
Currently, only switching Bluefield-2 from DPU to NIC mode is supported. Switching from NIC mode to DPU mode is unsupported.
Prerequisites
- You have installed the SR-IOV Network Operator. For more information, see "Installing SR-IOV Network Operator".
- You have updated Bluefield-2 to the latest firmware. For more information, see Firmware for NVIDIA BlueField-2.
Procedure
Add the following label to each of your compute nodes by entering the following command. You must run the command for each compute node.
oc label node <node_name> node-role.kubernetes.io/sriov=
$ oc label node <node_name> node-role.kubernetes.io/sriov=
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
where:
node_name
- Refers to the name of a compute node.
Create a machine config pool for the SR-IOV Network Operator, for example:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Apply the following
machineconfig.yaml
file to the compute nodes:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- Optional: The PCI address of a specific card can optionally be specified, for example
ExecStart=/bin/bash -c '/etc/default/switch_in_sriov_config_daemon.sh nic 0000:5e:00.0 || echo done'
. By default, the first device is selected. If there is more than one device, you must specify which PCI address to be used. The PCI address must be the same on all nodes that are switching Bluefield-2 from DPU mode to NIC mode.
- Wait for the compute nodes to restart. After restarting, the Bluefield-2 network device on the compute nodes is switched into NIC mode.
- Optional: You might need to restart the host hardware because most recent Bluefield-2 firmware releases require a hardware restart to switch into NIC mode.