Skip to content

Commit

Permalink
update regarding setting egress mirror rule on ingress table or vice …
Browse files Browse the repository at this point in the history
…versa

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
  • Loading branch information
Stepan Blyschak committed Aug 7, 2019
1 parent 5f7d3ef commit e32dc9f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/acl/acl_stage_capability.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ E.g.: Egress mirror action on ingress stage or vice versa might be not supported

## 1. Egress mirroring support

SAI API has two mirror action types - SAI_ACL_ACTION_TYPE_MIRROR_INGRESS, SAI_ACL_ACTION_TYPE_MIRROR_EGRESS which can be set on ingress or egress table.
So SONiC will not restrict setting egress mirror rule on ingress table or vice versa.
To check wheter such combination is supported by the ASIC application should look into SWITCH_CAPABILITY table which is described in part 2 of this document.

The proposed new schema:

### ACL_RULE_TABLE
Expand All @@ -29,14 +33,16 @@ e.g.:
```
{
"ACL_RULE": {
"EVERFLOW|RULE_1": {
"EVERFLOW_INGRESS|RULE_1": {
"MIRROR_EGRESS_ACTION": "everflow0",
"PRIORITY": "9999",
"SRC_IP": "20.0.0.10/32"
}
}
```

The above example shows setting an egress mirror action on ingress everflow table.

mirror_action should be implicitly set to "ingress" by default to be backward compatible


Expand Down

0 comments on commit e32dc9f

Please sign in to comment.