Skip to content

Commit fac2560

Browse files
author
Padraig O'Grady
committed
TELCODOCS-1872: New procedure topic to expose mtu, and addition of this topic to the assembly
TELCODOCS-1872: New procedure topic to expose mtu updated TELCODOCS-1872: New procedure topic to expose mtu codeblock updated TELCODOCS-1872: QE & Dev feedback applied TELCODOCS-1872: Peer review feedback applied TELCODOCS-1872: Peer review #2 feedback applied TELCODOCS-1872: Peer review squad feedback applied TELCODOCS-1872: Reviewer feedback applied
1 parent c73da1f commit fac2560

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

modules/nw-sriov-expose-mtu.adoc

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * networking/hardware_networks/add-pod.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="nw-sriov-expose-mtu_{context}"]
7+
= Exposing MTU for vfio-pci SR-IOV devices to pod
8+
9+
After adding a pod to an additional network, you can check that the MTU is available for the SR-IOV network.
10+
11+
.Procedure
12+
13+
. Check that the pod annotation includes MTU by running the following command:
14+
+
15+
[source,terminal]
16+
----
17+
$ oc describe pod example-pod
18+
----
19+
The following example shows the sample output:
20+
+
21+
[source,text]
22+
----
23+
"mac": "20:04:0f:f1:88:01",
24+
"mtu": 1500,
25+
"dns": {},
26+
"device-info": {
27+
"type": "pci",
28+
"version": "1.1.0",
29+
"pci": {
30+
"pci-address": "0000:86:01.3"
31+
}
32+
}
33+
----
34+
35+
. Verify that the MTU is available in `/etc/podnetinfo/` inside the pod by running the following command:
36+
+
37+
[source,terminal]
38+
----
39+
$ oc exec example-pod -n sriov-tests -- cat /etc/podnetinfo/annotations | grep mtu
40+
----
41+
The following example shows the sample output:
42+
+
43+
[source,text]
44+
----
45+
k8s.v1.cni.cncf.io/network-status="[{
46+
\"name\": \"ovn-kubernetes\",
47+
\"interface\": \"eth0\",
48+
\"ips\": [
49+
\"10.131.0.67\"
50+
],
51+
\"mac\": \"0a:58:0a:83:00:43\",
52+
\"default\": true,
53+
\"dns\": {}
54+
},{
55+
\"name\": \"sriov-tests/sriov-nic-1\",
56+
\"interface\": \"net1\",
57+
\"ips\": [
58+
\"192.168.10.1\"
59+
],
60+
\"mac\": \"20:04:0f:f1:88:01\",
61+
\"mtu\": 1500,
62+
\"dns\": {},
63+
\"device-info\": {
64+
\"type\": \"pci\",
65+
\"version\": \"1.1.0\",
66+
\"pci\": {
67+
\"pci-address\": \"0000:86:01.3\"
68+
}
69+
}
70+
}]"
71+
----

networking/hardware_networks/add-pod.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ include::modules/nw-sriov-runtime-config.adoc[leveloffset=+1]
1212

1313
include::modules/nw-multus-add-pod.adoc[leveloffset=+1]
1414

15+
include::modules/nw-sriov-expose-mtu.adoc[leveloffset=+2]
16+
1517
include::modules/nw-sriov-topology-manager.adoc[leveloffset=+1]
1618

1719
include::modules/nw-openstack-sr-iov-testpmd-pod.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)