-
Notifications
You must be signed in to change notification settings - Fork 539
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
[aclorch] egress mirror action support and action ASIC support check #963
Conversation
ae6eeac
to
f851635
Compare
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! please check the comments.
#define TABLE_EGRESS "EGRESS" | ||
#define STAGE_INGRESS "INGRESS" | ||
#define STAGE_EGRESS "EGRESS" | ||
#define TABLE_INGRESS STAGE_INGRESS |
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.
mark these two definitions as backward compatibility
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.
Hm, I don't quite understand why this is for backward compatibility. TABLE_INGRESS and TABLE_EGRESS is still used in the code not for backward compatibility
STAGE_INGRESS, STAGE_EGRESS were added for ACL mirror rule code just to not confuse reader with TABLE_* defines
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com> [test_mirror] add integration test for egress mirror rule creation Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com> [aclorch] add getAclActionTypeFromAttr in AclOrch Signed-off-by: Stepan Blyschak <stepanb@mellanox.com> [aclorch] add isAclActionSupported in AclOrch Signed-off-by: Stepan Blyschak <stepanb@mellanox.com> [aclorch] add generic AclRule::validateAddAction implementation Each derivative of AclRule now has to call AclRule::validateAddAction to validate if action is supported. Signed-off-by: Stepan Blyschak <stepanb@mellanox.com> [aclorch] move action support check in different method Signed-off-by: Stepan Blyschak <stepanb@mellanox.com> [aclorch] fix acl action support check Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
…gstream in queryAclActionCapabilities Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Right now ACL actions that have enum values are - PACKET_ACTION and DTEL_FLOW_OP. Once SAI object API is supported by libsairedis we will query which values are supported by calling "sai_query_attribute_enum_values_capability"; untill then we will assume all values are supported and populate this in DB Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
@stcheng comments were fixed or resolved, could you please review? |
What I did
Why I did it
How I verified it
(with [acl-loader] egress mirror action support and action ASIC support check sonic-utilities#575)
Example output on Mellanox platform:
Example output on VS platform
Details if related
DEPENDS sonic-net/sonic-sairedis#481