Skip to content

Conversation

@benhillis
Copy link
Member

The rss_max_indirection_table_length field was shifted left by 24 instead of 16, causing its upper bits to be truncated. This field occupies bits [23:16] of the register at offset 16, not bits [31:24].

@benhillis benhillis requested a review from a team as a code owner February 10, 2026 16:19
Copilot AI review requested due to automatic review settings February 10, 2026 16:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an incorrect bit shift when composing the virtio-net config register value returned at offset 16, ensuring rss_max_indirection_table_length is placed in the correct bit range and not truncated.

Changes:

  • Shift rss_max_indirection_table_length by 16 (bits [31:16]) instead of 24 during read_registers_u32(16) composition.

The rss_max_indirection_table_length field was shifted left by 24 instead
of 16, causing its upper bits to be truncated. This field occupies bits
[23:16] of the register at offset 16, not bits [31:24].
@benhillis benhillis force-pushed the fix/virtio_net-register-shift branch from 9fe46d9 to a09aba7 Compare February 10, 2026 19:45
@benhillis benhillis merged commit 525b8ce into microsoft:main Feb 11, 2026
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants