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

Tunnel Scoped TC MAP and Remarking #1413

Merged
merged 4 commits into from
Feb 28, 2022
Merged

Tunnel Scoped TC MAP and Remarking #1413

merged 4 commits into from
Feb 28, 2022

Conversation

JaiOCP
Copy link
Contributor

@JaiOCP JaiOCP commented Feb 17, 2022

This PR add following behavior to tunnel encap and decap

Tunnel Encap:

  1.  SAI_TUNNEL_ATTR_ENCAP_QOS_TC_AND_COLOR_TO_DSCP_MAP for remarking the packet based on normalized TC as per port TC MAP binding
    
  2.  SAI_TUNNEL_ATTR_ENCAP_QOS_TC_TO_QUEUE_MAP for queue selection based on normalized TC as per port TC MAP binding
    

Tunnel Decap:

  1.  SAI_TUNNEL_ATTR_DECAP_QOS_DSCP_TO_TC_MAP new TC MAP can be bind'ed to the tunnel for decap. This MAP overrides port MAP if configured.
    
  2.  SAI_TUNNEL_ATTR_DECAP_QOS_TC_TO_PRIORITY_GROUP_MAP for mapping the normalized TC to priority group mainly for PFC generation.
    

DSCP mode takes effect as configured for both cases.

This flag indicates if hw can support overlaying of ACL match fields.
IPv6 DIP and IPV4 DIP keys can use either 128+32 bits in HW or only 128 bits.
If is_field_overlay_capability return TRUE, this means that in such cases HW will only use 128 bit wide field

Signed-off-by: Jai Kumar <jai.kumar@broadcom.com>
Signed-off-by: Jai Kumar <jai.kumar@broadcom.com>
Signed-off-by: Jai Kumar <jai.kumar@broadcom.com>
Signed-off-by: Jai Kumar <jai.kumar@broadcom.com>
@rlhui
Copy link
Collaborator

rlhui commented Feb 24, 2022

@ashutosh-agrawal - would you be approving this? Thanks.

@rlhui rlhui merged commit ba6ff9b into opencomputeproject:master Feb 28, 2022
bingwang-ms pushed a commit to bingwang-ms/SAI that referenced this pull request Mar 23, 2022
This PR add following behavior to tunnel encap and decap

Tunnel Encap:

 SAI_TUNNEL_ATTR_ENCAP_QOS_TC_AND_COLOR_TO_DSCP_MAP for remarking the packet based on normalized TC as per port TC MAP binding
 SAI_TUNNEL_ATTR_ENCAP_QOS_TC_TO_QUEUE_MAP for queue selection based on normalized TC as per port TC MAP binding

Tunnel Decap:

 SAI_TUNNEL_ATTR_DECAP_QOS_DSCP_TO_TC_MAP new TC MAP can be bind'ed to the tunnel for decap. This MAP overrides port MAP if configured.
 SAI_TUNNEL_ATTR_DECAP_QOS_TC_TO_PRIORITY_GROUP_MAP for mapping the normalized TC to priority group mainly for PFC generation.
DSCP mode takes effect as configured for both cases.

Signed-off-by: Jai Kumar <jai.kumar@broadcom.com>
richardyu-ms pushed a commit that referenced this pull request Mar 23, 2022
This PR add following behavior to tunnel encap and decap

Tunnel Encap:

 SAI_TUNNEL_ATTR_ENCAP_QOS_TC_AND_COLOR_TO_DSCP_MAP for remarking the packet based on normalized TC as per port TC MAP binding
 SAI_TUNNEL_ATTR_ENCAP_QOS_TC_TO_QUEUE_MAP for queue selection based on normalized TC as per port TC MAP binding

Tunnel Decap:

 SAI_TUNNEL_ATTR_DECAP_QOS_DSCP_TO_TC_MAP new TC MAP can be bind'ed to the tunnel for decap. This MAP overrides port MAP if configured.
 SAI_TUNNEL_ATTR_DECAP_QOS_TC_TO_PRIORITY_GROUP_MAP for mapping the normalized TC to priority group mainly for PFC generation.
DSCP mode takes effect as configured for both cases.

Signed-off-by: Jai Kumar <jai.kumar@broadcom.com>

Co-authored-by: Jai Kumar <jai.kumar@broadcom.com>
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

Successfully merging this pull request may close these issues.

6 participants