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

[racl] Add generic RACL testplan #26326

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

Conversation

Razer6
Copy link
Member

@Razer6 Razer6 commented Feb 17, 2025

To be implement generically and being added to all IPs that support RACL.

Signed-off-by: Robert Schilling <[email protected]>
@Razer6 Razer6 requested a review from a team as a code owner February 17, 2025 11:34
@Razer6 Razer6 requested review from marnovandermaas, rswarbrick, andreaskurth, alees24 and martin-velay and removed request for a team February 17, 2025 11:34
Copy link
Contributor

@martin-velay martin-velay left a comment

Choose a reason for hiding this comment

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

I have left some comments, nothing really important but still need to be taken into account.
Thanks

{
name: racl_rw
desc: '''
Precondiiton:
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: typo

desc: '''
Precondiiton:
- Randomize the number of RACL policies and randomize its default policy values.
- Randomoize the policy selection vector of the CSRs.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: "randomize" typo

- error_log_o.racl_role = <role that caused the error>
- error_log_o.ctn_uid = <ctn uid that caused the error>

Verify that a write did not show any effect.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd say (if that's what you meant):
"Verify that a write has no effect."

- error_log_o.ctn_uid = <ctn uid that caused the error>

Verify that a write did not show any effect.
Verify a read returns all 1
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure I understand what you mean here. Can you elaborate a bit the description?
Nit: and missing "." ponctuation

- Loop through each CSR and perform a read and write request of using a
random RACL role and random CTN UID value.
If the request is allowed:
* No TL-UL error is expected
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason for this "*"?

If the request is allowed:
* No TL-UL error is expected
else if the request is denied
Verify the error log matches:
Copy link
Contributor

Choose a reason for hiding this comment

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

If I understand well, if the request is allowed there are 4 main points:

- Verify the error log matches:
- Verify that a write did not show any effect.
- Verify a read returns all 1
- If ErrorRsp = 1:

If yes, can you remove the line jump line 26, and add dashes before to make it more obvious that it's a list of 4 things.

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