diff options
author | Juraj Linkeš <juraj.linkes@pantheon.tech> | 2021-08-26 10:43:45 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2021-12-21 11:38:24 +0000 |
commit | b94c2873efb1126cc103c65ee3ec2ebff8bc7528 (patch) | |
tree | bd35cb58d1360991784f0abcd302dd9523a90942 | |
parent | a6b172070ba75f75db14508623c1dbacd5fc1414 (diff) |
ansible: match vpp device config to perf config
We're not using unsafe noiommu on perf testbeds and we should mirror
that config in vpp device.
As a side note, on arm vpp device, enabling unsafe noiommu leads to
corrupted packets, so it must be disabled at least on arm vpp device.
Also update arm vpp device kernel parameters to match perf testbeds.
Change-Id: Id3d3e8fcf71583cc04887b4180cd20561856d902
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
3 files changed, 2 insertions, 11 deletions
diff --git a/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.70.yaml b/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.70.yaml index 5c65ef0a20..cb82c28608 100644 --- a/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.70.yaml +++ b/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.70.yaml @@ -7,7 +7,7 @@ vfs_data_file: "csit-initialize-vfs-tx2.sh" grub: hugepagesz: "2M" hugepages: 32768 - iommu: "on" + iommu.passthrough: "1" cpu_microarchitecture: "thunderx2" # User management. diff --git a/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.71.yaml b/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.71.yaml index 9ac021170b..35b647785b 100644 --- a/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.71.yaml +++ b/fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.71.yaml @@ -7,7 +7,7 @@ vfs_data_file: "csit-initialize-vfs-tx2.sh" grub: hugepagesz: "2M" hugepages: 32768 - iommu: "on" + iommu.passthrough: "1" cpu_microarchitecture: "thunderx2" # User management. diff --git a/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml b/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml index 0114b05a40..280b8bf550 100644 --- a/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml +++ b/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml @@ -129,12 +129,3 @@ - "Update GRUB" tags: - set-grub - -- name: Configure unsafe noiommu - lineinfile: - path: "/etc/modprobe.d/vfio-noiommu.conf" - state: "present" - line: "options vfio enable_unsafe_noiommu_mode=1" - create: "yes" - tags: - - configure-unsafe-noiommu |