-3.5 Wait for the software installation on controller-1 to complete, for controller-1 to reboot, and for controller-1 to show as locked/disabled/online in 'system host-list'.
-+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-This can take 5-10 minutes, depending on the performance of the host
-machine.
-
-::
-
- [root@controller-0 hieradata(keystone_admin)]$ system host-list
- +----+--------------+-------------+----------------+-------------+--------------+
- | id | hostname | personality | administrative | operational | availability |
- +----+--------------+-------------+----------------+-------------+--------------+
- | 1 | controller-0 | controller | unlocked | enabled | available |
- | 2 | controller-1 | controller | locked | disabled | online |
- +----+--------------+-------------+----------------+-------------+--------------+
-
-3.6 Configure controller-1
-++++++++++++++++++++++++++
-
-::
-
- OAM_IF=eno3
- MGMT_IF=eno1
- system host-if-modify controller-1 $OAM_IF -n oam0
- system host-if-modify controller-1 oam0 -c platform
- system interface-network-assign controller-1 oam0 oam
-
- system host-if-add -V 19 controller-1 cluster0 vlan pxeboot0
- system interface-network-assign controller-1 cluster0 cluster-host
-
- system host-if-list controller-1
-
- system host-disk-list controller-1
- system host-disk-list controller-1 | awk '/\/dev\/sdb/{print $2}' | xargs -i system host-stor-add controller-1 {}
- system host-disk-list controller-1 | awk '/\/dev\/sdc/{print $2}' | xargs -i system host-stor-add controller-1 {}
- system host-stor-list controller-1
-
-Output:
-
-::
-
- [sysadmin@controller-0 ~(keystone_admin)]$ OAM_IF=eno3
- [sysadmin@controller-0 ~(keystone_admin)]$ MGMT_IF=eno1
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-if-modify controller-1 $OAM_IF -n oam0
- +-----------------+--------------------------------------+
- | Property | Value |
- +-----------------+--------------------------------------+
- | ifname | oam0 |
- | iftype | ethernet |
- | ports | [u'eno3'] |
- | imac | 24:6e:96:5d:39:0e |
- | imtu | 1500 |
- | ifclass | None |
- | aemode | None |
- | schedpolicy | None |
- | txhashpolicy | None |
- | uuid | c2473511-d0d6-445d-9739-4d43dc029de9 |
- | ihost_uuid | 63c930c7-2195-4d5a-870c-be610fd6b4fc |
- | vlan_id | None |
- | uses | [] |
- | used_by | [] |
- | created_at | 2021-11-22T14:01:32.365863+00:00 |
- | updated_at | 2021-11-22T15:04:45.090904+00:00 |
- | sriov_numvfs | 0 |
- | sriov_vf_driver | None |
- | accelerated | [True] |
- +-----------------+--------------------------------------+
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-if-modify controller-1 oam0 -c platform
- +-----------------+--------------------------------------+
- | Property | Value |
- +-----------------+--------------------------------------+
- | ifname | oam0 |
- | iftype | ethernet |
- | ports | [u'eno3'] |
- | imac | 24:6e:96:5d:39:0e |
- | imtu | 1500 |
- | ifclass | platform |
- | aemode | None |
- | schedpolicy | None |
- | txhashpolicy | None |
- | uuid | c2473511-d0d6-445d-9739-4d43dc029de9 |
- | ihost_uuid | 63c930c7-2195-4d5a-870c-be610fd6b4fc |
- | vlan_id | None |
- | uses | [] |
- | used_by | [] |
- | created_at | 2021-11-22T14:05:16.052229+00:00 |
- | updated_at | 2021-11-22T15:08:35.324634+00:00 |
- | sriov_numvfs | 0 |
- | sriov_vf_driver | None |
- | accelerated | [True] |
- +-----------------+--------------------------------------+
- [sysadmin@controller-0 ~(keystone_admin)]$ system interface-network-assign controller-1 oam0 oam
- +--------------+--------------------------------------+
- | Property | Value |
- +--------------+--------------------------------------+
- | hostname | controller-1 |
- | uuid | f2e7f088-0dd0-4adc-8348-4e3cef23bc47 |
- | ifname | oam0 |
- | network_name | oam |
- +--------------+--------------------------------------+
- [sysadmin@controller-0 ~(keystone_admin)]$
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-if-add -V 19 controller-1 cluster0 vlan pxeboot0
- +-----------------+--------------------------------------+
- | Property | Value |
- +-----------------+--------------------------------------+
- | ifname | cluster0 |
- | iftype | vlan |
- | ports | [] |
- | imac | 24:6e:96:5d:38:ee |
- | imtu | 1500 |
- | ifclass | None |
- | aemode | None |
- | schedpolicy | None |
- | txhashpolicy | None |
- | uuid | b6783682-b2aa-4135-90d2-676e1db41ae8 |
- | ihost_uuid | 63c930c7-2195-4d5a-870c-be610fd6b4fc |
- | vlan_id | 19 |
- | uses | [u'pxeboot0'] |
- | used_by | [] |
- | created_at | 2021-11-22T15:08:43.932209+00:00 |
- | updated_at | None |
- | sriov_numvfs | 0 |
- | sriov_vf_driver | None |
- | accelerated | [True] |
- +-----------------+--------------------------------------+
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system interface-network-assign controller-1 cluster0 cluster-host
- +--------------+--------------------------------------+
- | Property | Value |
- +--------------+--------------------------------------+
- | hostname | controller-1 |
- | uuid | 8fc64805-b54b-45a4-b88a-e13b236abfe8 |
- | ifname | cluster0 |
- | network_name | cluster-host |
- +--------------+--------------------------------------+
- [sysadmin@controller-0 ~(keystone_admin)]$
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-if-list controller-1
- +--------------------------------------+----------+----------+----------+---------+-----------+---------------+-------------------------+------------+
- | uuid | name | class | type | vlan id | ports | uses i/f | used by i/f | attributes |
- +--------------------------------------+----------+----------+----------+---------+-----------+---------------+-------------------------+------------+
- | b6783682-b2aa-4135-90d2-676e1db41ae8 | cluster0 | platform | vlan | 19 | [] | [u'pxeboot0'] | [] | MTU=1500 |
- | b8921960-fde5-44c3-960d-2aebf42ea400 | pxeboot0 | platform | ethernet | None | [u'eno1'] | [] | [u'mgmt0', u'cluster0'] | MTU=1500 |
- | c103275b-2b75-4568-865f-ac6be32ecb2d | mgmt0 | platform | vlan | 18 | [] | [u'pxeboot0'] | [] | MTU=1500 |
- | c2473511-d0d6-445d-9739-4d43dc029de9 | oam0 | platform | ethernet | None | [u'eno3'] | [] | [] | MTU=1500 |
- +--------------------------------------+----------+----------+----------+---------+-----------+---------------+-------------------------+------------+
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-disk-list controller-1
- +--------------------------------------+-----------+---------+---------+-------+------------+--------------+----------------------------------+-------------------------------------------------+
- | uuid | device_no | device_ | device_ | size_ | available_ | rpm | serial_id | device_path |
- | | de | num | type | gib | gib | | | |
- +--------------------------------------+-----------+---------+---------+-------+------------+--------------+----------------------------------+-------------------------------------------------+
- | 5b8fade4-b048-48fa-b906-9dcbdbed8e96 | /dev/sda | 2048 | HDD | 893. | 644.726 | Undetermined | 00cbd97f3e36ccfa2500561b14604609 | /dev/disk/by-path/pci-0000:86:00.0-scsi-0:2:0:0 |
- | | | | | 75 | | | | |
- | | | | | | | | | |
- | 1a3f0a36-5961-42e5-a271-e71db1c25d42 | /dev/sdb | 2064 | HDD | 1117. | 1117.247 | Undetermined | 006d0e977b5fccfa2500561b14604609 | /dev/disk/by-path/pci-0000:86:00.0-scsi-0:2:1:0 |
- | | | | | 25 | | | | |
- | | | | | | | | | |
- | eddd732f-2cea-49b3-86db-b722c0b1a1ae | /dev/sdc | 2080 | HDD | 1117. | 1117.247 | Undetermined | 003a2377ac7fccfa2500561b14604609 | /dev/disk/by-path/pci-0000:86:00.0-scsi-0:2:2:0 |
- | | | | | 25 | | | | |
- | | | | | | | | | |
- | 774c3cd0-1178-4145-9573-f0d6dee2ba06 | /dev/sdd | 2096 | HDD | 1117. | 1117.247 | Undetermined | 00d7093ef0adccfa2500561b14604609 | /dev/disk/by-path/pci-0000:86:00.0-scsi-0:2:3:0 |
- | | | | | 25 | | | | |
- | | | | | | | | | |
- | 00361302-8d55-4730-855c-b0098c73ab7e | /dev/sde | 2112 | SSD | 223. | 223.568 | N/A | PHDW730104QM240E | /dev/disk/by-path/pci-0000:d8:00.0-ata-1 |
- | | | | | 57 | | | | |
- | | | | | | | | | |
- | 7ce735e6-920f-4424-a890-a7a7f48d7632 | /dev/sdf | 2128 | SSD | 223. | 223.568 | N/A | PHDW730104LL240E | /dev/disk/by-path/pci-0000:d8:00.0-ata-2 |
- | | | | | 57 | | | | |
- | | | | | | | | | |
- +--------------------------------------+-----------+---------+---------+-------+------------+--------------+----------------------------------+-------------------------------------------------+
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-disk-list controller-1 | awk '/\/dev\/sdb/{print $2}' | xargs -i system host-stor-add controller-1 {}
- +------------------+-------------------------------------------------------+
- | Property | Value |
- +------------------+-------------------------------------------------------+
- | osdid | 2 |
- | function | osd |
- | state | configuring-on-unlock |
- | journal_location | 54a218d8-0466-4366-9ef0-3ec5a952fde7 |
- | journal_size_gib | 1024 |
- | journal_path | /dev/disk/by-path/pci-0000:86:00.0-scsi-0:2:1:0-part2 |
- | journal_node | /dev/sdb2 |
- | uuid | 54a218d8-0466-4366-9ef0-3ec5a952fde7 |
- | ihost_uuid | 63c930c7-2195-4d5a-870c-be610fd6b4fc |
- | idisk_uuid | 1a3f0a36-5961-42e5-a271-e71db1c25d42 |
- | tier_uuid | 06b4740e-29db-4896-9600-03ee40fe0d6c |
- | tier_name | storage |
- | created_at | 2021-11-22T15:11:55.641193+00:00 |
- | updated_at | None |
- +------------------+-------------------------------------------------------+
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-disk-list controller-1 | awk '/\/dev\/sdc/{print $2}' | xargs -i system host-stor-add controller-1 {}
- +------------------+-------------------------------------------------------+
- | Property | Value |
- +------------------+-------------------------------------------------------+
- | osdid | 3 |
- | function | osd |
- | state | configuring-on-unlock |
- | journal_location | 5be88c7a-3a94-4b97-9da5-b247bb89406c |
- | journal_size_gib | 1024 |
- | journal_path | /dev/disk/by-path/pci-0000:86:00.0-scsi-0:2:2:0-part2 |
- | journal_node | /dev/sdc2 |
- | uuid | 5be88c7a-3a94-4b97-9da5-b247bb89406c |
- | ihost_uuid | 63c930c7-2195-4d5a-870c-be610fd6b4fc |
- | idisk_uuid | eddd732f-2cea-49b3-86db-b722c0b1a1ae |
- | tier_uuid | 06b4740e-29db-4896-9600-03ee40fe0d6c |
- | tier_name | storage |
- | created_at | 2021-11-22T15:12:04.274839+00:00 |
- | updated_at | None |
- +------------------+-------------------------------------------------------+
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-stor-list controller-1
- +--------------------------------------+----------+-------+-----------------------+--------------------------------------+-------------------------------------------------------+--------------+------------------+-----------+
- | uuid | function | osdid | state | idisk_uuid | journal_path | journal_node | journal_size_gib | tier_name |
- +--------------------------------------+----------+-------+-----------------------+--------------------------------------+-------------------------------------------------------+--------------+------------------+-----------+
- | 54a218d8-0466-4366-9ef0-3ec5a952fde7 | osd | 2 | configuring-on-unlock | 1a3f0a36-5961-42e5-a271-e71db1c25d42 | /dev/disk/by-path/pci-0000:86:00.0-scsi-0:2:1:0-part2 | /dev/sdb2 | 1 | storage |
- | 5be88c7a-3a94-4b97-9da5-b247bb89406c | osd | 3 | configuring-on-unlock | eddd732f-2cea-49b3-86db-b722c0b1a1ae | /dev/disk/by-path/pci-0000:86:00.0-scsi-0:2:2:0-part2 | /dev/sdc2 | 1 | storage |
- +--------------------------------------+----------+-------+-----------------------+--------------------------------------+-------------------------------------------------------+--------------+------------------+-----------+
-
-3.7 Unlock controller-1
-+++++++++++++++++++++++
-
-Unlock controller-1 in order to bring it into service:
-
-::
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-unlock controller-1
- +-----------------------+--------------------------------------+
- | Property | Value |
- +-----------------------+--------------------------------------+
- | action | none |
- | administrative | locked |
- | availability | online |
- | bm_ip | None |
- | bm_type | None |
- | bm_username | None |
- | boot_device | /dev/sda |
- | capabilities | {u'stor_function': u'monitor'} |
- | clock_synchronization | ntp |
- | config_applied | None |
- | config_status | Config out-of-date |
- | config_target | 9747e0ce-2319-409d-b75c-2475bc5065ac |
- | console | ttyS0,115200 |
- | created_at | 2021-11-22T12:58:11.630526+00:00 |
- | hostname | controller-1 |
- | id | 3 |
- | install_output | text |
- | install_state | None |
- | install_state_info | None |
- | inv_state | inventoried |
- | invprovision | unprovisioned |
- | location | {} |
- | mgmt_ip | 192.168.18.4 |
- | mgmt_mac | 24:6e:96:5d:38:ee |
- | operational | disabled |
- | personality | controller |
- | reserved | False |
- | rootfs_device | /dev/sda |
- | serialid | None |
- | software_load | 21.05 |
- | subfunction_avail | online |
- | subfunction_oper | disabled |
- | subfunctions | controller,worker,lowlatency |
- | task | Unlocking |
- | tboot | false |
- | ttys_dcd | None |
- | updated_at | 2021-11-22T15:13:09.716324+00:00 |
- | uptime | 752 |
- | uuid | 63c930c7-2195-4d5a-870c-be610fd6b4fc |
- | vim_progress_status | None |
- +-----------------------+--------------------------------------+
-
-Controller-1 will reboot in order to apply configuration changes and
-come into service. This can take 5-10 minutes, depending on the
-performance of the host machine.
-
-::
-
- [root@controller-0 hieradata(keystone_admin)]$ system host-list
- +----+--------------+-------------+----------------+-------------+--------------+
- | id | hostname | personality | administrative | operational | availability |
- +----+--------------+-------------+----------------+-------------+--------------+
- | 1 | controller-0 | controller | unlocked | enabled | available |
- | 2 | controller-1 | controller | unlocked | enabled | available |
- +----+--------------+-------------+----------------+-------------+--------------+
-
- [sysadmin@controller-0 ~(keystone_admin)]$ system host-show controller-1
- +-----------------------+-----------------------------------------------------------------------+
- | Property | Value |
- +-----------------------+-----------------------------------------------------------------------+
- | action | none |
- | administrative | unlocked |
- | availability | available |
- | bm_ip | None |
- | bm_type | None |
- | bm_username | None |
- | boot_device | /dev/sda |
- | capabilities | {u'stor_function': u'monitor', u'Personality': u'Controller-Standby'} |
- | clock_synchronization | ntp |
- | config_applied | 9747e0ce-2319-409d-b75c-2475bc5065ac |
- | config_status | None |
- | config_target | 9747e0ce-2319-409d-b75c-2475bc5065ac |
- | console | ttyS0,115200 |
- | created_at | 2021-11-22T12:58:11.630526+00:00 |
- | hostname | controller-1 |
- | id | 2 |
- | install_output | text |
- | install_state | None |
- | install_state_info | None |
- | inv_state | inventoried |
- | invprovision | provisioned |
- | location | {} |
- | mgmt_ip | 192.168.18.4 |
- | mgmt_mac | 24:6e:96:5d:38:ee |
- | operational | enabled |
- | personality | controller |
- | reserved | False |
- | rootfs_device | /dev/sda |
- | serialid | None |
- | software_load | 21.05 |
- | subfunction_avail | available |
- | subfunction_oper | enabled |
- | subfunctions | controller,worker,lowlatency |
- | task | |
- | tboot | false |
- | ttys_dcd | None |
- | updated_at | 2021-11-22T23:59:07.787759+00:00 |
- | uptime | 31008 |
- | uuid | 63c930c7-2195-4d5a-870c-be610fd6b4fc |
- | vim_progress_status | services-enabled |
- +-----------------------+-----------------------------------------------------------------------+
-
-
-4. Simple use case for sriov
-----------------------------
-
-4.1 After controller-0 is rebooted and up running, download the DPDK
-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-::
-
- [sysadmin@controller-0 ~(keystone_admin)]$ cd /opt
- [sysadmin@controller-0 opt(keystone_admin)]$ sudo wget https://fast.dpdk.org/rel/dpdk-17.11.10.tar.xz
- Password:
- --2021-06-04 02:35:30-- https://fast.dpdk.org/rel/dpdk-17.11.10.tar.xz
- Resolving fast.dpdk.org... 151.101.2.49, 151.101.66.49, 151.101.130.49, ...
- Connecting to fast.dpdk.org|151.101.2.49|:443... connected.
-
- HTTP request sent, awaiting response... 200 OK
- Length: 10251680 (9.8M) [application/octet-stream]
- Saving to: ‘dpdk-17.11.10.tar.xz’
-
- dpdk-17.11.10.tar.xz 100%
- [========================================================================================>] 9.78M
- 1.48MB/s in 6.8s
-
- 2021-06-04 02:35:40 (1.43 MB/s) - ‘dpdk-17.11.10.tar.xz’ saved [10251680/10251680]
-
- sudo tar xvf dpdk-17.11.10.tar.xz
-
- sudo ln -s dpdk-stable-17.11.10 dpdk-stable
-
-4.2 Prepare the yaml file for the network assignment container
-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-The following the exmaple of the yaml file:
-
-::
-
- [sysadmin@controller-0 sriov(keystone_admin)]$ cat <<EOF > netdef-data-dpdk.yaml
- > apiVersion: "k8s.cni.cncf.io/v1"
- > kind: NetworkAttachmentDefinition
- > metadata:
- > name: sriov-data-dpdk-0
- > annotations:
- > k8s.v1.cni.cncf.io/resourceName: intel.com/pci_sriov_net_physnet0
- > spec:
- > config: '{
- > "type": "sriov",
- > "name": "sriov-data-dpdk-0"
- > }'
- >
- > ---
- > apiVersion: "k8s.cni.cncf.io/v1"
- > kind: NetworkAttachmentDefinition
- > metadata:
- > name: sriov-data-dpdk-1
- > annotations:
- > k8s.v1.cni.cncf.io/resourceName: intel.com/pci_sriov_net_physnet1
- > spec:
- > config: '{
- > "type": "sriov",
- > "name": "sriov-data-dpdk-1"
- > }'
- > EOF
-
-4.3 Run the network assignent container for the 2 VFs
-+++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-::
-
- [sysadmin@controller-0 sriov(keystone_admin)]$ kubectl create -f netdef-data-dpdk.yaml
- networkattachmentdefinition.k8s.cni.cncf.io/sriov-data-dpdk-0 created
- networkattachmentdefinition.k8s.cni.cncf.io/sriov-data-dpdk-1 created
-
-4.4 Prepare the VF container yaml file
-++++++++++++++++++++++++++++++++++++++
-
-::
-
- [sysadmin@controller-0 sriov(keystone_admin)]$ cat <<EOF > pod-with-dpdk-vfs-0.yaml
- > apiVersion: v1
- > kind: Pod
- metadata:
- > metadata:
- > name: pod-with-dpdk-vfs-0
- > annotations:
- > k8s.v1.cni.cncf.io/networks: '[
- > { "name": "sriov-data-dpdk-0" },
- { "name": "sriov-data-dpdk-1" }
- > { "name": "sriov-data-dpdk-1" }
- > ]'
- > spec:
- > restartPolicy: Never
- > containers:
- > - name: pod-with-dpdk-vfs-0
- > image: wrsnfv/ubuntu-dpdk-build:v0.3
- > env:
- > - name: RTE_SDK
- > value: "/usr/src/dpdk"
- > command:
- > - sleep
- > - infinity
- > stdin: true
- > tty: true
- > securityContext:
- > privileged: true
- > capabilities:
- > add:
- > - ALL
- > resources:
- > requests:
- > cpu: 4
- > memory: 4Gi
- > intel.com/pci_sriov_net_physnet0: '1'
- > intel.com/pci_sriov_net_physnet1: '1'
- > limits:
- > cpu: 4
- > hugepages-1Gi: 2Gi
- > memory: 4Gi
- > intel.com/pci_sriov_net_physnet0: '1'
- > intel.com/pci_sriov_net_physnet1: '1'
- > volumeMounts:
- > - mountPath: /mnt/huge-1048576kB
- > name: hugepage
- > - name: dpdk-volume
- > mountPath: /usr/src/dpdk
- > - name: lib-volume
- > mountPath: /lib/modules
- > - name: src-volume
- > mountPath: /usr/src/
- > volumes:
- > - name: hugepage
- > emptyDir:
- > medium: HugePages
- > - name: dpdk-volume
- > hostPath:
- > path: /opt/dpdk-stable/
- > - name: lib-volume
- > hostPath:
- > path: /lib/modules
- > - name: src-volume
- > hostPath:
- > path: /usr/src/
- > EOF
-
-4.5 Run the VF container
-++++++++++++++++++++++++
-
-Start the VF container.
-
-::
-
- [sysadmin@controller-0 sriov(keystone_admin)]$ kubectl create -f pod-with-dpdk-vfs-0.yaml
- pod/pod-with-dpdk-vfs-0 created
-
- [sysadmin@controller-0 sriov(keystone_admin)]$ kubectl get pod
- NAME READY STATUS RESTARTS AGE
- pod-with-dpdk-vfs-0 1/1 Running 0 6m40s
-
-Login the VF container
-
-::
-
- kubectl exec -it pod-with-dpdk-vfs-0 -- bash
-
-Build the DPDK
-
-::
-
- cd /lib/modules/5.0.19-rt11-yocto-preempt-rt/build
-
- root@pod-with-dpdk-vfs-0:/lib/modules/5.0.19-rt11-yocto-preempt-rt/build# make prepare
- HOSTCC scripts/basic/fixdep
- HOSTCC scripts/kconfig/conf.o
- HOSTCC scripts/kconfig/confdata.o
- HOSTCC scripts/kconfig/expr.o
- HOSTCC scripts/kconfig/symbol.o
- HOSTCC scripts/kconfig/preprocess.o
- HOSTCC scripts/kconfig/zconf.lex.o
- HOSTCC scripts/kconfig/zconf.tab.o
- HOSTLD scripts/kconfig/conf
- scripts/kconfig/conf --syncconfig Kconfig
- HOSTCC arch/x86/tools/relocs_32.o
- HOSTCC arch/x86/tools/relocs_64.o
- HOSTCC arch/x86/tools/relocs_common.o
- HOSTLD arch/x86/tools/relocs
- HOSTCC scripts/genksyms/genksyms.o
- YACC scripts/genksyms/parse.tab.c
- HOSTCC scripts/genksyms/parse.tab.o
- LEX scripts/genksyms/lex.lex.c
- YACC scripts/genksyms/parse.tab.h
- HOSTCC scripts/genksyms/lex.lex.o
- HOSTLD scripts/genksyms/genksyms
- HOSTCC scripts/bin2c
- HOSTCC scripts/kallsyms
- HOSTCC scripts/conmakehash
- HOSTCC scripts/recordmcount
- HOSTCC scripts/sortextable
- HOSTCC scripts/asn1_compiler
- HOSTCC scripts/sign-file
- HOSTCC scripts/extract-cert
- CC scripts/mod/empty.o
- HOSTCC scripts/mod/mk_elfconfig
- MKELF scripts/mod/elfconfig.h
- HOSTCC scripts/mod/modpost.o
- CC scripts/mod/devicetable-offsets.s
- UPD scripts/mod/devicetable-offsets.h
- HOSTCC scripts/mod/file2alias.o
- HOSTCC scripts/mod/sumversion.o
- HOSTLD scripts/mod/modpost
- CC kernel/bounds.s
- CC arch/x86/kernel/asm-offsets.s
- CALL scripts/checksyscalls.sh
-
-Build the test_pmd application
-
-::
-
- cd $RTE_SDK
- ./usertools/dpdk-setup.sh
- Option: 14
- CC config.o
- CC iofwd.o
- CC macfwd.o
- CC macswap.o
- CC flowgen.o
- CC rxonly.o
- CC txonly.o
- CC csumonly.o
- CC icmpecho.o
- CC tm.o
- LD testpmd
- INSTALL-APP testpmd
- INSTALL-MAP testpmd.map
- == Build app/proc_info
- CC main.o
- LD dpdk-procinfo
- INSTALL-APP dpdk-procinfo
- INSTALL-MAP dpdk-procinfo.map
- == Build app/pdump
- CC main.o
- LD dpdk-pdump
- INSTALL-APP dpdk-pdump
- INSTALL-MAP dpdk-pdump.map
- == Build app/test-crypto-perf
- CC main.o
- CC cperf_ops.o
- CC cperf_options_parsing.o
- CC cperf_test_vectors.o
- CC cperf_test_throughput.o
- CC cperf_test_latency.o
- CC cperf_test_pmd_cyclecount.o
- CC cperf_test_verify.o
- CC cperf_test_vector_parsing.o
- CC cperf_test_common.o
- LD dpdk-test-crypto-perf
- INSTALL-APP dpdk-test-crypto-perf
- INSTALL-MAP dpdk-test-crypto-perf.map
- == Build app/test-eventdev
- CC evt_main.o
- CC evt_options.o
- CC evt_test.o
- CC parser.o
- CC test_order_common.o
- CC test_order_queue.o
- CC test_order_atq.o
- CC test_perf_common.o
- CC test_perf_queue.o
- CC test_perf_atq.o
- LD dpdk-test-eventdev
- INSTALL-APP dpdk-test-eventdev
- INSTALL-MAP dpdk-test-eventdev.map
- Build complete [x86_64-native-linuxapp-gcc]
- Installation cannot run with T defined and DESTDIR undefined
- ------------------------------------------------------------------------------
- RTE_TARGET exported as x86_64-native-linuxapp-gcc
- ------------------------------------------------------------------------------
-
- Press enter to continue ...
-
-Check the VF PCI information:
-
-::
-
- root@pod-with-dpdk-vfs-0:/usr/src/dpdk# printenv | grep PCIDEVICE_INTEL_COM
- PCIDEVICE_INTEL_COM_PCI_SRIOV_NET_PHYSNET1=0000:05:11.1
- PCIDEVICE_INTEL_COM_PCI_SRIOV_NET_PHYSNET0=0000:05:11.0
-
-Exit from pod back to host to find which VFs are assigned to this pod by check the pci address:
-
-::
-
- [root@controller-0 sysadmin(keystone_admin)]# ls -l /sys/class/net/ens2f0/device/virtfn*
- lrwxrwxrwx 1 root root 0 Jun 4 02:12 /sys/class/net/ens2f0/device/virtfn0 -> ../0000:05:10.0
- lrwxrwxrwx 1 root root 0 Jun 4 02:12 /sys/class/net/ens2f0/device/virtfn1 -> ../0000:05:10.2
- lrwxrwxrwx 1 root root 0 Jun 4 02:12 /sys/class/net/ens2f0/device/virtfn2 -> ../0000:05:10.4
- lrwxrwxrwx 1 root root 0 Jun 4 02:12 /sys/class/net/ens2f0/device/virtfn3 -> ../0000:05:10.6
- lrwxrwxrwx 1 root root 0 Jun 4 02:12 /sys/class/net/ens2f0/device/virtfn4 -> ../0000:05:11.0
- lrwxrwxrwx 1 root root 0 Jun 4 02:12 /sys/class/net/ens2f0/device/virtfn5 -> ../0000:05:11.2
-
- [root@controller-0 sysadmin(keystone_admin)]# ls -l /sys/class/net/ens2f1/device/virtfn*
- lrwxrwxrwx 1 root root 0 Jun 4 02:12 /sys/class/net/ens2f1/device/virtfn0 -> ../0000:05:10.1
- lrwxrwxrwx 1 root root 0 Jun 4 02:12 /sys/class/net/ens2f1/device/virtfn1 -> ../0000:05:10.3
- lrwxrwxrwx 1 root root 0 Jun 4 02:12 /sys/class/net/ens2f1/device/virtfn2 -> ../0000:05:10.5
- lrwxrwxrwx 1 root root 0 Jun 4 02:12 /sys/class/net/ens2f1/device/virtfn3 -> ../0000:05:10.7
- lrwxrwxrwx 1 root root 0 Jun 4 02:12 /sys/class/net/ens2f1/device/virtfn4 -> ../0000:05:11.1
- lrwxrwxrwx 1 root root 0 Jun 4 02:12 /sys/class/net/ens2f1/device/virtfn5 -> ../0000:05:11.3
-
- [root@controller-0 sysadmin(keystone_admin)]# sudo ip link set ens2f0 vf 4 mac 9e:fd:e6:dd:c1:01
- [root@controller-0 sysadmin(keystone_admin)]# sudo ip link set ens2f1 vf 4 mac 9e:fd:e6:dd:c1:02
-
-
-Get back to pod and run the test_pmd
-
-::
-
- cd $RTE_SDK/x86_64-native-linuxapp-gcc/app/
-
- taskset -p --cpu-list 1
- pid 1's current affinity list: 2,3,18,19