Conversation
Signed-off-by: JaiOCP <jai.kumar@broadcom.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
@JaiOCP - please put the explanation from this PR into https://github.com/JaiOCP/SAI/blob/master/doc/SAI-Proposal-Packet-Trimming.md document |
|
@JaiOCP |
Updated the spec |
I went over the details of this stats again and here is my interpretation. SAI_PORT_STAT_DROPPED_TRIM_PACKETS: The are dropped TRIM packets because the queue on which they were supposed to go out got congested. Again I would say that there is nothing specific about direction here. SAI_PORT_STAT_TX_TRIM_PACKETS: This one the TRIM packets that were forwarded on the port and is an important metrics to know how of a port bandwidth is consumed by this traffic. If we look carefully if a TRIM is sent to receiver or sender we want to know the BW consumed on the port. I would suggest that these stats are also inclusive of TRIM in both the directions. Let me know what you and others think about it. |
Signed-off-by: JaiOCP <jai.kumar@broadcom.com>
|
@rbudhia-upscaleai @rck-innovium Please take a look. Review comments are addressed |
|
|
||
| If only SAI_PORT_ATTR_QOS_TC_AND_COLOR_TO_DSCP_MAP is confiured then NOS can configure both data packet TC and TRIM TC as long as the desired behavior of DSCP value of data packets is maintained. | ||
|
|
||
| If only SAI_PORT_ATTR_QOS_TRIM_TC_AND_COLOR_TO_DSCP_MAP is configured then data packets do not undergo any DSCP remarking and only TRIM packets will use the configured map for DSCP marking. |
There was a problem hiding this comment.
@JaiOCP If map attached to port doesn't have any mapping for non-trim TCs, then DSCP remarking for regular packets is bypassed. For default TC=0, if there is no entry in the map attached to egress port, then packet remarking should be bypassed. Could you please clarify this?
This PR address the usecase of setting different DSCP for TRIM packets going out on different port as mentioned in
https://github.com/JaiOCP/SAI/blob/master/doc/SAI-Proposal-Packet-Trimming.md
Current usage of SAI_PORT_ATTR_QOS_TC_AND_COLOR_TO_DSCP_MAP creates an issue where when TRIM TC is enabled for DSCP marking any other traffic flowing out on the port need to be correctly marked for TC to DSCP even if there is no change in outgoing DSCP. This is because once a map is enabled for a port, SAI spec mandates a default behavior of mapping to TC 0. This is not acceptable if there is requirement to map TC to DSCP only for TRIM packets.
New attribute SAI_PORT_ATTR_QOS_TRIM_TC_AND_COLOR_TO_DSCP_MAP is introduced to control only TRIM related TC to DSCP map and not touch the other data traffic maps.
New attribute SAI_BUFFER_PROFILE_PACKET_ADMISSION_FAIL_ACTION_DROP_AND_TRIM_TO_SENDER is introduced where TRIM packets can be forwarded in the reverse direction to the sender. All the other attributes for TRIM as applicable including stats remains same.