youtube image
From YouTube: SONiC DASH Workgroup Community Meeting Aug 23 2023

Description

PR360 - SAI attributes for ACL rules should include list of IP prefixes for the Bmv2 compile (follow up)
1. The current P4 code has a mismatch between the BMv2 and the SAI generation. To SAI, it’s list of prefixes, But to BMv2, it’s just a single prefix. This reason of difference is due to the limitation of BMv2 that cannot support the list of prefix as the key.
2. We totally agree with using DASH_MATCH in dash_acl.p4 as default so that other vendors don’t need to declare DASH_MATCH in their pipeline.
3. So, here are two solutions to achieve our goal.
1. To set DASH_MATCH as default, but to remove this MACRO in BMv2 pipeline. This solution is simple enough but isn’t perfect because the gap between BMv2 and SAI still exists.
2. And another solution, (possibly better) comes from @lguohan . We should keep the same declaration of list prefixes in P4 code. Although BMv2 doesn’t support list prefixes, we can expand the list of prefixes in saiapi level and input the single prefix to BMv2 one by one. This solution will be a little bit complicated but more reasonable.

Guohan's SmartSwitch Linux Foundation Meeting
https://lists.sonicfoundation.dev/g/sonic-smartswitch