-
Notifications
You must be signed in to change notification settings - Fork 553
Add DSCP resolution from TC in packet trim #2155
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
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.
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.
Or is it possible that different-colors are mapped to different DSCP values ? Is this a valid configuration ?
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>
|
@bandaru-viswanath could you pls approve the SAI PR, we could merge it. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Please add description for this change |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@kcudnik Please approve the PR and we could merge. |
It can be beneficial to support multiple DSCP values for trimmed packets sent out via different ports. For example, trimmed packets sent to hosts will get DSCP 5 whereas trimmed packets sent to uplink/spine will have DSCP 7. It is to allow to the destination NIC to know where congestion happened - on downlinks to servers or in the fabric. Such information can be used for a better decision making on how to react to the state of network.