Add ACL Mirror Copy Type and Mirror Session ID match fields#2274
Add ACL Mirror Copy Type and Mirror Session ID match fields#2274mobinmohan wants to merge 2 commits into
Conversation
cd28e05 to
0ae367c
Compare
Pleas provide description of the PR |
|
@mobinmohan Is it an ingress mirror or egress mirror copy match condition. |
The attribute was to match both ingress and egress mirror copies. However, I can change the type from |
I don't think we need to have type_t. Typically there is no case where ingress mirror copy needs an egress ACL rule for match action as the mirror copy is taken out to the mirror port directly but I am not very sure about it. Is that a use case for you? |
Added description. |
Sounds good. We can continue with the default(bool). |
The current bool definition still leaves ambiguity on what exactly is being matched. then SAI_ACL_ENTRY_ATTR_FIELD_MIRROR_COPY=true in an egress ACL table, does it mean only egress mirror copies, not any mirrored packet ? please clarify. Modeling this stage/direction explicitly using sai_acl_mirror_copy_type_t (as proposed in this conversation) would make the semantics unambiguous and future-proof the design, enum capability query allows the vendor to announce their capabilities. |
I agree and take my earlier statement back. |
0ae367c to
1fc21bb
Compare
I received a similar feedback during the weekly review meeting. I agree using sai_acl_mirror_copy_type_t makes the design future proof. I have updated the PR to use the enum type, though proper distinction will depend on the ASIC support. |
Thanks for reviewing this during the weekly meeting. I have update the PR now. |
1fc21bb to
6923c55
Compare
6923c55 to
d56bb79
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This change introduces a new ACL match field `ACL_MIRROR_COPY_TYPE` to allow ACLs to match based on whether the packet is a mirror copy. It allows ACLs to match based on the type of mirror copy (Ingress, Egress, or Ingress or Egress). Change-Id: I351b2aba82b10ce52425615920eb07e7fd964f96 Signed-off-by: Mobin Mohan <mobinmohan@google.com>
d56bb79 to
b31131d
Compare
This change introduces a new ACL match field `ACL_MIRROR_SESSION_ID` to allow ACLs to match based on a specific mirror session ID. * Added support to match on `SAI_OBJECT_TYPE_MIRROR_SESSION` objects in ACL entries. * Added Table and Entry attributes with updated end markers. Change-Id: Iea1a664dbe8fca6e22a9b3f9c50ecb0fc9f29b75 Signed-off-by: Mobin Mohan <mobinmohan@google.com>
73aa841 to
d33e34b
Compare
This PR introduces two new ACL match fields to the SAI ACL headers:
SAI_ACL_TABLE_ATTR_FIELD_ACL_MIRROR_COPY_TYPE: Allows ACL rules to match packets based on whether they are mirror copies and their specific type (Ingress, Egress, or Ingress Or Egress).SAI_ACL_TABLE_ATTR_FIELD_ACL_MIRROR_SESSION_ID: Allows ACL rules to match based on a specific mirror session ID.