Skip to content

Commit

Permalink
fix: Enable networkInterfaceMultiqueue only if sockets > 1
Browse files Browse the repository at this point in the history
Enable networkInterfaceMultiqueue only if the amount of sockets is
greater than one, since networkInterfaceMultiqueue requires at least two
sockets.

Signed-off-by: Felix Matouschek <[email protected]>
  • Loading branch information
0xFelix authored and kubevirt-bot committed Jun 20, 2024
1 parent 439a454 commit 3f64e24
Show file tree
Hide file tree
Showing 16 changed files with 26 additions and 6 deletions.
2 changes: 2 additions & 0 deletions templates/centos-stream8.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ objects:
guest: {{ item.memsize }}
devices:
rng: {}
{% if item.cpus > 1 %}
networkInterfaceMultiqueue: true
{% endif %}
{% if item.tablet %}
inputs:
- type: tablet
Expand Down
2 changes: 2 additions & 0 deletions templates/centos-stream9.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ objects:
guest: {{ item.memsize }}
devices:
rng: {}
{% if item.cpus > 1 %}
networkInterfaceMultiqueue: true
{% endif %}
{% if item.tablet %}
inputs:
- type: tablet
Expand Down
2 changes: 2 additions & 0 deletions templates/centos6.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ objects:
memory:
guest: {{ item.memsize }}
devices:
{% if item.cpus > 1 %}
networkInterfaceMultiqueue: true
{% endif %}
useVirtioTransitional: true
rng: {}
{% if item.tablet %}
Expand Down
2 changes: 2 additions & 0 deletions templates/centos7.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ objects:
guest: {{ item.memsize }}
devices:
rng: {}
{% if item.cpus > 1 %}
networkInterfaceMultiqueue: true
{% endif %}
{% if item.tablet %}
inputs:
- type: tablet
Expand Down
2 changes: 2 additions & 0 deletions templates/fedora.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ objects:
guest: {{ item.memsize }}
devices:
rng: {}
{% if item.cpus > 1 %}
networkInterfaceMultiqueue: true
{% endif %}
{% if item.tablet %}
inputs:
- type: tablet
Expand Down
2 changes: 2 additions & 0 deletions templates/opensuse.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ objects:
guest: {{ item.memsize }}
devices:
rng: {}
{% if item.cpus > 1 %}
networkInterfaceMultiqueue: true
{% endif %}
{% if item.tablet %}
inputs:
- type: tablet
Expand Down
2 changes: 2 additions & 0 deletions templates/rhel7.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ objects:
guest: {{ item.memsize }}
devices:
rng: {}
{% if item.cpus > 1 %}
networkInterfaceMultiqueue: true
{% endif %}
{% if item.tablet %}
inputs:
- type: tablet
Expand Down
2 changes: 2 additions & 0 deletions templates/rhel8.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ objects:
guest: {{ item.memsize }}
devices:
rng: {}
{% if item.cpus > 1 %}
networkInterfaceMultiqueue: true
{% endif %}
{% if item.tablet %}
inputs:
- type: tablet
Expand Down
2 changes: 2 additions & 0 deletions templates/rhel9.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ objects:
guest: {{ item.memsize }}
devices:
rng: {}
{% if item.cpus > 1 %}
networkInterfaceMultiqueue: true
{% endif %}
{% if item.tablet %}
inputs:
- type: tablet
Expand Down
2 changes: 2 additions & 0 deletions templates/ubuntu.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ objects:
guest: {{ item.memsize }}
devices:
rng: {}
{% if item.cpus > 1 %}
networkInterfaceMultiqueue: true
{% endif %}
{% if item.tablet %}
inputs:
- type: tablet
Expand Down
2 changes: 1 addition & 1 deletion templates/windows10.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ objects:
efi:
secureBoot: true
devices:
{% if item.multiqueue %}
{% if item.multiqueue and item.cpus > 1 %}
networkInterfaceMultiqueue: True
{% endif %}
disks:
Expand Down
2 changes: 1 addition & 1 deletion templates/windows11.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ objects:
efi:
secureBoot: true
devices:
{% if item.multiqueue %}
{% if item.multiqueue and item.cpus > 1 %}
networkInterfaceMultiqueue: True
{% endif %}
disks:
Expand Down
2 changes: 1 addition & 1 deletion templates/windows2k12.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ objects:
efi:
secureBoot: true
devices:
{% if item.multiqueue %}
{% if item.multiqueue and item.cpus > 1 %}
networkInterfaceMultiqueue: True
{% endif %}
disks:
Expand Down
2 changes: 1 addition & 1 deletion templates/windows2k16.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ objects:
efi:
secureBoot: true
devices:
{% if item.multiqueue %}
{% if item.multiqueue and item.cpus > 1 %}
networkInterfaceMultiqueue: True
{% endif %}
disks:
Expand Down
2 changes: 1 addition & 1 deletion templates/windows2k19.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ objects:
efi:
secureBoot: true
devices:
{% if item.multiqueue %}
{% if item.multiqueue and item.cpus > 1 %}
networkInterfaceMultiqueue: True
{% endif %}
disks:
Expand Down
2 changes: 1 addition & 1 deletion templates/windows2k22.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ objects:
efi:
secureBoot: true
devices:
{% if item.multiqueue %}
{% if item.multiqueue and item.cpus > 1 %}
networkInterfaceMultiqueue: True
{% endif %}
disks:
Expand Down

0 comments on commit 3f64e24

Please sign in to comment.