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
= Setting one sysctl flag on nodes with SR-IOV network devices
7
+
= Setting one sysctl flag on nodes with SR-IOV network devices
8
8
9
-
The SR-IOV Network Operator adds the `SriovNetworkNodePolicy.sriovnetwork.openshift.io` custom resource definition (CRD) to {product-title}. You can configure an SR-IOV network device by creating a `SriovNetworkNodePolicy` custom resource (CR).
9
+
The SR-IOV Network Operator adds the `SriovNetworkNodePolicy.sriovnetwork.openshift.io` custom resource definition (CRD) to {product-title}. You can configure an SR-IOV network device by creating a `SriovNetworkNodePolicy` custom resource (CR).
10
10
11
11
[NOTE]
12
12
====
@@ -15,11 +15,11 @@ When applying the configuration specified in a `SriovNetworkNodePolicy` object,
15
15
It can take several minutes for a configuration change to apply.
16
16
====
17
17
18
-
Follow this procedure to create a `SriovNetworkNodePolicy` custom resource (CR).
18
+
Follow this procedure to create a `SriovNetworkNodePolicy` custom resource (CR).
19
19
20
20
.Procedure
21
21
22
-
. Create an `SriovNetworkNodePolicy` custom resource (CR). For example, save the following YAML as the file `policyoneflag-sriov-node-network.yaml`:
22
+
. Create an `SriovNetworkNodePolicy` custom resource (CR). For example, save the following YAML as the file `policyoneflag-sriov-node-network.yaml`:
23
23
+
24
24
[source,yaml]
25
25
----
@@ -49,13 +49,17 @@ spec:
49
49
<7> The NIC selector identifies the device for the Operator to configure. You do not have to specify values for all the parameters. It is recommended to identify the network device with enough precision to avoid selecting a device unintentionally.
50
50
If you specify `rootDevices`, you must also specify a value for `vendor`, `deviceID`, or `pfNames`. If you specify both `pfNames` and `rootDevices` at the same time, ensure that they refer to the same device. If you specify a value for `netFilter`, then you do not need to specify any other parameter because a network ID is unique.
51
51
<8> Optional: An array of one or more physical function (PF) names for the device.
52
-
<9> Optional: The driver type for the virtual functions. The only allowed values are `netdevice` and `vfio-pci`. The default value is `netdevice`.
53
-
For a Mellanox NIC to work in DPDK mode on bare metal nodes, use the `netdevice` driver type and set `isRdma` to `true`.
52
+
<9> Optional: The driver type for the virtual functions. The only allowed value is `netdevice`.
53
+
For a Mellanox NIC to work in DPDK mode on bare metal nodes, set `isRdma` to `true`.
54
54
<10> Optional: Configures whether to enable remote direct memory access (RDMA) mode. The default value is `false`.
55
55
If the `isRdma` parameter is set to `true`, you can continue to use the RDMA-enabled VF as a normal network device. A device can be used in either mode.
56
56
Set `isRdma` to `true` and additionally set `needVhostNet` to `true` to configure a Mellanox NIC for use with Fast Datapath DPDK applications.
57
57
+
58
-
58
+
[NOTE]
59
+
====
60
+
The `vfio-pci` driver type is not supported.
61
+
====
62
+
+
59
63
. Create the `SriovNetworkNodePolicy` object:
60
64
+
61
65
[source,terminal]
@@ -72,7 +76,7 @@ After applying the configuration update, all the pods in `sriov-network-operator
72
76
$ oc get sriovnetworknodestates -n openshift-sriov-network-operator <node_name> -o jsonpath='{.status.syncStatus}'
= Setting all sysctl flag on nodes with bonded SR-IOV network devices
7
+
= Setting all sysctl flag on nodes with bonded SR-IOV network devices
8
8
9
-
The SR-IOV Network Operator adds the `SriovNetworkNodePolicy.sriovnetwork.openshift.io` custom resource definition (CRD) to {product-title}. You can configure an SR-IOV network device by creating a `SriovNetworkNodePolicy` custom resource (CR).
9
+
The SR-IOV Network Operator adds the `SriovNetworkNodePolicy.sriovnetwork.openshift.io` custom resource definition (CRD) to {product-title}. You can configure an SR-IOV network device by creating a `SriovNetworkNodePolicy` custom resource (CR).
10
10
11
11
[NOTE]
12
12
====
@@ -15,7 +15,7 @@ When applying the configuration specified in a SriovNetworkNodePolicy object, th
15
15
It might take several minutes for a configuration change to apply.
16
16
====
17
17
18
-
Follow this procedure to create a `SriovNetworkNodePolicy` custom resource (CR).
18
+
Follow this procedure to create a `SriovNetworkNodePolicy` custom resource (CR).
19
19
20
20
.Procedure
21
21
@@ -49,13 +49,17 @@ spec:
49
49
<7> The NIC selector identifies the device for the Operator to configure. You do not have to specify values for all the parameters. It is recommended to identify the network device with enough precision to avoid selecting a device unintentionally.
50
50
If you specify `rootDevices`, you must also specify a value for `vendor`, `deviceID`, or `pfNames`. If you specify both `pfNames` and `rootDevices` at the same time, ensure that they refer to the same device. If you specify a value for `netFilter`, then you do not need to specify any other parameter because a network ID is unique.
51
51
<8> Optional: An array of one or more physical function (PF) names for the device.
52
-
<9> Optional: The driver type for the virtual functions. The only allowed values are `netdevice` and `vfio-pci`. The default value is `netdevice`.
53
-
For a Mellanox NIC to work in DPDK mode on bare metal nodes, use the `netdevice` driver type and set `isRdma` to `true`.
52
+
<9> Optional: The driver type for the virtual functions. The only allowed value is `netdevice`.
53
+
For a Mellanox NIC to work in DPDK mode on bare metal nodes, set `isRdma` to `true`.
54
54
<10> Optional: Configures whether to enable remote direct memory access (RDMA) mode. The default value is `false`.
55
55
If the `isRdma` parameter is set to `true`, you can continue to use the RDMA-enabled VF as a normal network device. A device can be used in either mode.
56
56
Set `isRdma` to `true` and additionally set `needVhostNet` to `true` to configure a Mellanox NIC for use with Fast Datapath DPDK applications.
0 commit comments