Skip to content

Set max queue count for IDPF devices; remove broken virtio logic#158

Open
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_901390740
Open

Set max queue count for IDPF devices; remove broken virtio logic#158
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_901390740

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service bot commented Apr 17, 2026

Set max queue count for IDPF devices; remove broken virtio logic

This removes the logic which claimed to enable multiqueue for virtio-net
devices, which was bugged and would never actually do anything. The
following expressions effectively mean the code was a no-op:

if [[ -n "${num_max_channels}" || "${num_max_channels}" -eq "1" ]]; then
  do_nothing
...
if is_decimal_int "$num_max_channels"; then
  do_nothing
...

The intended logic hasn't been necessary since
this commit
(2016), which has the same effect of what this script was trying to
do.

For IDPF: It is possible for GCE's control plane to return more queues
than than Linux will
use by default.

@google-oss-prow
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: copybara-service[bot]

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@copybara-service copybara-service bot force-pushed the test_901390740 branch 2 times, most recently from c24d9d7 to c1199ec Compare April 17, 2026 20:25
@copybara-service copybara-service bot changed the title Set max queue count for IDPF devices Set max queue count for IDPF devices; remove broken virtio logic Apr 17, 2026
This removes the logic which claimed to enable multiqueue for virtio-net
devices, which was bugged and would never actually do anything. The
following expressions effectively mean the code was a no-op:

```sh
if [[ -n "${num_max_channels}" || "${num_max_channels}" -eq "1" ]]; then
  do_nothing
...
if is_decimal_int "$num_max_channels"; then
  do_nothing
...
```

The intended logic hasn't been necessary since
[this commit](https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4490001029012539937ff02778fe6180613fa949)
(2016), which has the same effect of what this script was *trying* to
do.

For IDPF: It is possible for GCE's control plane to return more queues
than than Linux will
[use by default](https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/net/core/dev.c?h=v6.12.81#n3173).

PiperOrigin-RevId: 901390740
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant