commit | 1e5bfafcf05c3844a3aa7f10ccc82af0d394789d | [log] [tgz] |
---|---|---|
author | Yuyang Huang <yuyanghuang@google.com> | Mon Dec 11 00:21:54 2023 +0900 |
committer | Yuyang Huang <yuyanghuang@google.com> | Thu Dec 14 09:44:24 2023 +0900 |
tree | da30e39d02d141ccae78aa14a452609ea1afd576 | |
parent | 0352fc9a128ec8fffa4ca264af66020742af70a8 [diff] |
Extend PASS and DROP opcode encoding to support incremental counter This commit implements COUNT opcode by adding support for incremental counters to the PASS and DROP opcodes. If counter number is present in the instruction, the apf_interpreter will increment the relevant counter and return PASS/DROP immediately, skipping over subsequent instructions. * design doc: go/apf-v6-proposal Bug: 293811969 Test: TH Change-Id: I2430719782a384ad9a7147e42c447ec797e66c21