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

Query: Shared threshold mode for the buffer profile #1919

Open
JaiOCP opened this issue Nov 2, 2023 · 5 comments
Open

Query: Shared threshold mode for the buffer profile #1919

JaiOCP opened this issue Nov 2, 2023 · 5 comments

Comments

@JaiOCP
Copy link
Contributor

JaiOCP commented Nov 2, 2023

SAI_BUFFER_PROFILE_ATTR_THRESHOLD_MODE is mandatory and will always override SAI_BUFFER_POOL_ATTR_THRESHOLD_MODE.

What is the need of SAI_BUFFER_POOL_ATTR_THRESHOLD_MODE?

/**
 * @brief Shared threshold mode for the buffer profile
 *
 * If set, this overrides #SAI_BUFFER_POOL_ATTR_THRESHOLD_MODE.
 *
 * @type sai_buffer_profile_threshold_mode_t
 * @flags MANDATORY_ON_CREATE | CREATE_ONLY
 */
SAI_BUFFER_PROFILE_ATTR_THRESHOLD_MODE,
@kcudnik
Copy link
Collaborator

kcudnik commented Nov 2, 2023

Probably this is a mistake in comment

@JaiOCP
Copy link
Contributor Author

JaiOCP commented Nov 2, 2023 via email

@AshokDaparthi
Copy link
Contributor

As i remember initial proposal SAI_BUFFER_PROFILE_ATTR_THRESHOLD_MODE is optional. if profile is not created without this, it should inherit from pool. if this is mandatory now, then there is no need of SAI_BUFFER_POOL_ATTR_THRESHOLD_MODE.

@JaiOCP
Copy link
Contributor Author

JaiOCP commented Nov 6, 2023 via email

@kcudnik
Copy link
Collaborator

kcudnik commented Nov 7, 2023

Please bring that topic on Thursday sai meeting + @rlhui and we discuss whether mark this as deprecated

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

No branches or pull requests

3 participants