From 48349d8e802e8e76ba6607464a4da17b737a2f72 Mon Sep 17 00:00:00 2001 From: Leonardo Milleri Date: Thu, 13 Jul 2023 18:08:50 +0200 Subject: [PATCH] vdpa multiqueue enabled Max number of queues is set to 32 by default. This setting should help with the performance of NVIDIA network cards. Signed-off-by: Leonardo Milleri --- .../files/switchdev-configuration-after-nm.sh.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindata/manifests/switchdev-config/files/switchdev-configuration-after-nm.sh.yaml b/bindata/manifests/switchdev-config/files/switchdev-configuration-after-nm.sh.yaml index 03de029800..49975dec42 100644 --- a/bindata/manifests/switchdev-config/files/switchdev-configuration-after-nm.sh.yaml +++ b/bindata/manifests/switchdev-config/files/switchdev-configuration-after-nm.sh.yaml @@ -58,8 +58,8 @@ contents: do extract_min_max_ids vdpaType=$(jq -c '.vdpaType' -r <<< $group) - if [ $vfid -le $maxId ] && [ $vfid -ge $minId ] && [ $vdpaType == "virtio" ]; then - vdpa_cmd="vdpa dev add name vdpa:"${VfPciAddr}" mgmtdev pci/"${VfPciAddr} + if [ $vfid -le $maxId ] && [ $vfid -ge $minId ] && [ $vdpaType != "" ]; then + vdpa_cmd="vdpa dev add name vdpa:"${VfPciAddr}" mgmtdev pci/"${VfPciAddr}" max_vqp 32" eval $vdpa_cmd fi done