Skip to content

Commit 46590e9

Browse files
authored
Merge pull request #83516 from kquinn1204/OCPBUGS-43101
OCPBUGS 43101: Configure how to set SR-IOV in systemd mode relevant for configuring hardware offloading
2 parents 7a836bb + c819fce commit 46590e9

File tree

4 files changed

+51
-3
lines changed

4 files changed

+51
-3
lines changed

modules/nw-sriov-hwol-configuring-machine-config-pool.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
[id="configuring-machine-config-pool_{context}"]
77
= Configuring a machine config pool for hardware offloading
88

9-
To enable hardware offloading, you must first create a dedicated machine config pool and configure it to work with the SR-IOV Network Operator.
9+
To enable hardware offloading, you now create a dedicated machine config pool and configure it to work with the SR-IOV Network Operator.
1010

1111
.Prerequisites
1212

13-
* You installed the OpenShift CLI (`oc`).
14-
* You have access to the cluster as a user with the `cluster-admin` role.
13+
. SR-IOV Network Operator installed and set into `systemd` mode.
1514

1615
.Procedure
1716

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * networking/hardware_networks/configuring-hardware-offloading.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="nw-sriov-hwol-configuring-systemd-mode_{context}"]
7+
= Setting the SR-IOV Network Operator into systemd mode
8+
9+
To support hardware offloading, you must first set the SR-IOV Network Operator into `systemd` mode.
10+
11+
.Prerequisites
12+
13+
* You installed the OpenShift CLI (`oc`).
14+
* You have access to the cluster as a user that has the `cluster-admin` role.
15+
16+
.Procedure
17+
18+
. Create a `SriovOperatorConfig` custom resource (CR) to deploy all the SR-IOV Operator components:
19+
20+
.. Create a file named `sriovOperatorConfig.yaml` that contains the following YAML:
21+
+
22+
[source,yaml]
23+
----
24+
apiVersion: sriovnetwork.openshift.io/v1
25+
kind: SriovOperatorConfig
26+
metadata:
27+
name: default <1>
28+
namespace: openshift-sriov-network-operator
29+
spec:
30+
enableInjector: true
31+
enableOperatorWebhook: true
32+
configurationMode: "systemd" <2>
33+
logLevel: 2
34+
----
35+
+
36+
<1> The only valid name for the `SriovOperatorConfig` resource is `default` and it must be in the namespace where the Operator is deployed.
37+
<2> Setting the SR-IOV Network Operator into `systemd` mode is only relevant for Open vSwitch hardware offloading.
38+
39+
.. Create the resource by running the following command:
40+
+
41+
[source,terminal]
42+
----
43+
$ oc apply -f sriovOperatorConfig.yaml
44+
----

modules/proc-switching-bf2-nic.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,5 @@ spec:
9393
<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.
9494

9595
. Wait for the worker nodes to restart. After restarting, the Bluefield-2 network device on the worker nodes is switched into NIC mode.
96+
97+
. 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.

networking/hardware_networks/configuring-hardware-offloading.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ include::modules/nw-sriov-hwol-supported-devices.adoc[leveloffset=+1]
2424
* Your cluster uses the xref:../../networking/ovn_kubernetes_network_provider/about-ovn-kubernetes.adoc#about-ovn-kubernetes[OVN-Kubernetes network plugin].
2525
* In your xref:../../networking/cluster-network-operator.adoc#gatewayConfig-object_cluster-network-operator[OVN-Kubernetes network plugin configuration], the `gatewayConfig.routingViaHost` field is set to `false`.
2626

27+
//Configure a machine config pool for hardware offloading
28+
include::modules/nw-sriov-hwol-configuring-systemd-mode.adoc[leveloffset=+1]
29+
2730
//Configure a machine config pool for hardware offloading
2831
include::modules/nw-sriov-hwol-configuring-machine-config-pool.adoc[leveloffset=+1]
2932

0 commit comments

Comments
 (0)