Skip to content

Commit 35bc353

Browse files
author
Bob Furu
authored
Merge pull request #37234 from aireilly/BZ2011435
2 parents f36f13a + 479ae5e commit 35bc353

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

modules/nw-sriov-networknodepolicy-object.adoc

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,17 @@ spec:
2222
feature.node.kubernetes.io/network-sriov.capable: "true" <4>
2323
priority: <priority> <5>
2424
mtu: <mtu> <6>
25-
numVfs: <num> <7>
26-
nicSelector: <8>
27-
vendor: "<vendor_code>" <9>
28-
deviceID: "<device_id>" <10>
29-
pfNames: ["<pf_name>", ...] <11>
30-
rootDevices: ["<pci_bus_id>", ...] <12>
31-
netFilter: "<filter_string>" <13>
32-
deviceType: <device_type> <14>
33-
isRdma: false <15>
34-
linkType: <link_type> <16>
25+
needVhostNet: false <7>
26+
numVfs: <num> <8>
27+
nicSelector: <9>
28+
vendor: "<vendor_code>" <10>
29+
deviceID: "<device_id>" <11>
30+
pfNames: ["<pf_name>", ...] <12>
31+
rootDevices: ["<pci_bus_id>", ...] <13>
32+
netFilter: "<filter_string>" <14>
33+
deviceType: <device_type> <15>
34+
isRdma: false <16>
35+
linkType: <link_type> <17>
3536
----
3637
<1> The name for the custom resource object.
3738

@@ -45,31 +46,35 @@ spec:
4546

4647
<6> Optional: The maximum transmission unit (MTU) of the virtual function. The maximum MTU value can vary for different network interface controller (NIC) models.
4748

48-
<7> The number of the virtual functions (VF) to create for the SR-IOV physical network device. For an Intel network interface controller (NIC), the number of VFs cannot be larger than the total VFs supported by the device. For a Mellanox NIC, the number of VFs cannot be larger than `128`.
49+
<7> Optional: Set `needVhostNet` to `true` to mount the `/dev/vhost-net` device in the pod. This can be use with Data Plane Development Kit (DPDK) to forward traffic to the kernel network stack.
4950

50-
<8> 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.
51+
<8> The number of the virtual functions (VF) to create for the SR-IOV physical network device. For an Intel network interface controller (NIC), the number of VFs cannot be larger than the total VFs supported by the device. For a Mellanox NIC, the number of VFs cannot be larger than `128`.
52+
53+
<9> 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.
5154
+
5255
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.
5356

54-
<9> Optional: The vendor hexadecimal code of the SR-IOV network device. The only allowed values are `8086` and `15b3`.
57+
<10> Optional: The vendor hexadecimal code of the SR-IOV network device. The only allowed values are `8086` and `15b3`.
5558

56-
<10> Optional: The device hexadecimal code of the SR-IOV network device. For example, `101b` is the device ID for a Mellanox ConnectX-6 device.
59+
<11> Optional: The device hexadecimal code of the SR-IOV network device. For example, `101b` is the device ID for a Mellanox ConnectX-6 device.
5760

58-
<11> Optional: An array of one or more physical function (PF) names for the device.
61+
<12> Optional: An array of one or more physical function (PF) names for the device.
5962

60-
<12> Optional: An array of one or more PCI bus addresses for the PF of the device. Provide the address in the following format: `0000:02:00.1`.
63+
<13> Optional: An array of one or more PCI bus addresses for the PF of the device. Provide the address in the following format: `0000:02:00.1`.
6164

62-
<13> Optional: The platform-specific network filter. The only supported platform is {rh-openstack-first}. Acceptable values use the following format: `openstack/NetworkID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`. Replace `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` with the value from the `/var/config/openstack/latest/network_data.json` metadata file.
65+
<14> Optional: The platform-specific network filter. The only supported platform is {rh-openstack-first}. Acceptable values use the following format: `openstack/NetworkID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`. Replace `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` with the value from the `/var/config/openstack/latest/network_data.json` metadata file.
6366

64-
<14> Optional: The driver type for the virtual functions. The only allowed values are `netdevice` and `vfio-pci`. The default value is `netdevice`.
67+
<15> Optional: The driver type for the virtual functions. The only allowed values are `netdevice` and `vfio-pci`. The default value is `netdevice`.
6568
+
66-
For a Mellanox NIC to work in Data Plane Development Kit (DPDK) mode on bare metal nodes, use the `netdevice` driver type and set `isRdma` to `true`.
69+
For a Mellanox NIC to work in DPDK mode on bare metal nodes, use the `netdevice` driver type and set `isRdma` to `true`.
6770

68-
<15> Optional: Whether to enable remote direct memory access (RDMA) mode. The default value is `false`.
71+
<16> Optional: Configures whether to enable remote direct memory access (RDMA) mode. The default value is `false`.
72+
+
73+
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.
6974
+
70-
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.
75+
Set `isRdma` to `true` and additionally set `needVhostNet` to `true` to configure a Mellanox NIC for use with Fast Datapath DPDK applications.
7176

72-
<16> Optional: The link type for the VFs. You can specify one of the following values: `eth` or `ib`. Specify `eth` for Ethernet or `ib` for InfiniBand. The default value is `eth`.
77+
<17> Optional: The link type for the VFs. You can specify one of the following values: `eth` or `ib`. Specify `eth` for Ethernet or `ib` for InfiniBand. The default value is `eth`.
7378
+
7479
When `linkType` is set to `ib`, `isRdma` is automatically set to `true` by the SR-IOV Network Operator webhook. When `linkType` is set to `ib`, `deviceType` should not be set to `vfio-pci`.
7580

0 commit comments

Comments
 (0)