-
Notifications
You must be signed in to change notification settings - Fork 506
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
base: master
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
please provide meaningful description to PR |
* @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 |
There was a problem hiding this comment.
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,
There was a problem hiding this comment.
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.
d94f37a
to
5123b4e
Compare
inc/saiswitch.h
Outdated
SAI_SWITCH_ATTR_PACKET_TRIM_TC_VALUE, | ||
|
||
/** | ||
* @brief Queue mapping mode for a trimmed packet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: DSCP mapping mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed.
eb30c0b
to
a956e66
Compare
Signed-off-by: Marian Pritsak <marianp@mellanox.com>
No description provided.