Skip to content

Conversation

@benyamin-codez
Copy link
Contributor

Refactors VirtIoFindAdapter() to:

  1. Enable Registry lookup for max_segments in value "MaxPhysicalSegments"
  2. Refactor existing options into proposed vioscsi scaffold
  3. Calc sectors from geometry and segments from sectors
  4. Choose from among best candidates and check within limits
  5. Enforce legacy StorPort NOPB off-by-one behaviour and provide explanation
  6. Improves relevant instrumentation

Note: This commit enables the use of max_segments greater than
info.seg_max (max = 254) up to MAX_PHYS_SEGMENTS (presently 512).
This commit also fixes a NOPB off-by-one regression.

@benyamin-codez
Copy link
Contributor Author

Waiting on PR #1297 to merge before rebasing and review.

@benyamin-codez benyamin-codez changed the title [CI-NO-BUILD] [viostor] Programatically determine max_segments [CI-NO-BUILD] [viostor] Programmatically determine max_segments Feb 24, 2025
Refactors VirtIoFindAdapter() to:

1. Enable Registry lookup for max_segments in value "MaxPhysicalSegments"
2. Refactor existing options into proposed vioscsi scaffold
3. Calc sectors from geometry and segments from sectors
4. Choose from among best candidates and check within limits
5. Enforce legacy StorPort NOPB off-by-one behaviour and provide explanation
6. Improves relevant instrumentation

Note: This commit enables the use of max_segments greater than
      info.seg_max (max = 254) up to MAX_PHYS_SEGMENTS (presently 512).
      This commit also fixes a NOPB off-by-one regression.

Signed-off-by: benyamin-codez <[email protected]>
@YanVugenfirer
Copy link
Collaborator

[Jenkins CI]: Can one of the admins verify this patch?

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