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

Rename ENI attribute PPS to BW to reflect the actual BW limitation in bytes #526

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

marian-pritsak
Copy link
Collaborator

No description provided.

@r12f
Copy link
Collaborator

r12f commented Feb 26, 2024

heads to up @prsunny @theasianpianist , this will cause one of the existing SAI attribute being changed. but it should be aligned with our current HLD.

@@ -36,7 +36,7 @@ enum bit<16> dash_tunnel_dscp_mode_t {

struct eni_data_t {
bit<32> cps;
bit<32> pps;
bit<32> bw;
Copy link
Collaborator

Choose a reason for hiding this comment

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

although bw is the one we use in the HLD, I wonder if we like to get the unit clear, such as bw_in_kbps.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@r12f good idea. At least PPS is unambiguous. The item name should include the units to make it clear.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All BW throughout SAI is in Mb/s

Copy link
Collaborator

@mgheorghe mgheorghe Jun 14, 2024

Choose a reason for hiding this comment

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

why not keep it bw and bw can accept values like 978, 1K, 1M, 15G, 2T, (if we don't want to type too many zeroes) and the last char if letter detonates the unit this way we don't end up with 20 api names, like bw_in_3_and_a_half_bytes_increments (exaggeration to make the point),

take it further and in the value you can add last 2 letters as 1000Kb or 1000KB, or have convention that uppercase means bytes lowercase bits so we need only 1 letter( if K is bytes if k is in bits ... seen this way of handling it in many apps)

Signed-off-by: Marian Pritsak <[email protected]>
@KrisNey-MSFT
Copy link
Collaborator

Same SAI Challenger issues

@KrisNey-MSFT
Copy link
Collaborator

@mgheorghe or @chrispsommers - would you be able to help with this one (test failing)? If N, no worries.

@KrisNey-MSFT
Copy link
Collaborator

Lower priority possibly as attribute is not used yet. BUT, it could likely be merged after fixes, @marian-pritsak thinks it can be done now. Update SAI headers, need to keep a stable version of SAI headers. Keep pending for now.

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.

5 participants