Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI-NO-BUILD] [viostor] Programmatically determine max_segments #1298

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

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]>
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.

1 participant