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

Add DSCP resolution from TC in packet trim #2155

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

Conversation

marian-pritsak
Copy link
Contributor

No description provided.

@tjchadaga
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kcudnik
Copy link
Collaborator

kcudnik commented Mar 18, 2025

please provide meaningful description to PR

@tjchadaga tjchadaga added the reviewed PR is discussed in SAI Meeting label Mar 20, 2025
* @brief Dynamic DSCP resolution.
*
* In this mode, a new DSCP for the trimmed packet is resolved from the new TRIM_TC
* set by the application using per-port TC_TO_DSCP mapping
Copy link
Contributor

@bandaru-viswanath bandaru-viswanath Mar 24, 2025

Choose a reason for hiding this comment

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

The saiqosmap.h defines only TC_AND_COLOR_TO_DSCP map, but no TC_TO_DSCP map, as part of the set of valid qos maps. In this case, a color value also need to be supplied if this mechanism is desired. Could you please clarify ?

SAI_QOS_MAP_TYPE_TC_AND_COLOR_TO_DSCP = 0x00000005,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Color does not need to be supplied. The user can just map all the colors to same DSCP, since the TC is used for trimming.

@marian-pritsak marian-pritsak force-pushed the trim-tc branch 2 times, most recently from d94f37a to 5123b4e Compare March 24, 2025 22:32
inc/saiswitch.h Outdated
SAI_SWITCH_ATTR_PACKET_TRIM_TC_VALUE,

/**
* @brief Queue mapping mode for a trimmed packet
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: DSCP mapping mode

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed.

@marian-pritsak marian-pritsak force-pushed the trim-tc branch 3 times, most recently from eb30c0b to a956e66 Compare March 25, 2025 21:22
Signed-off-by: Marian Pritsak <marianp@mellanox.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reviewed PR is discussed in SAI Meeting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants