|
| 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 | +---- |
0 commit comments