You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/proc-switching-bf2-nic.adoc
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,17 @@
6
6
[id="proc-switching-bf2-nic_{context}"]
7
7
= Switching Bluefield-2 from DPU mode to NIC mode
8
8
9
-
Use the following procedure to switch Bluefield-2 from data processing units (DPU) mode to network interface controller (NIC) mode.
9
+
Use the following procedure to switch Bluefield-2 from data processing units (DPU) mode to network interface controller (NIC) mode.
10
10
11
11
[IMPORTANT]
12
12
====
13
-
Currently, only switching Bluefield-2 from DPU to NIC mode is supported. Switching from NIC mode to DPU mode is unsupported.
13
+
Currently, only switching Bluefield-2 from DPU to NIC mode is supported. Switching from NIC mode to DPU mode is unsupported.
14
14
====
15
15
16
16
.Prerequisites
17
17
18
-
* You have installed the SR-IOV Network Operator. For more information, see "Installing SR-IOV Network Operator".
19
-
* You have updated Bluefield-2 to the latest firmware. For more information, see link:https://network.nvidia.com/support/firmware/bluefield2/[Firmware for NVIDIA BlueField-2].
18
+
* You have installed the SR-IOV Network Operator. For more information, see "Installing SR-IOV Network Operator".
19
+
* You have updated Bluefield-2 to the latest firmware. For more information, see link:https://network.nvidia.com/support/firmware/bluefield2/[Firmware for NVIDIA BlueField-2].
Description=Switch BlueField2 card to NIC/DPU mode
82
-
RequiresMountsFor=%t/containers
83
-
Wants=network.target
84
-
After=network-online.target kubelet.service
85
-
[Service]
86
-
SuccessExitStatus=0 120
87
-
RemainAfterExit=True
88
-
ExecStart=/bin/bash -c '/etc/default/switch_in_sriov_config_daemon.sh nic || shutdown -r now' <1>
89
-
Type=oneshot
90
-
[Install]
91
-
WantedBy=multi-user.target
77
+
- name: dpu-switch.service
78
+
enabled: true
79
+
contents: |
80
+
[Unit]
81
+
Description=Switch BlueField2 card to NIC/DPU mode
82
+
RequiresMountsFor=%t/containers
83
+
Wants=network.target
84
+
After=network-online.target kubelet.service
85
+
[Service]
86
+
SuccessExitStatus=0 120
87
+
RemainAfterExit=True
88
+
ExecStart=/bin/bash -c '/etc/default/switch_in_sriov_config_daemon.sh nic || shutdown -r now' <1>
89
+
Type=oneshot
90
+
[Install]
91
+
WantedBy=multi-user.target
92
92
----
93
-
<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.
93
+
<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.
94
94
95
-
. Wait for the worker nodes to restart. After restarting, the Bluefield-2 network device on the worker nodes is switched into NIC mode.
95
+
. Wait for the worker nodes to restart. After restarting, the Bluefield-2 network device on the worker nodes is switched into NIC mode.
0 commit comments